Struct aws_sdk_emr::client::fluent_builders::PutAutoScalingPolicy
source · [−]pub struct PutAutoScalingPolicy { /* private fields */ }Expand description
Fluent builder constructing a request to PutAutoScalingPolicy.
Creates or updates 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.
Implementations
sourceimpl PutAutoScalingPolicy
impl PutAutoScalingPolicy
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<PutAutoScalingPolicy, AwsResponseRetryClassifier>, SdkError<PutAutoScalingPolicyError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<PutAutoScalingPolicy, AwsResponseRetryClassifier>, SdkError<PutAutoScalingPolicyError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<PutAutoScalingPolicyOutput, SdkError<PutAutoScalingPolicyError>>
pub async fn send(
self
) -> Result<PutAutoScalingPolicyOutput, SdkError<PutAutoScalingPolicyError>>
Sends the request and returns the response.
If an error occurs, an SdkError will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn cluster_id(self, input: impl Into<String>) -> Self
pub fn cluster_id(self, input: impl Into<String>) -> Self
Specifies the ID of a cluster. The instance group to which the automatic scaling policy is applied is within this cluster.
sourcepub fn set_cluster_id(self, input: Option<String>) -> Self
pub fn set_cluster_id(self, input: Option<String>) -> Self
Specifies the ID of a cluster. The instance group to which the automatic scaling policy is applied is within this cluster.
sourcepub fn instance_group_id(self, input: impl Into<String>) -> Self
pub fn instance_group_id(self, input: impl Into<String>) -> Self
Specifies the ID of the instance group to which the automatic scaling policy is applied.
sourcepub fn set_instance_group_id(self, input: Option<String>) -> Self
pub fn set_instance_group_id(self, input: Option<String>) -> Self
Specifies the ID of the instance group to which the automatic scaling policy is applied.
sourcepub fn auto_scaling_policy(self, input: AutoScalingPolicy) -> Self
pub fn auto_scaling_policy(self, input: AutoScalingPolicy) -> Self
Specifies the definition of the automatic scaling policy.
sourcepub fn set_auto_scaling_policy(self, input: Option<AutoScalingPolicy>) -> Self
pub fn set_auto_scaling_policy(self, input: Option<AutoScalingPolicy>) -> Self
Specifies the definition of the automatic scaling policy.
Trait Implementations
sourceimpl Clone for PutAutoScalingPolicy
impl Clone for PutAutoScalingPolicy
sourcefn clone(&self) -> PutAutoScalingPolicy
fn clone(&self) -> PutAutoScalingPolicy
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more