InstanceGroup

Struct InstanceGroup 

Source
pub struct InstanceGroup {
Show 17 fields pub auto_scaling_policy: Option<AutoScalingPolicyDescription>, pub bid_price: Option<String>, pub configurations: Option<Vec<Configuration>>, pub configurations_version: Option<i64>, pub ebs_block_devices: Option<Vec<EbsBlockDevice>>, pub ebs_optimized: Option<bool>, pub id: Option<String>, pub instance_group_type: Option<String>, pub instance_type: Option<String>, pub last_successfully_applied_configurations: Option<Vec<Configuration>>, pub last_successfully_applied_configurations_version: Option<i64>, pub market: Option<String>, pub name: Option<String>, pub requested_instance_count: Option<i64>, pub running_instance_count: Option<i64>, pub shrink_policy: Option<ShrinkPolicy>, pub status: Option<InstanceGroupStatus>,
}
Expand description

This entity represents an instance group, which is a group of instances that have common purpose. For example, CORE instance group is used for HDFS.

Fields§

§auto_scaling_policy: Option<AutoScalingPolicyDescription>

An automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster. The automatic scaling policy defines how an instance group dynamically adds and terminates EC2 instances in response to the value of a CloudWatch metric. See PutAutoScalingPolicy.

§bid_price: Option<String>

The bid price for each EC2 Spot instance type as defined by InstanceType. Expressed in USD. If neither BidPrice nor BidPriceAsPercentageOfOnDemandPrice is provided, BidPriceAsPercentageOfOnDemandPrice defaults to 100%.

§configurations: Option<Vec<Configuration>>

Amazon EMR releases 4.x or later.

The list of configurations supplied for an EMR cluster instance group. You can specify a separate configuration for each instance group (master, core, and task).

§configurations_version: Option<i64>

The version number of the requested configuration specification for this instance group.

§ebs_block_devices: Option<Vec<EbsBlockDevice>>

The EBS block devices that are mapped to this instance group.

§ebs_optimized: Option<bool>

If the instance group is EBS-optimized. An Amazon EBS-optimized instance uses an optimized configuration stack and provides additional, dedicated capacity for Amazon EBS I/O.

§id: Option<String>

The identifier of the instance group.

§instance_group_type: Option<String>

The type of the instance group. Valid values are MASTER, CORE or TASK.

§instance_type: Option<String>

The EC2 instance type for all instances in the instance group.

§last_successfully_applied_configurations: Option<Vec<Configuration>>

A list of configurations that were successfully applied for an instance group last time.

§last_successfully_applied_configurations_version: Option<i64>

The version number of a configuration specification that was successfully applied for an instance group last time.

§market: Option<String>

The marketplace to provision instances for this group. Valid values are ON_DEMAND or SPOT.

§name: Option<String>

The name of the instance group.

§requested_instance_count: Option<i64>

The target number of instances for the instance group.

§running_instance_count: Option<i64>

The number of instances currently running in this instance group.

§shrink_policy: Option<ShrinkPolicy>

Policy for customizing shrink operations.

§status: Option<InstanceGroupStatus>

The current status of the instance group.

Trait Implementations§

Source§

impl Clone for InstanceGroup

Source§

fn clone(&self) -> InstanceGroup

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for InstanceGroup

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for InstanceGroup

Source§

fn default() -> InstanceGroup

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for InstanceGroup

Source§

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 InstanceGroup

Source§

fn eq(&self, other: &InstanceGroup) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for InstanceGroup

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,