create_predefined_attribute
¶
create_predefined_attribute(
instance_id: InstanceId,
name: PredefinedAttributeName,
*,
config_overrides: Optional[ConnectClientConfig] = None,
values: Optional[PredefinedAttributeValues] = None,
purposes: Optional[PredefinedAttributePurposeNameList] = None,
attribute_configuration: Optional[InputPredefinedAttributeConfiguration] = None,
) -> None
Creates a new predefined attribute for the specified Connect Customer instance. A predefined attribute is made up of a name and a value.
For the predefined attributes per instance quota, see Connect Customer quotas.
Use cases
Following are common uses cases for this API:
-
Create an attribute for routing proficiency (for example, agent certification) that has predefined values (for example, a list of possible certifications). For more information, see Create predefined attributes for routing contacts to agents.
-
Create an attribute for business unit name that has a list of predefined business unit names used in your organization. This is a use case where information for a contact varies between transfers or conferences. For more information, see Use contact segment attributes.
Endpoints: See Connect Customer endpoints and quotas.
Parameters:
-
instance_id(InstanceId) –The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
-
name(PredefinedAttributeName) –The name of the predefined attribute.
-
values(Optional[PredefinedAttributeValues], default:None) –The values of the predefined attribute.
-
purposes(Optional[PredefinedAttributePurposeNameList], default:None) –Values that enable you to categorize your predefined attributes. You can use them in custom UI elements across the Connect Customer admin website.
-
attribute_configuration(Optional[InputPredefinedAttributeConfiguration], default:None) –Custom metadata that is associated to predefined attributes to control behavior in upstream services, such as controlling how a predefined attribute should be displayed in the Connect Customer admin website.
Raises:
-
DuplicateResourceException–A resource with the specified name already exists.
-
InternalServiceException–Request processing failed because of an error or failure with the service.
-
InvalidParameterException–One or more of the specified parameters are not valid.
-
InvalidRequestException–The request is not valid.
-
LimitExceededException–The allowed limit for the resource has been exceeded.
-
ResourceNotFoundException–The specified resource was not found.
-
ThrottlingException–The throttling limit has been exceeded.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_connect/_services/connect.py
5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 | |