CreateConnection - AWS CodeStar connections

CreateConnection

Creates a connection that can then be given to other AWS services like CodePipeline so that it can access third-party code repositories. The connection is in pending status until the third-party connection handshake is completed from the console.

Request Syntax

{ "ConnectionName": "string", "ProviderType": "string" }

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

The request accepts the following data in JSON format.

ConnectionName

The name of the connection to be created. The name must be unique in the calling AWS account.

Type: String

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

Required: Yes

ProviderType

The name of the external provider where your third-party code repository is configured. Currently, the valid provider type is Bitbucket.

Type: String

Valid Values: Bitbucket

Required: Yes

Response Syntax

{ "ConnectionArn": "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.

ConnectionArn

The Amazon Resource Name (ARN) of the connection to be created. The ARN is used as the connection reference when the connection is shared between AWS services.

Note

The ARN is never reused if the connection is deleted.

Type: String

Length Constraints: Minimum length of 0. Maximum length of 256.

Pattern: arn:aws(-[\w]+)*:.+:.+:[0-9]{12}:.+

Errors

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

LimitExceededException

Exceeded the maximum limit for connections.

HTTP Status Code: 400

See Also

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