1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`PutAutoScalingPolicy`](crate::operation::put_auto_scaling_policy::builders::PutAutoScalingPolicyFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`cluster_id(impl Into<String>)`](crate::operation::put_auto_scaling_policy::builders::PutAutoScalingPolicyFluentBuilder::cluster_id) / [`set_cluster_id(Option<String>)`](crate::operation::put_auto_scaling_policy::builders::PutAutoScalingPolicyFluentBuilder::set_cluster_id): <p>Specifies the ID of a cluster. The instance group to which the automatic scaling policy is applied is within this cluster.</p>
    ///   - [`instance_group_id(impl Into<String>)`](crate::operation::put_auto_scaling_policy::builders::PutAutoScalingPolicyFluentBuilder::instance_group_id) / [`set_instance_group_id(Option<String>)`](crate::operation::put_auto_scaling_policy::builders::PutAutoScalingPolicyFluentBuilder::set_instance_group_id): <p>Specifies the ID of the instance group to which the automatic scaling policy is applied.</p>
    ///   - [`auto_scaling_policy(AutoScalingPolicy)`](crate::operation::put_auto_scaling_policy::builders::PutAutoScalingPolicyFluentBuilder::auto_scaling_policy) / [`set_auto_scaling_policy(Option<AutoScalingPolicy>)`](crate::operation::put_auto_scaling_policy::builders::PutAutoScalingPolicyFluentBuilder::set_auto_scaling_policy): <p>Specifies the definition of the automatic scaling policy.</p>
    /// - On success, responds with [`PutAutoScalingPolicyOutput`](crate::operation::put_auto_scaling_policy::PutAutoScalingPolicyOutput) with field(s):
    ///   - [`cluster_id(Option<String>)`](crate::operation::put_auto_scaling_policy::PutAutoScalingPolicyOutput::cluster_id): <p>Specifies the ID of a cluster. The instance group to which the automatic scaling policy is applied is within this cluster.</p>
    ///   - [`instance_group_id(Option<String>)`](crate::operation::put_auto_scaling_policy::PutAutoScalingPolicyOutput::instance_group_id): <p>Specifies the ID of the instance group to which the scaling policy is applied.</p>
    ///   - [`auto_scaling_policy(Option<AutoScalingPolicyDescription>)`](crate::operation::put_auto_scaling_policy::PutAutoScalingPolicyOutput::auto_scaling_policy): <p>The automatic scaling policy definition.</p>
    ///   - [`cluster_arn(Option<String>)`](crate::operation::put_auto_scaling_policy::PutAutoScalingPolicyOutput::cluster_arn): <p>The Amazon Resource Name (ARN) of the cluster.</p>
    /// - On failure, responds with [`SdkError<PutAutoScalingPolicyError>`](crate::operation::put_auto_scaling_policy::PutAutoScalingPolicyError)
    pub fn put_auto_scaling_policy(&self) -> crate::operation::put_auto_scaling_policy::builders::PutAutoScalingPolicyFluentBuilder {
        crate::operation::put_auto_scaling_policy::builders::PutAutoScalingPolicyFluentBuilder::new(self.handle.clone())
    }
}