Interface CfnPublicRepositoryProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnPublicRepositoryProps.Jsii$Proxy
CfnPublicRepository
.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.ecr.*; Object repositoryCatalogData; Object repositoryPolicyText; CfnPublicRepositoryProps cfnPublicRepositoryProps = CfnPublicRepositoryProps.builder() .repositoryCatalogData(repositoryCatalogData) .repositoryName("repositoryName") .repositoryPolicyText(repositoryPolicyText) .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnPublicRepositoryProps
static final class
An implementation forCfnPublicRepositoryProps
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default Object
The details about the repository that are publicly visible in the Amazon ECR Public Gallery.default String
The name to use for the public repository.default Object
The JSON repository policy text to apply to the public repository.getTags()
An array of key-value pairs to apply to this resource.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getRepositoryCatalogData
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 .
-
getRepositoryName
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 .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.
-
getRepositoryPolicyText
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 .
-
getTags
An array of key-value pairs to apply to this resource. -
builder
- Returns:
- a
CfnPublicRepositoryProps.Builder
ofCfnPublicRepositoryProps
-