Struct aws_sdk_ec2::model::LaunchSpecification
source · [−]#[non_exhaustive]pub struct LaunchSpecification { /* private fields */ }
Expand description
Describes the launch specification for an instance.
We are retiring EC2-Classic on August 15, 2022. We recommend that you migrate from EC2-Classic to a VPC. For more information, see Migrate from EC2-Classic to a VPC in the Amazon EC2 User Guide for Linux Instances.
Implementations
sourceimpl LaunchSpecification
impl LaunchSpecification
sourcepub fn security_groups(&self) -> Option<&[GroupIdentifier]>
pub fn security_groups(&self) -> Option<&[GroupIdentifier]>
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.
sourcepub fn addressing_type(&self) -> Option<&str>
pub fn addressing_type(&self) -> Option<&str>
Deprecated.
sourcepub fn block_device_mappings(&self) -> Option<&[BlockDeviceMapping]>
pub fn block_device_mappings(&self) -> Option<&[BlockDeviceMapping]>
One or more block device mapping entries.
sourcepub fn ebs_optimized(&self) -> Option<bool>
pub fn ebs_optimized(&self) -> Option<bool>
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
sourcepub fn iam_instance_profile(&self) -> Option<&IamInstanceProfileSpecification>
pub fn iam_instance_profile(&self) -> Option<&IamInstanceProfileSpecification>
The IAM instance profile.
sourcepub fn instance_type(&self) -> Option<&InstanceType>
pub fn instance_type(&self) -> Option<&InstanceType>
The instance type. Only one instance type can be specified.
sourcepub fn network_interfaces(
&self
) -> Option<&[InstanceNetworkInterfaceSpecification]>
pub fn network_interfaces(
&self
) -> Option<&[InstanceNetworkInterfaceSpecification]>
One or more network interfaces. If you specify a network interface, you must specify subnet IDs and security group IDs using the network interface.
sourcepub fn placement(&self) -> Option<&SpotPlacement>
pub fn placement(&self) -> Option<&SpotPlacement>
The placement information for the instance.
sourcepub fn ramdisk_id(&self) -> Option<&str>
pub fn ramdisk_id(&self) -> Option<&str>
The ID of the RAM disk.
sourcepub fn monitoring(&self) -> Option<&RunInstancesMonitoringEnabled>
pub fn monitoring(&self) -> Option<&RunInstancesMonitoringEnabled>
Describes the monitoring of an instance.
sourceimpl LaunchSpecification
impl LaunchSpecification
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture LaunchSpecification
.
Trait Implementations
sourceimpl Clone for LaunchSpecification
impl Clone for LaunchSpecification
sourcefn clone(&self) -> LaunchSpecification
fn clone(&self) -> LaunchSpecification
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more