1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub(crate) fn type_erase_result<O, E>(
3 result: ::std::result::Result<O, E>,
4) -> ::std::result::Result<
5 ::aws_smithy_runtime_api::client::interceptors::context::Output,
6 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError<::aws_smithy_runtime_api::client::interceptors::context::Error>,
7>
8where
9O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
10 E: ::std::error::Error + std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
11{
12 result
13 .map(|output| ::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
14 .map_err(|error| ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(error))
15 .map_err(::std::convert::Into::into)
16}
1718pub fn parse_http_error_metadata(
19 _response_status: u16,
20 response_headers: &::aws_smithy_runtime_api::http::Headers,
21 response_body: &[u8],
22) -> Result<::aws_smithy_types::error::metadata::Builder, ::aws_smithy_json::deserialize::error::DeserializeError> {
23crate::json_errors::parse_error_metadata(response_body, response_headers)
24}
2526pub(crate) mod shape_cancel_key_deletion;
2728pub(crate) mod shape_connect_custom_key_store;
2930pub(crate) mod shape_create_alias;
3132pub(crate) mod shape_create_custom_key_store;
3334pub(crate) mod shape_create_grant;
3536pub(crate) mod shape_create_key;
3738pub(crate) mod shape_decrypt;
3940pub(crate) mod shape_delete_alias;
4142pub(crate) mod shape_delete_custom_key_store;
4344pub(crate) mod shape_delete_imported_key_material;
4546pub(crate) mod shape_derive_shared_secret;
4748pub(crate) mod shape_describe_custom_key_stores;
4950pub(crate) mod shape_describe_key;
5152pub(crate) mod shape_disable_key;
5354pub(crate) mod shape_disable_key_rotation;
5556pub(crate) mod shape_disconnect_custom_key_store;
5758pub(crate) mod shape_enable_key;
5960pub(crate) mod shape_enable_key_rotation;
6162pub(crate) mod shape_encrypt;
6364pub(crate) mod shape_generate_data_key;
6566pub(crate) mod shape_generate_data_key_pair;
6768pub(crate) mod shape_generate_data_key_pair_without_plaintext;
6970pub(crate) mod shape_generate_data_key_without_plaintext;
7172pub(crate) mod shape_generate_mac;
7374pub(crate) mod shape_generate_random;
7576pub(crate) mod shape_get_key_policy;
7778pub(crate) mod shape_get_key_rotation_status;
7980pub(crate) mod shape_get_parameters_for_import;
8182pub(crate) mod shape_get_public_key;
8384pub(crate) mod shape_import_key_material;
8586pub(crate) mod shape_list_aliases;
8788pub(crate) mod shape_list_grants;
8990pub(crate) mod shape_list_key_policies;
9192pub(crate) mod shape_list_key_rotations;
9394pub(crate) mod shape_list_keys;
9596pub(crate) mod shape_list_resource_tags;
9798pub(crate) mod shape_list_retirable_grants;
99100pub(crate) mod shape_put_key_policy;
101102pub(crate) mod shape_re_encrypt;
103104pub(crate) mod shape_replicate_key;
105106pub(crate) mod shape_retire_grant;
107108pub(crate) mod shape_revoke_grant;
109110pub(crate) mod shape_rotate_key_on_demand;
111112pub(crate) mod shape_schedule_key_deletion;
113114pub(crate) mod shape_sign;
115116pub(crate) mod shape_tag_resource;
117118pub(crate) mod shape_untag_resource;
119120pub(crate) mod shape_update_alias;
121122pub(crate) mod shape_update_custom_key_store;
123124pub(crate) mod shape_update_key_description;
125126pub(crate) mod shape_update_primary_region;
127128pub(crate) mod shape_verify;
129130pub(crate) mod shape_verify_mac;
131132pub(crate) fn or_empty_doc(data: &[u8]) -> &[u8] {
133if data.is_empty() {
134b"{}"
135} else {
136 data
137 }
138}
139140pub(crate) mod shape_already_exists_exception;
141142pub(crate) mod shape_cancel_key_deletion_input;
143144pub(crate) mod shape_cloud_hsm_cluster_in_use_exception;
145146pub(crate) mod shape_cloud_hsm_cluster_invalid_configuration_exception;
147148pub(crate) mod shape_cloud_hsm_cluster_not_active_exception;
149150pub(crate) mod shape_cloud_hsm_cluster_not_found_exception;
151152pub(crate) mod shape_cloud_hsm_cluster_not_related_exception;
153154pub(crate) mod shape_conflict_exception;
155156pub(crate) mod shape_connect_custom_key_store_input;
157158pub(crate) mod shape_create_alias_input;
159160pub(crate) mod shape_create_custom_key_store_input;
161162pub(crate) mod shape_create_grant_input;
163164pub(crate) mod shape_create_key_input;
165166pub(crate) mod shape_custom_key_store_has_cmks_exception;
167168pub(crate) mod shape_custom_key_store_invalid_state_exception;
169170pub(crate) mod shape_custom_key_store_name_in_use_exception;
171172pub(crate) mod shape_custom_key_store_not_found_exception;
173174pub(crate) mod shape_decrypt_input;
175176pub(crate) mod shape_delete_alias_input;
177178pub(crate) mod shape_delete_custom_key_store_input;
179180pub(crate) mod shape_delete_imported_key_material_input;
181182pub(crate) mod shape_dependency_timeout_exception;
183184pub(crate) mod shape_derive_shared_secret_input;
185186pub(crate) mod shape_describe_custom_key_stores_input;
187188pub(crate) mod shape_describe_key_input;
189190pub(crate) mod shape_disable_key_input;
191192pub(crate) mod shape_disable_key_rotation_input;
193194pub(crate) mod shape_disabled_exception;
195196pub(crate) mod shape_disconnect_custom_key_store_input;
197198pub(crate) mod shape_dry_run_operation_exception;
199200pub(crate) mod shape_enable_key_input;
201202pub(crate) mod shape_enable_key_rotation_input;
203204pub(crate) mod shape_encrypt_input;
205206pub(crate) mod shape_expired_import_token_exception;
207208pub(crate) mod shape_generate_data_key_input;
209210pub(crate) mod shape_generate_data_key_pair_input;
211212pub(crate) mod shape_generate_data_key_pair_without_plaintext_input;
213214pub(crate) mod shape_generate_data_key_without_plaintext_input;
215216pub(crate) mod shape_generate_mac_input;
217218pub(crate) mod shape_generate_random_input;
219220pub(crate) mod shape_get_key_policy_input;
221222pub(crate) mod shape_get_key_rotation_status_input;
223224pub(crate) mod shape_get_parameters_for_import_input;
225226pub(crate) mod shape_get_public_key_input;
227228pub(crate) mod shape_import_key_material_input;
229230pub(crate) mod shape_incorrect_key_exception;
231232pub(crate) mod shape_incorrect_key_material_exception;
233234pub(crate) mod shape_incorrect_trust_anchor_exception;
235236pub(crate) mod shape_invalid_alias_name_exception;
237238pub(crate) mod shape_invalid_arn_exception;
239240pub(crate) mod shape_invalid_ciphertext_exception;
241242pub(crate) mod shape_invalid_grant_id_exception;
243244pub(crate) mod shape_invalid_grant_token_exception;
245246pub(crate) mod shape_invalid_import_token_exception;
247248pub(crate) mod shape_invalid_key_usage_exception;
249250pub(crate) mod shape_invalid_marker_exception;
251252pub(crate) mod shape_key_unavailable_exception;
253254pub(crate) mod shape_kms_internal_exception;
255256pub(crate) mod shape_kms_invalid_mac_exception;
257258pub(crate) mod shape_kms_invalid_signature_exception;
259260pub(crate) mod shape_kms_invalid_state_exception;
261262pub(crate) mod shape_limit_exceeded_exception;
263264pub(crate) mod shape_list_aliases_input;
265266pub(crate) mod shape_list_grants_input;
267268pub(crate) mod shape_list_key_policies_input;
269270pub(crate) mod shape_list_key_rotations_input;
271272pub(crate) mod shape_list_keys_input;
273274pub(crate) mod shape_list_resource_tags_input;
275276pub(crate) mod shape_list_retirable_grants_input;
277278pub(crate) mod shape_malformed_policy_document_exception;
279280pub(crate) mod shape_not_found_exception;
281282pub(crate) mod shape_put_key_policy_input;
283284pub(crate) mod shape_re_encrypt_input;
285286pub(crate) mod shape_replicate_key_input;
287288pub(crate) mod shape_retire_grant_input;
289290pub(crate) mod shape_revoke_grant_input;
291292pub(crate) mod shape_rotate_key_on_demand_input;
293294pub(crate) mod shape_schedule_key_deletion_input;
295296pub(crate) mod shape_sign_input;
297298pub(crate) mod shape_tag_exception;
299300pub(crate) mod shape_tag_resource_input;
301302pub(crate) mod shape_unsupported_operation_exception;
303304pub(crate) mod shape_untag_resource_input;
305306pub(crate) mod shape_update_alias_input;
307308pub(crate) mod shape_update_custom_key_store_input;
309310pub(crate) mod shape_update_key_description_input;
311312pub(crate) mod shape_update_primary_region_input;
313314pub(crate) mod shape_verify_input;
315316pub(crate) mod shape_verify_mac_input;
317318pub(crate) mod shape_xks_key_already_in_use_exception;
319320pub(crate) mod shape_xks_key_invalid_configuration_exception;
321322pub(crate) mod shape_xks_key_not_found_exception;
323324pub(crate) mod shape_xks_proxy_incorrect_authentication_credential_exception;
325326pub(crate) mod shape_xks_proxy_invalid_configuration_exception;
327328pub(crate) mod shape_xks_proxy_invalid_response_exception;
329330pub(crate) mod shape_xks_proxy_uri_endpoint_in_use_exception;
331332pub(crate) mod shape_xks_proxy_uri_in_use_exception;
333334pub(crate) mod shape_xks_proxy_uri_unreachable_exception;
335336pub(crate) mod shape_xks_proxy_vpc_endpoint_service_in_use_exception;
337338pub(crate) mod shape_xks_proxy_vpc_endpoint_service_invalid_configuration_exception;
339340pub(crate) mod shape_xks_proxy_vpc_endpoint_service_not_found_exception;
341342pub(crate) mod shape_alias_list;
343344pub(crate) mod shape_custom_key_stores_list;
345346pub(crate) mod shape_encryption_algorithm_spec_list;
347348pub(crate) mod shape_grant_constraints;
349350pub(crate) mod shape_grant_list;
351352pub(crate) mod shape_key_agreement_algorithm_spec_list;
353354pub(crate) mod shape_key_list;
355356pub(crate) mod shape_key_metadata;
357358pub(crate) mod shape_policy_name_list;
359360pub(crate) mod shape_recipient_info;
361362pub(crate) mod shape_rotations_list;
363364pub(crate) mod shape_signing_algorithm_spec_list;
365366pub(crate) mod shape_tag;
367368pub(crate) mod shape_tag_list;
369370pub(crate) mod shape_xks_proxy_authentication_credential_type;
371372pub(crate) mod shape_alias_list_entry;
373374pub(crate) mod shape_custom_key_stores_list_entry;
375376pub(crate) mod shape_grant_list_entry;
377378pub(crate) mod shape_key_list_entry;
379380pub(crate) mod shape_mac_algorithm_spec_list;
381382pub(crate) mod shape_multi_region_configuration;
383384pub(crate) mod shape_rotations_list_entry;
385386pub(crate) mod shape_xks_key_configuration_type;
387388pub(crate) mod shape_grant_operation_list;
389390pub(crate) mod shape_multi_region_key;
391392pub(crate) mod shape_multi_region_key_list;
393394pub(crate) mod shape_xks_proxy_configuration_type;
395396pub(crate) mod shape_encryption_context_type;