CfnRepositoryProps
- class aws_cdk.aws_codeartifact.CfnRepositoryProps(*, domain_name, repository_name, description=None, domain_owner=None, external_connections=None, permissions_policy_document=None, tags=None, upstreams=None)
Bases:
objectProperties for defining a
CfnRepository.- Parameters:
domain_name (
str) – The name of the domain that contains the repository.repository_name (
str) – The name of an upstream repository.description (
Optional[str]) – A text description of the repository.domain_owner (
Optional[str]) – The 12-digit account number of the AWS account that owns the domain that contains the repository. It does not include dashes or spaces.external_connections (
Optional[Sequence[str]]) – An array of external connections associated with the repository.permissions_policy_document (
Optional[Any]) – The document that defines the resource policy that is set on a repository.tags (
Optional[Sequence[Union[CfnTag,Dict[str,Any]]]]) – A list of tags to be applied to the repository.upstreams (
Optional[Sequence[str]]) – A list of upstream repositories to associate with the repository. The order of the upstream repositories in the list determines their priority order when AWS CodeArtifact looks for a requested package version. For more information, see Working with upstream repositories .
- Link:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_codeartifact as codeartifact # permissions_policy_document: Any cfn_repository_props = codeartifact.CfnRepositoryProps( domain_name="domainName", repository_name="repositoryName", # the properties below are optional description="description", domain_owner="domainOwner", external_connections=["externalConnections"], permissions_policy_document=permissions_policy_document, tags=[CfnTag( key="key", value="value" )], upstreams=["upstreams"] )
Attributes
- description
A text description of the repository.
- domain_name
The name of the domain that contains the repository.
- domain_owner
The 12-digit account number of the AWS account that owns the domain that contains the repository.
It does not include dashes or spaces.
- external_connections
An array of external connections associated with the repository.
- permissions_policy_document
The document that defines the resource policy that is set on a repository.
- repository_name
The name of an upstream repository.
- tags
A list of tags to be applied to the repository.
- upstreams
A list of upstream repositories to associate with the repository.
The order of the upstream repositories in the list determines their priority order when AWS CodeArtifact looks for a requested package version. For more information, see Working with upstream repositories .