Struct aws_sdk_ec2::types::builders::PlacementBuilder
source · #[non_exhaustive]pub struct PlacementBuilder { /* private fields */ }
Expand description
A builder for Placement
.
Implementations§
source§impl PlacementBuilder
impl PlacementBuilder
sourcepub fn availability_zone(self, input: impl Into<String>) -> Self
pub fn availability_zone(self, input: impl Into<String>) -> Self
The Availability Zone of the instance.
If not specified, an Availability Zone will be automatically chosen for you based on the load balancing criteria for the Region.
This parameter is not supported for CreateFleet.
sourcepub fn set_availability_zone(self, input: Option<String>) -> Self
pub fn set_availability_zone(self, input: Option<String>) -> Self
The Availability Zone of the instance.
If not specified, an Availability Zone will be automatically chosen for you based on the load balancing criteria for the Region.
This parameter is not supported for CreateFleet.
sourcepub fn get_availability_zone(&self) -> &Option<String>
pub fn get_availability_zone(&self) -> &Option<String>
The Availability Zone of the instance.
If not specified, an Availability Zone will be automatically chosen for you based on the load balancing criteria for the Region.
This parameter is not supported for CreateFleet.
sourcepub fn affinity(self, input: impl Into<String>) -> Self
pub fn affinity(self, input: impl Into<String>) -> Self
The affinity setting for the instance on the Dedicated Host.
This parameter is not supported for CreateFleet or ImportInstance.
sourcepub fn set_affinity(self, input: Option<String>) -> Self
pub fn set_affinity(self, input: Option<String>) -> Self
The affinity setting for the instance on the Dedicated Host.
This parameter is not supported for CreateFleet or ImportInstance.
sourcepub fn get_affinity(&self) -> &Option<String>
pub fn get_affinity(&self) -> &Option<String>
The affinity setting for the instance on the Dedicated Host.
This parameter is not supported for CreateFleet or ImportInstance.
sourcepub fn group_name(self, input: impl Into<String>) -> Self
pub fn group_name(self, input: impl Into<String>) -> Self
The name of the placement group that the instance is in. If you specify GroupName
, you can't specify GroupId
.
sourcepub fn set_group_name(self, input: Option<String>) -> Self
pub fn set_group_name(self, input: Option<String>) -> Self
The name of the placement group that the instance is in. If you specify GroupName
, you can't specify GroupId
.
sourcepub fn get_group_name(&self) -> &Option<String>
pub fn get_group_name(&self) -> &Option<String>
The name of the placement group that the instance is in. If you specify GroupName
, you can't specify GroupId
.
sourcepub fn partition_number(self, input: i32) -> Self
pub fn partition_number(self, input: i32) -> Self
The number of the partition that the instance is in. Valid only if the placement group strategy is set to partition
.
This parameter is not supported for CreateFleet.
sourcepub fn set_partition_number(self, input: Option<i32>) -> Self
pub fn set_partition_number(self, input: Option<i32>) -> Self
The number of the partition that the instance is in. Valid only if the placement group strategy is set to partition
.
This parameter is not supported for CreateFleet.
sourcepub fn get_partition_number(&self) -> &Option<i32>
pub fn get_partition_number(&self) -> &Option<i32>
The number of the partition that the instance is in. Valid only if the placement group strategy is set to partition
.
This parameter is not supported for CreateFleet.
sourcepub fn host_id(self, input: impl Into<String>) -> Self
pub fn host_id(self, input: impl Into<String>) -> Self
The ID of the Dedicated Host on which the instance resides.
This parameter is not supported for CreateFleet or ImportInstance.
sourcepub fn set_host_id(self, input: Option<String>) -> Self
pub fn set_host_id(self, input: Option<String>) -> Self
The ID of the Dedicated Host on which the instance resides.
This parameter is not supported for CreateFleet or ImportInstance.
sourcepub fn get_host_id(&self) -> &Option<String>
pub fn get_host_id(&self) -> &Option<String>
The ID of the Dedicated Host on which the instance resides.
This parameter is not supported for CreateFleet or ImportInstance.
sourcepub fn tenancy(self, input: Tenancy) -> Self
pub fn tenancy(self, input: Tenancy) -> Self
The tenancy of the instance. An instance with a tenancy of dedicated
runs on single-tenant hardware.
This parameter is not supported for CreateFleet. The host
tenancy is not supported for ImportInstance or for T3 instances that are configured for the unlimited
CPU credit option.
sourcepub fn set_tenancy(self, input: Option<Tenancy>) -> Self
pub fn set_tenancy(self, input: Option<Tenancy>) -> Self
The tenancy of the instance. An instance with a tenancy of dedicated
runs on single-tenant hardware.
This parameter is not supported for CreateFleet. The host
tenancy is not supported for ImportInstance or for T3 instances that are configured for the unlimited
CPU credit option.
sourcepub fn get_tenancy(&self) -> &Option<Tenancy>
pub fn get_tenancy(&self) -> &Option<Tenancy>
The tenancy of the instance. An instance with a tenancy of dedicated
runs on single-tenant hardware.
This parameter is not supported for CreateFleet. The host
tenancy is not supported for ImportInstance or for T3 instances that are configured for the unlimited
CPU credit option.
sourcepub fn spread_domain(self, input: impl Into<String>) -> Self
pub fn spread_domain(self, input: impl Into<String>) -> Self
Reserved for future use.
sourcepub fn set_spread_domain(self, input: Option<String>) -> Self
pub fn set_spread_domain(self, input: Option<String>) -> Self
Reserved for future use.
sourcepub fn get_spread_domain(&self) -> &Option<String>
pub fn get_spread_domain(&self) -> &Option<String>
Reserved for future use.
sourcepub fn host_resource_group_arn(self, input: impl Into<String>) -> Self
pub fn host_resource_group_arn(self, input: impl Into<String>) -> Self
The ARN of the host resource group in which to launch the instances.
If you specify this parameter, either omit the Tenancy parameter or set it to host
.
This parameter is not supported for CreateFleet.
sourcepub fn set_host_resource_group_arn(self, input: Option<String>) -> Self
pub fn set_host_resource_group_arn(self, input: Option<String>) -> Self
The ARN of the host resource group in which to launch the instances.
If you specify this parameter, either omit the Tenancy parameter or set it to host
.
This parameter is not supported for CreateFleet.
sourcepub fn get_host_resource_group_arn(&self) -> &Option<String>
pub fn get_host_resource_group_arn(&self) -> &Option<String>
The ARN of the host resource group in which to launch the instances.
If you specify this parameter, either omit the Tenancy parameter or set it to host
.
This parameter is not supported for CreateFleet.
sourcepub fn group_id(self, input: impl Into<String>) -> Self
pub fn group_id(self, input: impl Into<String>) -> Self
The ID of the placement group that the instance is in. If you specify GroupId
, you can't specify GroupName
.
sourcepub fn set_group_id(self, input: Option<String>) -> Self
pub fn set_group_id(self, input: Option<String>) -> Self
The ID of the placement group that the instance is in. If you specify GroupId
, you can't specify GroupName
.
sourcepub fn get_group_id(&self) -> &Option<String>
pub fn get_group_id(&self) -> &Option<String>
The ID of the placement group that the instance is in. If you specify GroupId
, you can't specify GroupName
.
Trait Implementations§
source§impl Clone for PlacementBuilder
impl Clone for PlacementBuilder
source§fn clone(&self) -> PlacementBuilder
fn clone(&self) -> PlacementBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PlacementBuilder
impl Debug for PlacementBuilder
source§impl Default for PlacementBuilder
impl Default for PlacementBuilder
source§fn default() -> PlacementBuilder
fn default() -> PlacementBuilder
source§impl PartialEq<PlacementBuilder> for PlacementBuilder
impl PartialEq<PlacementBuilder> for PlacementBuilder
source§fn eq(&self, other: &PlacementBuilder) -> bool
fn eq(&self, other: &PlacementBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.