@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:41.453Z") public class CfnPublicRepository extends CfnResource implements IInspectable
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();
Modifier and Type | Class and Description |
---|---|
static class |
CfnPublicRepository.Builder
A fluent builder for
CfnPublicRepository . |
static interface |
CfnPublicRepository.RepositoryCatalogDataProperty
Example:
|
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnPublicRepository(Construct scope,
java.lang.String id)
Create a new `AWS::ECR::PublicRepository`.
|
|
CfnPublicRepository(Construct scope,
java.lang.String id,
CfnPublicRepositoryProps props)
Create a new `AWS::ECR::PublicRepository`.
|
protected |
CfnPublicRepository(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnPublicRepository(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttrArn()
Returns the Amazon Resource Name (ARN) for the specified `AWS::ECR::PublicRepository` resource.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.Object |
getRepositoryCatalogData()
The details about the repository that are publicly visible in the Amazon ECR Public Gallery.
|
java.lang.String |
getRepositoryName()
The name to use for the public repository.
|
java.lang.Object |
getRepositoryPolicyText()
The JSON repository policy text to apply to the public repository.
|
TagManager |
getTags()
An array of key-value pairs to apply to this resource.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setRepositoryCatalogData(java.lang.Object value)
The details about the repository that are publicly visible in the Amazon ECR Public Gallery.
|
void |
setRepositoryName(java.lang.String value)
The name to use for the public repository.
|
void |
setRepositoryPolicyText(java.lang.Object value)
The JSON repository policy text to apply to the public repository.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnPublicRepository(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnPublicRepository(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnPublicRepository(Construct scope, java.lang.String id, CfnPublicRepositoryProps props)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.props
- - resource properties.public CfnPublicRepository(Construct scope, java.lang.String id)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.public java.lang.String getAttrArn()
For example, arn:aws:ecr-public:: *123456789012* :repository/ *test-repository*
.
protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public TagManager getTags()
public java.lang.Object getRepositoryCatalogData()
For more information, see Amazon ECR Public repository catalog data in the Amazon ECR Public User Guide .
public void setRepositoryCatalogData(java.lang.Object value)
For more information, see Amazon ECR Public repository catalog data in the Amazon ECR Public User Guide .
public java.lang.Object getRepositoryPolicyText()
For more information, see Amazon ECR Public repository policies in the Amazon ECR Public User Guide .
public void setRepositoryPolicyText(java.lang.Object value)
For more information, see Amazon ECR Public repository policies in the Amazon ECR Public User Guide .
public java.lang.String getRepositoryName()
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 as project-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.
public void setRepositoryName(java.lang.String value)
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 as project-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.