pub struct PlacementGroupConfig {
pub instance_role: String,
pub placement_strategy: Option<String>,
}
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 EMR role.
Fields§
§instance_role: String
Role of the instance in the cluster.
Starting with Amazon EMR version 5.23.0, the only supported instance role is MASTER
.
placement_strategy: Option<String>
EC2 Placement Group strategy associated with instance role.
Starting with Amazon EMR version 5.23.0, the only supported placement strategy is SPREAD
for the MASTER
instance role.
Trait Implementations§
Source§impl Clone for PlacementGroupConfig
impl Clone for PlacementGroupConfig
Source§fn clone(&self) -> PlacementGroupConfig
fn clone(&self) -> PlacementGroupConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PlacementGroupConfig
impl Debug for PlacementGroupConfig
Source§impl Default for PlacementGroupConfig
impl Default for PlacementGroupConfig
Source§fn default() -> PlacementGroupConfig
fn default() -> PlacementGroupConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PlacementGroupConfig
impl<'de> Deserialize<'de> for PlacementGroupConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PlacementGroupConfig
impl PartialEq for PlacementGroupConfig
Source§impl Serialize for PlacementGroupConfig
impl Serialize for PlacementGroupConfig
impl StructuralPartialEq for PlacementGroupConfig
Auto Trait Implementations§
impl Freeze for PlacementGroupConfig
impl RefUnwindSafe for PlacementGroupConfig
impl Send for PlacementGroupConfig
impl Sync for PlacementGroupConfig
impl Unpin for PlacementGroupConfig
impl UnwindSafe for PlacementGroupConfig
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
Mutably borrows from an owned value. Read more