public static final class CfnImageRecipe.AdditionalInstanceConfigurationProperty.Builder
extends java.lang.Object
CfnImageRecipe.AdditionalInstanceConfigurationProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnImageRecipe.AdditionalInstanceConfigurationProperty |
build()
Builds the configured instance.
|
CfnImageRecipe.AdditionalInstanceConfigurationProperty.Builder |
systemsManagerAgent(CfnImageRecipe.SystemsManagerAgentProperty systemsManagerAgent)
|
CfnImageRecipe.AdditionalInstanceConfigurationProperty.Builder |
systemsManagerAgent(IResolvable systemsManagerAgent)
|
CfnImageRecipe.AdditionalInstanceConfigurationProperty.Builder |
userDataOverride(java.lang.String userDataOverride)
|
public CfnImageRecipe.AdditionalInstanceConfigurationProperty.Builder systemsManagerAgent(IResolvable systemsManagerAgent)
systemsManagerAgent
- Contains settings for the Systems Manager agent on your build instance.this
public CfnImageRecipe.AdditionalInstanceConfigurationProperty.Builder systemsManagerAgent(CfnImageRecipe.SystemsManagerAgentProperty systemsManagerAgent)
systemsManagerAgent
- Contains settings for the Systems Manager agent on your build instance.this
public CfnImageRecipe.AdditionalInstanceConfigurationProperty.Builder userDataOverride(java.lang.String userDataOverride)
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
this
public CfnImageRecipe.AdditionalInstanceConfigurationProperty build()
CfnImageRecipe.AdditionalInstanceConfigurationProperty
java.lang.NullPointerException
- if any required attribute was not provided