Struct aws_sdk_ec2::types::LaunchTemplatePlacementRequest
source · #[non_exhaustive]pub struct LaunchTemplatePlacementRequest {
pub availability_zone: Option<String>,
pub affinity: Option<String>,
pub group_name: Option<String>,
pub host_id: Option<String>,
pub tenancy: Option<Tenancy>,
pub spread_domain: Option<String>,
pub host_resource_group_arn: Option<String>,
pub partition_number: Option<i32>,
pub group_id: Option<String>,
}
Expand description
Describes the placement of an 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.availability_zone: Option<String>
The Availability Zone for the instance.
affinity: Option<String>
The affinity setting for an instance on a Dedicated Host.
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.
tenancy: Option<Tenancy>
The tenancy of the instance. An instance with a tenancy of dedicated runs on single-tenant hardware.
spread_domain: Option<String>
Reserved for future use.
host_resource_group_arn: Option<String>
The ARN of the host resource group in which to launch the instances. If you specify a host resource group ARN, omit the Tenancy parameter or set it to host
.
partition_number: Option<i32>
The number of the partition the instance should launch in. Valid only if the placement group strategy is set to partition
.
group_id: Option<String>
The Group Id of a placement group. You must specify the Placement Group Group Id to launch an instance in a shared placement group.
Implementations§
source§impl LaunchTemplatePlacementRequest
impl LaunchTemplatePlacementRequest
sourcepub fn availability_zone(&self) -> Option<&str>
pub fn availability_zone(&self) -> Option<&str>
The Availability Zone for the instance.
sourcepub fn affinity(&self) -> Option<&str>
pub fn affinity(&self) -> Option<&str>
The affinity setting for an instance on a Dedicated Host.
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 tenancy(&self) -> Option<&Tenancy>
pub fn tenancy(&self) -> Option<&Tenancy>
The tenancy of the instance. An instance with a tenancy of dedicated runs on single-tenant hardware.
sourcepub fn spread_domain(&self) -> Option<&str>
pub fn spread_domain(&self) -> Option<&str>
Reserved for future use.
sourcepub fn host_resource_group_arn(&self) -> Option<&str>
pub fn host_resource_group_arn(&self) -> Option<&str>
The ARN of the host resource group in which to launch the instances. If you specify a host resource group ARN, omit the Tenancy parameter or set it to host
.
sourcepub fn partition_number(&self) -> Option<i32>
pub fn partition_number(&self) -> Option<i32>
The number of the partition the instance should launch in. Valid only if the placement group strategy is set to partition
.
source§impl LaunchTemplatePlacementRequest
impl LaunchTemplatePlacementRequest
sourcepub fn builder() -> LaunchTemplatePlacementRequestBuilder
pub fn builder() -> LaunchTemplatePlacementRequestBuilder
Creates a new builder-style object to manufacture LaunchTemplatePlacementRequest
.
Trait Implementations§
source§impl Clone for LaunchTemplatePlacementRequest
impl Clone for LaunchTemplatePlacementRequest
source§fn clone(&self) -> LaunchTemplatePlacementRequest
fn clone(&self) -> LaunchTemplatePlacementRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for LaunchTemplatePlacementRequest
impl PartialEq for LaunchTemplatePlacementRequest
source§fn eq(&self, other: &LaunchTemplatePlacementRequest) -> bool
fn eq(&self, other: &LaunchTemplatePlacementRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LaunchTemplatePlacementRequest
Auto Trait Implementations§
impl Freeze for LaunchTemplatePlacementRequest
impl RefUnwindSafe for LaunchTemplatePlacementRequest
impl Send for LaunchTemplatePlacementRequest
impl Sync for LaunchTemplatePlacementRequest
impl Unpin for LaunchTemplatePlacementRequest
impl UnwindSafe for LaunchTemplatePlacementRequest
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