Struct aws_sdk_ec2::input::create_placement_group_input::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for CreatePlacementGroupInput
.
Implementations§
source§impl Builder
impl Builder
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 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 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 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 tag_specifications(self, input: TagSpecification) -> Self
pub fn tag_specifications(self, input: TagSpecification) -> Self
Appends an item to tag_specifications
.
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 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 build(self) -> Result<CreatePlacementGroupInput, BuildError>
pub fn build(self) -> Result<CreatePlacementGroupInput, BuildError>
Consumes the builder and constructs a CreatePlacementGroupInput
.