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 ==.impl StructuralPartialEq for PlacementType
Auto Trait Implementations§
impl Freeze for PlacementType
impl RefUnwindSafe for PlacementType
impl Send for PlacementType
impl Sync for PlacementType
impl Unpin for PlacementType
impl UnwindSafe for PlacementType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more