Class CfnPublicRepository
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
AWS::ECR::PublicRepository.
The AWS::ECR::PublicRepository resource specifies an Amazon Elastic Container Registry Public (Amazon ECR Public) repository, where users can push and pull Docker images, Open Container Initiative (OCI) images, and OCI compatible artifacts. For more information, see Amazon ECR public repositories in the Amazon ECR Public User Guide .
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;
CfnPublicRepository cfnPublicRepository = CfnPublicRepository.Builder.create(this, "MyCfnPublicRepository")
.repositoryCatalogData(repositoryCatalogData)
.repositoryName("repositoryName")
.repositoryPolicyText(repositoryPolicyText)
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnPublicRepository.static interfaceExample:Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnPublicRepository(Construct scope, String id) Create a newAWS::ECR::PublicRepository.CfnPublicRepository(Construct scope, String id, CfnPublicRepositoryProps props) Create a newAWS::ECR::PublicRepository.protectedCfnPublicRepository(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnPublicRepository(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionReturns the Amazon Resource Name (ARN) for the specifiedAWS::ECR::PublicRepositoryresource.The details about the repository that are publicly visible in the Amazon ECR Public Gallery.The name to use for the public repository.The JSON repository policy text to apply to the public repository.getTags()An array of key-value pairs to apply to this resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetRepositoryCatalogData(Object value) The details about the repository that are publicly visible in the Amazon ECR Public Gallery.voidsetRepositoryName(String value) The name to use for the public repository.voidsetRepositoryPolicyText(Object value) The JSON repository policy text to apply to the public repository.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnPublicRepository
protected CfnPublicRepository(software.amazon.jsii.JsiiObjectRef objRef) -
CfnPublicRepository
protected CfnPublicRepository(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnPublicRepository
@Stability(Stable) public CfnPublicRepository(@NotNull Construct scope, @NotNull String id, @Nullable CfnPublicRepositoryProps props) Create a newAWS::ECR::PublicRepository.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
CfnPublicRepository
Create a newAWS::ECR::PublicRepository.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
Returns the Amazon Resource Name (ARN) for the specifiedAWS::ECR::PublicRepositoryresource.For example,
arn:aws:ecr-public:: *123456789012* :repository/ *test-repository*. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
An array of key-value pairs to apply to this resource. -
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 .
-
setRepositoryCatalogData
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 .
-
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 .
-
setRepositoryPolicyText
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 .
-
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.
-
setRepositoryName
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.
-