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.
-
ResourceNotFoundException–Resource not found. Verify the connection resource ARN and try again.
-
ThrottlingException–The request was denied due to request throttling.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_codeconnections/_services/async_code_connections.py
398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 | |