Struct aws_sdk_ec2::types::Placement
source · #[non_exhaustive]pub struct Placement {
pub availability_zone: Option<String>,
pub affinity: Option<String>,
pub group_name: Option<String>,
pub partition_number: Option<i32>,
pub host_id: Option<String>,
pub tenancy: Option<Tenancy>,
pub spread_domain: Option<String>,
pub host_resource_group_arn: Option<String>,
pub group_id: Option<String>,
}
Expand description
Describes the placement of an instance.
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.availability_zone: 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.
affinity: Option<String>
The affinity setting for the instance on the Dedicated Host.
This parameter is not supported for CreateFleet or ImportInstance.
group_name: Option<String>
The name of the placement group that the instance is in. If you specify GroupName
, you can't specify GroupId
.
partition_number: 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.
host_id: Option<String>
The ID of the Dedicated Host on which the instance resides.
This parameter is not supported for CreateFleet or ImportInstance.
tenancy: 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.
spread_domain: Option<String>
Reserved for future use.
host_resource_group_arn: 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.
group_id: Option<String>
The ID of the placement group that the instance is in. If you specify GroupId
, you can't specify GroupName
.
Implementations§
source§impl Placement
impl Placement
sourcepub fn availability_zone(&self) -> Option<&str>
pub fn availability_zone(&self) -> Option<&str>
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) -> Option<&str>
pub fn affinity(&self) -> Option<&str>
The affinity setting for the instance on the Dedicated Host.
This parameter is not supported for CreateFleet or ImportInstance.
sourcepub fn group_name(&self) -> Option<&str>
pub fn group_name(&self) -> Option<&str>
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) -> Option<i32>
pub fn 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) -> Option<&str>
pub fn host_id(&self) -> Option<&str>
The ID of the Dedicated Host on which the instance resides.
This parameter is not supported for CreateFleet or ImportInstance.
sourcepub fn tenancy(&self) -> Option<&Tenancy>
pub fn 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) -> Option<&str>
pub fn spread_domain(&self) -> Option<&str>
Reserved for future use.
sourcepub fn host_resource_group_arn(&self) -> Option<&str>
pub fn host_resource_group_arn(&self) -> Option<&str>
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.