CreateInstance
This API is in preview release for Amazon Connect and is subject to change.
Initiates an Amazon Connect instance with all the supported channels enabled. It does not attach any storage, such as Amazon Simple Storage Service (Amazon S3) or Amazon Kinesis. It also does not allow for any configurations on features, such as Contact Lens for Amazon Connect.
For more information, see Create an Amazon Connect instance in the Amazon Connect Administrator Guide.
Amazon Connect enforces a limit on the total number of instances that you can create or delete in 30 days. If you exceed this limit, you will get an error message indicating there has been an excessive number of attempts at creating or deleting instances. You must wait 30 days before you can restart creating and deleting instances in your account.
Request Syntax
PUT /instance HTTP/1.1
Content-type: application/json
{
"ClientToken": "string
",
"DirectoryId": "string
",
"IdentityManagementType": "string
",
"InboundCallsEnabled": boolean
,
"InstanceAlias": "string
",
"OutboundCallsEnabled": boolean
,
"Tags": {
"string
" : "string
"
}
}
URI Request Parameters
The request does not use any URI parameters.
Request Body
The request accepts the following data in JSON format.
- ClientToken
-
The idempotency token.
Type: String
Length Constraints: Maximum length of 500.
Required: No
- DirectoryId
-
The identifier for the directory.
Type: String
Length Constraints: Fixed length of 12.
Pattern:
^d-[0-9a-f]{10}$
Required: No
- IdentityManagementType
-
The type of identity management for your Amazon Connect users.
Type: String
Valid Values:
SAML | CONNECT_MANAGED | EXISTING_DIRECTORY
Required: Yes
- InboundCallsEnabled
-
Your contact center handles incoming contacts.
Type: Boolean
Required: Yes
- InstanceAlias
-
The name for your instance.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 45.
Pattern:
^(?!d-)([\da-zA-Z]+)([-]*[\da-zA-Z])*$
Required: No
- OutboundCallsEnabled
-
Your contact center allows outbound calls.
Type: Boolean
Required: Yes
- Tags
-
The tags used to organize, track, or control access for this resource. For example,
{ "tags": {"key1":"value1", "key2":"value2"} }
.Type: String to string map
Map Entries: Maximum number of 50 items.
Key Length Constraints: Minimum length of 1. Maximum length of 128.
Key Pattern:
^(?!aws:)[\p{L}\p{Z}\p{N}_.:/=+\-@]*$
Value Length Constraints: Maximum length of 256.
Required: No
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"Arn": "string",
"Id": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
Errors
For information about the errors that are common to all actions, see Common Errors.
- InternalServiceException
-
Request processing failed because of an error or failure with the service.
HTTP Status Code: 500
- InvalidRequestException
-
The request is not valid.
HTTP Status Code: 400
- ResourceNotFoundException
-
The specified resource was not found.
HTTP Status Code: 404
- ServiceQuotaExceededException
-
The service quota has been exceeded.
HTTP Status Code: 402
- ThrottlingException
-
The throttling limit has been exceeded.
HTTP Status Code: 429
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: