Class CfnRepositoryCreationTemplate

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.ecr.CfnRepositoryCreationTemplate
All Implemented Interfaces:
IInspectable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.101.0 (build b95fe5d)", date="2024-07-12T19:34:01.079Z") @Stability(Stable) public class CfnRepositoryCreationTemplate extends CfnResource implements IInspectable
AWS::ECR::RepositoryCreationTemplate is used to create repository with configuration from a pre-defined template.

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.*;
 CfnRepositoryCreationTemplate cfnRepositoryCreationTemplate = CfnRepositoryCreationTemplate.Builder.create(this, "MyCfnRepositoryCreationTemplate")
         .appliedFor(List.of("appliedFor"))
         .prefix("prefix")
         // the properties below are optional
         .description("description")
         .encryptionConfiguration(EncryptionConfigurationProperty.builder()
                 .encryptionType("encryptionType")
                 // the properties below are optional
                 .kmsKey("kmsKey")
                 .build())
         .imageTagMutability("imageTagMutability")
         .lifecyclePolicy("lifecyclePolicy")
         .repositoryPolicy("repositoryPolicy")
         .resourceTags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .build();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnRepositoryCreationTemplate

      protected CfnRepositoryCreationTemplate(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnRepositoryCreationTemplate

      protected CfnRepositoryCreationTemplate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnRepositoryCreationTemplate

      @Stability(Stable) public CfnRepositoryCreationTemplate(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnRepositoryCreationTemplateProps props)
      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties. This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector - tree inspector to collect and process attributes. This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrCreatedAt

      @Stability(Stable) @NotNull public String getAttrCreatedAt()
      Create timestamp of the template.
    • getAttrUpdatedAt

      @Stability(Stable) @NotNull public String getAttrUpdatedAt()
      Update timestamp of the template.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getAppliedFor

      @Stability(Stable) @NotNull public List<String> getAppliedFor()
      A list of enumerable Strings representing the repository creation scenarios that the template will apply towards.
    • setAppliedFor

      @Stability(Stable) public void setAppliedFor(@NotNull List<String> value)
      A list of enumerable Strings representing the repository creation scenarios that the template will apply towards.
    • getPrefix

      @Stability(Stable) @NotNull public String getPrefix()
      The prefix use to match the repository name and apply the template.
    • setPrefix

      @Stability(Stable) public void setPrefix(@NotNull String value)
      The prefix use to match the repository name and apply the template.
    • getDescription

      @Stability(Stable) @Nullable public String getDescription()
      The description of the template.
    • setDescription

      @Stability(Stable) public void setDescription(@Nullable String value)
      The description of the template.
    • getEncryptionConfiguration

      @Stability(Stable) @Nullable public Object getEncryptionConfiguration()
      The encryption configuration for the repository.

      This determines how the contents of your repository are encrypted at rest.

    • setEncryptionConfiguration

      @Stability(Stable) public void setEncryptionConfiguration(@Nullable IResolvable value)
      The encryption configuration for the repository.

      This determines how the contents of your repository are encrypted at rest.

    • setEncryptionConfiguration

      @Stability(Stable) public void setEncryptionConfiguration(@Nullable CfnRepositoryCreationTemplate.EncryptionConfigurationProperty value)
      The encryption configuration for the repository.

      This determines how the contents of your repository are encrypted at rest.

    • getImageTagMutability

      @Stability(Stable) @Nullable public String getImageTagMutability()
      The image tag mutability setting for the repository.
    • setImageTagMutability

      @Stability(Stable) public void setImageTagMutability(@Nullable String value)
      The image tag mutability setting for the repository.
    • getLifecyclePolicy

      @Stability(Stable) @Nullable public String getLifecyclePolicy()
      The JSON lifecycle policy text to apply to the repository.
    • setLifecyclePolicy

      @Stability(Stable) public void setLifecyclePolicy(@Nullable String value)
      The JSON lifecycle policy text to apply to the repository.
    • getRepositoryPolicy

      @Stability(Stable) @Nullable public String getRepositoryPolicy()
      The JSON repository policy text to apply to the repository.
    • setRepositoryPolicy

      @Stability(Stable) public void setRepositoryPolicy(@Nullable String value)
      The JSON repository policy text to apply to the repository.
    • getResourceTags

      @Stability(Stable) @Nullable public Object getResourceTags()
      The tags attached to the resource.
    • setResourceTags

      @Stability(Stable) public void setResourceTags(@Nullable IResolvable value)
      The tags attached to the resource.
    • setResourceTags

      @Stability(Stable) public void setResourceTags(@Nullable List<Object> value)
      The tags attached to the resource.