fn delete_scaling_policy(
        &self,
        input: DeleteScalingPolicyRequest,
    ) -> RusotoFuture<DeleteScalingPolicyResponse, DeleteScalingPolicyError> {
        let mut request = SignedRequest::new("POST", "application-autoscaling", &self.region, "/");
        request.set_endpoint_prefix("autoscaling".to_string());
        request.set_content_type("application/x-amz-json-1.1".to_owned());
        request.add_header(
            "x-amz-target",
            "AnyScaleFrontendService.DeleteScalingPolicy",
        );
        let encoded = serde_json::to_string(&input).unwrap();
        request.set_payload(Some(encoded));

        self.client.sign_and_dispatch(request, |response| {
            if response.status.is_success() {
                Box::new(response.buffer().from_err().and_then(|response| {
                    proto::json::ResponsePayload::new(&response)
                        .deserialize::<DeleteScalingPolicyResponse, _>()
                }))
            } else {
                Box::new(
                    response.buffer().from_err().and_then(|response| {
                        Err(DeleteScalingPolicyError::from_response(response))
                    }),
                )
            }
        })
    }
/// <p>Deletes the specified scaling policy for an Application Auto Scaling scalable target.</p> <p>Deleting a step scaling policy deletes the underlying alarm action, but does not delete the CloudWatch alarm associated with the scaling policy, even if it no longer has an associated action.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-step-scaling-policies.html#delete-step-scaling-policy">Delete a Step Scaling Policy</a> and <a href="https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-target-tracking.html#delete-target-tracking-policy">Delete a Target Tracking Scaling Policy</a> in the <i>Application Auto Scaling User Guide</i>.</p> <p>To create a scaling policy or update an existing one, see <a>PutScalingPolicy</a>.</p>
Deletes the specified scaling policy for an Application Auto Scaling scalable target. Deleting a step scaling policy deletes the underlying alarm action, but does not delete the CloudWatch alarm associated with the scaling policy, even if it no longer has an associated action. For more information, see Delete a Step Scaling Policy and Delete a Target Tracking Scaling Policy in the Application Auto Scaling User Guide. To create a scaling policy or update an existing one, see PutScalingPolicy.
Deletes the specified scaling policy for an Application Auto Scaling scalable target . Deleting a step scaling policy deletes the underlying alarm action but does not delete the CloudWatch alarm associated with the scaling policy even if it no longer has an associated action . For more information see Delete a Step Scaling Policy and Delete a Target Tracking Scaling Policy in the Application Auto Scaling User Guide . To create a scaling policy or update an existing one see PutScalingPolicy .
fn delete_scaling_policy(
        &self,
        input: DeleteScalingPolicyRequest,
    ) -> RusotoFuture<DeleteScalingPolicyResponse, DeleteScalingPolicyError> {
        let mut request = SignedRequest::new("POST", "application-autoscaling", &self.region, "/");
        request.set_endpoint_prefix("autoscaling".to_string());
        request.set_content_type("application/x-amz-json-1.1".to_owned());
        request.add_header(
            "x-amz-target",
            "AnyScaleFrontendService.DeleteScalingPolicy",
        );
        let encoded = serde_json::to_string(&input).unwrap();
        request.set_payload(Some(encoded));
        self.client.sign_and_dispatch(request, |response| {
            if response.status.is_success() {
                Box::new(response.buffer().from_err().and_then(|response| {
                    proto::json::ResponsePayload::new(&response)
                        .deserialize::<DeleteScalingPolicyResponse, _>()
                }))
            } else {
                Box::new(
                    response.buffer().from_err().and_then(|response| {
                        Err(DeleteScalingPolicyError::from_response(response))
                    }),
                )
            }
        })
    }
fn delete_scaling_policy ( & self , input : DeleteScalingPolicyRequest , ) -> RusotoFuture < DeleteScalingPolicyResponse , DeleteScalingPolicyError > { let mut request = SignedRequest :: new ( " " , " " , & self . region , " " ) ; request . set_endpoint_prefix ( " " . to_string ( ) ) ; request . set_content_type ( " " . to_owned ( ) ) ; request . add_header ( " " , " " , ) ; let encoded = serde_json :: to_string ( & input ) . unwrap ( ) ; request . set_payload ( Some ( encoded ) ) ; self . client . sign_and_dispatch ( request , | response | { if response . status . is_success ( ) { Box :: new ( response . buffer ( ) . from_err ( ) . and_then ( | response | { proto :: json :: ResponsePayload :: new ( & response ) . deserialize :: < DeleteScalingPolicyResponse , _ > ( ) } ) ) } else { Box :: new ( response . buffer ( ) . from_err ( ) . and_then ( | response | { Err ( DeleteScalingPolicyError :: from_response ( response ) ) } ) , ) } } ) }
<p>Deletes the specified scaling policy for an Application Auto Scaling scalable target.</p> <p>Deleting a step scaling policy deletes the underlying alarm action, but does not delete the CloudWatch alarm associated with the scaling policy, even if it no longer has an associated action.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-step-scaling-policies.html#delete-step-scaling-policy">Delete a Step Scaling Policy</a> and <a href="https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-target-tracking.html#delete-target-tracking-policy">Delete a Target Tracking Scaling Policy</a> in the <i>Application Auto Scaling User Guide</i>.</p> <p>To create a scaling policy or update an existing one, see <a>PutScalingPolicy</a>.</p>
<p > Deletes the specified scaling policy for an Application Auto Scaling scalable target . < / p > <p > Deleting a step scaling policy deletes the underlying alarm action but does not delete the CloudWatch alarm associated with the scaling policy even if it no longer has an associated action . < / p > <p > For more information see <a href = " https : // docs . aws . amazon . com / autoscaling / application / userguide / application - auto - scaling - step - scaling - policies . html#delete - step - scaling - policy " > Delete a Step Scaling Policy< / a > and <a href = " https : // docs . aws . amazon . com / autoscaling / application / userguide / application - auto - scaling - target - tracking . html#delete - target - tracking - policy " > Delete a Target Tracking Scaling Policy< / a > in the <i > Application Auto Scaling User Guide< / i > . < / p > <p > To create a scaling policy or update an existing one see <a > PutScalingPolicy< / a > . < / p >
&self
input
DeleteScalingPolicyRequest
&self
input
DeleteScalingPolicyRequest