Interface AdditionalInstanceConfiguration.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<AdditionalInstanceConfiguration.Builder,AdditionalInstanceConfiguration>,SdkBuilder<AdditionalInstanceConfiguration.Builder,AdditionalInstanceConfiguration>,SdkPojo
- Enclosing class:
- AdditionalInstanceConfiguration
public static interface AdditionalInstanceConfiguration.Builder extends SdkPojo, CopyableBuilder<AdditionalInstanceConfiguration.Builder,AdditionalInstanceConfiguration>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default AdditionalInstanceConfiguration.BuildersystemsManagerAgent(Consumer<SystemsManagerAgent.Builder> systemsManagerAgent)Contains settings for the Systems Manager agent on your build instance.AdditionalInstanceConfiguration.BuildersystemsManagerAgent(SystemsManagerAgent systemsManagerAgent)Contains settings for the Systems Manager agent on your build instance.AdditionalInstanceConfiguration.BuilderuserDataOverride(String userDataOverride)Use this property to provide commands or a command script to run when you launch your build instance.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
systemsManagerAgent
AdditionalInstanceConfiguration.Builder systemsManagerAgent(SystemsManagerAgent systemsManagerAgent)
Contains settings for the Systems Manager agent on your build instance.
- Parameters:
systemsManagerAgent- Contains settings for the Systems Manager agent on your build instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
systemsManagerAgent
default AdditionalInstanceConfiguration.Builder systemsManagerAgent(Consumer<SystemsManagerAgent.Builder> systemsManagerAgent)
Contains settings for the Systems Manager agent on your build instance.
This is a convenience method that creates an instance of theSystemsManagerAgent.Builderavoiding the need to create one manually viaSystemsManagerAgent.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosystemsManagerAgent(SystemsManagerAgent).- Parameters:
systemsManagerAgent- a consumer that will call methods onSystemsManagerAgent.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
systemsManagerAgent(SystemsManagerAgent)
-
userDataOverride
AdditionalInstanceConfiguration.Builder userDataOverride(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
- 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:
- Returns a reference to this object so that method calls can be chained together.
-
-