Struct aws_sdk_imagebuilder::model::instance_configuration::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for InstanceConfiguration
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn image(self, input: impl Into<String>) -> Self
pub fn image(self, input: impl Into<String>) -> Self
The AMI ID to use as the base image for a container build and test instance. If not specified, Image Builder will use the appropriate ECS-optimized AMI as a base image.
sourcepub fn set_image(self, input: Option<String>) -> Self
pub fn set_image(self, input: Option<String>) -> Self
The AMI ID to use as the base image for a container build and test instance. If not specified, Image Builder will use the appropriate ECS-optimized AMI as a base image.
sourcepub fn block_device_mappings(self, input: InstanceBlockDeviceMapping) -> Self
pub fn block_device_mappings(self, input: InstanceBlockDeviceMapping) -> Self
Appends an item to block_device_mappings
.
To override the contents of this collection use set_block_device_mappings
.
Defines the block devices to attach for building an instance from this Image Builder AMI.
sourcepub fn set_block_device_mappings(
self,
input: Option<Vec<InstanceBlockDeviceMapping>>
) -> Self
pub fn set_block_device_mappings(
self,
input: Option<Vec<InstanceBlockDeviceMapping>>
) -> Self
Defines the block devices to attach for building an instance from this Image Builder AMI.
sourcepub fn build(self) -> InstanceConfiguration
pub fn build(self) -> InstanceConfiguration
Consumes the builder and constructs a InstanceConfiguration
.