Struct aws_sdk_ec2::model::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
sourceimpl 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.
sourceimpl PlacementGroup
impl PlacementGroup
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture PlacementGroup
.
Trait Implementations
sourceimpl Clone for PlacementGroup
impl Clone for PlacementGroup
sourcefn clone(&self) -> PlacementGroup
fn clone(&self) -> PlacementGroup
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PlacementGroup
impl Debug for PlacementGroup
sourceimpl PartialEq<PlacementGroup> for PlacementGroup
impl PartialEq<PlacementGroup> for PlacementGroup
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &PlacementGroup) -> bool
fn ne(&self, other: &PlacementGroup) -> bool
This method tests for !=
.
impl StructuralPartialEq for PlacementGroup
Auto Trait Implementations
impl RefUnwindSafe for PlacementGroup
impl Send for PlacementGroup
impl Sync for PlacementGroup
impl Unpin for PlacementGroup
impl UnwindSafe for PlacementGroup
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more