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.103.1 (build bef2dea)", date="2024-10-05T03:43:42.482Z") @Stability(Stable) public class CfnRepositoryCreationTemplate extends CfnResource implements IInspectable
The details of the repository creation template associated with the request.

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
         .customRoleArn("customRoleArn")
         .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()
      The date and time, in JavaScript date format, when the repository creation template was created.
    • getAttrUpdatedAt

      @Stability(Stable) @NotNull public String getAttrUpdatedAt()
      The date and time, in JavaScript date format, when the repository creation template was last updated.
    • 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 this 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 this template will apply towards.
    • getPrefix

      @Stability(Stable) @NotNull public String getPrefix()
      The repository namespace prefix associated with the repository creation template.
    • setPrefix

      @Stability(Stable) public void setPrefix(@NotNull String value)
      The repository namespace prefix associated with the repository creation template.
    • getCustomRoleArn

      @Stability(Stable) @Nullable public String getCustomRoleArn()
      The ARN of the role to be assumed by Amazon ECR.
    • setCustomRoleArn

      @Stability(Stable) public void setCustomRoleArn(@Nullable String value)
      The ARN of the role to be assumed by Amazon ECR.
    • getDescription

      @Stability(Stable) @Nullable public String getDescription()
      The description associated with the repository creation template.
    • setDescription

      @Stability(Stable) public void setDescription(@Nullable String value)
      The description associated with the repository creation template.
    • getEncryptionConfiguration

      @Stability(Stable) @Nullable public Object getEncryptionConfiguration()
      The encryption configuration associated with the repository creation template.
    • setEncryptionConfiguration

      @Stability(Stable) public void setEncryptionConfiguration(@Nullable IResolvable value)
      The encryption configuration associated with the repository creation template.
    • setEncryptionConfiguration

      @Stability(Stable) public void setEncryptionConfiguration(@Nullable CfnRepositoryCreationTemplate.EncryptionConfigurationProperty value)
      The encryption configuration associated with the repository creation template.
    • getImageTagMutability

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

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

      @Stability(Stable) @Nullable public String getLifecyclePolicy()
      The lifecycle policy to use for repositories created using the template.
    • setLifecyclePolicy

      @Stability(Stable) public void setLifecyclePolicy(@Nullable String value)
      The lifecycle policy to use for repositories created using the template.
    • getRepositoryPolicy

      @Stability(Stable) @Nullable public String getRepositoryPolicy()
      he repository policy to apply to repositories created using the template.
    • setRepositoryPolicy

      @Stability(Stable) public void setRepositoryPolicy(@Nullable String value)
      he repository policy to apply to repositories created using the template.
    • getResourceTags

      @Stability(Stable) @Nullable public Object getResourceTags()
      The metadata to apply to the repository to help you categorize and organize.
    • setResourceTags

      @Stability(Stable) public void setResourceTags(@Nullable IResolvable value)
      The metadata to apply to the repository to help you categorize and organize.
    • setResourceTags

      @Stability(Stable) public void setResourceTags(@Nullable List<Object> value)
      The metadata to apply to the repository to help you categorize and organize.