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,IRepositoryCreationTemplateRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-29T11:15:38.445Z")
@Stability(Stable)
public class CfnRepositoryCreationTemplate
extends CfnResource
implements IInspectable, IRepositoryCreationTemplateRef
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")
.imageTagMutabilityExclusionFilters(List.of(ImageTagMutabilityExclusionFilterProperty.builder()
.imageTagMutabilityExclusionFilterType("imageTagMutabilityExclusionFilterType")
.imageTagMutabilityExclusionFilterValue("imageTagMutabilityExclusionFilterValue")
.build()))
.lifecyclePolicy("lifecyclePolicy")
.repositoryPolicy("repositoryPolicy")
.resourceTags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnRepositoryCreationTemplate.static interfaceThe encryption configuration for the repository.static interfaceA filter that specifies which image tags should be excluded from the repository's image tag mutability setting.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.ecr.IRepositoryCreationTemplateRef
IRepositoryCreationTemplateRef.Jsii$Default, IRepositoryCreationTemplateRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnRepositoryCreationTemplate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnRepositoryCreationTemplate(software.amazon.jsii.JsiiObjectRef objRef) CfnRepositoryCreationTemplate(software.constructs.Construct scope, String id, CfnRepositoryCreationTemplateProps props) -
Method Summary
Modifier and TypeMethodDescriptionA list of enumerable Strings representing the repository creation scenarios that this template will apply towards.The date and time, in JavaScript date format, when the repository creation template was created.The date and time, in JavaScript date format, when the repository creation template was last updated.The ARN of the role to be assumed by Amazon ECR.The description associated with the repository creation template.The encryption configuration associated with the repository creation template.The tag mutability setting for the repository.A list of filters that specify which image tags are excluded from the repository creation template's image tag mutability setting.The lifecycle policy to use for repositories created using the template.The repository namespace prefix associated with the repository creation template.A reference to a RepositoryCreationTemplate resource.The repository policy to apply to repositories created using the template.The metadata to apply to the repository to help you categorize and organize.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetAppliedFor(List<String> value) A list of enumerable Strings representing the repository creation scenarios that this template will apply towards.voidsetCustomRoleArn(String value) The ARN of the role to be assumed by Amazon ECR.voidsetDescription(String value) The description associated with the repository creation template.voidThe encryption configuration associated with the repository creation template.voidThe encryption configuration associated with the repository creation template.voidsetImageTagMutability(String value) The tag mutability setting for the repository.voidA list of filters that specify which image tags are excluded from the repository creation template's image tag mutability setting.voidA list of filters that specify which image tags are excluded from the repository creation template's image tag mutability setting.voidsetLifecyclePolicy(String value) The lifecycle policy to use for repositories created using the template.voidThe repository namespace prefix associated with the repository creation template.voidsetRepositoryPolicy(String value) The repository policy to apply to repositories created using the template.voidsetResourceTags(List<Object> value) The metadata to apply to the repository to help you categorize and organize.voidsetResourceTags(IResolvable value) The metadata to apply to the repository to help you categorize and organize.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods 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
-
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
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- 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:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrCreatedAt
The date and time, in JavaScript date format, when the repository creation template was created. -
getAttrUpdatedAt
The date and time, in JavaScript date format, when the repository creation template was last updated. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getRepositoryCreationTemplateRef
@Stability(Stable) @NotNull public RepositoryCreationTemplateReference getRepositoryCreationTemplateRef()A reference to a RepositoryCreationTemplate resource.- Specified by:
getRepositoryCreationTemplateRefin interfaceIRepositoryCreationTemplateRef
-
getAppliedFor
A list of enumerable Strings representing the repository creation scenarios that this template will apply towards. -
setAppliedFor
A list of enumerable Strings representing the repository creation scenarios that this template will apply towards. -
getPrefix
The repository namespace prefix associated with the repository creation template. -
setPrefix
The repository namespace prefix associated with the repository creation template. -
getCustomRoleArn
The ARN of the role to be assumed by Amazon ECR. -
setCustomRoleArn
The ARN of the role to be assumed by Amazon ECR. -
getDescription
The description associated with the repository creation template. -
setDescription
The description associated with the repository creation template. -
getEncryptionConfiguration
The encryption configuration associated with the repository creation template.Returns union: either
IResolvableorCfnRepositoryCreationTemplate.EncryptionConfigurationProperty -
setEncryptionConfiguration
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
The tag mutability setting for the repository. -
setImageTagMutability
The tag mutability setting for the repository. -
getImageTagMutabilityExclusionFilters
A list of filters that specify which image tags are excluded from the repository creation template's image tag mutability setting.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnRepositoryCreationTemplate.ImageTagMutabilityExclusionFilterProperty> -
setImageTagMutabilityExclusionFilters
A list of filters that specify which image tags are excluded from the repository creation template's image tag mutability setting. -
setImageTagMutabilityExclusionFilters
A list of filters that specify which image tags are excluded from the repository creation template's image tag mutability setting. -
getLifecyclePolicy
The lifecycle policy to use for repositories created using the template. -
setLifecyclePolicy
The lifecycle policy to use for repositories created using the template. -
getRepositoryPolicy
The repository policy to apply to repositories created using the template. -
setRepositoryPolicy
The repository policy to apply to repositories created using the template. -
getResourceTags
The metadata to apply to the repository to help you categorize and organize.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnTag> -
setResourceTags
The metadata to apply to the repository to help you categorize and organize. -
setResourceTags
The metadata to apply to the repository to help you categorize and organize.
-