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: