Interface CfnLifecyclePolicyPropsMixin.PolicyDetailProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnLifecyclePolicyPropsMixin.PolicyDetailProperty.Jsii$Proxy
- Enclosing class:
CfnLifecyclePolicyPropsMixin
@Stability(Stable)
public static interface CfnLifecyclePolicyPropsMixin.PolicyDetailProperty
extends software.amazon.jsii.JsiiSerializable
The configuration details for a lifecycle policy resource.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.imagebuilder.*;
PolicyDetailProperty policyDetailProperty = PolicyDetailProperty.builder()
.action(ActionProperty.builder()
.includeResources(IncludeResourcesProperty.builder()
.amis(false)
.containers(false)
.snapshots(false)
.build())
.type("type")
.build())
.exclusionRules(ExclusionRulesProperty.builder()
.amis(AmiExclusionRulesProperty.builder()
.isPublic(false)
.lastLaunched(LastLaunchedProperty.builder()
.unit("unit")
.value(123)
.build())
.regions(List.of("regions"))
.sharedAccounts(List.of("sharedAccounts"))
.tagMap(Map.of(
"tagMapKey", "tagMap"))
.build())
.tagMap(Map.of(
"tagMapKey", "tagMap"))
.build())
.filter(FilterProperty.builder()
.retainAtLeast(123)
.type("type")
.unit("unit")
.value(123)
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnLifecyclePolicyPropsMixin.PolicyDetailPropertystatic final classAn implementation forCfnLifecyclePolicyPropsMixin.PolicyDetailProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAction
Configuration details for the policy action.Returns union: either
IResolvableorCfnLifecyclePolicyPropsMixin.ActionProperty- See Also:
-
getExclusionRules
Additional rules to specify resources that should be exempt from policy actions.Returns union: either
IResolvableorCfnLifecyclePolicyPropsMixin.ExclusionRulesProperty- See Also:
-
getFilter
Specifies the resources that the lifecycle policy applies to.Returns union: either
IResolvableorCfnLifecyclePolicyPropsMixin.FilterProperty- See Also:
-
builder
-