Class CfnImageRecipe.AdditionalInstanceConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.imagebuilder.CfnImageRecipe.AdditionalInstanceConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnImageRecipe.AdditionalInstanceConfigurationProperty>
- Enclosing interface:
CfnImageRecipe.AdditionalInstanceConfigurationProperty
@Stability(Stable)
public static final class CfnImageRecipe.AdditionalInstanceConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnImageRecipe.AdditionalInstanceConfigurationProperty>
A builder for
CfnImageRecipe.AdditionalInstanceConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.systemsManagerAgent
(IResolvable systemsManagerAgent) systemsManagerAgent
(CfnImageRecipe.SystemsManagerAgentProperty systemsManagerAgent) userDataOverride
(String userDataOverride)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
systemsManagerAgent
@Stability(Stable) public CfnImageRecipe.AdditionalInstanceConfigurationProperty.Builder systemsManagerAgent(IResolvable systemsManagerAgent) - Parameters:
systemsManagerAgent
- Contains settings for the Systems Manager agent on your build instance.- Returns:
this
-
systemsManagerAgent
@Stability(Stable) public CfnImageRecipe.AdditionalInstanceConfigurationProperty.Builder systemsManagerAgent(CfnImageRecipe.SystemsManagerAgentProperty systemsManagerAgent) - Parameters:
systemsManagerAgent
- Contains settings for the Systems Manager agent on your build instance.- Returns:
this
-
userDataOverride
@Stability(Stable) public CfnImageRecipe.AdditionalInstanceConfigurationProperty.Builder userDataOverride(String userDataOverride) - Parameters:
userDataOverride
- Use this property to provide commands or a command script to run when you launch your build instance. The userDataOverride property replaces any commands that Image Builder might have added to ensure that Systems Manager is installed on your Linux build instance. If you override the user data, make sure that you add commands to install Systems Manager, if it is not pre-installed on your base image.The user data is always base 64 encoded. For example, the following commands are encoded as
IyEvYmluL2Jhc2gKbWtkaXIgLXAgL3Zhci9iYi8KdG91Y2ggL3Zhci$
:#!/bin/bash
mkdir -p /var/bb/
touch /var
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnImageRecipe.AdditionalInstanceConfigurationProperty>
- Returns:
- a new instance of
CfnImageRecipe.AdditionalInstanceConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-