/// <p>Returns the list of severity levels that you can assign to an AWS Support case. The severity level for a case is also a field in the <a>CaseDetails</a> data type included in any <a>CreateCase</a> request. </p>
Returns the list of severity levels that you can assign to an AWS Support case. The severity level for a case is also a field in the CaseDetails data type included in any CreateCase request.
Returns the list of severity levels that you can assign to an AWS Support case . The severity level for a case is also a field in the CaseDetails data type included in any CreateCase request .
fn describe_severity_levels(
        &self,
        input: DescribeSeverityLevelsRequest,
    ) -> RusotoFuture<DescribeSeverityLevelsResponse, DescribeSeverityLevelsError> {
        let mut request = SignedRequest::new("POST", "support", &self.region, "/");
        request.set_content_type("application/x-amz-json-1.1".to_owned());
        request.add_header("x-amz-target", "AWSSupport_20130415.DescribeSeverityLevels");
        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::<DescribeSeverityLevelsResponse, _>()
                }))
            } else {
                Box::new(
                    response.buffer().from_err().and_then(|response| {
                        Err(DescribeSeverityLevelsError::from_response(response))
                    }),
                )
            }
        })
    }
fn describe_severity_levels ( & self , input : DescribeSeverityLevelsRequest , ) -> RusotoFuture < DescribeSeverityLevelsResponse , DescribeSeverityLevelsError > { let mut request = SignedRequest :: new ( " " , " " , & self . region , " " ) ; 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 :: < DescribeSeverityLevelsResponse , _ > ( ) } ) ) } else { Box :: new ( response . buffer ( ) . from_err ( ) . and_then ( | response | { Err ( DescribeSeverityLevelsError :: from_response ( response ) ) } ) , ) } } ) }
<p>Returns the list of severity levels that you can assign to an AWS Support case.
<p > Returns the list of severity levels that you can assign to an AWS Support case .
&self
input
DescribeSeverityLevelsRequest