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
The AMI exclusion rules for the policy detail.
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 ObjectUse to apply lifecycle policy actions on whether the AMI is public.default ObjectThe last launched time of a resource.Use to apply lifecycle policy actions on AMIs distributed to a set of regions.Use to apply lifecycle policy actions on AMIs shared with a set of regions.default ObjectThe AMIs to select by tag.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getIsPublic
Use to apply lifecycle policy actions on whether the AMI is public.- See Also:
-
getLastLaunched
The last launched time of a resource.- See Also:
-
getRegions
Use to apply lifecycle policy actions on AMIs distributed to a set of regions.- See Also:
-
getTagMap
The AMIs to select by tag.- See Also:
-
builder
-