Class CfnLifecyclePolicy.ExclusionRulesProperty.Builder
java.lang.Object
software.amazon.awscdk.services.imagebuilder.CfnLifecyclePolicy.ExclusionRulesProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLifecyclePolicy.ExclusionRulesProperty>
- Enclosing interface:
CfnLifecyclePolicy.ExclusionRulesProperty
@Stability(Stable)
public static final class CfnLifecyclePolicy.ExclusionRulesProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLifecyclePolicy.ExclusionRulesProperty>
A builder for
CfnLifecyclePolicy.ExclusionRulesProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionamis
(IResolvable amis) Sets the value ofCfnLifecyclePolicy.ExclusionRulesProperty.getAmis()
Sets the value ofCfnLifecyclePolicy.ExclusionRulesProperty.getAmis()
build()
Builds the configured instance.Sets the value ofCfnLifecyclePolicy.ExclusionRulesProperty.getTagMap()
tagMap
(IResolvable tagMap) Sets the value ofCfnLifecyclePolicy.ExclusionRulesProperty.getTagMap()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
amis
Sets the value ofCfnLifecyclePolicy.ExclusionRulesProperty.getAmis()
- Parameters:
amis
- Lists configuration values that apply to AMIs that Image Builder should exclude from the lifecycle action.- Returns:
this
-
amis
@Stability(Stable) public CfnLifecyclePolicy.ExclusionRulesProperty.Builder amis(CfnLifecyclePolicy.AmiExclusionRulesProperty amis) Sets the value ofCfnLifecyclePolicy.ExclusionRulesProperty.getAmis()
- Parameters:
amis
- Lists configuration values that apply to AMIs that Image Builder should exclude from the lifecycle action.- Returns:
this
-
tagMap
@Stability(Stable) public CfnLifecyclePolicy.ExclusionRulesProperty.Builder tagMap(IResolvable tagMap) Sets the value ofCfnLifecyclePolicy.ExclusionRulesProperty.getTagMap()
- Parameters:
tagMap
- Contains a list of tags that Image Builder uses to skip lifecycle actions for Image Builder image resources that have them.- Returns:
this
-
tagMap
@Stability(Stable) public CfnLifecyclePolicy.ExclusionRulesProperty.Builder tagMap(Map<String, String> tagMap) Sets the value ofCfnLifecyclePolicy.ExclusionRulesProperty.getTagMap()
- Parameters:
tagMap
- Contains a list of tags that Image Builder uses to skip lifecycle actions for Image Builder image resources that have them.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnLifecyclePolicy.ExclusionRulesProperty>
- Returns:
- a new instance of
CfnLifecyclePolicy.ExclusionRulesProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-