CfnPublicRepositoryProps
- class aws_cdk.aws_ecr.CfnPublicRepositoryProps(*, repository_catalog_data=None, repository_name=None, repository_policy_text=None, tags=None)
Bases:
object
Properties for defining a
CfnPublicRepository
.- Parameters:
repository_catalog_data (
Any
) – The details about the repository that are publicly visible in the Amazon ECR Public Gallery. For more information, see Amazon ECR Public repository catalog data in the Amazon ECR Public User Guide .repository_name (
Optional
[str
]) – The name to use for the public repository. The repository name may be specified on its own (such asnginx-web-app
) or it can be prepended with a namespace to group the repository into a category (such asproject-a/nginx-web-app
). If you don’t specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the repository name. For more information, see Name Type . .. epigraph:: If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.repository_policy_text (
Any
) – The JSON repository policy text to apply to the public repository. For more information, see Amazon ECR Public repository policies in the Amazon ECR Public User Guide .tags (
Optional
[Sequence
[Union
[CfnTag
,Dict
[str
,Any
]]]]) – An array of key-value pairs to apply to this resource.
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-publicrepository.html
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_ecr as ecr # repository_catalog_data: Any # repository_policy_text: Any cfn_public_repository_props = ecr.CfnPublicRepositoryProps( repository_catalog_data=repository_catalog_data, repository_name="repositoryName", repository_policy_text=repository_policy_text, tags=[CfnTag( key="key", value="value" )] )
Attributes
- repository_catalog_data
The details about the repository that are publicly visible in the Amazon ECR Public Gallery.
For more information, see Amazon ECR Public repository catalog data in the Amazon ECR Public User Guide .
- repository_name
The name to use for the public repository.
The repository name may be specified on its own (such as
nginx-web-app
) or it can be prepended with a namespace to group the repository into a category (such asproject-a/nginx-web-app
). If you don’t specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the repository name. For more information, see Name Type . .. epigraph:If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.
- repository_policy_text
The JSON repository policy text to apply to the public repository.
For more information, see Amazon ECR Public repository policies in the Amazon ECR Public User Guide .
- tags
An array of key-value pairs to apply to this resource.