interface CfnRepositoryCreationTemplateProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.ECR.CfnRepositoryCreationTemplateProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsecr#CfnRepositoryCreationTemplateProps |
Java | software.amazon.awscdk.services.ecr.CfnRepositoryCreationTemplateProps |
Python | aws_cdk.aws_ecr.CfnRepositoryCreationTemplateProps |
TypeScript | aws-cdk-lib » aws_ecr » CfnRepositoryCreationTemplateProps |
Properties for defining a CfnRepositoryCreationTemplate
.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ecr as ecr } from 'aws-cdk-lib';
const cfnRepositoryCreationTemplateProps: ecr.CfnRepositoryCreationTemplateProps = {
appliedFor: ['appliedFor'],
prefix: 'prefix',
// the properties below are optional
description: 'description',
encryptionConfiguration: {
encryptionType: 'encryptionType',
// the properties below are optional
kmsKey: 'kmsKey',
},
imageTagMutability: 'imageTagMutability',
lifecyclePolicy: 'lifecyclePolicy',
repositoryPolicy: 'repositoryPolicy',
resourceTags: [{
key: 'key',
value: 'value',
}],
};
Properties
Name | Type | Description |
---|---|---|
applied | string[] | A list of enumerable Strings representing the repository creation scenarios that the template will apply towards. |
prefix | string | The prefix use to match the repository name and apply the template. |
description? | string | The description of the template. |
encryption | IResolvable | Encryption | The encryption configuration for the repository. This determines how the contents of your repository are encrypted at rest. |
image | string | The image tag mutability setting for the repository. |
lifecycle | string | The JSON lifecycle policy text to apply to the repository. |
repository | string | The JSON repository policy text to apply to the repository. |
resource | IResolvable | IResolvable | Cfn [] | The tags attached to the resource. |
appliedFor
Type:
string[]
A list of enumerable Strings representing the repository creation scenarios that the template will apply towards.
prefix
Type:
string
The prefix use to match the repository name and apply the template.
description?
Type:
string
(optional)
The description of the template.
encryptionConfiguration?
Type:
IResolvable
|
Encryption
(optional)
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 .
imageTagMutability?
Type:
string
(optional)
The image tag mutability setting for the repository.
lifecyclePolicy?
Type:
string
(optional)
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
repositoryPolicy?
Type:
string
(optional)
The JSON repository policy text to apply to the repository.
For more information, see https://docs.aws.amazon.com/AmazonECR/latest/userguide/RepositoryPolicyExamples.html
resourceTags?
Type:
IResolvable
|
IResolvable
|
Cfn
[]
(optional)
The tags attached to the resource.