/// <p>Deregisters an Application Auto Scaling scalable target.</p> <p>Deregistering a scalable target deletes the scaling policies that are associated with it.</p> <p>To create a scalable target or update an existing one, see <a>RegisterScalableTarget</a>. </p>
Deregisters an Application Auto Scaling scalable target. Deregistering a scalable target deletes the scaling policies that are associated with it. To create a scalable target or update an existing one, see RegisterScalableTarget.
Deregisters an Application Auto Scaling scalable target . Deregistering a scalable target deletes the scaling policies that are associated with it . To create a scalable target or update an existing one see RegisterScalableTarget .
fn deregister_scalable_target(
        &self,
        input: DeregisterScalableTargetRequest,
    ) -> RusotoFuture<DeregisterScalableTargetResponse, DeregisterScalableTargetError> {
        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.DeregisterScalableTarget",
        );
        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::<DeregisterScalableTargetResponse, _>()
                }))
            } else {
                Box::new(response.buffer().from_err().and_then(|response| {
                    Err(DeregisterScalableTargetError::from_response(response))
                }))
            }
        })
    }
fn deregister_scalable_target ( & self , input : DeregisterScalableTargetRequest , ) -> RusotoFuture < DeregisterScalableTargetResponse , DeregisterScalableTargetError > { 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 :: < DeregisterScalableTargetResponse , _ > ( ) } ) ) } else { Box :: new ( response . buffer ( ) . from_err ( ) . and_then ( | response | { Err ( DeregisterScalableTargetError :: from_response ( response ) ) } ) ) } } ) }
<p>Deregisters an Application Auto Scaling scalable target.</p> <p>Deregistering a scalable target deletes the scaling policies that are associated with it.</p> <p>To create a scalable target or update an existing one, see <a>RegisterScalableTarget</a>.
<p > Deregisters an Application Auto Scaling scalable target . < / p > <p > Deregistering a scalable target deletes the scaling policies that are associated with it . < / p > <p > To create a scalable target or update an existing one see <a > RegisterScalableTarget< / a > .
&self
input
DeregisterScalableTargetRequest