@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.543Z") @Stability(value=Stable) public interface RepositoryProps extends software.amazon.jsii.JsiiSerializable
Repository.Builder.create(this, "Repo").imageTagMutability(TagMutability.IMMUTABLE).build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
RepositoryProps.Builder
A builder for
RepositoryProps |
static class |
RepositoryProps.Jsii$Proxy
An implementation for
RepositoryProps |
| Modifier and Type | Method and Description |
|---|---|
static RepositoryProps.Builder |
builder() |
default RepositoryEncryption |
getEncryption()
The kind of server-side encryption to apply to this repository.
|
default IKey |
getEncryptionKey()
External KMS key to use for repository encryption.
|
default Boolean |
getImageScanOnPush()
Enable the scan on push when creating the repository.
|
default TagMutability |
getImageTagMutability()
The tag mutability setting for the repository.
|
default String |
getLifecycleRegistryId()
The AWS account ID associated with the registry that contains the repository.
|
default List<LifecycleRule> |
getLifecycleRules()
Life cycle rules to apply to this registry.
|
default RemovalPolicy |
getRemovalPolicy()
Determine what happens to the repository when the resource/stack is deleted.
|
default String |
getRepositoryName()
Name for this repository.
|
@Stability(value=Stable) @Nullable default RepositoryEncryption getEncryption()
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.
@Stability(value=Stable) @Nullable default IKey getEncryptionKey()
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.
@Stability(value=Stable) @Nullable default Boolean getImageScanOnPush()
Default: false
@Stability(value=Stable) @Nullable default TagMutability getImageTagMutability()
If this parameter is omitted, the default setting of MUTABLE will be used which will allow image tags to be overwritten.
Default: TagMutability.MUTABLE
@Stability(value=Stable) @Nullable default String getLifecycleRegistryId()
Default: The default registry is assumed.
@Stability(value=Stable) @Nullable default List<LifecycleRule> getLifecycleRules()
Default: No life cycle rules
@Stability(value=Stable) @Nullable default RemovalPolicy getRemovalPolicy()
Default: RemovalPolicy.Retain
@Stability(value=Stable) @Nullable default String getRepositoryName()
Default: Automatically generated name.
@Stability(value=Stable) static RepositoryProps.Builder builder()
RepositoryProps.Builder of RepositoryPropsCopyright © 2022. All rights reserved.