Class CfnImageRecipe.SystemsManagerAgentProperty.Builder
java.lang.Object
software.amazon.awscdk.services.imagebuilder.CfnImageRecipe.SystemsManagerAgentProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnImageRecipe.SystemsManagerAgentProperty>
- Enclosing interface:
CfnImageRecipe.SystemsManagerAgentProperty
@Stability(Stable)
public static final class CfnImageRecipe.SystemsManagerAgentProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnImageRecipe.SystemsManagerAgentProperty>
A builder for
CfnImageRecipe.SystemsManagerAgentProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.uninstallAfterBuild
(Boolean uninstallAfterBuild) Sets the value ofCfnImageRecipe.SystemsManagerAgentProperty.getUninstallAfterBuild()
uninstallAfterBuild
(IResolvable uninstallAfterBuild) Sets the value ofCfnImageRecipe.SystemsManagerAgentProperty.getUninstallAfterBuild()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
uninstallAfterBuild
@Stability(Stable) public CfnImageRecipe.SystemsManagerAgentProperty.Builder uninstallAfterBuild(Boolean uninstallAfterBuild) Sets the value ofCfnImageRecipe.SystemsManagerAgentProperty.getUninstallAfterBuild()
- Parameters:
uninstallAfterBuild
- Controls whether the Systems Manager agent is removed from your final build image, prior to creating the new AMI. If this is set to true, then the agent is removed from the final image. If it's set to false, then the agent is left in, so that it is included in the new AMI. default value is false.The default behavior of uninstallAfterBuild is to remove the SSM Agent if it was installed by EC2 Image Builder
- Returns:
this
-
uninstallAfterBuild
@Stability(Stable) public CfnImageRecipe.SystemsManagerAgentProperty.Builder uninstallAfterBuild(IResolvable uninstallAfterBuild) Sets the value ofCfnImageRecipe.SystemsManagerAgentProperty.getUninstallAfterBuild()
- Parameters:
uninstallAfterBuild
- Controls whether the Systems Manager agent is removed from your final build image, prior to creating the new AMI. If this is set to true, then the agent is removed from the final image. If it's set to false, then the agent is left in, so that it is included in the new AMI. default value is false.The default behavior of uninstallAfterBuild is to remove the SSM Agent if it was installed by EC2 Image Builder
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnImageRecipe.SystemsManagerAgentProperty>
- Returns:
- a new instance of
CfnImageRecipe.SystemsManagerAgentProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-