@Stability(value=Stable) public static final class RepositoryProps.Builder extends Object implements software.amazon.jsii.Builder<RepositoryProps>
RepositoryProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public RepositoryProps.Builder encryption(RepositoryEncryption encryption)
RepositoryProps.getEncryption()encryption - The kind of server-side encryption to apply to this repository.
If you choose KMS, you can specify a KMS key via encryptionKey. If
encryptionKey is not specified, an AWS managed KMS key is used.this@Stability(value=Stable) public RepositoryProps.Builder encryptionKey(IKey encryptionKey)
RepositoryProps.getEncryptionKey()encryptionKey - External KMS key to use for repository encryption.
The 'encryption' property must be either not specified or set to "KMS".
An error will be emitted if encryption is set to "AES256".this@Stability(value=Stable) public RepositoryProps.Builder imageScanOnPush(Boolean imageScanOnPush)
RepositoryProps.getImageScanOnPush()imageScanOnPush - Enable the scan on push when creating the repository.this@Stability(value=Stable) public RepositoryProps.Builder imageTagMutability(TagMutability imageTagMutability)
RepositoryProps.getImageTagMutability()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.this@Stability(value=Stable) public RepositoryProps.Builder lifecycleRegistryId(String lifecycleRegistryId)
RepositoryProps.getLifecycleRegistryId()lifecycleRegistryId - The AWS account ID associated with the registry that contains the repository.this@Stability(value=Stable) public RepositoryProps.Builder lifecycleRules(List<? extends LifecycleRule> lifecycleRules)
RepositoryProps.getLifecycleRules()lifecycleRules - Life cycle rules to apply to this registry.this@Stability(value=Stable) public RepositoryProps.Builder removalPolicy(RemovalPolicy removalPolicy)
RepositoryProps.getRemovalPolicy()removalPolicy - Determine what happens to the repository when the resource/stack is deleted.this@Stability(value=Stable) public RepositoryProps.Builder repositoryName(String repositoryName)
RepositoryProps.getRepositoryName()repositoryName - Name for this repository.this@Stability(value=Stable) public RepositoryProps build()
build in interface software.amazon.jsii.Builder<RepositoryProps>RepositoryPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.