View a markdown version of this page

CreateIntegrationConnection - AWS Amplify

CreateIntegrationConnection

Creates a connection between an integration configuration and an environment.

Request Syntax

POST /integration-connections HTTP/1.1 Content-type: application/json { "EnvironmentArn": "string", "IntegrationArn": "string" }

URI Request Parameters

The request does not use any URI parameters.

Request Body

The request accepts the following data in JSON format.

EnvironmentArn

The Amazon Resource Name (ARN) of the environment to connect the integration to.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 512.

Required: Yes

IntegrationArn

The Amazon Resource Name (ARN) of the integration configuration to connect.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 2048.

Required: Yes

Response Syntax

HTTP/1.1 200 Content-type: application/json { "ConnectionId": "string", "IntegrationName": "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.

ConnectionId

The ID of the integration connection.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 64.

IntegrationName

The name of the integration.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 140.

Pattern: [a-zA-Z0-9]([a-zA-Z0-9_-]*[a-zA-Z0-9])?

Errors

For information about the errors that are common to all actions, see Common Error Types.

AccessDeniedException

You do not have sufficient permissions to perform this action.

message

A message that describes the error.

HTTP Status Code: 403

ConflictException

The request conflicts with the current state of the resource.

message

A message that describes the error.

HTTP Status Code: 409

InternalServerException

An internal error occurred. Retry the request.

message

A message that describes the error.

retryAfterSeconds

The number of seconds to wait before you retry the request.

HTTP Status Code: 500

ServiceQuotaExceededException

The request would exceed a service quota for your account.

message

A message that describes the error.

quotaCode

The code of the service quota that was exceeded.

serviceCode

The code of the service that the quota belongs to.

HTTP Status Code: 402

ThrottlingException

The request was denied because the request rate exceeds the allowed limit.

message

A message that describes the error.

quotaCode

The code of the service quota that caused the throttling.

retryAfterSeconds

The number of seconds to wait before you retry the request.

serviceCode

The code of the service that the quota belongs to.

HTTP Status Code: 429

ValidationException

The request contains invalid parameters or is otherwise malformed.

message

A message that describes the error.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: