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
9O: ::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}
1718pub 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> {
23crate::rest_xml_wrapped_errors::parse_error_metadata(response_body)
24}
2526pub(crate) mod shape_assume_role;
2728pub(crate) mod shape_assume_role_input;
2930pub(crate) mod shape_assume_role_with_saml;
3132pub(crate) mod shape_assume_role_with_saml_input;
3334pub(crate) mod shape_assume_role_with_web_identity;
3536pub(crate) mod shape_assume_role_with_web_identity_input;
3738pub(crate) mod shape_assume_root;
3940pub(crate) mod shape_assume_root_input;
4142pub(crate) mod shape_decode_authorization_message;
4344pub(crate) mod shape_decode_authorization_message_input;
4546pub(crate) mod shape_get_access_key_info;
4748pub(crate) mod shape_get_access_key_info_input;
4950pub(crate) mod shape_get_caller_identity;
5152pub(crate) mod shape_get_caller_identity_input;
5354pub(crate) mod shape_get_federation_token;
5556pub(crate) mod shape_get_federation_token_input;
5758pub(crate) mod shape_get_session_token;
5960pub(crate) mod shape_get_session_token_input;
6162pub(crate) mod shape_expired_token_exception;
6364pub(crate) mod shape_idp_communication_error_exception;
6566pub(crate) mod shape_idp_rejected_claim_exception;
6768pub(crate) mod shape_invalid_authorization_message_exception;
6970pub(crate) mod shape_invalid_identity_token_exception;
7172pub(crate) mod shape_malformed_policy_document_exception;
7374pub(crate) mod shape_packed_policy_too_large_exception;
7576pub(crate) mod shape_policy_descriptor_type;
7778pub(crate) mod shape_provided_context;
7980pub(crate) mod shape_region_disabled_exception;
8182pub(crate) mod shape_tag;
8384pub(crate) mod shape_assumed_role_user;
8586pub(crate) mod shape_credentials;
8788pub(crate) mod shape_federated_user;