Create Repository
proton_create_repository | R Documentation |
Create and register a link to a repository¶
Description¶
Create and register a link to a repository. Proton uses the link to repeatedly access the repository, to either push to it (self-managed provisioning) or pull from it (template sync). You can share a linked repository across multiple resources (like environments using self-managed provisioning, or synced templates). When you create a repository link, Proton creates a service-linked role for you.
For more information, see Self-managed provisioning, Template bundles, and Template sync configurations in the Proton User Guide.
Usage¶
Arguments¶
connectionArn
[required] The Amazon Resource Name (ARN) of your AWS CodeStar connection that connects Proton to your repository provider account. For more information, see Setting up for Proton in the Proton User Guide.
encryptionKey
The ARN of your customer Amazon Web Services Key Management Service (Amazon Web Services KMS) key.
name
[required] The repository name (for example,
myrepos/myrepo
).provider
[required] The repository provider.
tags
An optional list of metadata items that you can associate with the Proton repository. A tag is a key-value pair.
For more information, see Proton resources and tagging in the Proton User Guide.
Value¶
A list with the following syntax:
list(
repository = list(
arn = "string",
connectionArn = "string",
encryptionKey = "string",
name = "string",
provider = "GITHUB"|"GITHUB_ENTERPRISE"|"BITBUCKET"
)
)