Struct aws_sdk_ec2::operation::create_placement_group::builders::CreatePlacementGroupFluentBuilder
source · pub struct CreatePlacementGroupFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to CreatePlacementGroup
.
Creates a placement group in which to launch instances. The strategy of the placement group determines how the instances are organized within the group.
A cluster
placement group is a logical grouping of instances within a single Availability Zone that benefit from low network latency, high network throughput. A spread
placement group places instances on distinct hardware. A partition
placement group places groups of instances in different partitions, where instances in one partition do not share the same hardware with instances in another partition.
For more information, see Placement groups in the Amazon EC2 User Guide.
Implementations§
source§impl CreatePlacementGroupFluentBuilder
impl CreatePlacementGroupFluentBuilder
sourcepub fn as_input(&self) -> &CreatePlacementGroupInputBuilder
pub fn as_input(&self) -> &CreatePlacementGroupInputBuilder
Access the CreatePlacementGroup as a reference.
sourcepub async fn send(
self
) -> Result<CreatePlacementGroupOutput, SdkError<CreatePlacementGroupError, HttpResponse>>
pub async fn send( self ) -> Result<CreatePlacementGroupOutput, SdkError<CreatePlacementGroupError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CreatePlacementGroupOutput, CreatePlacementGroupError>, SdkError<CreatePlacementGroupError>>
pub async fn customize( self ) -> Result<CustomizableOperation<CreatePlacementGroupOutput, CreatePlacementGroupError>, SdkError<CreatePlacementGroupError>>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn dry_run(self, input: bool) -> Self
pub fn dry_run(self, input: bool) -> Self
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 set_dry_run(self, input: Option<bool>) -> Self
pub fn set_dry_run(self, input: Option<bool>) -> Self
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 get_dry_run(&self) -> &Option<bool>
pub fn get_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, input: impl Into<String>) -> Self
pub fn group_name(self, input: impl Into<String>) -> Self
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 set_group_name(self, input: Option<String>) -> Self
pub fn set_group_name(self, input: Option<String>) -> Self
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 get_group_name(&self) -> &Option<String>
pub fn get_group_name(&self) -> &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
sourcepub fn strategy(self, input: PlacementStrategy) -> Self
pub fn strategy(self, input: PlacementStrategy) -> Self
The placement strategy.
sourcepub fn set_strategy(self, input: Option<PlacementStrategy>) -> Self
pub fn set_strategy(self, input: Option<PlacementStrategy>) -> Self
The placement strategy.
sourcepub fn get_strategy(&self) -> &Option<PlacementStrategy>
pub fn get_strategy(&self) -> &Option<PlacementStrategy>
The placement strategy.
sourcepub fn partition_count(self, input: i32) -> Self
pub fn partition_count(self, input: i32) -> Self
The number of partitions. Valid only when Strategy is set to partition
.
sourcepub fn set_partition_count(self, input: Option<i32>) -> Self
pub fn set_partition_count(self, input: Option<i32>) -> Self
The number of partitions. Valid only when Strategy is set to partition
.
sourcepub fn get_partition_count(&self) -> &Option<i32>
pub fn get_partition_count(&self) -> &Option<i32>
The number of partitions. Valid only when Strategy is set to partition
.
sourcepub fn tag_specifications(self, input: TagSpecification) -> Self
pub fn tag_specifications(self, input: TagSpecification) -> Self
Appends an item to TagSpecifications
.
To override the contents of this collection use set_tag_specifications
.
The tags to apply to the new placement group.
sourcepub fn set_tag_specifications(
self,
input: Option<Vec<TagSpecification>>
) -> Self
pub fn set_tag_specifications( self, input: Option<Vec<TagSpecification>> ) -> Self
The tags to apply to the new placement group.
sourcepub fn get_tag_specifications(&self) -> &Option<Vec<TagSpecification>>
pub fn get_tag_specifications(&self) -> &Option<Vec<TagSpecification>>
The tags to apply to the new placement group.
sourcepub fn spread_level(self, input: SpreadLevel) -> Self
pub fn spread_level(self, input: SpreadLevel) -> Self
Determines how placement groups spread instances.
-
Host – You can use
host
only with Outpost placement groups. -
Rack – No usage restrictions.
sourcepub fn set_spread_level(self, input: Option<SpreadLevel>) -> Self
pub fn set_spread_level(self, input: Option<SpreadLevel>) -> Self
Determines how placement groups spread instances.
-
Host – You can use
host
only with Outpost placement groups. -
Rack – No usage restrictions.
sourcepub fn get_spread_level(&self) -> &Option<SpreadLevel>
pub fn get_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 CreatePlacementGroupFluentBuilder
impl Clone for CreatePlacementGroupFluentBuilder
source§fn clone(&self) -> CreatePlacementGroupFluentBuilder
fn clone(&self) -> CreatePlacementGroupFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more