Struct aws_sdk_emr::types::PlacementGroupConfig
source · #[non_exhaustive]pub struct PlacementGroupConfig {
pub instance_role: Option<InstanceRoleType>,
pub placement_strategy: Option<PlacementGroupStrategy>,
}
Expand description
Placement group configuration for an Amazon EMR cluster. The configuration specifies the placement strategy that can be applied to instance roles during cluster creation.
To use this configuration, consider attaching managed policy AmazonElasticMapReducePlacementGroupPolicy to the Amazon EMR role.
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.instance_role: Option<InstanceRoleType>
Role of the instance in the cluster.
Starting with Amazon EMR release 5.23.0, the only supported instance role is MASTER
.
placement_strategy: Option<PlacementGroupStrategy>
Amazon EC2 Placement Group strategy associated with instance role.
Starting with Amazon EMR release 5.23.0, the only supported placement strategy is SPREAD
for the MASTER
instance role.
Implementations§
source§impl PlacementGroupConfig
impl PlacementGroupConfig
sourcepub fn instance_role(&self) -> Option<&InstanceRoleType>
pub fn instance_role(&self) -> Option<&InstanceRoleType>
Role of the instance in the cluster.
Starting with Amazon EMR release 5.23.0, the only supported instance role is MASTER
.
sourcepub fn placement_strategy(&self) -> Option<&PlacementGroupStrategy>
pub fn placement_strategy(&self) -> Option<&PlacementGroupStrategy>
Amazon EC2 Placement Group strategy associated with instance role.
Starting with Amazon EMR release 5.23.0, the only supported placement strategy is SPREAD
for the MASTER
instance role.
source§impl PlacementGroupConfig
impl PlacementGroupConfig
sourcepub fn builder() -> PlacementGroupConfigBuilder
pub fn builder() -> PlacementGroupConfigBuilder
Creates a new builder-style object to manufacture PlacementGroupConfig
.
Trait Implementations§
source§impl Clone for PlacementGroupConfig
impl Clone for PlacementGroupConfig
source§fn clone(&self) -> PlacementGroupConfig
fn clone(&self) -> PlacementGroupConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PlacementGroupConfig
impl Debug for PlacementGroupConfig
source§impl PartialEq for PlacementGroupConfig
impl PartialEq for PlacementGroupConfig
source§fn eq(&self, other: &PlacementGroupConfig) -> bool
fn eq(&self, other: &PlacementGroupConfig) -> bool
self
and other
values to be equal, and is used
by ==
.