Struct aws_sdk_emr::operation::put_auto_termination_policy::builders::PutAutoTerminationPolicyFluentBuilder
source · pub struct PutAutoTerminationPolicyFluentBuilder { /* private fields */ }Expand description
Fluent builder constructing a request to PutAutoTerminationPolicy.
Auto-termination is supported in Amazon EMR releases 5.30.0 and 6.1.0 and higher. 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 PutAutoTerminationPolicyFluentBuilder
impl PutAutoTerminationPolicyFluentBuilder
sourcepub fn as_input(&self) -> &PutAutoTerminationPolicyInputBuilder
pub fn as_input(&self) -> &PutAutoTerminationPolicyInputBuilder
Access the PutAutoTerminationPolicy as a reference.
sourcepub async fn send(
self
) -> Result<PutAutoTerminationPolicyOutput, SdkError<PutAutoTerminationPolicyError, HttpResponse>>
pub async fn send( self ) -> Result<PutAutoTerminationPolicyOutput, SdkError<PutAutoTerminationPolicyError, 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<PutAutoTerminationPolicyOutput, PutAutoTerminationPolicyError, Self>
pub fn customize( self ) -> CustomizableOperation<PutAutoTerminationPolicyOutput, PutAutoTerminationPolicyError, 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 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 get_cluster_id(&self) -> &Option<String>
pub fn get_cluster_id(&self) -> &Option<String>
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.
sourcepub fn get_auto_termination_policy(&self) -> &Option<AutoTerminationPolicy>
pub fn get_auto_termination_policy(&self) -> &Option<AutoTerminationPolicy>
Specifies the auto-termination policy to attach to the cluster.
Trait Implementations§
source§impl Clone for PutAutoTerminationPolicyFluentBuilder
impl Clone for PutAutoTerminationPolicyFluentBuilder
source§fn clone(&self) -> PutAutoTerminationPolicyFluentBuilder
fn clone(&self) -> PutAutoTerminationPolicyFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more