Interface CfnLifecyclePolicy.AmiExclusionRulesProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnLifecyclePolicy.AmiExclusionRulesProperty.Jsii$Proxy
- Enclosing class:
CfnLifecyclePolicy
@Stability(Stable)
public static interface CfnLifecyclePolicy.AmiExclusionRulesProperty
extends software.amazon.jsii.JsiiSerializable
Defines criteria for AMIs that are excluded from lifecycle actions.
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.*; AmiExclusionRulesProperty amiExclusionRulesProperty = 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();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnLifecyclePolicy.AmiExclusionRulesProperty
static final class
An implementation forCfnLifecyclePolicy.AmiExclusionRulesProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default Object
Configures whether public AMIs are excluded from the lifecycle action.default Object
Specifies configuration details for Image Builder to exclude the most recent resources from lifecycle actions.Configures AWS Region s that are excluded from the lifecycle action.Specifies AWS account s whose resources are excluded from the lifecycle action.default Object
Lists tags that should be excluded from lifecycle actions for the AMIs that have them.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getIsPublic
Configures whether public AMIs are excluded from the lifecycle action.- See Also:
-
getLastLaunched
Specifies configuration details for Image Builder to exclude the most recent resources from lifecycle actions.- See Also:
-
getRegions
Configures AWS Region s that are excluded from the lifecycle action.- See Also:
-
getTagMap
Lists tags that should be excluded from lifecycle actions for the AMIs that have them.- See Also:
-
builder
-