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
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnPublicRepository
.static interface
Example:Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionCfnPublicRepository
(Construct scope, String id) Create a newAWS::ECR::PublicRepository
.CfnPublicRepository
(Construct scope, String id, CfnPublicRepositoryProps props) Create a newAWS::ECR::PublicRepository
.protected
CfnPublicRepository
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnPublicRepository
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionReturns the Amazon Resource Name (ARN) for the specifiedAWS::ECR::PublicRepository
resource.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.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setRepositoryCatalogData
(Object value) The details about the repository that are publicly visible in the Amazon ECR Public Gallery.void
setRepositoryName
(String value) The name to use for the public repository.void
setRepositoryPolicyText
(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, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
inspect
in 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:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrArn
Returns the Amazon Resource Name (ARN) for the specifiedAWS::ECR::PublicRepository
resource.For example,
arn:aws:ecr-public:: *123456789012* :repository/ *test-repository*
. -
getCfnProperties
- Overrides:
getCfnProperties
in 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.
-