Struct aws_sdk_emr::model::instance_group_config::Builder
source · [−]#[non_exhaustive]pub struct Builder { /* private fields */ }Expand description
A builder for InstanceGroupConfig
Implementations
sourceimpl Builder
impl Builder
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
Friendly name given to the instance group.
sourcepub fn market(self, input: MarketType) -> Self
pub fn market(self, input: MarketType) -> Self
Market type of the EC2 instances used to create a cluster node.
sourcepub fn set_market(self, input: Option<MarketType>) -> Self
pub fn set_market(self, input: Option<MarketType>) -> Self
Market type of the EC2 instances used to create a cluster node.
sourcepub fn instance_role(self, input: InstanceRoleType) -> Self
pub fn instance_role(self, input: InstanceRoleType) -> Self
The role of the instance group in the cluster.
sourcepub fn set_instance_role(self, input: Option<InstanceRoleType>) -> Self
pub fn set_instance_role(self, input: Option<InstanceRoleType>) -> Self
The role of the instance group in the cluster.
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 instance_count(self, input: i32) -> Self
pub fn instance_count(self, input: i32) -> Self
Target number of instances for the instance group.
sourcepub fn set_instance_count(self, input: Option<i32>) -> Self
pub fn set_instance_count(self, input: Option<i32>) -> Self
Target number of instances for 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 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 EMR cluster instance group. You can specify a separate configuration for each instance group (master, core, and task).
sourcepub fn ebs_configuration(self, input: EbsConfiguration) -> Self
pub fn ebs_configuration(self, input: EbsConfiguration) -> Self
EBS configurations that will be attached to each EC2 instance in the instance group.
sourcepub fn set_ebs_configuration(self, input: Option<EbsConfiguration>) -> Self
pub fn set_ebs_configuration(self, input: Option<EbsConfiguration>) -> Self
EBS configurations that will be attached to each EC2 instance in the instance group.
sourcepub fn auto_scaling_policy(self, input: AutoScalingPolicy) -> Self
pub fn auto_scaling_policy(self, input: AutoScalingPolicy) -> 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<AutoScalingPolicy>) -> Self
pub fn set_auto_scaling_policy(self, input: Option<AutoScalingPolicy>) -> 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) -> InstanceGroupConfig
pub fn build(self) -> InstanceGroupConfig
Consumes the builder and constructs a InstanceGroupConfig
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