@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AdditionalInstanceConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
In addition to your infrastruction configuration, these settings provide an extra layer of control over your build instances. For instances where Image Builder installs the Systems Manager agent, you can choose whether to keep it for the AMI that you create. You can also specify commands to run on launch for all of your build instances.
Constructor and Description |
---|
AdditionalInstanceConfiguration() |
Modifier and Type | Method and Description |
---|---|
AdditionalInstanceConfiguration |
clone() |
boolean |
equals(Object obj) |
SystemsManagerAgent |
getSystemsManagerAgent()
Contains settings for the Systems Manager agent on your build instance.
|
String |
getUserDataOverride()
Use this property to provide commands or a command script to run when you launch your build instance.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setSystemsManagerAgent(SystemsManagerAgent systemsManagerAgent)
Contains settings for the Systems Manager agent on your build instance.
|
void |
setUserDataOverride(String userDataOverride)
Use this property to provide commands or a command script to run when you launch your build instance.
|
String |
toString()
Returns a string representation of this object.
|
AdditionalInstanceConfiguration |
withSystemsManagerAgent(SystemsManagerAgent systemsManagerAgent)
Contains settings for the Systems Manager agent on your build instance.
|
AdditionalInstanceConfiguration |
withUserDataOverride(String userDataOverride)
Use this property to provide commands or a command script to run when you launch your build instance.
|
public void setSystemsManagerAgent(SystemsManagerAgent systemsManagerAgent)
Contains settings for the Systems Manager agent on your build instance.
systemsManagerAgent
- Contains settings for the Systems Manager agent on your build instance.public SystemsManagerAgent getSystemsManagerAgent()
Contains settings for the Systems Manager agent on your build instance.
public AdditionalInstanceConfiguration withSystemsManagerAgent(SystemsManagerAgent systemsManagerAgent)
Contains settings for the Systems Manager agent on your build instance.
systemsManagerAgent
- Contains settings for the Systems Manager agent on your build instance.public void setUserDataOverride(String 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.
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.
public String getUserDataOverride()
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 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.
public AdditionalInstanceConfiguration withUserDataOverride(String 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.
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.
public String toString()
toString
in class Object
Object.toString()
public AdditionalInstanceConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.