@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.528Z") @Stability(value=Stable) 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. |
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnPublicRepository(software.constructs.Construct scope,
String id)
Create a new `AWS::ECR::PublicRepository`.
|
|
CfnPublicRepository(software.constructs.Construct scope,
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 |
|---|---|
String |
getAttrArn()
Returns the Amazon Resource Name (ARN) for the specified `AWS::ECR::PublicRepository` resource.
|
protected Map<String,Object> |
getCfnProperties() |
Object |
getRepositoryCatalogData()
The details about the repository that are publicly visible in the Amazon ECR Public Gallery.
|
String |
getRepositoryName()
The name to use for the public repository.
|
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 Map<String,Object> |
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.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnPublicRepository(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnPublicRepository(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnPublicRepository(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
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.@Stability(value=Stable)
public CfnPublicRepository(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrArn()
For example, arn:aws:ecr-public:: *123456789012* :repository/ *test-repository* .
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @NotNull public Object getRepositoryCatalogData()
For more information, see Amazon ECR Public repository catalog data in the Amazon ECR Public User Guide .
@Stability(value=Stable)
public void setRepositoryCatalogData(@NotNull
Object value)
For more information, see Amazon ECR Public repository catalog data in the Amazon ECR Public User Guide .
@Stability(value=Stable) @NotNull public Object getRepositoryPolicyText()
For more information, see Amazon ECR Public repository policies in the Amazon ECR Public User Guide .
@Stability(value=Stable)
public void setRepositoryPolicyText(@NotNull
Object value)
For more information, see Amazon ECR Public repository policies in the Amazon ECR Public User Guide .
@Stability(value=Stable) @Nullable public 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.
@Stability(value=Stable)
public void setRepositoryName(@Nullable
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.
Copyright © 2022. All rights reserved.