Struct aws_sdk_ec2::model::LaunchSpecification
source · #[non_exhaustive]pub struct LaunchSpecification { /* private fields */ }
Expand description
Describes the launch specification for an instance.
Implementations§
source§impl 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.
source§impl LaunchSpecification
impl LaunchSpecification
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture LaunchSpecification
.
Trait Implementations§
source§impl Clone for LaunchSpecification
impl Clone for LaunchSpecification
source§fn clone(&self) -> LaunchSpecification
fn clone(&self) -> LaunchSpecification
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LaunchSpecification
impl Debug for LaunchSpecification
source§impl PartialEq<LaunchSpecification> for LaunchSpecification
impl PartialEq<LaunchSpecification> for LaunchSpecification
source§fn eq(&self, other: &LaunchSpecification) -> bool
fn eq(&self, other: &LaunchSpecification) -> bool
self
and other
values to be equal, and is used
by ==
.