create_queue
async
¶
create_queue(
instance_id: InstanceId,
name: CommonNameLength127,
hours_of_operation_id: HoursOfOperationId,
*,
config_overrides: Optional[AsyncConnectClientConfig] = 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/async_connect.py
5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 | |