Struct aws_sdk_emr::types::PlacementType
source · #[non_exhaustive]pub struct PlacementType {
pub availability_zone: Option<String>,
pub availability_zones: Option<Vec<String>>,
}
Expand description
The Amazon EC2 Availability Zone configuration of the cluster (job flow).
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 Amazon EC2 Availability Zone for the cluster. AvailabilityZone
is used for uniform instance groups, while AvailabilityZones
(plural) is used for instance fleets.
availability_zones: Option<Vec<String>>
When multiple Availability Zones are specified, Amazon EMR evaluates them and launches instances in the optimal Availability Zone. AvailabilityZones
is used for instance fleets, while AvailabilityZone
(singular) is used for uniform instance groups.
The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, excluding 5.0.x versions.
Implementations§
source§impl PlacementType
impl PlacementType
sourcepub fn availability_zone(&self) -> Option<&str>
pub fn availability_zone(&self) -> Option<&str>
The Amazon EC2 Availability Zone for the cluster. AvailabilityZone
is used for uniform instance groups, while AvailabilityZones
(plural) is used for instance fleets.
sourcepub fn availability_zones(&self) -> &[String]
pub fn availability_zones(&self) -> &[String]
When multiple Availability Zones are specified, Amazon EMR evaluates them and launches instances in the optimal Availability Zone. AvailabilityZones
is used for instance fleets, while AvailabilityZone
(singular) is used for uniform instance groups.
The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, excluding 5.0.x versions.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .availability_zones.is_none()
.
source§impl PlacementType
impl PlacementType
sourcepub fn builder() -> PlacementTypeBuilder
pub fn builder() -> PlacementTypeBuilder
Creates a new builder-style object to manufacture PlacementType
.
Trait Implementations§
source§impl Clone for PlacementType
impl Clone for PlacementType
source§fn clone(&self) -> PlacementType
fn clone(&self) -> PlacementType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PlacementType
impl Debug for PlacementType
source§impl PartialEq for PlacementType
impl PartialEq for PlacementType
source§fn eq(&self, other: &PlacementType) -> bool
fn eq(&self, other: &PlacementType) -> bool
self
and other
values to be equal, and is used
by ==
.