pub(crate) fn type_erase_result<O, E>(
result: ::std::result::Result<O, E>,
) -> ::std::result::Result<
::aws_smithy_runtime_api::client::interceptors::context::Output,
::aws_smithy_runtime_api::client::orchestrator::OrchestratorError<::aws_smithy_runtime_api::client::interceptors::context::Error>,
>
where
O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
E: ::std::error::Error + std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
{
result
.map(|output| ::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
.map_err(|error| ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(error))
.map_err(::std::convert::Into::into)
}
pub fn parse_http_error_metadata(
_response_status: u16,
response_headers: &::aws_smithy_runtime_api::http::Headers,
response_body: &[u8],
) -> ::std::result::Result<::aws_smithy_types::error::metadata::Builder, ::aws_smithy_json::deserialize::error::DeserializeError> {
crate::json_errors::parse_error_metadata(response_body, response_headers)
}
pub(crate) mod shape_create_profile;
pub(crate) mod shape_create_profile_entry;
pub(crate) mod shape_delete_profile;
pub(crate) mod shape_delete_profile_entry;
pub(crate) mod shape_get_extension;
pub(crate) mod shape_get_profile;
pub(crate) mod shape_get_profile_entry;
pub(crate) mod shape_list_extension_versions;
pub(crate) mod shape_list_extensions;
pub(crate) mod shape_list_profile_entries;
pub(crate) mod shape_list_profiles;
pub(crate) mod shape_list_tags_for_resource;
pub(crate) mod shape_tag_resource;
pub(crate) mod shape_untag_resource;
pub(crate) mod shape_update_profile;
pub(crate) mod shape_update_profile_entry;
pub(crate) fn or_empty_doc(data: &[u8]) -> &[u8] {
if data.is_empty() {
b"{}"
} else {
data
}
}
pub(crate) mod shape_access_denied_exception;
pub(crate) mod shape_conflict_exception;
pub(crate) mod shape_create_profile_entry_input;
pub(crate) mod shape_create_profile_input;
pub(crate) mod shape_internal_server_exception;
pub(crate) mod shape_resource_not_found_exception;
pub(crate) mod shape_service_quota_exceeded_exception;
pub(crate) mod shape_tag_resource_input;
pub(crate) mod shape_throttling_exception;
pub(crate) mod shape_update_profile_entry_input;
pub(crate) mod shape_update_profile_input;
pub(crate) mod shape_validation_exception;
pub(crate) mod shape_approved_capabilities;
pub(crate) mod shape_conflict;
pub(crate) mod shape_extension_configuration;
pub(crate) mod shape_extension_defaults;
pub(crate) mod shape_extension_summaries;
pub(crate) mod shape_interface_options;
pub(crate) mod shape_interface_options_map;
pub(crate) mod shape_profile_entry_summaries;
pub(crate) mod shape_profile_summaries;
pub(crate) mod shape_tag_map;
pub(crate) mod shape_validation_errors;
pub(crate) mod shape_version_policy;
pub(crate) mod shape_capability_definition;
pub(crate) mod shape_capability_list;
pub(crate) mod shape_dependency_state_conflict;
pub(crate) mod shape_duplicate_value_conflict;
pub(crate) mod shape_extension_summary;
pub(crate) mod shape_http_interface_options;
pub(crate) mod shape_interface_defaults;
pub(crate) mod shape_interface_list;
pub(crate) mod shape_profile_entry_summary;
pub(crate) mod shape_profile_summary;
pub(crate) mod shape_resource_state_conflict;
pub(crate) mod shape_setting_list;
pub(crate) mod shape_validation_error;
pub(crate) mod shape_authentication;
pub(crate) mod shape_aws_service_capability;
pub(crate) mod shape_capability;
pub(crate) mod shape_exec_capability;
pub(crate) mod shape_field_constraint;
pub(crate) mod shape_file_system_capability;
pub(crate) mod shape_http_interface_defaults;
pub(crate) mod shape_interface;
pub(crate) mod shape_semantic_error;
pub(crate) mod shape_setting;
pub(crate) mod shape_arg_list;
pub(crate) mod shape_constraint_value_sources;
pub(crate) mod shape_extension_key;
pub(crate) mod shape_map_service_to_operation_list;
pub(crate) mod shape_path_list;
pub(crate) mod shape_runtime_credentials;
pub(crate) mod shape_setting_definition;
pub(crate) mod shape_array_setting;
pub(crate) mod shape_boolean_setting;
pub(crate) mod shape_float_setting;
pub(crate) mod shape_group_setting;
pub(crate) mod shape_integer_setting;
pub(crate) mod shape_operation_list;
pub(crate) mod shape_secret_key;
pub(crate) mod shape_string_setting;
pub(crate) mod shape_string_enum_list;