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_channel;
pub(crate) mod shape_associate_managed_notification_account_contact;
pub(crate) mod shape_associate_managed_notification_additional_channel;
pub(crate) mod shape_associate_organizational_unit;
pub(crate) mod shape_create_event_rule;
pub(crate) mod shape_create_notification_configuration;
pub(crate) mod shape_delete_event_rule;
pub(crate) mod shape_delete_notification_configuration;
pub(crate) mod shape_deregister_notification_hub;
pub(crate) mod shape_disable_notifications_access_for_organization;
pub(crate) mod shape_disassociate_channel;
pub(crate) mod shape_disassociate_managed_notification_account_contact;
pub(crate) mod shape_disassociate_managed_notification_additional_channel;
pub(crate) mod shape_disassociate_organizational_unit;
pub(crate) mod shape_enable_notifications_access_for_organization;
pub(crate) mod shape_get_event_rule;
pub(crate) mod shape_get_managed_notification_child_event;
pub(crate) mod shape_get_managed_notification_configuration;
pub(crate) mod shape_get_managed_notification_event;
pub(crate) mod shape_get_notification_configuration;
pub(crate) mod shape_get_notification_event;
pub(crate) mod shape_get_notifications_access_for_organization;
pub(crate) mod shape_list_channels;
pub(crate) mod shape_list_event_rules;
pub(crate) mod shape_list_managed_notification_channel_associations;
pub(crate) mod shape_list_managed_notification_child_events;
pub(crate) mod shape_list_managed_notification_configurations;
pub(crate) mod shape_list_managed_notification_events;
pub(crate) mod shape_list_member_accounts;
pub(crate) mod shape_list_notification_configurations;
pub(crate) mod shape_list_notification_events;
pub(crate) mod shape_list_notification_hubs;
pub(crate) mod shape_list_organizational_units;
pub(crate) mod shape_list_tags_for_resource;
pub(crate) mod shape_register_notification_hub;
pub(crate) mod shape_tag_resource;
pub(crate) mod shape_untag_resource;
pub(crate) mod shape_update_event_rule;
pub(crate) mod shape_update_notification_configuration;
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_associate_channel_input;
pub(crate) mod shape_associate_managed_notification_account_contact_input;
pub(crate) mod shape_associate_managed_notification_additional_channel_input;
pub(crate) mod shape_associate_organizational_unit_input;
pub(crate) mod shape_conflict_exception;
pub(crate) mod shape_create_event_rule_input;
pub(crate) mod shape_create_notification_configuration_input;
pub(crate) mod shape_disassociate_channel_input;
pub(crate) mod shape_disassociate_managed_notification_account_contact_input;
pub(crate) mod shape_disassociate_managed_notification_additional_channel_input;
pub(crate) mod shape_disassociate_organizational_unit_input;
pub(crate) mod shape_internal_server_exception;
pub(crate) mod shape_register_notification_hub_input;
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_event_rule_input;
pub(crate) mod shape_update_notification_configuration_input;
pub(crate) mod shape_validation_exception;
pub(crate) mod shape_channels;
pub(crate) mod shape_event_rules;
pub(crate) mod shape_managed_notification_channel_associations;
pub(crate) mod shape_managed_notification_child_event;
pub(crate) mod shape_managed_notification_child_events;
pub(crate) mod shape_managed_notification_configurations;
pub(crate) mod shape_managed_notification_event;
pub(crate) mod shape_managed_notification_events;
pub(crate) mod shape_managed_rule_arns;
pub(crate) mod shape_member_accounts;
pub(crate) mod shape_notification_configurations;
pub(crate) mod shape_notification_event_schema;
pub(crate) mod shape_notification_events;
pub(crate) mod shape_notification_hub_status_summary;
pub(crate) mod shape_notification_hubs;
pub(crate) mod shape_notifications_access_for_organization;
pub(crate) mod shape_organizational_units;
pub(crate) mod shape_regions;
pub(crate) mod shape_status_summary_by_region;
pub(crate) mod shape_tag_map;
pub(crate) mod shape_validation_exception_field_list;
pub(crate) mod shape_aggregation_detail;
pub(crate) mod shape_aggregation_summary;
pub(crate) mod shape_event_rule_status_summary;
pub(crate) mod shape_event_rule_structure;
pub(crate) mod shape_managed_notification_channel_association_summary;
pub(crate) mod shape_managed_notification_child_event_overview;
pub(crate) mod shape_managed_notification_configuration_structure;
pub(crate) mod shape_managed_notification_event_overview;
pub(crate) mod shape_media;
pub(crate) mod shape_member_account;
pub(crate) mod shape_message_components;
pub(crate) mod shape_notification_configuration_structure;
pub(crate) mod shape_notification_event_overview;
pub(crate) mod shape_notification_hub_overview;
pub(crate) mod shape_source_event_metadata;
pub(crate) mod shape_text_parts;
pub(crate) mod shape_validation_exception_field;
pub(crate) mod shape_aggregated_notification_regions;
pub(crate) mod shape_aggregation_keys;
pub(crate) mod shape_dimensions;
pub(crate) mod shape_managed_notification_child_event_summary;
pub(crate) mod shape_managed_notification_event_summary;
pub(crate) mod shape_media_element;
pub(crate) mod shape_notification_event_summary;
pub(crate) mod shape_resources;
pub(crate) mod shape_summarization_dimension_details;
pub(crate) mod shape_summarization_dimension_overview;
pub(crate) mod shape_summarization_dimension_overviews;
pub(crate) mod shape_text_part_value;
pub(crate) mod shape_aggregation_key;
pub(crate) mod shape_dimension;
pub(crate) mod shape_managed_source_event_metadata_summary;
pub(crate) mod shape_message_components_summary;
pub(crate) mod shape_resource;
pub(crate) mod shape_sample_aggregation_dimension_values;
pub(crate) mod shape_source_event_metadata_summary;
pub(crate) mod shape_summarization_dimension_detail;
pub(crate) mod shape_text_by_locale;
pub(crate) mod shape_tags;