CodeStarconnections / Client / create_connection
create_connection#
- CodeStarconnections.Client.create_connection(**kwargs)#
- 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. - See also: AWS API Documentation - Request Syntax - response = client.create_connection( ProviderType='Bitbucket'|'GitHub'|'GitHubEnterpriseServer', ConnectionName='string', Tags=[ { 'Key': 'string', 'Value': 'string' }, ], HostArn='string' ) - Parameters:
- ProviderType (string) – The name of the external provider where your third-party code repository is configured. 
- ConnectionName (string) – - [REQUIRED] - The name of the connection to be created. The name must be unique in the calling AWS account. 
- Tags (list) – - The key-value pair to use when tagging the resource. - (dict) – - A tag is a key-value pair that is used to manage the resource. - This tag is available for use by AWS services that support tags. - Key (string) – [REQUIRED] - The tag’s key. 
- Value (string) – [REQUIRED] - The tag’s value. 
 
 
- HostArn (string) – The Amazon Resource Name (ARN) of the host associated with the connection to be created. 
 
- Return type:
- dict 
- Returns:
- Response Syntax - { 'ConnectionArn': 'string', 'Tags': [ { 'Key': 'string', 'Value': 'string' }, ] } - Response Structure - (dict) – - ConnectionArn (string) – - 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. 
- Tags (list) – - Specifies the tags applied to the resource. - (dict) – - A tag is a key-value pair that is used to manage the resource. - This tag is available for use by AWS services that support tags. - Key (string) – - The tag’s key. 
- Value (string) – - The tag’s value. 
 
 
 
 
 - Exceptions - CodeStarconnections.Client.exceptions.LimitExceededException
- CodeStarconnections.Client.exceptions.ResourceNotFoundException
- CodeStarconnections.Client.exceptions.ResourceUnavailableException