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") .lifecyclePolicy("lifecyclePolicy") .repositoryPolicy("repositoryPolicy") .resourceTags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnRepositoryCreationTemplateProps
static final class
An implementation forCfnRepositoryCreationTemplateProps
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
A list of enumerable Strings representing the repository creation scenarios that this template will apply towards.default String
The ARN of the role to be assumed by Amazon ECR.default String
The description associated with the repository creation template.default Object
The encryption configuration associated with the repository creation template.default String
The tag mutability setting for the repository.default String
The lifecycle policy to use for repositories created using the template.The repository namespace prefix associated with the repository creation template.default String
he repository policy to apply to repositories created using the template.default Object
The 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.- See Also:
-
getImageTagMutability
The tag mutability setting for the repository.If this parameter is omitted, the default setting of MUTABLE will be used which will allow image tags to be overwritten. If IMMUTABLE is specified, all image tags within the repository will be immutable which will prevent them from being overwritten.
- See Also:
-
getLifecyclePolicy
The lifecycle policy to use for repositories created using the template.- See Also:
-
getRepositoryPolicy
he 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.
- See Also:
-
builder
-