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 .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
Nested ClassesModifier 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 the template will apply towards.default String
The description of the template.default Object
The encryption configuration for the repository.default String
The image tag mutability setting for the repository.default String
The JSON lifecycle policy text to apply to the repository.The prefix use to match the repository name and apply the template.default String
The JSON repository policy text to apply to the repository.default Object
The tags attached to the resource.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAppliedFor
A list of enumerable Strings representing the repository creation scenarios that the template will apply towards.- See Also:
-
getPrefix
The prefix use to match the repository name and apply the template.- See Also:
-
getDescription
The description of the template.- See Also:
-
getEncryptionConfiguration
The encryption configuration for the repository. This determines how the contents of your repository are encrypted at rest.By default, when no encryption configuration is set or the
AES256
encryption type is used, Amazon ECR uses server-side encryption with Amazon S3-managed encryption keys which encrypts your data at rest using an AES-256 encryption algorithm. This does not require any action on your part.For more control over the encryption of the contents of your repository, you can use server-side encryption with AWS Key Management Service key stored in AWS Key Management Service ( AWS KMS ) to encrypt your images. For more information, see Amazon ECR encryption at rest in the Amazon Elastic Container Registry User Guide .
- See Also:
-
getImageTagMutability
The image tag mutability setting for the repository.- See Also:
-
getLifecyclePolicy
The JSON lifecycle policy text to apply to the repository.For information about lifecycle policy syntax, see https://docs.aws.amazon.com/AmazonECR/latest/userguide/LifecyclePolicies.html
- See Also:
-
getRepositoryPolicy
The JSON repository policy text to apply to the repository.For more information, see https://docs.aws.amazon.com/AmazonECR/latest/userguide/RepositoryPolicyExamples.html
- See Also:
-
getResourceTags
The tags attached to the resource.- See Also:
-
builder
-