#[non_exhaustive]pub struct AwsEc2LaunchTemplateDataPlacementDetails {
pub affinity: Option<String>,
pub availability_zone: Option<String>,
pub group_name: Option<String>,
pub host_id: Option<String>,
pub host_resource_group_arn: Option<String>,
pub partition_number: Option<i32>,
pub spread_domain: Option<String>,
pub tenancy: Option<String>,
}
Expand description
Provides details about the placement of an Amazon EC2 instance.
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.affinity: Option<String>
The affinity setting for an instance on an EC2 Dedicated Host.
availability_zone: Option<String>
The Availability Zone for the instance.
group_name: Option<String>
The name of the placement group for the instance.
host_id: Option<String>
The ID of the Dedicated Host for the instance.
host_resource_group_arn: Option<String>
The Amazon Resource Name (ARN) of the host resource group in which to launch the instances.
partition_number: Option<i32>
The number of the partition the instance should launch in.
spread_domain: Option<String>
Reserved for future use.
tenancy: Option<String>
The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of dedicated runs on single-tenant hardware.
Implementations§
source§impl AwsEc2LaunchTemplateDataPlacementDetails
impl AwsEc2LaunchTemplateDataPlacementDetails
sourcepub fn affinity(&self) -> Option<&str>
pub fn affinity(&self) -> Option<&str>
The affinity setting for an instance on an EC2 Dedicated Host.
sourcepub fn availability_zone(&self) -> Option<&str>
pub fn availability_zone(&self) -> Option<&str>
The Availability Zone for the instance.
sourcepub fn group_name(&self) -> Option<&str>
pub fn group_name(&self) -> Option<&str>
The name of the placement group for the instance.
sourcepub fn host_resource_group_arn(&self) -> Option<&str>
pub fn host_resource_group_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the host resource group in which to launch the instances.
sourcepub fn partition_number(&self) -> Option<i32>
pub fn partition_number(&self) -> Option<i32>
The number of the partition the instance should launch in.
sourcepub fn spread_domain(&self) -> Option<&str>
pub fn spread_domain(&self) -> Option<&str>
Reserved for future use.
source§impl AwsEc2LaunchTemplateDataPlacementDetails
impl AwsEc2LaunchTemplateDataPlacementDetails
sourcepub fn builder() -> AwsEc2LaunchTemplateDataPlacementDetailsBuilder
pub fn builder() -> AwsEc2LaunchTemplateDataPlacementDetailsBuilder
Creates a new builder-style object to manufacture AwsEc2LaunchTemplateDataPlacementDetails
.
Trait Implementations§
source§impl Clone for AwsEc2LaunchTemplateDataPlacementDetails
impl Clone for AwsEc2LaunchTemplateDataPlacementDetails
source§fn clone(&self) -> AwsEc2LaunchTemplateDataPlacementDetails
fn clone(&self) -> AwsEc2LaunchTemplateDataPlacementDetails
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for AwsEc2LaunchTemplateDataPlacementDetails
impl PartialEq for AwsEc2LaunchTemplateDataPlacementDetails
source§fn eq(&self, other: &AwsEc2LaunchTemplateDataPlacementDetails) -> bool
fn eq(&self, other: &AwsEc2LaunchTemplateDataPlacementDetails) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AwsEc2LaunchTemplateDataPlacementDetails
Auto Trait Implementations§
impl Freeze for AwsEc2LaunchTemplateDataPlacementDetails
impl RefUnwindSafe for AwsEc2LaunchTemplateDataPlacementDetails
impl Send for AwsEc2LaunchTemplateDataPlacementDetails
impl Sync for AwsEc2LaunchTemplateDataPlacementDetails
impl Unpin for AwsEc2LaunchTemplateDataPlacementDetails
impl UnwindSafe for AwsEc2LaunchTemplateDataPlacementDetails
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