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_associate_api;
pub(crate) mod shape_associate_merged_graphql_api;
pub(crate) mod shape_associate_source_graphql_api;
pub(crate) mod shape_create_api;
pub(crate) mod shape_create_api_cache;
pub(crate) mod shape_create_api_key;
pub(crate) mod shape_create_channel_namespace;
pub(crate) mod shape_create_data_source;
pub(crate) mod shape_create_domain_name;
pub(crate) mod shape_create_function;
pub(crate) mod shape_create_graphql_api;
pub(crate) mod shape_create_resolver;
pub(crate) mod shape_create_type;
pub(crate) mod shape_delete_api;
pub(crate) mod shape_delete_api_cache;
pub(crate) mod shape_delete_api_key;
pub(crate) mod shape_delete_channel_namespace;
pub(crate) mod shape_delete_data_source;
pub(crate) mod shape_delete_domain_name;
pub(crate) mod shape_delete_function;
pub(crate) mod shape_delete_graphql_api;
pub(crate) mod shape_delete_resolver;
pub(crate) mod shape_delete_type;
pub(crate) mod shape_disassociate_api;
pub(crate) mod shape_disassociate_merged_graphql_api;
pub(crate) mod shape_disassociate_source_graphql_api;
pub(crate) mod shape_evaluate_code;
pub(crate) mod shape_evaluate_mapping_template;
pub(crate) mod shape_flush_api_cache;
pub(crate) mod shape_get_api;
pub(crate) mod shape_get_api_association;
pub(crate) mod shape_get_api_cache;
pub(crate) mod shape_get_channel_namespace;
pub(crate) mod shape_get_data_source;
pub(crate) mod shape_get_data_source_introspection;
pub(crate) mod shape_get_domain_name;
pub(crate) mod shape_get_function;
pub(crate) mod shape_get_graphql_api;
pub(crate) mod shape_get_graphql_api_environment_variables;
pub(crate) mod shape_get_introspection_schema;
pub(crate) mod shape_get_resolver;
pub(crate) mod shape_get_schema_creation_status;
pub(crate) mod shape_get_source_api_association;
pub(crate) mod shape_get_type;
pub(crate) mod shape_list_api_keys;
pub(crate) mod shape_list_apis;
pub(crate) mod shape_list_channel_namespaces;
pub(crate) mod shape_list_data_sources;
pub(crate) mod shape_list_domain_names;
pub(crate) mod shape_list_functions;
pub(crate) mod shape_list_graphql_apis;
pub(crate) mod shape_list_resolvers;
pub(crate) mod shape_list_resolvers_by_function;
pub(crate) mod shape_list_source_api_associations;
pub(crate) mod shape_list_tags_for_resource;
pub(crate) mod shape_list_types;
pub(crate) mod shape_list_types_by_association;
pub(crate) mod shape_put_graphql_api_environment_variables;
pub(crate) mod shape_start_data_source_introspection;
pub(crate) mod shape_start_schema_creation;
pub(crate) mod shape_start_schema_merge;
pub(crate) mod shape_tag_resource;
pub(crate) mod shape_untag_resource;
pub(crate) mod shape_update_api;
pub(crate) mod shape_update_api_cache;
pub(crate) mod shape_update_api_key;
pub(crate) mod shape_update_channel_namespace;
pub(crate) mod shape_update_data_source;
pub(crate) mod shape_update_domain_name;
pub(crate) mod shape_update_function;
pub(crate) mod shape_update_graphql_api;
pub(crate) mod shape_update_resolver;
pub(crate) mod shape_update_source_api_association;
pub(crate) mod shape_update_type;
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_api_key_limit_exceeded_exception;
pub(crate) mod shape_api_key_validity_out_of_bounds_exception;
pub(crate) mod shape_api_limit_exceeded_exception;
pub(crate) mod shape_associate_api_input;
pub(crate) mod shape_associate_merged_graphql_api_input;
pub(crate) mod shape_associate_source_graphql_api_input;
pub(crate) mod shape_bad_request_exception;
pub(crate) mod shape_concurrent_modification_exception;
pub(crate) mod shape_conflict_exception;
pub(crate) mod shape_create_api_cache_input;
pub(crate) mod shape_create_api_input;
pub(crate) mod shape_create_api_key_input;
pub(crate) mod shape_create_channel_namespace_input;
pub(crate) mod shape_create_data_source_input;
pub(crate) mod shape_create_domain_name_input;
pub(crate) mod shape_create_function_input;
pub(crate) mod shape_create_graphql_api_input;
pub(crate) mod shape_create_resolver_input;
pub(crate) mod shape_create_type_input;
pub(crate) mod shape_evaluate_code_input;
pub(crate) mod shape_evaluate_mapping_template_input;
pub(crate) mod shape_get_introspection_schema_output;
pub(crate) mod shape_graph_ql_schema_exception;
pub(crate) mod shape_internal_failure_exception;
pub(crate) mod shape_limit_exceeded_exception;
pub(crate) mod shape_not_found_exception;
pub(crate) mod shape_put_graphql_api_environment_variables_input;
pub(crate) mod shape_service_quota_exceeded_exception;
pub(crate) mod shape_start_data_source_introspection_input;
pub(crate) mod shape_start_schema_creation_input;
pub(crate) mod shape_tag_resource_input;
pub(crate) mod shape_unauthorized_exception;
pub(crate) mod shape_update_api_cache_input;
pub(crate) mod shape_update_api_input;
pub(crate) mod shape_update_api_key_input;
pub(crate) mod shape_update_channel_namespace_input;
pub(crate) mod shape_update_data_source_input;
pub(crate) mod shape_update_domain_name_input;
pub(crate) mod shape_update_function_input;
pub(crate) mod shape_update_graphql_api_input;
pub(crate) mod shape_update_resolver_input;
pub(crate) mod shape_update_source_api_association_input;
pub(crate) mod shape_update_type_input;
pub(crate) mod shape_additional_authentication_provider;
pub(crate) mod shape_api;
pub(crate) mod shape_api_association;
pub(crate) mod shape_api_cache;
pub(crate) mod shape_api_key;
pub(crate) mod shape_api_keys;
pub(crate) mod shape_apis;
pub(crate) mod shape_app_sync_runtime;
pub(crate) mod shape_auth_mode;
pub(crate) mod shape_bad_request_detail;
pub(crate) mod shape_caching_config;
pub(crate) mod shape_channel_namespace;
pub(crate) mod shape_channel_namespaces;
pub(crate) mod shape_data_source;
pub(crate) mod shape_data_source_introspection_result;
pub(crate) mod shape_data_sources;
pub(crate) mod shape_domain_name_config;
pub(crate) mod shape_domain_name_configs;
pub(crate) mod shape_dynamodb_data_source_config;
pub(crate) mod shape_elasticsearch_data_source_config;
pub(crate) mod shape_enhanced_metrics_config;
pub(crate) mod shape_environment_variable_map;
pub(crate) mod shape_error_detail;
pub(crate) mod shape_evaluate_code_error_detail;
pub(crate) mod shape_event_bridge_data_source_config;
pub(crate) mod shape_event_config;
pub(crate) mod shape_function_configuration;
pub(crate) mod shape_functions;
pub(crate) mod shape_graphql_api;
pub(crate) mod shape_graphql_apis;
pub(crate) mod shape_handler_configs;
pub(crate) mod shape_http_data_source_config;
pub(crate) mod shape_lambda_authorizer_config;
pub(crate) mod shape_lambda_data_source_config;
pub(crate) mod shape_log_config;
pub(crate) mod shape_logs;
pub(crate) mod shape_open_id_connect_config;
pub(crate) mod shape_open_search_service_data_source_config;
pub(crate) mod shape_pipeline_config;
pub(crate) mod shape_rds_data_api_config;
pub(crate) mod shape_relational_database_data_source_config;
pub(crate) mod shape_resolver;
pub(crate) mod shape_resolvers;
pub(crate) mod shape_source_api_association;
pub(crate) mod shape_source_api_association_config;
pub(crate) mod shape_source_api_association_summary_list;
pub(crate) mod shape_sync_config;
pub(crate) mod shape_tag_map;
pub(crate) mod shape_type;
pub(crate) mod shape_type_list;
pub(crate) mod shape_user_pool_config;
pub(crate) mod shape_additional_authentication_providers;
pub(crate) mod shape_auth_modes;
pub(crate) mod shape_auth_provider;
pub(crate) mod shape_authorization_config;
pub(crate) mod shape_code_errors;
pub(crate) mod shape_cognito_user_pool_config;
pub(crate) mod shape_data_source_introspection_models;
pub(crate) mod shape_delta_sync_config;
pub(crate) mod shape_event_log_config;
pub(crate) mod shape_handler_config;
pub(crate) mod shape_lambda_conflict_handler_config;
pub(crate) mod shape_map_of_string_to_string;
pub(crate) mod shape_rds_http_endpoint_config;
pub(crate) mod shape_source_api_association_summary;
pub(crate) mod shape_auth_providers;
pub(crate) mod shape_aws_iam_config;
pub(crate) mod shape_caching_keys;
pub(crate) mod shape_code_error;
pub(crate) mod shape_cognito_config;
pub(crate) mod shape_data_source_introspection_model;
pub(crate) mod shape_functions_ids;
pub(crate) mod shape_integration;
pub(crate) mod shape_code_error_location;
pub(crate) mod shape_data_source_introspection_model_fields;
pub(crate) mod shape_data_source_introspection_model_index;
pub(crate) mod shape_data_source_introspection_model_indexes;
pub(crate) mod shape_lambda_config;
pub(crate) mod shape_data_source_introspection_model_field;
pub(crate) mod shape_data_source_introspection_model_index_fields;
pub(crate) mod shape_data_source_introspection_model_field_type;
pub(crate) mod shape_data_source_introspection_model_field_type_values;