Class CfnRepositoryPropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRepositoryPropsMixin>
- Enclosing class:
CfnRepositoryPropsMixin
CfnRepositoryPropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionbuild()create()create(CfnPropertyMixinOptions options) emptyOnDelete(Boolean emptyOnDelete) If true, deleting the repository force deletes the contents of the repository.emptyOnDelete(IResolvable emptyOnDelete) If true, deleting the repository force deletes the contents of the repository.encryptionConfiguration(CfnRepositoryPropsMixin.EncryptionConfigurationProperty encryptionConfiguration) The encryption configuration for the repository.encryptionConfiguration(IResolvable encryptionConfiguration) The encryption configuration for the repository.imageScanningConfiguration(CfnRepositoryPropsMixin.ImageScanningConfigurationProperty imageScanningConfiguration) imageScanningConfiguration(IResolvable imageScanningConfiguration) imageTagMutability(String imageTagMutability) The tag mutability setting for the repository.imageTagMutabilityExclusionFilters(List<? extends Object> imageTagMutabilityExclusionFilters) A list of filters that specify which image tags are excluded from the repository's image tag mutability setting.imageTagMutabilityExclusionFilters(IResolvable imageTagMutabilityExclusionFilters) A list of filters that specify which image tags are excluded from the repository's image tag mutability setting.lifecyclePolicy(CfnRepositoryPropsMixin.LifecyclePolicyProperty lifecyclePolicy) Creates or updates a lifecycle policy.lifecyclePolicy(IResolvable lifecyclePolicy) Creates or updates a lifecycle policy.repositoryName(String repositoryName) The name to use for the repository.repositoryPolicyText(Object repositoryPolicyText) The JSON repository policy text to apply to the repository.An array of key-value pairs to apply to this resource.
-
Method Details
-
create
@Stability(Stable) public static CfnRepositoryPropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnRepositoryPropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnRepositoryPropsMixin.Builder.
-
emptyOnDelete
If true, deleting the repository force deletes the contents of the repository.If false, the repository must be empty before attempting to delete it.
- Parameters:
emptyOnDelete- If true, deleting the repository force deletes the contents of the repository. This parameter is required.- Returns:
this- See Also:
-
emptyOnDelete
If true, deleting the repository force deletes the contents of the repository.If false, the repository must be empty before attempting to delete it.
- Parameters:
emptyOnDelete- If true, deleting the repository force deletes the contents of the repository. This parameter is required.- Returns:
this- See Also:
-
encryptionConfiguration
@Stability(Stable) public CfnRepositoryPropsMixin.Builder encryptionConfiguration(IResolvable encryptionConfiguration) The encryption configuration for the repository.This determines how the contents of your repository are encrypted at rest.
- Parameters:
encryptionConfiguration- The encryption configuration for the repository. This parameter is required.- Returns:
this- See Also:
-
encryptionConfiguration
@Stability(Stable) public CfnRepositoryPropsMixin.Builder encryptionConfiguration(CfnRepositoryPropsMixin.EncryptionConfigurationProperty encryptionConfiguration) The encryption configuration for the repository.This determines how the contents of your repository are encrypted at rest.
- Parameters:
encryptionConfiguration- The encryption configuration for the repository. This parameter is required.- Returns:
this- See Also:
-
imageScanningConfiguration
@Stability(Stable) public CfnRepositoryPropsMixin.Builder imageScanningConfiguration(IResolvable imageScanningConfiguration) The
imageScanningConfigurationparameter is being deprecated, in favor of specifying the image scanning configuration at the registry level.For more information, see
PutRegistryScanningConfiguration.The image scanning configuration for the repository. This determines whether images are scanned for known vulnerabilities after being pushed to the repository.
- Parameters:
imageScanningConfiguration-
This parameter is required.The
imageScanningConfigurationparameter is being deprecated, in favor of specifying the image scanning configuration at the registry level.- Returns:
this- See Also:
-
imageScanningConfiguration
@Stability(Stable) public CfnRepositoryPropsMixin.Builder imageScanningConfiguration(CfnRepositoryPropsMixin.ImageScanningConfigurationProperty imageScanningConfiguration) The
imageScanningConfigurationparameter is being deprecated, in favor of specifying the image scanning configuration at the registry level.For more information, see
PutRegistryScanningConfiguration.The image scanning configuration for the repository. This determines whether images are scanned for known vulnerabilities after being pushed to the repository.
- Parameters:
imageScanningConfiguration-
This parameter is required.The
imageScanningConfigurationparameter is being deprecated, in favor of specifying the image scanning configuration at the registry level.- Returns:
this- See Also:
-
imageTagMutability
@Stability(Stable) public CfnRepositoryPropsMixin.Builder imageTagMutability(String imageTagMutability) The tag mutability setting for the repository.If this parameter is omitted, the default setting of
MUTABLEwill be used which will allow image tags to be overwritten. IfIMMUTABLEis 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:
-
imageTagMutabilityExclusionFilters
@Stability(Stable) public CfnRepositoryPropsMixin.Builder imageTagMutabilityExclusionFilters(IResolvable imageTagMutabilityExclusionFilters) A list of filters that specify which image tags are excluded from the repository's image tag mutability setting.- Parameters:
imageTagMutabilityExclusionFilters- A list of filters that specify which image tags are excluded from the repository's image tag mutability setting. This parameter is required.- Returns:
this- See Also:
-
imageTagMutabilityExclusionFilters
@Stability(Stable) public CfnRepositoryPropsMixin.Builder imageTagMutabilityExclusionFilters(List<? extends Object> imageTagMutabilityExclusionFilters) A list of filters that specify which image tags are excluded from the repository's image tag mutability setting.- Parameters:
imageTagMutabilityExclusionFilters- A list of filters that specify which image tags are excluded from the repository's image tag mutability setting. This parameter is required.- Returns:
this- See Also:
-
lifecyclePolicy
@Stability(Stable) public CfnRepositoryPropsMixin.Builder lifecyclePolicy(IResolvable lifecyclePolicy) Creates or updates a lifecycle policy.For information about lifecycle policy syntax, see Lifecycle policy template .
- Parameters:
lifecyclePolicy- Creates or updates a lifecycle policy. This parameter is required.- Returns:
this- See Also:
-
lifecyclePolicy
@Stability(Stable) public CfnRepositoryPropsMixin.Builder lifecyclePolicy(CfnRepositoryPropsMixin.LifecyclePolicyProperty lifecyclePolicy) Creates or updates a lifecycle policy.For information about lifecycle policy syntax, see Lifecycle policy template .
- Parameters:
lifecyclePolicy- Creates or updates a lifecycle policy. This parameter is required.- Returns:
this- See Also:
-
repositoryName
The name to use for the repository.The repository name may be specified on its own (such as
nginx-web-app) or it can be prepended with a namespace to group the repository into a category (such asproject-a/nginx-web-app). If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the repository name. For more information, see Name type .The repository name must start with a letter and can only contain lowercase letters, numbers, hyphens, underscores, and forward slashes.
If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.
- Parameters:
repositoryName- The name to use for the repository. This parameter is required.- Returns:
this- See Also:
-
repositoryPolicyText
@Stability(Stable) public CfnRepositoryPropsMixin.Builder repositoryPolicyText(Object repositoryPolicyText) The JSON repository policy text to apply to the repository.For more information, see Amazon ECR repository policies in the Amazon Elastic Container Registry User Guide .
- Parameters:
repositoryPolicyText- The JSON repository policy text to apply to the repository. This parameter is required.- Returns:
this- See Also:
-
tags
An array of key-value pairs to apply to this resource.- Parameters:
tags- An array of key-value pairs to apply to this resource. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRepositoryPropsMixin>- Returns:
- a newly built instance of
CfnRepositoryPropsMixin.
-