Class CfnRepositoryCreationTemplate.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRepositoryCreationTemplate>
- Enclosing class:
CfnRepositoryCreationTemplate
CfnRepositoryCreationTemplate
.-
Method Summary
Modifier and TypeMethodDescriptionappliedFor
(List<String> appliedFor) A list of enumerable Strings representing the repository creation scenarios that this template will apply towards.build()
customRoleArn
(String customRoleArn) The ARN of the role to be assumed by Amazon ECR.description
(String description) The description associated with the repository creation template.encryptionConfiguration
(IResolvable encryptionConfiguration) The encryption configuration associated with the repository creation template.encryptionConfiguration
(CfnRepositoryCreationTemplate.EncryptionConfigurationProperty encryptionConfiguration) The encryption configuration associated with the repository creation template.imageTagMutability
(String imageTagMutability) The tag mutability setting for the repository.lifecyclePolicy
(String lifecyclePolicy) The lifecycle policy to use for repositories created using the template.The repository namespace prefix associated with the repository creation template.repositoryPolicy
(String repositoryPolicy) he repository policy to apply to repositories created using the template.resourceTags
(List<? extends Object> resourceTags) The metadata to apply to the repository to help you categorize and organize.resourceTags
(IResolvable resourceTags) The metadata to apply to the repository to help you categorize and organize.
-
Method Details
-
create
@Stability(Stable) public static CfnRepositoryCreationTemplate.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnRepositoryCreationTemplate.Builder
.
-
appliedFor
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
- Parameters:
appliedFor
- A list of enumerable Strings representing the repository creation scenarios that this template will apply towards. This parameter is required.- Returns:
this
- See Also:
-
prefix
The repository namespace prefix associated with the repository creation template.- Parameters:
prefix
- The repository namespace prefix associated with the repository creation template. This parameter is required.- Returns:
this
- See Also:
-
customRoleArn
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.
- Parameters:
customRoleArn
- The ARN of the role to be assumed by Amazon ECR. This parameter is required.- Returns:
this
- See Also:
-
description
The description associated with the repository creation template.- Parameters:
description
- The description associated with the repository creation template. This parameter is required.- Returns:
this
- See Also:
-
encryptionConfiguration
@Stability(Stable) public CfnRepositoryCreationTemplate.Builder encryptionConfiguration(IResolvable encryptionConfiguration) The encryption configuration associated with the repository creation template.- Parameters:
encryptionConfiguration
- The encryption configuration associated with the repository creation template. This parameter is required.- Returns:
this
- See Also:
-
encryptionConfiguration
@Stability(Stable) public CfnRepositoryCreationTemplate.Builder encryptionConfiguration(CfnRepositoryCreationTemplate.EncryptionConfigurationProperty encryptionConfiguration) The encryption configuration associated with the repository creation template.- Parameters:
encryptionConfiguration
- The encryption configuration associated with the repository creation template. This parameter is required.- Returns:
this
- See Also:
-
imageTagMutability
@Stability(Stable) public CfnRepositoryCreationTemplate.Builder imageTagMutability(String imageTagMutability) 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.
- Parameters:
imageTagMutability
- The tag mutability setting for the repository. This parameter is required.- Returns:
this
- See Also:
-
lifecyclePolicy
@Stability(Stable) public CfnRepositoryCreationTemplate.Builder lifecyclePolicy(String lifecyclePolicy) The lifecycle policy to use for repositories created using the template.- Parameters:
lifecyclePolicy
- The lifecycle policy to use for repositories created using the template. This parameter is required.- Returns:
this
- See Also:
-
repositoryPolicy
@Stability(Stable) public CfnRepositoryCreationTemplate.Builder repositoryPolicy(String repositoryPolicy) 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.
- Parameters:
repositoryPolicy
- he repository policy to apply to repositories created using the template. This parameter is required.- Returns:
this
- See Also:
-
resourceTags
@Stability(Stable) public CfnRepositoryCreationTemplate.Builder resourceTags(IResolvable resourceTags) 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.
- Parameters:
resourceTags
- The metadata to apply to the repository to help you categorize and organize. This parameter is required.- Returns:
this
- See Also:
-
resourceTags
@Stability(Stable) public CfnRepositoryCreationTemplate.Builder resourceTags(List<? extends Object> resourceTags) 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.
- Parameters:
resourceTags
- The metadata to apply to the repository to help you categorize and organize. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnRepositoryCreationTemplate>
- Returns:
- a newly built instance of
CfnRepositoryCreationTemplate
.
-