pub struct PutAutoTerminationPolicy { /* private fields */ }Expand description
Fluent builder constructing a request to PutAutoTerminationPolicy.
Auto-termination is supported in Amazon EMR versions 5.30.0 and 6.1.0 and later. For more information, see Using an auto-termination policy.
Creates or updates an auto-termination policy for an Amazon EMR cluster. An auto-termination policy defines the amount of idle time in seconds after which a cluster automatically terminates. For alternative cluster termination options, see Control cluster termination.
Implementations§
source§impl PutAutoTerminationPolicy
impl PutAutoTerminationPolicy
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<PutAutoTerminationPolicy, AwsResponseRetryClassifier>, SdkError<PutAutoTerminationPolicyError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<PutAutoTerminationPolicy, AwsResponseRetryClassifier>, SdkError<PutAutoTerminationPolicyError>>
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<PutAutoTerminationPolicyOutput, SdkError<PutAutoTerminationPolicyError>>
pub async fn send(
self
) -> Result<PutAutoTerminationPolicyOutput, SdkError<PutAutoTerminationPolicyError>>
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 the Amazon EMR cluster to which the auto-termination policy will be attached.
sourcepub fn set_cluster_id(self, input: Option<String>) -> Self
pub fn set_cluster_id(self, input: Option<String>) -> Self
Specifies the ID of the Amazon EMR cluster to which the auto-termination policy will be attached.
sourcepub fn auto_termination_policy(self, input: AutoTerminationPolicy) -> Self
pub fn auto_termination_policy(self, input: AutoTerminationPolicy) -> Self
Specifies the auto-termination policy to attach to the cluster.
sourcepub fn set_auto_termination_policy(
self,
input: Option<AutoTerminationPolicy>
) -> Self
pub fn set_auto_termination_policy(
self,
input: Option<AutoTerminationPolicy>
) -> Self
Specifies the auto-termination policy to attach to the cluster.
Trait Implementations§
source§impl Clone for PutAutoTerminationPolicy
impl Clone for PutAutoTerminationPolicy
source§fn clone(&self) -> PutAutoTerminationPolicy
fn clone(&self) -> PutAutoTerminationPolicy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more