Struct aws_sdk_emr::operation::put_auto_scaling_policy::builders::PutAutoScalingPolicyFluentBuilder
source · pub struct PutAutoScalingPolicyFluentBuilder { /* 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 Amazon EC2 instances in response to the value of a CloudWatch metric.
Implementations§
source§impl PutAutoScalingPolicyFluentBuilder
impl PutAutoScalingPolicyFluentBuilder
sourcepub fn as_input(&self) -> &PutAutoScalingPolicyInputBuilder
pub fn as_input(&self) -> &PutAutoScalingPolicyInputBuilder
Access the PutAutoScalingPolicy as a reference.
sourcepub async fn send(
self
) -> Result<PutAutoScalingPolicyOutput, SdkError<PutAutoScalingPolicyError, HttpResponse>>
pub async fn send( self ) -> Result<PutAutoScalingPolicyOutput, SdkError<PutAutoScalingPolicyError, HttpResponse>>
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 customize(
self
) -> CustomizableOperation<PutAutoScalingPolicyOutput, PutAutoScalingPolicyError, Self>
pub fn customize( self ) -> CustomizableOperation<PutAutoScalingPolicyOutput, PutAutoScalingPolicyError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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 get_cluster_id(&self) -> &Option<String>
pub fn get_cluster_id(&self) -> &Option<String>
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 get_instance_group_id(&self) -> &Option<String>
pub fn get_instance_group_id(&self) -> &Option<String>
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.
sourcepub fn get_auto_scaling_policy(&self) -> &Option<AutoScalingPolicy>
pub fn get_auto_scaling_policy(&self) -> &Option<AutoScalingPolicy>
Specifies the definition of the automatic scaling policy.
Trait Implementations§
source§impl Clone for PutAutoScalingPolicyFluentBuilder
impl Clone for PutAutoScalingPolicyFluentBuilder
source§fn clone(&self) -> PutAutoScalingPolicyFluentBuilder
fn clone(&self) -> PutAutoScalingPolicyFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more