@Stability(value=Stable) public static final class CfnRepository.Builder extends Object implements software.amazon.jsii.Builder<CfnRepository>
CfnRepository.| Modifier and Type | Method and Description |
|---|---|
CfnRepository |
build() |
static CfnRepository.Builder |
create(software.constructs.Construct scope,
String id) |
CfnRepository.Builder |
encryptionConfiguration(CfnRepository.EncryptionConfigurationProperty encryptionConfiguration)
The encryption configuration for the repository.
|
CfnRepository.Builder |
encryptionConfiguration(IResolvable encryptionConfiguration)
The encryption configuration for the repository.
|
CfnRepository.Builder |
imageScanningConfiguration(CfnRepository.ImageScanningConfigurationProperty imageScanningConfiguration)
The image scanning configuration for the repository.
|
CfnRepository.Builder |
imageScanningConfiguration(IResolvable imageScanningConfiguration)
The image scanning configuration for the repository.
|
CfnRepository.Builder |
imageTagMutability(String imageTagMutability)
The tag mutability setting for the repository.
|
CfnRepository.Builder |
lifecyclePolicy(CfnRepository.LifecyclePolicyProperty lifecyclePolicy)
Creates or updates a lifecycle policy.
|
CfnRepository.Builder |
lifecyclePolicy(IResolvable lifecyclePolicy)
Creates or updates a lifecycle policy.
|
CfnRepository.Builder |
repositoryName(String repositoryName)
The name to use for the repository.
|
CfnRepository.Builder |
repositoryPolicyText(Object repositoryPolicyText)
The JSON repository policy text to apply to the repository.
|
CfnRepository.Builder |
tags(List<? extends CfnTag> tags)
An array of key-value pairs to apply to this resource.
|
@Stability(value=Stable) public static CfnRepository.Builder create(software.constructs.Construct scope, String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.CfnRepository.EncryptionConfigurationProperty.Builder.@Stability(value=Stable) public CfnRepository.Builder encryptionConfiguration(CfnRepository.EncryptionConfigurationProperty encryptionConfiguration)
This determines how the contents of your repository are encrypted at rest.
encryptionConfiguration - The encryption configuration for the repository. This parameter is required.this@Stability(value=Stable) public CfnRepository.Builder encryptionConfiguration(IResolvable encryptionConfiguration)
This determines how the contents of your repository are encrypted at rest.
encryptionConfiguration - The encryption configuration for the repository. This parameter is required.this@Stability(value=Stable) public CfnRepository.Builder imageScanningConfiguration(CfnRepository.ImageScanningConfigurationProperty imageScanningConfiguration)
This determines whether images are scanned for known vulnerabilities after being pushed to the repository.
imageScanningConfiguration - The image scanning configuration for the repository. This parameter is required.this@Stability(value=Stable) public CfnRepository.Builder imageScanningConfiguration(IResolvable imageScanningConfiguration)
This determines whether images are scanned for known vulnerabilities after being pushed to the repository.
imageScanningConfiguration - The image scanning configuration for the repository. This parameter is required.this@Stability(value=Stable) public CfnRepository.Builder imageTagMutability(String imageTagMutability)
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.
imageTagMutability - The tag mutability setting for the repository. This parameter is required.this@Stability(value=Stable) public CfnRepository.Builder lifecyclePolicy(CfnRepository.LifecyclePolicyProperty lifecyclePolicy)
For information about lifecycle policy syntax, see Lifecycle policy template .
lifecyclePolicy - Creates or updates a lifecycle policy. This parameter is required.this@Stability(value=Stable) public CfnRepository.Builder lifecyclePolicy(IResolvable lifecyclePolicy)
For information about lifecycle policy syntax, see Lifecycle policy template .
lifecyclePolicy - Creates or updates a lifecycle policy. This parameter is required.this@Stability(value=Stable) public CfnRepository.Builder repositoryName(String repositoryName)
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 as project-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 .
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.
repositoryName - The name to use for the repository. This parameter is required.this@Stability(value=Stable) public CfnRepository.Builder repositoryPolicyText(Object repositoryPolicyText)
For more information, see Amazon ECR repository policies in the Amazon Elastic Container Registry User Guide .
repositoryPolicyText - The JSON repository policy text to apply to the repository. This parameter is required.this@Stability(value=Stable) public CfnRepository.Builder tags(List<? extends CfnTag> tags)
tags - An array of key-value pairs to apply to this resource. This parameter is required.this@Stability(value=Stable) public CfnRepository build()
build in interface software.amazon.jsii.Builder<CfnRepository>Copyright © 2022. All rights reserved.