#[non_exhaustive]pub struct AdditionalInstanceConfiguration { /* private fields */ }
Expand description
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.
Implementations
sourceimpl AdditionalInstanceConfiguration
impl AdditionalInstanceConfiguration
sourcepub fn systems_manager_agent(&self) -> Option<&SystemsManagerAgent>
pub fn systems_manager_agent(&self) -> Option<&SystemsManagerAgent>
Contains settings for the Systems Manager agent on your build instance.
sourcepub fn user_data_override(&self) -> Option<&str>
pub fn user_data_override(&self) -> Option<&str>
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
sourceimpl AdditionalInstanceConfiguration
impl AdditionalInstanceConfiguration
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture AdditionalInstanceConfiguration
.
Trait Implementations
sourceimpl Clone for AdditionalInstanceConfiguration
impl Clone for AdditionalInstanceConfiguration
sourcefn clone(&self) -> AdditionalInstanceConfiguration
fn clone(&self) -> AdditionalInstanceConfiguration
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more