aws_sdk_sts/
protocol_serde.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub(crate) fn type_erase_result<O, E>(
3    result: ::std::result::Result<O, E>,
4) -> ::std::result::Result<
5    ::aws_smithy_runtime_api::client::interceptors::context::Output,
6    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError<::aws_smithy_runtime_api::client::interceptors::context::Error>,
7>
8where
9    O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
10    E: ::std::error::Error + std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
11{
12    result
13        .map(|output| ::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
14        .map_err(|error| ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(error))
15        .map_err(::std::convert::Into::into)
16}
17
18pub fn parse_http_error_metadata(
19    _response_status: u16,
20    _response_headers: &::aws_smithy_runtime_api::http::Headers,
21    response_body: &[u8],
22) -> ::std::result::Result<::aws_smithy_types::error::metadata::Builder, ::aws_smithy_xml::decode::XmlDecodeError> {
23    crate::rest_xml_wrapped_errors::parse_error_metadata(response_body)
24}
25
26pub(crate) mod shape_assume_role;
27
28pub(crate) mod shape_assume_role_input;
29
30pub(crate) mod shape_assume_role_with_saml;
31
32pub(crate) mod shape_assume_role_with_saml_input;
33
34pub(crate) mod shape_assume_role_with_web_identity;
35
36pub(crate) mod shape_assume_role_with_web_identity_input;
37
38pub(crate) mod shape_assume_root;
39
40pub(crate) mod shape_assume_root_input;
41
42pub(crate) mod shape_decode_authorization_message;
43
44pub(crate) mod shape_decode_authorization_message_input;
45
46pub(crate) mod shape_get_access_key_info;
47
48pub(crate) mod shape_get_access_key_info_input;
49
50pub(crate) mod shape_get_caller_identity;
51
52pub(crate) mod shape_get_caller_identity_input;
53
54pub(crate) mod shape_get_federation_token;
55
56pub(crate) mod shape_get_federation_token_input;
57
58pub(crate) mod shape_get_session_token;
59
60pub(crate) mod shape_get_session_token_input;
61
62pub(crate) mod shape_expired_token_exception;
63
64pub(crate) mod shape_idp_communication_error_exception;
65
66pub(crate) mod shape_idp_rejected_claim_exception;
67
68pub(crate) mod shape_invalid_authorization_message_exception;
69
70pub(crate) mod shape_invalid_identity_token_exception;
71
72pub(crate) mod shape_malformed_policy_document_exception;
73
74pub(crate) mod shape_packed_policy_too_large_exception;
75
76pub(crate) mod shape_policy_descriptor_type;
77
78pub(crate) mod shape_provided_context;
79
80pub(crate) mod shape_region_disabled_exception;
81
82pub(crate) mod shape_tag;
83
84pub(crate) mod shape_assumed_role_user;
85
86pub(crate) mod shape_credentials;
87
88pub(crate) mod shape_federated_user;