CodeStarconnections / Client / update_repository_link
update_repository_link#
- CodeStarconnections.Client.update_repository_link(**kwargs)#
Updates the association between your connection and a specified external Git repository. A repository link allows Git sync to monitor and sync changes to files in a specified Git repository.
See also: AWS API Documentation
Request Syntax
response = client.update_repository_link( ConnectionArn='string', EncryptionKeyArn='string', RepositoryLinkId='string' )
- Parameters:
ConnectionArn (string) – The Amazon Resource Name (ARN) of the connection for the repository link to be updated. The updated connection ARN must have the same providerType (such as GitHub) as the original connection ARN for the repo link.
EncryptionKeyArn (string) – The Amazon Resource Name (ARN) of the encryption key for the repository link to be updated.
RepositoryLinkId (string) –
[REQUIRED]
The ID of the repository link to be updated.
- Return type:
dict
- Returns:
Response Syntax
{ 'RepositoryLinkInfo': { 'ConnectionArn': 'string', 'EncryptionKeyArn': 'string', 'OwnerId': 'string', 'ProviderType': 'Bitbucket'|'GitHub'|'GitHubEnterpriseServer'|'GitLab', 'RepositoryLinkArn': 'string', 'RepositoryLinkId': 'string', 'RepositoryName': 'string' } }
Response Structure
(dict) –
RepositoryLinkInfo (dict) –
Information about the repository link to be updated.
ConnectionArn (string) –
The Amazon Resource Name (ARN) of the connection associated with the repository link.
EncryptionKeyArn (string) –
The Amazon Resource Name (ARN) of the encryption key for the repository associated with the repository link.
OwnerId (string) –
The owner ID for the repository associated with the repository link, such as the owner ID in GitHub.
ProviderType (string) –
The provider type for the connection, such as GitHub, associated with the repository link.
RepositoryLinkArn (string) –
The Amazon Resource Name (ARN) of the repository link.
RepositoryLinkId (string) –
The ID of the repository link.
RepositoryName (string) –
The name of the repository associated with the repository link.
Exceptions
CodeStarconnections.Client.exceptions.AccessDeniedException
CodeStarconnections.Client.exceptions.ConditionalCheckFailedException
CodeStarconnections.Client.exceptions.InternalServerException
CodeStarconnections.Client.exceptions.InvalidInputException
CodeStarconnections.Client.exceptions.ResourceNotFoundException
CodeStarconnections.Client.exceptions.ThrottlingException
CodeStarconnections.Client.exceptions.UpdateOutOfSyncException