#[non_exhaustive]pub struct CreatePlacementGroupInput {
pub dry_run: Option<bool>,
pub group_name: Option<String>,
pub strategy: Option<PlacementStrategy>,
pub partition_count: Option<i32>,
pub tag_specifications: Option<Vec<TagSpecification>>,
pub spread_level: Option<SpreadLevel>,
}
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.dry_run: Option<bool>
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
group_name: Option<String>
A name for the placement group. Must be unique within the scope of your account for the Region.
Constraints: Up to 255 ASCII characters
strategy: Option<PlacementStrategy>
The placement strategy.
partition_count: Option<i32>
The number of partitions. Valid only when Strategy is set to partition
.
tag_specifications: Option<Vec<TagSpecification>>
The tags to apply to the new placement group.
spread_level: Option<SpreadLevel>
Determines how placement groups spread instances.
-
Host – You can use
host
only with Outpost placement groups. -
Rack – No usage restrictions.
Implementations§
source§impl CreatePlacementGroupInput
impl CreatePlacementGroupInput
sourcepub fn dry_run(&self) -> Option<bool>
pub fn dry_run(&self) -> Option<bool>
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
sourcepub fn group_name(&self) -> Option<&str>
pub fn group_name(&self) -> Option<&str>
A name for the placement group. Must be unique within the scope of your account for the Region.
Constraints: Up to 255 ASCII characters
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 when Strategy is set to partition
.
sourcepub fn tag_specifications(&self) -> Option<&[TagSpecification]>
pub fn tag_specifications(&self) -> Option<&[TagSpecification]>
The tags to apply to the new placement group.
sourcepub fn spread_level(&self) -> Option<&SpreadLevel>
pub fn spread_level(&self) -> Option<&SpreadLevel>
Determines how placement groups spread instances.
-
Host – You can use
host
only with Outpost placement groups. -
Rack – No usage restrictions.
source§impl CreatePlacementGroupInput
impl CreatePlacementGroupInput
sourcepub fn builder() -> CreatePlacementGroupInputBuilder
pub fn builder() -> CreatePlacementGroupInputBuilder
Creates a new builder-style object to manufacture CreatePlacementGroupInput
.
Trait Implementations§
source§impl Clone for CreatePlacementGroupInput
impl Clone for CreatePlacementGroupInput
source§fn clone(&self) -> CreatePlacementGroupInput
fn clone(&self) -> CreatePlacementGroupInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreatePlacementGroupInput
impl Debug for CreatePlacementGroupInput
source§impl PartialEq<CreatePlacementGroupInput> for CreatePlacementGroupInput
impl PartialEq<CreatePlacementGroupInput> for CreatePlacementGroupInput
source§fn eq(&self, other: &CreatePlacementGroupInput) -> bool
fn eq(&self, other: &CreatePlacementGroupInput) -> bool
self
and other
values to be equal, and is used
by ==
.