@Generated(value="software.amazon.awssdk:codegen") public final class AdditionalInstanceConfiguration extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AdditionalInstanceConfiguration.Builder,AdditionalInstanceConfiguration>
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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
AdditionalInstanceConfiguration.Builder |
| Modifier and Type | Method and Description |
|---|---|
static AdditionalInstanceConfiguration.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends AdditionalInstanceConfiguration.Builder> |
serializableBuilderClass() |
SystemsManagerAgent |
systemsManagerAgent()
Contains settings for the Systems Manager agent on your build instance.
|
AdditionalInstanceConfiguration.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
userDataOverride()
Use this property to provide commands or a command script to run when you launch your build instance.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final SystemsManagerAgent systemsManagerAgent()
Contains settings for the Systems Manager agent on your build instance.
public final 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.
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
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
public AdditionalInstanceConfiguration.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<AdditionalInstanceConfiguration.Builder,AdditionalInstanceConfiguration>public static AdditionalInstanceConfiguration.Builder builder()
public static Class<? extends AdditionalInstanceConfiguration.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.