AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::ECR::RepositoryCreationTemplate

CfnRepositoryCreationTemplate

The details of the repository creation template associated with the request.

Import

import { CfnRepositoryCreationTemplate } from 'aws-cdk-lib/aws-ecr';

Or use the module namespace:

import * as ecr from 'aws-cdk-lib/aws-ecr';
// ecr.CfnRepositoryCreationTemplate

Properties

Configuration passed to the constructor as CfnRepositoryCreationTemplateProps.

appliedForRequired
string[]

A list of enumerable Strings representing the repository creation scenarios that this template will apply towards. The supported scenarios are PULL_THROUGH_CACHE, REPLICATION, and CREATE_ON_PUSH

prefixRequired
string

The repository namespace prefix associated with the repository creation template.

customRoleArnOptional
string

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.

descriptionOptional
string

The description associated with the repository creation template.

encryptionConfigurationOptional
IResolvable | EncryptionConfigurationProperty

The encryption configuration associated with the repository creation template.

imageTagMutabilityOptional
string

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.

imageTagMutabilityExclusionFiltersOptional
IResolvable | IResolvable | ImageTagMutabilityExclusionFilterProperty[]

A list of filters that specify which image tags are excluded from the repository creation template's image tag mutability setting.

lifecyclePolicyOptional
string

The lifecycle policy to use for repositories created using the template.

repositoryPolicyOptional
string

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.

resourceTagsOptional
IResolvable | IResolvable | CfnTag[]

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.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter