Interface CfnLifecyclePolicyProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnLifecyclePolicyProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)", date="2024-10-05T03:43:44.540Z") @Stability(Stable) public interface CfnLifecyclePolicyProps extends software.amazon.jsii.JsiiSerializable
Properties for defining a CfnLifecyclePolicy.

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.*;
 CfnLifecyclePolicyProps cfnLifecyclePolicyProps = CfnLifecyclePolicyProps.builder()
         .executionRole("executionRole")
         .name("name")
         .policyDetails(List.of(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()))
         .resourceSelection(ResourceSelectionProperty.builder()
                 .recipes(List.of(RecipeSelectionProperty.builder()
                         .name("name")
                         .semanticVersion("semanticVersion")
                         .build()))
                 .tagMap(Map.of(
                         "tagMapKey", "tagMap"))
                 .build())
         .resourceType("resourceType")
         // the properties below are optional
         .description("description")
         .status("status")
         .tags(Map.of(
                 "tagsKey", "tags"))
         .build();
 

See Also: