Class CfnLifecyclePolicy.AmiExclusionRulesProperty.Builder
java.lang.Object
software.amazon.awscdk.services.imagebuilder.CfnLifecyclePolicy.AmiExclusionRulesProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLifecyclePolicy.AmiExclusionRulesProperty>
- Enclosing interface:
CfnLifecyclePolicy.AmiExclusionRulesProperty
@Stability(Stable)
public static final class CfnLifecyclePolicy.AmiExclusionRulesProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLifecyclePolicy.AmiExclusionRulesProperty>
A builder for
CfnLifecyclePolicy.AmiExclusionRulesProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnLifecyclePolicy.AmiExclusionRulesProperty.getIsPublic()isPublic(IResolvable isPublic) Sets the value ofCfnLifecyclePolicy.AmiExclusionRulesProperty.getIsPublic()lastLaunched(IResolvable lastLaunched) Sets the value ofCfnLifecyclePolicy.AmiExclusionRulesProperty.getLastLaunched()lastLaunched(CfnLifecyclePolicy.LastLaunchedProperty lastLaunched) Sets the value ofCfnLifecyclePolicy.AmiExclusionRulesProperty.getLastLaunched()Sets the value ofCfnLifecyclePolicy.AmiExclusionRulesProperty.getRegions()sharedAccounts(List<String> sharedAccounts) Sets the value ofCfnLifecyclePolicy.AmiExclusionRulesProperty.getSharedAccounts()Sets the value ofCfnLifecyclePolicy.AmiExclusionRulesProperty.getTagMap()tagMap(IResolvable tagMap) Sets the value ofCfnLifecyclePolicy.AmiExclusionRulesProperty.getTagMap()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
isPublic
@Stability(Stable) public CfnLifecyclePolicy.AmiExclusionRulesProperty.Builder isPublic(Boolean isPublic) Sets the value ofCfnLifecyclePolicy.AmiExclusionRulesProperty.getIsPublic()- Parameters:
isPublic- Configures whether public AMIs are excluded from the lifecycle action.- Returns:
this
-
isPublic
@Stability(Stable) public CfnLifecyclePolicy.AmiExclusionRulesProperty.Builder isPublic(IResolvable isPublic) Sets the value ofCfnLifecyclePolicy.AmiExclusionRulesProperty.getIsPublic()- Parameters:
isPublic- Configures whether public AMIs are excluded from the lifecycle action.- Returns:
this
-
lastLaunched
@Stability(Stable) public CfnLifecyclePolicy.AmiExclusionRulesProperty.Builder lastLaunched(IResolvable lastLaunched) Sets the value ofCfnLifecyclePolicy.AmiExclusionRulesProperty.getLastLaunched()- Parameters:
lastLaunched- Specifies configuration details for Image Builder to exclude the most recent resources from lifecycle actions.- Returns:
this
-
lastLaunched
@Stability(Stable) public CfnLifecyclePolicy.AmiExclusionRulesProperty.Builder lastLaunched(CfnLifecyclePolicy.LastLaunchedProperty lastLaunched) Sets the value ofCfnLifecyclePolicy.AmiExclusionRulesProperty.getLastLaunched()- Parameters:
lastLaunched- Specifies configuration details for Image Builder to exclude the most recent resources from lifecycle actions.- Returns:
this
-
regions
@Stability(Stable) public CfnLifecyclePolicy.AmiExclusionRulesProperty.Builder regions(List<String> regions) Sets the value ofCfnLifecyclePolicy.AmiExclusionRulesProperty.getRegions()- Parameters:
regions- Configures AWS Region s that are excluded from the lifecycle action.- Returns:
this
-
tagMap
@Stability(Stable) public CfnLifecyclePolicy.AmiExclusionRulesProperty.Builder tagMap(Map<String, String> tagMap) Sets the value ofCfnLifecyclePolicy.AmiExclusionRulesProperty.getTagMap()- Parameters:
tagMap- Lists tags that should be excluded from lifecycle actions for the AMIs that have them.- Returns:
this
-
tagMap
@Stability(Stable) public CfnLifecyclePolicy.AmiExclusionRulesProperty.Builder tagMap(IResolvable tagMap) Sets the value ofCfnLifecyclePolicy.AmiExclusionRulesProperty.getTagMap()- Parameters:
tagMap- Lists tags that should be excluded from lifecycle actions for the AMIs that have them.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLifecyclePolicy.AmiExclusionRulesProperty>- Returns:
- a new instance of
CfnLifecyclePolicy.AmiExclusionRulesProperty - Throws:
NullPointerException- if any required attribute was not provided
-