Struct aws_sdk_ec2::input::CreatePlacementGroupInput
source · #[non_exhaustive]pub struct CreatePlacementGroupInput { /* private fields */ }
Implementations§
source§impl CreatePlacementGroupInput
impl CreatePlacementGroupInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreatePlacementGroup, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreatePlacementGroup, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<CreatePlacementGroup
>
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture CreatePlacementGroupInput
.
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.
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 ==
.