@Stability(value=Stable) public static final class Repository.Builder extends Object implements software.amazon.jsii.Builder<Repository>
Repository.| Modifier and Type | Method and Description |
|---|---|
Repository |
build() |
static Repository.Builder |
create(software.constructs.Construct scope,
String id) |
Repository.Builder |
encryption(RepositoryEncryption encryption)
The kind of server-side encryption to apply to this repository.
|
Repository.Builder |
encryptionKey(IKey encryptionKey)
External KMS key to use for repository encryption.
|
Repository.Builder |
imageScanOnPush(Boolean imageScanOnPush)
Enable the scan on push when creating the repository.
|
Repository.Builder |
imageTagMutability(TagMutability imageTagMutability)
The tag mutability setting for the repository.
|
Repository.Builder |
lifecycleRegistryId(String lifecycleRegistryId)
The AWS account ID associated with the registry that contains the repository.
|
Repository.Builder |
lifecycleRules(List<? extends LifecycleRule> lifecycleRules)
Life cycle rules to apply to this registry.
|
Repository.Builder |
removalPolicy(RemovalPolicy removalPolicy)
Determine what happens to the repository when the resource/stack is deleted.
|
Repository.Builder |
repositoryName(String repositoryName)
Name for this repository.
|
@Stability(value=Stable) public static Repository.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.Repository.Builder.@Stability(value=Stable) public Repository.Builder encryption(RepositoryEncryption encryption)
If you choose KMS, you can specify a KMS key via encryptionKey. If
encryptionKey is not specified, an AWS managed KMS key is used.
Default: - `KMS` if `encryptionKey` is specified, or `AES256` otherwise.
encryption - The kind of server-side encryption to apply to this repository. This parameter is required.this@Stability(value=Stable) public Repository.Builder encryptionKey(IKey encryptionKey)
The 'encryption' property must be either not specified or set to "KMS". An error will be emitted if encryption is set to "AES256".
Default: - If encryption is set to `KMS` and this property is undefined, an AWS managed KMS key is used.
encryptionKey - External KMS key to use for repository encryption. This parameter is required.this@Stability(value=Stable) public Repository.Builder imageScanOnPush(Boolean imageScanOnPush)
Default: false
imageScanOnPush - Enable the scan on push when creating the repository. This parameter is required.this@Stability(value=Stable) public Repository.Builder imageTagMutability(TagMutability imageTagMutability)
If this parameter is omitted, the default setting of MUTABLE will be used which will allow image tags to be overwritten.
Default: TagMutability.MUTABLE
imageTagMutability - The tag mutability setting for the repository. This parameter is required.this@Stability(value=Stable) public Repository.Builder lifecycleRegistryId(String lifecycleRegistryId)
Default: The default registry is assumed.
lifecycleRegistryId - The AWS account ID associated with the registry that contains the repository. This parameter is required.this@Stability(value=Stable) public Repository.Builder lifecycleRules(List<? extends LifecycleRule> lifecycleRules)
Default: No life cycle rules
lifecycleRules - Life cycle rules to apply to this registry. This parameter is required.this@Stability(value=Stable) public Repository.Builder removalPolicy(RemovalPolicy removalPolicy)
Default: RemovalPolicy.Retain
removalPolicy - Determine what happens to the repository when the resource/stack is deleted. This parameter is required.this@Stability(value=Stable) public Repository.Builder repositoryName(String repositoryName)
Default: Automatically generated name.
repositoryName - Name for this repository. This parameter is required.this@Stability(value=Stable) public Repository build()
build in interface software.amazon.jsii.Builder<Repository>Copyright © 2022. All rights reserved.