Struct aws_sdk_ec2::types::PlacementGroup
source · #[non_exhaustive]pub struct PlacementGroup {
pub group_name: Option<String>,
pub state: Option<PlacementGroupState>,
pub strategy: Option<PlacementStrategy>,
pub partition_count: Option<i32>,
pub group_id: Option<String>,
pub tags: Option<Vec<Tag>>,
pub group_arn: Option<String>,
pub spread_level: Option<SpreadLevel>,
}
Expand description
Describes a placement group.
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.group_name: Option<String>
The name of the placement group.
state: Option<PlacementGroupState>
The state of the placement group.
strategy: Option<PlacementStrategy>
The placement strategy.
partition_count: Option<i32>
The number of partitions. Valid only if strategy is set to partition
.
group_id: Option<String>
The ID of the placement group.
Any tags applied to the placement group.
group_arn: Option<String>
The Amazon Resource Name (ARN) of the placement group.
spread_level: Option<SpreadLevel>
The spread level for the placement group. Only Outpost placement groups can be spread across hosts.
Implementations§
source§impl PlacementGroup
impl PlacementGroup
sourcepub fn group_name(&self) -> Option<&str>
pub fn group_name(&self) -> Option<&str>
The name of the placement group.
sourcepub fn state(&self) -> Option<&PlacementGroupState>
pub fn state(&self) -> Option<&PlacementGroupState>
The state of the placement group.
sourcepub fn strategy(&self) -> Option<&PlacementStrategy>
pub fn strategy(&self) -> Option<&PlacementStrategy>
The placement strategy.
sourcepub fn partition_count(&self) -> Option<i32>
pub fn partition_count(&self) -> Option<i32>
The number of partitions. Valid only if strategy is set to partition
.
Any tags applied to the placement group.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .tags.is_none()
.
sourcepub fn spread_level(&self) -> Option<&SpreadLevel>
pub fn spread_level(&self) -> Option<&SpreadLevel>
The spread level for the placement group. Only Outpost placement groups can be spread across hosts.
source§impl PlacementGroup
impl PlacementGroup
sourcepub fn builder() -> PlacementGroupBuilder
pub fn builder() -> PlacementGroupBuilder
Creates a new builder-style object to manufacture PlacementGroup
.
Trait Implementations§
source§impl Clone for PlacementGroup
impl Clone for PlacementGroup
source§fn clone(&self) -> PlacementGroup
fn clone(&self) -> PlacementGroup
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PlacementGroup
impl Debug for PlacementGroup
source§impl PartialEq for PlacementGroup
impl PartialEq for PlacementGroup
source§fn eq(&self, other: &PlacementGroup) -> bool
fn eq(&self, other: &PlacementGroup) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PlacementGroup
Auto Trait Implementations§
impl Freeze for PlacementGroup
impl RefUnwindSafe for PlacementGroup
impl Send for PlacementGroup
impl Sync for PlacementGroup
impl Unpin for PlacementGroup
impl UnwindSafe for PlacementGroup
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