Interface CfnLifecyclePolicy.PolicyDetailProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnLifecyclePolicy.PolicyDetailProperty.Jsii$Proxy
- Enclosing class:
CfnLifecyclePolicy
@Stability(Stable)
public static interface CfnLifecyclePolicy.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.services.imagebuilder.*; PolicyDetailProperty policyDetailProperty = PolicyDetailProperty.builder() .action(ActionProperty.builder() .type("type") // the properties below are optional .includeResources(IncludeResourcesProperty.builder() .amis(false) .containers(false) .snapshots(false) .build()) .build()) .filter(FilterProperty.builder() .type("type") .value(123) // the properties below are optional .retainAtLeast(123) .unit("unit") .build()) // the properties below are optional .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()) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnLifecyclePolicy.PolicyDetailProperty
static final class
An implementation forCfnLifecyclePolicy.PolicyDetailProperty
-
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAction
Configuration details for the policy action.- See Also:
-
getFilter
Specifies the resources that the lifecycle policy applies to.- See Also:
-
getExclusionRules
Additional rules to specify resources that should be exempt from policy actions.- See Also:
-
builder
-