create_queue
¶
create_queue(
instance_id: InstanceId,
name: CommonNameLength127,
hours_of_operation_id: HoursOfOperationId,
*,
config_overrides: Optional[ConnectClientConfig] = None,
description: Optional[QueueDescription] = None,
outbound_caller_config: Optional[OutboundCallerConfig] = None,
outbound_email_config: Optional[OutboundEmailConfig] = None,
max_contacts: Optional[QueueMaxContacts] = None,
quick_connect_ids: Optional[QuickConnectsList] = None,
email_addresses_config: Optional[EmailAddressConfigList] = None,
tags: Optional[TagMap] = None,
) -> CreateQueueResponse
Creates a new queue for the specified Connect Customer instance.
-
If the phone number is claimed to a traffic distribution group that was created in the same Region as the Connect Customer instance where you are calling this API, then you can use a full phone number ARN or a UUID for
OutboundCallerIdNumberId. However, if the phone number is claimed to a traffic distribution group that is in one Region, and you are calling this API from an instance in another Amazon Web Services Region that is associated with the traffic distribution group, you must provide a full phone number ARN. If a UUID is provided in this scenario, you will receive aResourceNotFoundException. -
Only use the phone number ARN format that doesn't contain
instancein the path, for example,arn:aws:connect:us-east-1:1234567890:phone-number/uuid. This is the same ARN format that is returned when you call the ListPhoneNumbersV2 API. -
If you plan to use IAM policies to allow/deny access to this API for phone number resources claimed to a traffic distribution group, see Allow or Deny queue API actions for phone numbers in a replica Region.
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(CommonNameLength127) –The name of the queue.
-
description(Optional[QueueDescription], default:None) –The description of the queue.
-
outbound_caller_config(Optional[OutboundCallerConfig], default:None) –The outbound caller ID name, number, and outbound whisper flow.
-
outbound_email_config(Optional[OutboundEmailConfig], default:None) –The outbound email address ID for a specified queue.
-
hours_of_operation_id(HoursOfOperationId) –The identifier for the hours of operation.
-
max_contacts(Optional[QueueMaxContacts], default:None) –The maximum number of contacts that can be in the queue before it is considered full.
-
quick_connect_ids(Optional[QuickConnectsList], default:None) –The quick connects available to agents who are working the queue.
-
email_addresses_config(Optional[EmailAddressConfigList], default:None) –Configuration list containing the email addresses to associate with the queue during creation. Each configuration specifies an email address ID that agents can select when handling email contacts in this queue.
-
tags(Optional[TagMap], default:None) –The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.
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
5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 | |