@Stability(value=Experimental) 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 |
imageScanOnPush(Boolean imageScanOnPush)
(experimental) Enable the scan on push when creating the repository.
|
Repository.Builder |
imageTagMutability(TagMutability imageTagMutability)
(experimental) The tag mutability setting for the repository.
|
Repository.Builder |
lifecycleRegistryId(String lifecycleRegistryId)
(experimental) The AWS account ID associated with the registry that contains the repository.
|
Repository.Builder |
lifecycleRules(List<? extends LifecycleRule> lifecycleRules)
(experimental) Life cycle rules to apply to this registry.
|
Repository.Builder |
removalPolicy(RemovalPolicy removalPolicy)
(experimental) Determine what happens to the repository when the resource/stack is deleted.
|
Repository.Builder |
repositoryName(String repositoryName)
(experimental) Name for this repository.
|
@Stability(value=Experimental) 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=Experimental) 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=Experimental) 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=Experimental) 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.thishttps://docs.aws.amazon.com/AmazonECR/latest/APIReference/API_PutLifecyclePolicy.html@Stability(value=Experimental) 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=Experimental) 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=Experimental) public Repository.Builder repositoryName(String repositoryName)
Default: Automatically generated name.
repositoryName - Name for this repository. This parameter is required.this@Stability(value=Experimental) public Repository build()
build in interface software.amazon.jsii.Builder<Repository>Copyright © 2021. All rights reserved.