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
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnLifecyclePolicy.AmiExclusionRulesPropertystatic final classAn implementation forCfnLifecyclePolicy.AmiExclusionRulesProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectConfigures whether public AMIs are excluded from the lifecycle action.default ObjectSpecifies 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 ObjectLists 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.Returns union: either
BooleanorIResolvable- See Also:
-
getLastLaunched
Specifies configuration details for Image Builder to exclude the most recent resources from lifecycle actions.Returns union: either
IResolvableorCfnLifecyclePolicy.LastLaunchedProperty- 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.Returns union: either Mapinvalid input: '<'String,
String> orIResolvable- See Also:
-
builder
-