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: &::http::HeaderMap,
response_body: &[u8],
) -> 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_accept_handshake;
pub(crate) mod shape_attach_policy;
pub(crate) mod shape_cancel_handshake;
pub(crate) mod shape_close_account;
pub(crate) mod shape_create_account;
pub(crate) mod shape_create_gov_cloud_account;
pub(crate) mod shape_create_organization;
pub(crate) mod shape_create_organizational_unit;
pub(crate) mod shape_create_policy;
pub(crate) mod shape_decline_handshake;
pub(crate) mod shape_delete_organization;
pub(crate) mod shape_delete_organizational_unit;
pub(crate) mod shape_delete_policy;
pub(crate) mod shape_delete_resource_policy;
pub(crate) mod shape_deregister_delegated_administrator;
pub(crate) mod shape_describe_account;
pub(crate) mod shape_describe_create_account_status;
pub(crate) mod shape_describe_effective_policy;
pub(crate) mod shape_describe_handshake;
pub(crate) mod shape_describe_organization;
pub(crate) mod shape_describe_organizational_unit;
pub(crate) mod shape_describe_policy;
pub(crate) mod shape_describe_resource_policy;
pub(crate) mod shape_detach_policy;
pub(crate) mod shape_disable_aws_service_access;
pub(crate) mod shape_disable_policy_type;
pub(crate) mod shape_enable_all_features;
pub(crate) mod shape_enable_aws_service_access;
pub(crate) mod shape_enable_policy_type;
pub(crate) mod shape_invite_account_to_organization;
pub(crate) mod shape_leave_organization;
pub(crate) mod shape_list_accounts;
pub(crate) mod shape_list_accounts_for_parent;
pub(crate) mod shape_list_aws_service_access_for_organization;
pub(crate) mod shape_list_children;
pub(crate) mod shape_list_create_account_status;
pub(crate) mod shape_list_delegated_administrators;
pub(crate) mod shape_list_delegated_services_for_account;
pub(crate) mod shape_list_handshakes_for_account;
pub(crate) mod shape_list_handshakes_for_organization;
pub(crate) mod shape_list_organizational_units_for_parent;
pub(crate) mod shape_list_parents;
pub(crate) mod shape_list_policies;
pub(crate) mod shape_list_policies_for_target;
pub(crate) mod shape_list_roots;
pub(crate) mod shape_list_tags_for_resource;
pub(crate) mod shape_list_targets_for_policy;
pub(crate) mod shape_move_account;
pub(crate) mod shape_put_resource_policy;
pub(crate) mod shape_register_delegated_administrator;
pub(crate) mod shape_remove_account_from_organization;
pub(crate) mod shape_tag_resource;
pub(crate) mod shape_untag_resource;
pub(crate) mod shape_update_organizational_unit;
pub(crate) mod shape_update_policy;
pub(crate) fn or_empty_doc(data: &[u8]) -> &[u8] {
if data.is_empty() {
b"{}"
} else {
data
}
}
pub(crate) mod shape_accept_handshake_input;
pub(crate) mod shape_access_denied_exception;
pub(crate) mod shape_access_denied_for_dependency_exception;
pub(crate) mod shape_account_already_closed_exception;
pub(crate) mod shape_account_already_registered_exception;
pub(crate) mod shape_account_not_found_exception;
pub(crate) mod shape_account_not_registered_exception;
pub(crate) mod shape_account_owner_not_verified_exception;
pub(crate) mod shape_already_in_organization_exception;
pub(crate) mod shape_attach_policy_input;
pub(crate) mod shape_aws_organizations_not_in_use_exception;
pub(crate) mod shape_cancel_handshake_input;
pub(crate) mod shape_child_not_found_exception;
pub(crate) mod shape_close_account_input;
pub(crate) mod shape_concurrent_modification_exception;
pub(crate) mod shape_conflict_exception;
pub(crate) mod shape_constraint_violation_exception;
pub(crate) mod shape_create_account_input;
pub(crate) mod shape_create_account_status_not_found_exception;
pub(crate) mod shape_create_gov_cloud_account_input;
pub(crate) mod shape_create_organization_input;
pub(crate) mod shape_create_organizational_unit_input;
pub(crate) mod shape_create_policy_input;
pub(crate) mod shape_decline_handshake_input;
pub(crate) mod shape_delete_organizational_unit_input;
pub(crate) mod shape_delete_policy_input;
pub(crate) mod shape_deregister_delegated_administrator_input;
pub(crate) mod shape_describe_account_input;
pub(crate) mod shape_describe_create_account_status_input;
pub(crate) mod shape_describe_effective_policy_input;
pub(crate) mod shape_describe_handshake_input;
pub(crate) mod shape_describe_organizational_unit_input;
pub(crate) mod shape_describe_policy_input;
pub(crate) mod shape_destination_parent_not_found_exception;
pub(crate) mod shape_detach_policy_input;
pub(crate) mod shape_disable_aws_service_access_input;
pub(crate) mod shape_disable_policy_type_input;
pub(crate) mod shape_duplicate_account_exception;
pub(crate) mod shape_duplicate_handshake_exception;
pub(crate) mod shape_duplicate_organizational_unit_exception;
pub(crate) mod shape_duplicate_policy_attachment_exception;
pub(crate) mod shape_duplicate_policy_exception;
pub(crate) mod shape_effective_policy_not_found_exception;
pub(crate) mod shape_enable_aws_service_access_input;
pub(crate) mod shape_enable_policy_type_input;
pub(crate) mod shape_finalizing_organization_exception;
pub(crate) mod shape_handshake_already_in_state_exception;
pub(crate) mod shape_handshake_constraint_violation_exception;
pub(crate) mod shape_handshake_not_found_exception;
pub(crate) mod shape_invalid_handshake_transition_exception;
pub(crate) mod shape_invalid_input_exception;
pub(crate) mod shape_invite_account_to_organization_input;
pub(crate) mod shape_list_accounts_for_parent_input;
pub(crate) mod shape_list_accounts_input;
pub(crate) mod shape_list_aws_service_access_for_organization_input;
pub(crate) mod shape_list_children_input;
pub(crate) mod shape_list_create_account_status_input;
pub(crate) mod shape_list_delegated_administrators_input;
pub(crate) mod shape_list_delegated_services_for_account_input;
pub(crate) mod shape_list_handshakes_for_account_input;
pub(crate) mod shape_list_handshakes_for_organization_input;
pub(crate) mod shape_list_organizational_units_for_parent_input;
pub(crate) mod shape_list_parents_input;
pub(crate) mod shape_list_policies_for_target_input;
pub(crate) mod shape_list_policies_input;
pub(crate) mod shape_list_roots_input;
pub(crate) mod shape_list_tags_for_resource_input;
pub(crate) mod shape_list_targets_for_policy_input;
pub(crate) mod shape_malformed_policy_document_exception;
pub(crate) mod shape_master_cannot_leave_organization_exception;
pub(crate) mod shape_move_account_input;
pub(crate) mod shape_organization_not_empty_exception;
pub(crate) mod shape_organizational_unit_not_empty_exception;
pub(crate) mod shape_organizational_unit_not_found_exception;
pub(crate) mod shape_parent_not_found_exception;
pub(crate) mod shape_policy_changes_in_progress_exception;
pub(crate) mod shape_policy_in_use_exception;
pub(crate) mod shape_policy_not_attached_exception;
pub(crate) mod shape_policy_not_found_exception;
pub(crate) mod shape_policy_type_already_enabled_exception;
pub(crate) mod shape_policy_type_not_available_for_organization_exception;
pub(crate) mod shape_policy_type_not_enabled_exception;
pub(crate) mod shape_put_resource_policy_input;
pub(crate) mod shape_register_delegated_administrator_input;
pub(crate) mod shape_remove_account_from_organization_input;
pub(crate) mod shape_resource_policy_not_found_exception;
pub(crate) mod shape_root_not_found_exception;
pub(crate) mod shape_service_exception;
pub(crate) mod shape_source_parent_not_found_exception;
pub(crate) mod shape_tag_resource_input;
pub(crate) mod shape_target_not_found_exception;
pub(crate) mod shape_too_many_requests_exception;
pub(crate) mod shape_unsupported_api_endpoint_exception;
pub(crate) mod shape_untag_resource_input;
pub(crate) mod shape_update_organizational_unit_input;
pub(crate) mod shape_update_policy_input;
pub(crate) mod shape_account;
pub(crate) mod shape_accounts;
pub(crate) mod shape_children;
pub(crate) mod shape_create_account_status;
pub(crate) mod shape_create_account_statuses;
pub(crate) mod shape_delegated_administrators;
pub(crate) mod shape_delegated_services;
pub(crate) mod shape_effective_policy;
pub(crate) mod shape_enabled_service_principals;
pub(crate) mod shape_handshake;
pub(crate) mod shape_handshake_filter;
pub(crate) mod shape_handshake_party;
pub(crate) mod shape_handshakes;
pub(crate) mod shape_organization;
pub(crate) mod shape_organizational_unit;
pub(crate) mod shape_organizational_units;
pub(crate) mod shape_parents;
pub(crate) mod shape_policies;
pub(crate) mod shape_policy;
pub(crate) mod shape_policy_targets;
pub(crate) mod shape_resource_policy;
pub(crate) mod shape_root;
pub(crate) mod shape_roots;
pub(crate) mod shape_tag;
pub(crate) mod shape_tags;
pub(crate) mod shape_child;
pub(crate) mod shape_delegated_administrator;
pub(crate) mod shape_delegated_service;
pub(crate) mod shape_enabled_service_principal;
pub(crate) mod shape_handshake_parties;
pub(crate) mod shape_handshake_resources;
pub(crate) mod shape_parent;
pub(crate) mod shape_policy_summary;
pub(crate) mod shape_policy_target_summary;
pub(crate) mod shape_policy_types;
pub(crate) mod shape_resource_policy_summary;
pub(crate) mod shape_handshake_resource;
pub(crate) mod shape_policy_type_summary;