create_repository_link
async
¶
create_repository_link(
connection_arn: ConnectionArn,
owner_id: OwnerId,
repository_name: RepositoryName,
*,
config_overrides: Optional[AsyncCodeConnectionsClientConfig] = None,
encryption_key_arn: Optional[KmsKeyArn] = None,
tags: Optional[TagList] = None,
) -> CreateRepositoryLinkOutput
Creates a link to a specified external Git repository. A repository link allows Git sync to monitor and sync changes to files in a specified Git repository.
Parameters:
-
connection_arn(ConnectionArn) –The Amazon Resource Name (ARN) of the connection to be associated with the repository link.
-
owner_id(OwnerId) –The owner ID for the repository associated with a specific sync configuration, such as the owner ID in GitHub.
-
repository_name(RepositoryName) –The name of the repository to be associated with the repository link.
-
encryption_key_arn(Optional[KmsKeyArn], default:None) –The Amazon Resource Name (ARN) encryption key for the repository to be associated with the repository link.
-
tags(Optional[TagList], default:None) –The tags for the repository to be associated with the repository link.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ConcurrentModificationException–Exception thrown as a result of concurrent modification to an application. For example, two individuals attempting to edit the same application at the same time.
-
InternalServerException–Received an internal server exception. Try again later.
-
InvalidInputException–The input is not valid. Verify that the action is typed correctly.
-
LimitExceededException–Exceeded the maximum limit for connections.
-
ResourceAlreadyExistsException–Unable to create resource. Resource already exists.
-
ThrottlingException–The request was denied due to request throttling.
-
UnknownServiceError–The service returned an error code this client does not model.