Interface CfnLifecyclePolicy.ExclusionRulesProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnLifecyclePolicy.ExclusionRulesProperty.Jsii$Proxy
- Enclosing class:
CfnLifecyclePolicy
@Stability(Stable)
public static interface CfnLifecyclePolicy.ExclusionRulesProperty
extends software.amazon.jsii.JsiiSerializable
Specifies resources that lifecycle policy actions should not apply to.
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.*;
ExclusionRulesProperty exclusionRulesProperty = 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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnLifecyclePolicy.ExclusionRulesPropertystatic final classAn implementation forCfnLifecyclePolicy.ExclusionRulesProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectgetAmis()Lists configuration values that apply to AMIs that Image Builder should exclude from the lifecycle action.default ObjectContains a list of tags that Image Builder uses to skip lifecycle actions for Image Builder image resources that have them.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAmis
Lists configuration values that apply to AMIs that Image Builder should exclude from the lifecycle action.Returns union: either
IResolvableorCfnLifecyclePolicy.AmiExclusionRulesProperty- See Also:
-
getTagMap
Contains a list of tags that Image Builder uses to skip lifecycle actions for Image Builder image resources that have them.Returns union: either Mapinvalid input: '<'String,
String> orIResolvable- See Also:
-
builder
-