Struct aws_sdk_emr::model::instance_group::Builder
source · [−]#[non_exhaustive]pub struct Builder { /* private fields */ }Expand description
A builder for InstanceGroup
Implementations
sourceimpl Builder
impl Builder
sourcepub fn market(self, input: MarketType) -> Self
pub fn market(self, input: MarketType) -> Self
The marketplace to provision instances for this group. Valid values are ON_DEMAND or SPOT.
sourcepub fn set_market(self, input: Option<MarketType>) -> Self
pub fn set_market(self, input: Option<MarketType>) -> Self
The marketplace to provision instances for this group. Valid values are ON_DEMAND or SPOT.
sourcepub fn instance_group_type(self, input: InstanceGroupType) -> Self
pub fn instance_group_type(self, input: InstanceGroupType) -> Self
The type of the instance group. Valid values are MASTER, CORE or TASK.
sourcepub fn set_instance_group_type(self, input: Option<InstanceGroupType>) -> Self
pub fn set_instance_group_type(self, input: Option<InstanceGroupType>) -> Self
The type of the instance group. Valid values are MASTER, CORE or TASK.
sourcepub fn bid_price(self, input: impl Into<String>) -> Self
pub fn bid_price(self, input: impl Into<String>) -> Self
If specified, indicates that the instance group uses Spot Instances. This is the maximum price you are willing to pay for Spot Instances. Specify OnDemandPrice to set the amount equal to the On-Demand price, or specify an amount in USD.
sourcepub fn set_bid_price(self, input: Option<String>) -> Self
pub fn set_bid_price(self, input: Option<String>) -> Self
If specified, indicates that the instance group uses Spot Instances. This is the maximum price you are willing to pay for Spot Instances. Specify OnDemandPrice to set the amount equal to the On-Demand price, or specify an amount in USD.
sourcepub fn instance_type(self, input: impl Into<String>) -> Self
pub fn instance_type(self, input: impl Into<String>) -> Self
The EC2 instance type for all instances in the instance group.
sourcepub fn set_instance_type(self, input: Option<String>) -> Self
pub fn set_instance_type(self, input: Option<String>) -> Self
The EC2 instance type for all instances in the instance group.
sourcepub fn requested_instance_count(self, input: i32) -> Self
pub fn requested_instance_count(self, input: i32) -> Self
The target number of instances for the instance group.
sourcepub fn set_requested_instance_count(self, input: Option<i32>) -> Self
pub fn set_requested_instance_count(self, input: Option<i32>) -> Self
The target number of instances for the instance group.
sourcepub fn running_instance_count(self, input: i32) -> Self
pub fn running_instance_count(self, input: i32) -> Self
The number of instances currently running in this instance group.
sourcepub fn set_running_instance_count(self, input: Option<i32>) -> Self
pub fn set_running_instance_count(self, input: Option<i32>) -> Self
The number of instances currently running in this instance group.
sourcepub fn status(self, input: InstanceGroupStatus) -> Self
pub fn status(self, input: InstanceGroupStatus) -> Self
The current status of the instance group.
sourcepub fn set_status(self, input: Option<InstanceGroupStatus>) -> Self
pub fn set_status(self, input: Option<InstanceGroupStatus>) -> Self
The current status of the instance group.
sourcepub fn configurations(self, input: Configuration) -> Self
pub fn configurations(self, input: Configuration) -> Self
Appends an item to configurations.
To override the contents of this collection use set_configurations.
Amazon EMR releases 4.x or later.
The list of configurations supplied for an Amazon EMR cluster instance group. You can specify a separate configuration for each instance group (master, core, and task).
sourcepub fn set_configurations(self, input: Option<Vec<Configuration>>) -> Self
pub fn set_configurations(self, input: Option<Vec<Configuration>>) -> Self
Amazon EMR releases 4.x or later.
The list of configurations supplied for an Amazon EMR cluster instance group. You can specify a separate configuration for each instance group (master, core, and task).
sourcepub fn configurations_version(self, input: i64) -> Self
pub fn configurations_version(self, input: i64) -> Self
The version number of the requested configuration specification for this instance group.
sourcepub fn set_configurations_version(self, input: Option<i64>) -> Self
pub fn set_configurations_version(self, input: Option<i64>) -> Self
The version number of the requested configuration specification for this instance group.
sourcepub fn last_successfully_applied_configurations(
self,
input: Configuration
) -> Self
pub fn last_successfully_applied_configurations(
self,
input: Configuration
) -> Self
Appends an item to last_successfully_applied_configurations.
To override the contents of this collection use set_last_successfully_applied_configurations.
A list of configurations that were successfully applied for an instance group last time.
sourcepub fn set_last_successfully_applied_configurations(
self,
input: Option<Vec<Configuration>>
) -> Self
pub fn set_last_successfully_applied_configurations(
self,
input: Option<Vec<Configuration>>
) -> Self
A list of configurations that were successfully applied for an instance group last time.
sourcepub fn last_successfully_applied_configurations_version(
self,
input: i64
) -> Self
pub fn last_successfully_applied_configurations_version(
self,
input: i64
) -> Self
The version number of a configuration specification that was successfully applied for an instance group last time.
sourcepub fn set_last_successfully_applied_configurations_version(
self,
input: Option<i64>
) -> Self
pub fn set_last_successfully_applied_configurations_version(
self,
input: Option<i64>
) -> Self
The version number of a configuration specification that was successfully applied for an instance group last time.
sourcepub fn ebs_block_devices(self, input: EbsBlockDevice) -> Self
pub fn ebs_block_devices(self, input: EbsBlockDevice) -> Self
Appends an item to ebs_block_devices.
To override the contents of this collection use set_ebs_block_devices.
The EBS block devices that are mapped to this instance group.
sourcepub fn set_ebs_block_devices(self, input: Option<Vec<EbsBlockDevice>>) -> Self
pub fn set_ebs_block_devices(self, input: Option<Vec<EbsBlockDevice>>) -> Self
The EBS block devices that are mapped to this instance group.
sourcepub fn ebs_optimized(self, input: bool) -> Self
pub fn ebs_optimized(self, input: bool) -> Self
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.
sourcepub fn set_ebs_optimized(self, input: Option<bool>) -> Self
pub fn set_ebs_optimized(self, input: Option<bool>) -> Self
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.
sourcepub fn shrink_policy(self, input: ShrinkPolicy) -> Self
pub fn shrink_policy(self, input: ShrinkPolicy) -> Self
Policy for customizing shrink operations.
sourcepub fn set_shrink_policy(self, input: Option<ShrinkPolicy>) -> Self
pub fn set_shrink_policy(self, input: Option<ShrinkPolicy>) -> Self
Policy for customizing shrink operations.
sourcepub fn auto_scaling_policy(self, input: AutoScalingPolicyDescription) -> Self
pub fn auto_scaling_policy(self, input: AutoScalingPolicyDescription) -> Self
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.
sourcepub fn set_auto_scaling_policy(
self,
input: Option<AutoScalingPolicyDescription>
) -> Self
pub fn set_auto_scaling_policy(
self,
input: Option<AutoScalingPolicyDescription>
) -> Self
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.
sourcepub fn custom_ami_id(self, input: impl Into<String>) -> Self
pub fn custom_ami_id(self, input: impl Into<String>) -> Self
The custom AMI ID to use for the provisioned instance group.
sourcepub fn set_custom_ami_id(self, input: Option<String>) -> Self
pub fn set_custom_ami_id(self, input: Option<String>) -> Self
The custom AMI ID to use for the provisioned instance group.
sourcepub fn build(self) -> InstanceGroup
pub fn build(self) -> InstanceGroup
Consumes the builder and constructs a InstanceGroup
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more