@Stability(value=Stable)
public static interface CfnRepository.LifecyclePolicyProperty
extends software.amazon.jsii.JsiiSerializable
For information about lifecycle policy syntax, see Lifecycle policy template in the Amazon ECR User Guide .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ecr.*;
LifecyclePolicyProperty lifecyclePolicyProperty = LifecyclePolicyProperty.builder()
.lifecyclePolicyText("lifecyclePolicyText")
.registryId("registryId")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnRepository.LifecyclePolicyProperty.Builder
A builder for
CfnRepository.LifecyclePolicyProperty |
static class |
CfnRepository.LifecyclePolicyProperty.Jsii$Proxy
An implementation for
CfnRepository.LifecyclePolicyProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnRepository.LifecyclePolicyProperty.Builder |
builder() |
default String |
getLifecyclePolicyText()
The JSON repository policy text to apply to the repository.
|
default String |
getRegistryId()
The AWS account ID associated with the registry that contains the repository.
|
@Stability(value=Stable) @Nullable default String getLifecyclePolicyText()
@Stability(value=Stable) @Nullable default String getRegistryId()
If you do not specify a registry, the default registry is assumed.
@Stability(value=Stable) static CfnRepository.LifecyclePolicyProperty.Builder builder()
Copyright © 2022. All rights reserved.