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.
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<PlacementGroup> for PlacementGroup
impl PartialEq<PlacementGroup> 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 ==
.