CreateContactFlowModuleAlias
Creates a named alias that points to a specific version of a contact flow module.
Request Syntax
PUT /contact-flow-modules/InstanceId/ContactFlowModuleId/alias HTTP/1.1
Content-type: application/json
{
"AliasName": "string",
"ContactFlowModuleVersion": number,
"Description": "string"
}
URI Request Parameters
The request uses the following URI parameters.
- ContactFlowModuleId
-
The identifier of the flow module.
Length Constraints: Minimum length of 1. Maximum length of 256.
Required: Yes
- InstanceId
-
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
Length Constraints: Minimum length of 1. Maximum length of 250.
Pattern:
^(arn:(aws|aws-us-gov):connect:[a-z]{2}-[a-z]+-[0-9]{1}:[0-9]{1,20}:instance/)?[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$Required: Yes
Request Body
The request accepts the following data in JSON format.
- AliasName
-
The name of the alias.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 100.
Pattern:
^([$0-9a-zA-Z][_-]?)+$Required: Yes
- ContactFlowModuleVersion
-
The version of the flow module.
Type: Long
Valid Range: Minimum value of 1.
Required: Yes
- Description
-
The description of the alias.
Type: String
Required: No
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"ContactFlowModuleArn": "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.
- ContactFlowModuleArn
-
The Amazon Resource Name (ARN) of the flow module.
Type: String
- Id
-
The identifier of the alias.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 500.
Errors
For information about the errors that are common to all actions, see Common Errors.
- AccessDeniedException
-
You do not have sufficient permissions to perform this action.
HTTP Status Code: 403
- DuplicateResourceException
-
A resource with the specified name already exists.
HTTP Status Code: 409
- InternalServiceException
-
Request processing failed because of an error or failure with the service.
- Message
-
The message.
HTTP Status Code: 500
- InvalidParameterException
-
One or more of the specified parameters are not valid.
- Message
-
The message about the parameters.
HTTP Status Code: 400
- InvalidRequestException
-
The request is not valid.
- Message
-
The message about the request.
- Reason
-
Reason why the request was invalid.
HTTP Status Code: 400
- LimitExceededException
-
The allowed limit for the resource has been exceeded.
- Message
-
The message about the limit.
HTTP Status Code: 429
- ResourceNotFoundException
-
The specified resource was not found.
- Message
-
The message about the resource.
HTTP Status Code: 404
- ThrottlingException
-
The throttling limit has been exceeded.
HTTP Status Code: 429
Examples
Sample Request
This example illustrates one usage of CreateContactFlowModuleAlias.
{ "AliasName": "production", "ContactFlowModuleVersion": 2, "Description": "Production version of the customer service module" }
Sample Response
This example illustrates one usage of CreateContactFlowModuleAlias.
{ "ContactFlowModuleArn": "arn:aws:connect:us-west-2:123456789012:instance/12345678-1234-1234-1234-123456789012/flow-module/abcdefgh-1234-5678-9012-abcdefghijkl", "Id": "12345678-1234-1234-1234-1234678-1234-1234-1234-123456789012-12345678" }
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: