interface CfnRepositoryCreationTemplateProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.ECR.CfnRepositoryCreationTemplateProps |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsecr#CfnRepositoryCreationTemplateProps |
![]() | software.amazon.awscdk.services.ecr.CfnRepositoryCreationTemplateProps |
![]() | aws_cdk.aws_ecr.CfnRepositoryCreationTemplateProps |
![]() | 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
customRoleArn: 'customRoleArn',
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 this template will apply towards. |
prefix | string | The repository namespace prefix associated with the repository creation template. |
custom | string | The ARN of the role to be assumed by Amazon ECR. |
description? | string | The description associated with the repository creation template. |
encryption | IResolvable | Encryption | The encryption configuration associated with the repository creation template. |
image | string | The tag mutability setting for the repository. |
lifecycle | string | The lifecycle policy to use for repositories created using the template. |
repository | string | he repository policy to apply to repositories created using the template. |
resource | IResolvable | IResolvable | Cfn [] | The metadata to apply to the repository to help you categorize and organize. |
appliedFor
Type:
string[]
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
prefix
Type:
string
The repository namespace prefix associated with the repository creation template.
customRoleArn?
Type:
string
(optional)
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.
description?
Type:
string
(optional)
The description associated with the repository creation template.
encryptionConfiguration?
Type:
IResolvable
|
Encryption
(optional)
The encryption configuration associated with the repository creation template.
imageTagMutability?
Type:
string
(optional)
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.
lifecyclePolicy?
Type:
string
(optional)
The lifecycle policy to use for repositories created using the template.
repositoryPolicy?
Type:
string
(optional)
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.
resourceTags?
Type:
IResolvable
|
IResolvable
|
Cfn
[]
(optional)
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.