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_activate_gateway;
pub(crate) mod shape_add_cache;
pub(crate) mod shape_add_tags_to_resource;
pub(crate) mod shape_add_upload_buffer;
pub(crate) mod shape_add_working_storage;
pub(crate) mod shape_assign_tape_pool;
pub(crate) mod shape_associate_file_system;
pub(crate) mod shape_attach_volume;
pub(crate) mod shape_cancel_archival;
pub(crate) mod shape_cancel_cache_report;
pub(crate) mod shape_cancel_retrieval;
pub(crate) mod shape_create_cachedi_scsi_volume;
pub(crate) mod shape_create_nfs_file_share;
pub(crate) mod shape_create_smb_file_share;
pub(crate) mod shape_create_snapshot;
pub(crate) mod shape_create_snapshot_from_volume_recovery_point;
pub(crate) mod shape_create_storedi_scsi_volume;
pub(crate) mod shape_create_tape_pool;
pub(crate) mod shape_create_tape_with_barcode;
pub(crate) mod shape_create_tapes;
pub(crate) mod shape_delete_automatic_tape_creation_policy;
pub(crate) mod shape_delete_bandwidth_rate_limit;
pub(crate) mod shape_delete_cache_report;
pub(crate) mod shape_delete_chap_credentials;
pub(crate) mod shape_delete_file_share;
pub(crate) mod shape_delete_gateway;
pub(crate) mod shape_delete_snapshot_schedule;
pub(crate) mod shape_delete_tape;
pub(crate) mod shape_delete_tape_archive;
pub(crate) mod shape_delete_tape_pool;
pub(crate) mod shape_delete_volume;
pub(crate) mod shape_describe_availability_monitor_test;
pub(crate) mod shape_describe_bandwidth_rate_limit;
pub(crate) mod shape_describe_bandwidth_rate_limit_schedule;
pub(crate) mod shape_describe_cache;
pub(crate) mod shape_describe_cache_report;
pub(crate) mod shape_describe_cachedi_scsi_volumes;
pub(crate) mod shape_describe_chap_credentials;
pub(crate) mod shape_describe_file_system_associations;
pub(crate) mod shape_describe_gateway_information;
pub(crate) mod shape_describe_maintenance_start_time;
pub(crate) mod shape_describe_nfs_file_shares;
pub(crate) mod shape_describe_smb_file_shares;
pub(crate) mod shape_describe_smb_settings;
pub(crate) mod shape_describe_snapshot_schedule;
pub(crate) mod shape_describe_storedi_scsi_volumes;
pub(crate) mod shape_describe_tape_archives;
pub(crate) mod shape_describe_tape_recovery_points;
pub(crate) mod shape_describe_tapes;
pub(crate) mod shape_describe_upload_buffer;
pub(crate) mod shape_describe_vtl_devices;
pub(crate) mod shape_describe_working_storage;
pub(crate) mod shape_detach_volume;
pub(crate) mod shape_disable_gateway;
pub(crate) mod shape_disassociate_file_system;
pub(crate) mod shape_evict_files_failing_upload;
pub(crate) mod shape_join_domain;
pub(crate) mod shape_list_automatic_tape_creation_policies;
pub(crate) mod shape_list_cache_reports;
pub(crate) mod shape_list_file_shares;
pub(crate) mod shape_list_file_system_associations;
pub(crate) mod shape_list_gateways;
pub(crate) mod shape_list_local_disks;
pub(crate) mod shape_list_tags_for_resource;
pub(crate) mod shape_list_tape_pools;
pub(crate) mod shape_list_tapes;
pub(crate) mod shape_list_volume_initiators;
pub(crate) mod shape_list_volume_recovery_points;
pub(crate) mod shape_list_volumes;
pub(crate) mod shape_notify_when_uploaded;
pub(crate) mod shape_refresh_cache;
pub(crate) mod shape_remove_tags_from_resource;
pub(crate) mod shape_reset_cache;
pub(crate) mod shape_retrieve_tape_archive;
pub(crate) mod shape_retrieve_tape_recovery_point;
pub(crate) mod shape_set_local_console_password;
pub(crate) mod shape_set_smb_guest_password;
pub(crate) mod shape_shutdown_gateway;
pub(crate) mod shape_start_availability_monitor_test;
pub(crate) mod shape_start_cache_report;
pub(crate) mod shape_start_gateway;
pub(crate) mod shape_update_automatic_tape_creation_policy;
pub(crate) mod shape_update_bandwidth_rate_limit;
pub(crate) mod shape_update_bandwidth_rate_limit_schedule;
pub(crate) mod shape_update_chap_credentials;
pub(crate) mod shape_update_file_system_association;
pub(crate) mod shape_update_gateway_information;
pub(crate) mod shape_update_gateway_software_now;
pub(crate) mod shape_update_maintenance_start_time;
pub(crate) mod shape_update_nfs_file_share;
pub(crate) mod shape_update_smb_file_share;
pub(crate) mod shape_update_smb_file_share_visibility;
pub(crate) mod shape_update_smb_local_groups;
pub(crate) mod shape_update_smb_security_strategy;
pub(crate) mod shape_update_snapshot_schedule;
pub(crate) mod shape_update_vtl_device_type;
pub(crate) fn or_empty_doc(data: &[u8]) -> &[u8] {
if data.is_empty() {
b"{}"
} else {
data
}
}
pub(crate) mod shape_activate_gateway_input;
pub(crate) mod shape_add_cache_input;
pub(crate) mod shape_add_tags_to_resource_input;
pub(crate) mod shape_add_upload_buffer_input;
pub(crate) mod shape_add_working_storage_input;
pub(crate) mod shape_assign_tape_pool_input;
pub(crate) mod shape_associate_file_system_input;
pub(crate) mod shape_attach_volume_input;
pub(crate) mod shape_cancel_archival_input;
pub(crate) mod shape_cancel_cache_report_input;
pub(crate) mod shape_cancel_retrieval_input;
pub(crate) mod shape_create_cachedi_scsi_volume_input;
pub(crate) mod shape_create_nfs_file_share_input;
pub(crate) mod shape_create_smb_file_share_input;
pub(crate) mod shape_create_snapshot_from_volume_recovery_point_input;
pub(crate) mod shape_create_snapshot_input;
pub(crate) mod shape_create_storedi_scsi_volume_input;
pub(crate) mod shape_create_tape_pool_input;
pub(crate) mod shape_create_tape_with_barcode_input;
pub(crate) mod shape_create_tapes_input;
pub(crate) mod shape_delete_automatic_tape_creation_policy_input;
pub(crate) mod shape_delete_bandwidth_rate_limit_input;
pub(crate) mod shape_delete_cache_report_input;
pub(crate) mod shape_delete_chap_credentials_input;
pub(crate) mod shape_delete_file_share_input;
pub(crate) mod shape_delete_gateway_input;
pub(crate) mod shape_delete_snapshot_schedule_input;
pub(crate) mod shape_delete_tape_archive_input;
pub(crate) mod shape_delete_tape_input;
pub(crate) mod shape_delete_tape_pool_input;
pub(crate) mod shape_delete_volume_input;
pub(crate) mod shape_describe_availability_monitor_test_input;
pub(crate) mod shape_describe_bandwidth_rate_limit_input;
pub(crate) mod shape_describe_bandwidth_rate_limit_schedule_input;
pub(crate) mod shape_describe_cache_input;
pub(crate) mod shape_describe_cache_report_input;
pub(crate) mod shape_describe_cachedi_scsi_volumes_input;
pub(crate) mod shape_describe_chap_credentials_input;
pub(crate) mod shape_describe_file_system_associations_input;
pub(crate) mod shape_describe_gateway_information_input;
pub(crate) mod shape_describe_maintenance_start_time_input;
pub(crate) mod shape_describe_nfs_file_shares_input;
pub(crate) mod shape_describe_smb_file_shares_input;
pub(crate) mod shape_describe_smb_settings_input;
pub(crate) mod shape_describe_snapshot_schedule_input;
pub(crate) mod shape_describe_storedi_scsi_volumes_input;
pub(crate) mod shape_describe_tape_archives_input;
pub(crate) mod shape_describe_tape_recovery_points_input;
pub(crate) mod shape_describe_tapes_input;
pub(crate) mod shape_describe_upload_buffer_input;
pub(crate) mod shape_describe_vtl_devices_input;
pub(crate) mod shape_describe_working_storage_input;
pub(crate) mod shape_detach_volume_input;
pub(crate) mod shape_disable_gateway_input;
pub(crate) mod shape_disassociate_file_system_input;
pub(crate) mod shape_evict_files_failing_upload_input;
pub(crate) mod shape_internal_server_error;
pub(crate) mod shape_invalid_gateway_request_exception;
pub(crate) mod shape_join_domain_input;
pub(crate) mod shape_list_automatic_tape_creation_policies_input;
pub(crate) mod shape_list_cache_reports_input;
pub(crate) mod shape_list_file_shares_input;
pub(crate) mod shape_list_file_system_associations_input;
pub(crate) mod shape_list_gateways_input;
pub(crate) mod shape_list_local_disks_input;
pub(crate) mod shape_list_tags_for_resource_input;
pub(crate) mod shape_list_tape_pools_input;
pub(crate) mod shape_list_tapes_input;
pub(crate) mod shape_list_volume_initiators_input;
pub(crate) mod shape_list_volume_recovery_points_input;
pub(crate) mod shape_list_volumes_input;
pub(crate) mod shape_notify_when_uploaded_input;
pub(crate) mod shape_refresh_cache_input;
pub(crate) mod shape_remove_tags_from_resource_input;
pub(crate) mod shape_reset_cache_input;
pub(crate) mod shape_retrieve_tape_archive_input;
pub(crate) mod shape_retrieve_tape_recovery_point_input;
pub(crate) mod shape_service_unavailable_error;
pub(crate) mod shape_set_local_console_password_input;
pub(crate) mod shape_set_smb_guest_password_input;
pub(crate) mod shape_shutdown_gateway_input;
pub(crate) mod shape_start_availability_monitor_test_input;
pub(crate) mod shape_start_cache_report_input;
pub(crate) mod shape_start_gateway_input;
pub(crate) mod shape_update_automatic_tape_creation_policy_input;
pub(crate) mod shape_update_bandwidth_rate_limit_input;
pub(crate) mod shape_update_bandwidth_rate_limit_schedule_input;
pub(crate) mod shape_update_chap_credentials_input;
pub(crate) mod shape_update_file_system_association_input;
pub(crate) mod shape_update_gateway_information_input;
pub(crate) mod shape_update_gateway_software_now_input;
pub(crate) mod shape_update_maintenance_start_time_input;
pub(crate) mod shape_update_nfs_file_share_input;
pub(crate) mod shape_update_smb_file_share_input;
pub(crate) mod shape_update_smb_file_share_visibility_input;
pub(crate) mod shape_update_smb_local_groups_input;
pub(crate) mod shape_update_smb_security_strategy_input;
pub(crate) mod shape_update_snapshot_schedule_input;
pub(crate) mod shape_update_vtl_device_type_input;
pub(crate) mod shape_automatic_tape_creation_policy_infos;
pub(crate) mod shape_automatic_tape_creation_rule;
pub(crate) mod shape_bandwidth_rate_limit_interval;
pub(crate) mod shape_bandwidth_rate_limit_intervals;
pub(crate) mod shape_cache_attributes;
pub(crate) mod shape_cache_report_filter;
pub(crate) mod shape_cache_report_info;
pub(crate) mod shape_cache_report_list;
pub(crate) mod shape_cachedi_scsi_volumes;
pub(crate) mod shape_chap_credentials;
pub(crate) mod shape_disk_ids;
pub(crate) mod shape_disks;
pub(crate) mod shape_endpoint_network_configuration;
pub(crate) mod shape_file_share_info_list;
pub(crate) mod shape_file_system_association_info_list;
pub(crate) mod shape_file_system_association_summary_list;
pub(crate) mod shape_gateway_network_interfaces;
pub(crate) mod shape_gateways;
pub(crate) mod shape_initiators;
pub(crate) mod shape_nfs_file_share_defaults;
pub(crate) mod shape_nfs_file_share_info_list;
pub(crate) mod shape_pool_infos;
pub(crate) mod shape_smb_file_share_info_list;
pub(crate) mod shape_smb_local_groups;
pub(crate) mod shape_software_update_preferences;
pub(crate) mod shape_storage_gateway_error;
pub(crate) mod shape_storedi_scsi_volumes;
pub(crate) mod shape_supported_gateway_capacities;
pub(crate) mod shape_tag;
pub(crate) mod shape_tags;
pub(crate) mod shape_tape_archives;
pub(crate) mod shape_tape_arns;
pub(crate) mod shape_tape_infos;
pub(crate) mod shape_tape_recovery_point_infos;
pub(crate) mod shape_tapes;
pub(crate) mod shape_volume_infos;
pub(crate) mod shape_volume_recovery_point_infos;
pub(crate) mod shape_vtl_devices;
pub(crate) mod shape_automatic_tape_creation_policy_info;
pub(crate) mod shape_cache_report_filter_list;
pub(crate) mod shape_cachedi_scsi_volume;
pub(crate) mod shape_chap_info;
pub(crate) mod shape_disk;
pub(crate) mod shape_error_details;
pub(crate) mod shape_file_share_info;
pub(crate) mod shape_file_system_association_info;
pub(crate) mod shape_file_system_association_summary;
pub(crate) mod shape_gateway_info;
pub(crate) mod shape_network_interface;
pub(crate) mod shape_nfs_file_share_info;
pub(crate) mod shape_pool_info;
pub(crate) mod shape_smb_file_share_info;
pub(crate) mod shape_storedi_scsi_volume;
pub(crate) mod shape_tape;
pub(crate) mod shape_tape_archive;
pub(crate) mod shape_tape_info;
pub(crate) mod shape_tape_recovery_point_info;
pub(crate) mod shape_user_list;
pub(crate) mod shape_volume_info;
pub(crate) mod shape_volume_recovery_point_info;
pub(crate) mod shape_vtl_device;
pub(crate) mod shape_automatic_tape_creation_rules;
pub(crate) mod shape_days_of_week;
pub(crate) mod shape_devicei_scsi_attributes;
pub(crate) mod shape_disk_attribute_list;
pub(crate) mod shape_file_share_client_list;
pub(crate) mod shape_file_system_association_status_details;
pub(crate) mod shape_volumei_scsi_attributes;
pub(crate) mod shape_cache_report_filter_values;
pub(crate) mod shape_file_system_association_status_detail;
pub(crate) mod shape_ip_address_list;