Struct aws_sdk_ec2::model::launch_specification::Builder [−][src]
#[non_exhaustive]pub struct Builder { /* fields omitted */ }
Expand description
A builder for LaunchSpecification
Implementations
The Base64-encoded user data for the instance.
The Base64-encoded user data for the instance.
Appends an item to security_groups
.
To override the contents of this collection use set_security_groups
.
One or more security groups. When requesting instances in a VPC, you must specify the IDs of the security groups. When requesting instances in EC2-Classic, you can specify the names or the IDs of the security groups.
One or more security groups. When requesting instances in a VPC, you must specify the IDs of the security groups. When requesting instances in EC2-Classic, you can specify the names or the IDs of the security groups.
Deprecated.
Deprecated.
Appends an item to block_device_mappings
.
To override the contents of this collection use set_block_device_mappings
.
One or more block device mapping entries.
One or more block device mapping entries.
Indicates whether the instance is optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.
Default: false
Indicates whether the instance is optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.
Default: false
The IAM instance profile.
The IAM instance profile.
The ID of the AMI.
The instance type.
The instance type.
The ID of the kernel.
The name of the key pair.
pub fn network_interfaces(
self,
input: impl Into<InstanceNetworkInterfaceSpecification>
) -> Self
pub fn network_interfaces(
self,
input: impl Into<InstanceNetworkInterfaceSpecification>
) -> Self
Appends an item to network_interfaces
.
To override the contents of this collection use set_network_interfaces
.
One or more network interfaces. If you specify a network interface, you must specify subnet IDs and security group IDs using the network interface.
pub fn set_network_interfaces(
self,
input: Option<Vec<InstanceNetworkInterfaceSpecification>>
) -> Self
pub fn set_network_interfaces(
self,
input: Option<Vec<InstanceNetworkInterfaceSpecification>>
) -> Self
One or more network interfaces. If you specify a network interface, you must specify subnet IDs and security group IDs using the network interface.
The placement information for the instance.
The placement information for the instance.
The ID of the RAM disk.
The ID of the RAM disk.
The ID of the subnet in which to launch the instance.
The ID of the subnet in which to launch the instance.
Describes the monitoring of an instance.
Describes the monitoring of an instance.
Consumes the builder and constructs a LaunchSpecification
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl UnwindSafe for Builder
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more