Interface CfnRepositoryCreationTemplateProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnRepositoryCreationTemplateProps.Jsii$Proxy
CfnRepositoryCreationTemplate.
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.*;
CfnRepositoryCreationTemplateProps cfnRepositoryCreationTemplateProps = CfnRepositoryCreationTemplateProps.builder()
.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 TypeInterfaceDescriptionstatic final classA builder forCfnRepositoryCreationTemplatePropsstatic final classAn implementation forCfnRepositoryCreationTemplateProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()A list of enumerable Strings representing the repository creation scenarios that this template will apply towards.default StringThe ARN of the role to be assumed by Amazon ECR.default StringThe description associated with the repository creation template.default ObjectThe encryption configuration associated with the repository creation template.default StringThe tag mutability setting for the repository.default ObjectA list of filters that specify which image tags are excluded from the repository creation template's image tag mutability setting.default StringThe lifecycle policy to use for repositories created using the template.The repository namespace prefix associated with the repository creation template.default StringThe repository policy to apply to repositories created using the template.default ObjectThe metadata to apply to the repository to help you categorize and organize.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAppliedFor
A list of enumerable Strings representing the repository creation scenarios that this template will apply towards.The two supported scenarios are PULL_THROUGH_CACHE and REPLICATION
- See Also:
-
getPrefix
The repository namespace prefix associated with the repository creation template.- See Also:
-
getCustomRoleArn
The ARN of the role to be assumed by Amazon ECR.Amazon ECR will assume your supplied role when the customRoleArn is specified. When this field isn't specified, Amazon ECR will use the service-linked role for the repository creation template.
- See Also:
-
getDescription
The description associated with the repository creation template.- See Also:
-
getEncryptionConfiguration
The encryption configuration associated with the repository creation template.Returns union: either
IResolvableorCfnRepositoryCreationTemplate.EncryptionConfigurationProperty- See Also:
-
getImageTagMutability
The tag mutability setting for the repository.If this parameter is omitted, the default setting of
MUTABLEwill be used which will allow image tags to be overwritten. IfIMMUTABLEis specified, all image tags within the repository will be immutable which will prevent them from being overwritten.- See Also:
-
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>- See Also:
-
getLifecyclePolicy
The lifecycle policy to use for repositories created using the template.- See Also:
-
getRepositoryPolicy
The repository policy to apply to repositories created using the template.A repository policy is a permissions policy associated with a repository to control access permissions.
- See Also:
-
getResourceTags
The metadata to apply to the repository to help you categorize and organize.Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.
Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnTag>- See Also:
-
builder
-