/// <p>Registers or updates a scalable target. A scalable target is a resource that Application Auto Scaling can scale out and scale in. Scalable targets are uniquely identified by the combination of resource ID, scalable dimension, and namespace. </p> <p>When you register a new scalable target, you must specify values for minimum and maximum capacity. Application Auto Scaling will not scale capacity to values that are outside of this range. </p> <p>To update a scalable target, specify the parameter that you want to change as well as the following parameters that identify the scalable target: resource ID, scalable dimension, and namespace. Any parameters that you don't specify are not changed by this update request. </p> <p>After you register a scalable target, you do not need to register it again to use other Application Auto Scaling operations. To see which resources have been registered, use <a>DescribeScalableTargets</a>. You can also view the scaling policies for a service namespace by using <a>DescribeScalableTargets</a>. </p> <p>If you no longer need a scalable target, you can deregister it by using <a>DeregisterScalableTarget</a>.</p>
Registers or updates a scalable target. A scalable target is a resource that Application Auto Scaling can scale out and scale in. Scalable targets are uniquely identified by the combination of resource ID, scalable dimension, and namespace.  When you register a new scalable target, you must specify values for minimum and maximum capacity. Application Auto Scaling will not scale capacity to values that are outside of this range.  To update a scalable target, specify the parameter that you want to change as well as the following parameters that identify the scalable target: resource ID, scalable dimension, and namespace. Any parameters that you don't specify are not changed by this update request.  After you register a scalable target, you do not need to register it again to use other Application Auto Scaling operations. To see which resources have been registered, use DescribeScalableTargets. You can also view the scaling policies for a service namespace by using DescribeScalableTargets.  If you no longer need a scalable target, you can deregister it by using DeregisterScalableTarget.
Registers or updates a scalable target . A scalable target is a resource that Application Auto Scaling can scale out and scale in . Scalable targets are uniquely identified by the combination of resource ID scalable dimension and namespace . When you register a new scalable target you must specify values for minimum and maximum capacity . Application Auto Scaling will not scale capacity to values that are outside of this range . To update a scalable target specify the parameter that you want to change as well as the following parameters that identify the scalable target : resource ID scalable dimension and namespace . Any parameters that you don ' t specify are not changed by this update request . After you register a scalable target you do not need to register it again to use other Application Auto Scaling operations . To see which resources have been registered use DescribeScalableTargets . You can also view the scaling policies for a service namespace by using DescribeScalableTargets . If you no longer need a scalable target you can deregister it by using DeregisterScalableTarget .
fn register_scalable_target(
        &self,
        input: RegisterScalableTargetRequest,
    ) -> RusotoFuture<RegisterScalableTargetResponse, RegisterScalableTargetError> {
        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.RegisterScalableTarget",
        );
        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::<RegisterScalableTargetResponse, _>()
                }))
            } else {
                Box::new(
                    response.buffer().from_err().and_then(|response| {
                        Err(RegisterScalableTargetError::from_response(response))
                    }),
                )
            }
        })
    }
fn register_scalable_target ( & self , input : RegisterScalableTargetRequest , ) -> RusotoFuture < RegisterScalableTargetResponse , RegisterScalableTargetError > { 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 :: < RegisterScalableTargetResponse , _ > ( ) } ) ) } else { Box :: new ( response . buffer ( ) . from_err ( ) . and_then ( | response | { Err ( RegisterScalableTargetError :: from_response ( response ) ) } ) , ) } } ) }
<p>Registers or updates a scalable target.
<p > Registers or updates a scalable target .
&self
input
RegisterScalableTargetRequest