Class CfnRepositoryMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRepositoryMixinProps>
- Enclosing interface:
CfnRepositoryMixinProps
CfnRepositoryMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.emptyOnDelete(Boolean emptyOnDelete) Sets the value ofCfnRepositoryMixinProps.getEmptyOnDelete()emptyOnDelete(IResolvable emptyOnDelete) Sets the value ofCfnRepositoryMixinProps.getEmptyOnDelete()encryptionConfiguration(CfnRepositoryPropsMixin.EncryptionConfigurationProperty encryptionConfiguration) Sets the value ofCfnRepositoryMixinProps.getEncryptionConfiguration()encryptionConfiguration(IResolvable encryptionConfiguration) Sets the value ofCfnRepositoryMixinProps.getEncryptionConfiguration()imageScanningConfiguration(CfnRepositoryPropsMixin.ImageScanningConfigurationProperty imageScanningConfiguration) Sets the value ofCfnRepositoryMixinProps.getImageScanningConfiguration()imageScanningConfiguration(IResolvable imageScanningConfiguration) Sets the value ofCfnRepositoryMixinProps.getImageScanningConfiguration()imageTagMutability(String imageTagMutability) Sets the value ofCfnRepositoryMixinProps.getImageTagMutability()imageTagMutabilityExclusionFilters(List<? extends Object> imageTagMutabilityExclusionFilters) Sets the value ofCfnRepositoryMixinProps.getImageTagMutabilityExclusionFilters()imageTagMutabilityExclusionFilters(IResolvable imageTagMutabilityExclusionFilters) Sets the value ofCfnRepositoryMixinProps.getImageTagMutabilityExclusionFilters()lifecyclePolicy(CfnRepositoryPropsMixin.LifecyclePolicyProperty lifecyclePolicy) Sets the value ofCfnRepositoryMixinProps.getLifecyclePolicy()lifecyclePolicy(IResolvable lifecyclePolicy) Sets the value ofCfnRepositoryMixinProps.getLifecyclePolicy()repositoryName(String repositoryName) Sets the value ofCfnRepositoryMixinProps.getRepositoryName()repositoryPolicyText(Object repositoryPolicyText) Sets the value ofCfnRepositoryMixinProps.getRepositoryPolicyText()Sets the value ofCfnRepositoryMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
emptyOnDelete
Sets the value ofCfnRepositoryMixinProps.getEmptyOnDelete()- Parameters:
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.- Returns:
this
-
emptyOnDelete
Sets the value ofCfnRepositoryMixinProps.getEmptyOnDelete()- Parameters:
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.- Returns:
this
-
encryptionConfiguration
@Stability(Stable) public CfnRepositoryMixinProps.Builder encryptionConfiguration(IResolvable encryptionConfiguration) Sets the value ofCfnRepositoryMixinProps.getEncryptionConfiguration()- Parameters:
encryptionConfiguration- The encryption configuration for the repository. This determines how the contents of your repository are encrypted at rest.- Returns:
this
-
encryptionConfiguration
@Stability(Stable) public CfnRepositoryMixinProps.Builder encryptionConfiguration(CfnRepositoryPropsMixin.EncryptionConfigurationProperty encryptionConfiguration) Sets the value ofCfnRepositoryMixinProps.getEncryptionConfiguration()- Parameters:
encryptionConfiguration- The encryption configuration for the repository. This determines how the contents of your repository are encrypted at rest.- Returns:
this
-
imageScanningConfiguration
@Stability(Stable) public CfnRepositoryMixinProps.Builder imageScanningConfiguration(IResolvable imageScanningConfiguration) Sets the value ofCfnRepositoryMixinProps.getImageScanningConfiguration()- Parameters:
imageScanningConfiguration-
For more information, seeThe
imageScanningConfigurationparameter is being deprecated, in favor of specifying the image scanning configuration at the registry level.PutRegistryScanningConfiguration.The image scanning configuration for the repository. This determines whether images are scanned for known vulnerabilities after being pushed to the repository.
- Returns:
this
-
imageScanningConfiguration
@Stability(Stable) public CfnRepositoryMixinProps.Builder imageScanningConfiguration(CfnRepositoryPropsMixin.ImageScanningConfigurationProperty imageScanningConfiguration) Sets the value ofCfnRepositoryMixinProps.getImageScanningConfiguration()- Parameters:
imageScanningConfiguration-
For more information, seeThe
imageScanningConfigurationparameter is being deprecated, in favor of specifying the image scanning configuration at the registry level.PutRegistryScanningConfiguration.The image scanning configuration for the repository. This determines whether images are scanned for known vulnerabilities after being pushed to the repository.
- Returns:
this
-
imageTagMutability
@Stability(Stable) public CfnRepositoryMixinProps.Builder imageTagMutability(String imageTagMutability) Sets the value ofCfnRepositoryMixinProps.getImageTagMutability()- Parameters:
imageTagMutability- The tag mutability setting for the repository. If this parameter is omitted, the default setting ofMUTABLEwill 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.- Returns:
this
-
imageTagMutabilityExclusionFilters
@Stability(Stable) public CfnRepositoryMixinProps.Builder imageTagMutabilityExclusionFilters(IResolvable imageTagMutabilityExclusionFilters) Sets the value ofCfnRepositoryMixinProps.getImageTagMutabilityExclusionFilters()- Parameters:
imageTagMutabilityExclusionFilters- A list of filters that specify which image tags are excluded from the repository's image tag mutability setting.- Returns:
this
-
imageTagMutabilityExclusionFilters
@Stability(Stable) public CfnRepositoryMixinProps.Builder imageTagMutabilityExclusionFilters(List<? extends Object> imageTagMutabilityExclusionFilters) Sets the value ofCfnRepositoryMixinProps.getImageTagMutabilityExclusionFilters()- Parameters:
imageTagMutabilityExclusionFilters- A list of filters that specify which image tags are excluded from the repository's image tag mutability setting.- Returns:
this
-
lifecyclePolicy
@Stability(Stable) public CfnRepositoryMixinProps.Builder lifecyclePolicy(IResolvable lifecyclePolicy) Sets the value ofCfnRepositoryMixinProps.getLifecyclePolicy()- Parameters:
lifecyclePolicy- Creates or updates a lifecycle policy. For information about lifecycle policy syntax, see Lifecycle policy template .- Returns:
this
-
lifecyclePolicy
@Stability(Stable) public CfnRepositoryMixinProps.Builder lifecyclePolicy(CfnRepositoryPropsMixin.LifecyclePolicyProperty lifecyclePolicy) Sets the value ofCfnRepositoryMixinProps.getLifecyclePolicy()- Parameters:
lifecyclePolicy- Creates or updates a lifecycle policy. For information about lifecycle policy syntax, see Lifecycle policy template .- Returns:
this
-
repositoryName
Sets the value ofCfnRepositoryMixinProps.getRepositoryName()- Parameters:
repositoryName- The name to use for the repository. The repository name may be specified on its own (such asnginx-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.
- Returns:
this
-
repositoryPolicyText
@Stability(Stable) public CfnRepositoryMixinProps.Builder repositoryPolicyText(Object repositoryPolicyText) Sets the value ofCfnRepositoryMixinProps.getRepositoryPolicyText()- Parameters:
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 .- Returns:
this
-
tags
Sets the value ofCfnRepositoryMixinProps.getTags()- Parameters:
tags- An array of key-value pairs to apply to this resource.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRepositoryMixinProps>- Returns:
- a new instance of
CfnRepositoryMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-