Struct aws_sdk_ec2::model::PlacementGroup
source · #[non_exhaustive]pub struct PlacementGroup { /* private fields */ }
Expand description
Describes a placement group.
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.
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() -> Builder
pub fn builder() -> Builder
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
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PlacementGroup
impl Debug for PlacementGroup
source§impl PartialEq<PlacementGroup> for PlacementGroup
impl PartialEq<PlacementGroup> for PlacementGroup
source§fn eq(&self, other: &PlacementGroup) -> bool
fn eq(&self, other: &PlacementGroup) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.