Interface LifecyclePolicyDetail

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

@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)", date="2025-12-05T22:26:50.074Z") @Stability(Experimental) public interface LifecyclePolicyDetail extends software.amazon.jsii.JsiiSerializable
(experimental) Configuration details for the lifecycle policy rules.

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.alpha.*;
 import software.amazon.awscdk.*;
 LifecyclePolicyDetail lifecyclePolicyDetail = LifecyclePolicyDetail.builder()
         .action(LifecyclePolicyAction.builder()
                 .type(LifecyclePolicyActionType.DELETE)
                 // the properties below are optional
                 .includeAmis(false)
                 .includeContainers(false)
                 .includeSnapshots(false)
                 .build())
         .filter(LifecyclePolicyFilter.builder()
                 .ageFilter(LifecyclePolicyAgeFilter.builder()
                         .age(Duration.minutes(30))
                         // the properties below are optional
                         .retainAtLeast(123)
                         .build())
                 .countFilter(LifecyclePolicyCountFilter.builder()
                         .count(123)
                         .build())
                 .build())
         // the properties below are optional
         .exclusionRules(LifecyclePolicyExclusionRules.builder()
                 .amiExclusionRules(LifecyclePolicyAmiExclusionRules.builder()
                         .isPublic(false)
                         .lastLaunched(Duration.minutes(30))
                         .regions(List.of("regions"))
                         .sharedAccounts(List.of("sharedAccounts"))
                         .tags(Map.of(
                                 "tagsKey", "tags"))
                         .build())
                 .imageExclusionRules(LifecyclePolicyImageExclusionRules.builder()
                         .tags(Map.of(
                                 "tagsKey", "tags"))
                         .build())
                 .build())
         .build();