#[non_exhaustive]pub struct AdditionalInstanceConfiguration {
pub systems_manager_agent: Option<SystemsManagerAgent>,
pub user_data_override: Option<String>,
}
Expand description
In addition to your infrastructure configuration, these settings provide an extra layer of control over your build instances. You can also specify commands to run on launch for all of your build instances.
Image Builder does not automatically install the Systems Manager agent on Windows instances. If your base image includes the Systems Manager agent, then the AMI that you create will also include the agent. For Linux instances, if the base image does not already include the Systems Manager agent, Image Builder installs it. For Linux instances where Image Builder installs the Systems Manager agent, you can choose whether to keep it for the AMI that you create.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.systems_manager_agent: Option<SystemsManagerAgent>
Contains settings for the Systems Manager agent on your build instance.
user_data_override: Option<String>
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
Implementations§
source§impl 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
source§impl AdditionalInstanceConfiguration
impl AdditionalInstanceConfiguration
sourcepub fn builder() -> AdditionalInstanceConfigurationBuilder
pub fn builder() -> AdditionalInstanceConfigurationBuilder
Creates a new builder-style object to manufacture AdditionalInstanceConfiguration
.
Trait Implementations§
source§impl Clone for AdditionalInstanceConfiguration
impl Clone for AdditionalInstanceConfiguration
source§fn clone(&self) -> AdditionalInstanceConfiguration
fn clone(&self) -> AdditionalInstanceConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for AdditionalInstanceConfiguration
impl PartialEq for AdditionalInstanceConfiguration
source§fn eq(&self, other: &AdditionalInstanceConfiguration) -> bool
fn eq(&self, other: &AdditionalInstanceConfiguration) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AdditionalInstanceConfiguration
Auto Trait Implementations§
impl Freeze for AdditionalInstanceConfiguration
impl RefUnwindSafe for AdditionalInstanceConfiguration
impl Send for AdditionalInstanceConfiguration
impl Sync for AdditionalInstanceConfiguration
impl Unpin for AdditionalInstanceConfiguration
impl UnwindSafe for AdditionalInstanceConfiguration
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more