1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 - | pub(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 - | >
|
8 - | where
|
9 - | O: ::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 - | }
|
17 - |
|
18 2 | pub fn parse_http_error_metadata(
|
19 3 | _response_status: u16,
|
20 4 | response_headers: &::aws_smithy_runtime_api::http::Headers,
|
21 5 | response_body: &[u8],
|
22 6 | ) -> ::std::result::Result<::aws_smithy_types::error::metadata::Builder, ::aws_smithy_json::deserialize::error::DeserializeError> {
|
23 7 | crate::json_errors::parse_error_metadata(response_body, response_headers)
|
24 8 | }
|
25 - |
|
26 - | pub(crate) mod shape_cancel_key_deletion;
|
27 - |
|
28 - | pub(crate) mod shape_connect_custom_key_store;
|
29 - |
|
30 - | pub(crate) mod shape_create_alias;
|
31 - |
|
32 - | pub(crate) mod shape_create_custom_key_store;
|
33 - |
|
34 - | pub(crate) mod shape_create_grant;
|
35 - |
|
36 - | pub(crate) mod shape_create_key;
|
37 - |
|
38 - | pub(crate) mod shape_decrypt;
|
39 - |
|
40 - | pub(crate) mod shape_delete_alias;
|
41 - |
|
42 - | pub(crate) mod shape_delete_custom_key_store;
|
43 - |
|
44 - | pub(crate) mod shape_delete_imported_key_material;
|
45 - |
|
46 - | pub(crate) mod shape_derive_shared_secret;
|
47 - |
|
48 - | pub(crate) mod shape_describe_custom_key_stores;
|
49 - |
|
50 - | pub(crate) mod shape_describe_key;
|
51 - |
|
52 - | pub(crate) mod shape_disable_key;
|
53 - |
|
54 - | pub(crate) mod shape_disable_key_rotation;
|
55 - |
|
56 - | pub(crate) mod shape_disconnect_custom_key_store;
|
57 - |
|
58 - | pub(crate) mod shape_enable_key;
|
59 - |
|
60 - | pub(crate) mod shape_enable_key_rotation;
|
61 - |
|
62 - | pub(crate) mod shape_encrypt;
|
63 - |
|
64 - | pub(crate) mod shape_generate_data_key;
|
65 - |
|
66 - | pub(crate) mod shape_generate_data_key_pair;
|
67 - |
|
68 - | pub(crate) mod shape_generate_data_key_pair_without_plaintext;
|
69 - |
|
70 - | pub(crate) mod shape_generate_data_key_without_plaintext;
|
71 - |
|
72 - | pub(crate) mod shape_generate_mac;
|
73 - |
|
74 - | pub(crate) mod shape_generate_random;
|
75 - |
|
76 - | pub(crate) mod shape_get_key_policy;
|
77 - |
|
78 - | pub(crate) mod shape_get_key_rotation_status;
|
79 - |
|
80 - | pub(crate) mod shape_get_parameters_for_import;
|
81 - |
|
82 - | pub(crate) mod shape_get_public_key;
|
83 - |
|
84 - | pub(crate) mod shape_import_key_material;
|
85 - |
|
86 - | pub(crate) mod shape_list_aliases;
|
87 - |
|
88 - | pub(crate) mod shape_list_grants;
|
89 - |
|
90 - | pub(crate) mod shape_list_key_policies;
|
91 - |
|
92 - | pub(crate) mod shape_list_key_rotations;
|
93 - |
|
94 - | pub(crate) mod shape_list_keys;
|
95 - |
|
96 - | pub(crate) mod shape_list_resource_tags;
|
97 - |
|
98 - | pub(crate) mod shape_list_retirable_grants;
|
99 - |
|
100 - | pub(crate) mod shape_put_key_policy;
|
101 - |
|
102 - | pub(crate) mod shape_re_encrypt;
|
103 - |
|
104 - | pub(crate) mod shape_replicate_key;
|
105 - |
|
106 - | pub(crate) mod shape_retire_grant;
|
107 - |
|
108 - | pub(crate) mod shape_revoke_grant;
|
109 - |
|
110 - | pub(crate) mod shape_rotate_key_on_demand;
|
111 - |
|
112 - | pub(crate) mod shape_schedule_key_deletion;
|
113 - |
|
114 - | pub(crate) mod shape_sign;
|
115 - |
|
116 - | pub(crate) mod shape_tag_resource;
|
117 - |
|
118 - | pub(crate) mod shape_untag_resource;
|
119 - |
|
120 - | pub(crate) mod shape_update_alias;
|
121 - |
|
122 - | pub(crate) mod shape_update_custom_key_store;
|
123 - |
|
124 - | pub(crate) mod shape_update_key_description;
|
125 - |
|
126 - | pub(crate) mod shape_update_primary_region;
|
127 - |
|
128 - | pub(crate) mod shape_verify;
|
129 - |
|
130 - | pub(crate) mod shape_verify_mac;
|
131 - |
|
132 - | pub(crate) fn or_empty_doc(data: &[u8]) -> &[u8] {
|
133 - | if data.is_empty() {
|
134 - | b"{}"
|
135 - | } else {
|
136 - | data
|
137 - | }
|
138 - | }
|
139 - |
|
140 - | pub(crate) mod shape_already_exists_exception;
|
141 - |
|
142 - | pub(crate) mod shape_cancel_key_deletion_input;
|
143 - |
|
144 - | pub(crate) mod shape_cloud_hsm_cluster_in_use_exception;
|
145 - |
|
146 - | pub(crate) mod shape_cloud_hsm_cluster_invalid_configuration_exception;
|
147 - |
|
148 - | pub(crate) mod shape_cloud_hsm_cluster_not_active_exception;
|
149 - |
|
150 - | pub(crate) mod shape_cloud_hsm_cluster_not_found_exception;
|
151 - |
|
152 - | pub(crate) mod shape_cloud_hsm_cluster_not_related_exception;
|
153 - |
|
154 - | pub(crate) mod shape_conflict_exception;
|
155 - |
|
156 - | pub(crate) mod shape_connect_custom_key_store_input;
|
157 - |
|
158 - | pub(crate) mod shape_create_alias_input;
|
159 - |
|
160 - | pub(crate) mod shape_create_custom_key_store_input;
|
161 - |
|
162 - | pub(crate) mod shape_create_grant_input;
|
163 - |
|
164 - | pub(crate) mod shape_create_key_input;
|
165 - |
|
166 - | pub(crate) mod shape_custom_key_store_has_cmks_exception;
|
167 - |
|
168 - | pub(crate) mod shape_custom_key_store_invalid_state_exception;
|
169 - |
|
170 - | pub(crate) mod shape_custom_key_store_name_in_use_exception;
|
171 - |
|
172 - | pub(crate) mod shape_custom_key_store_not_found_exception;
|
173 - |
|
174 - | pub(crate) mod shape_decrypt_input;
|
175 - |
|
176 - | pub(crate) mod shape_delete_alias_input;
|
177 - |
|
178 - | pub(crate) mod shape_delete_custom_key_store_input;
|
179 - |
|
180 - | pub(crate) mod shape_delete_imported_key_material_input;
|
181 - |
|
182 - | pub(crate) mod shape_dependency_timeout_exception;
|
183 - |
|
184 - | pub(crate) mod shape_derive_shared_secret_input;
|
185 - |
|
186 - | pub(crate) mod shape_describe_custom_key_stores_input;
|
187 - |
|
188 - | pub(crate) mod shape_describe_key_input;
|
189 - |
|
190 - | pub(crate) mod shape_disable_key_input;
|
191 - |
|
192 - | pub(crate) mod shape_disable_key_rotation_input;
|
193 - |
|
194 - | pub(crate) mod shape_disabled_exception;
|
195 - |
|
196 - | pub(crate) mod shape_disconnect_custom_key_store_input;
|
197 - |
|
198 - | pub(crate) mod shape_dry_run_operation_exception;
|
199 - |
|
200 - | pub(crate) mod shape_enable_key_input;
|
201 - |
|
202 - | pub(crate) mod shape_enable_key_rotation_input;
|
203 - |
|
204 - | pub(crate) mod shape_encrypt_input;
|
205 - |
|
206 - | pub(crate) mod shape_expired_import_token_exception;
|
207 - |
|
208 - | pub(crate) mod shape_generate_data_key_input;
|
209 - |
|
210 - | pub(crate) mod shape_generate_data_key_pair_input;
|
211 - |
|
212 - | pub(crate) mod shape_generate_data_key_pair_without_plaintext_input;
|
213 - |
|
214 - | pub(crate) mod shape_generate_data_key_without_plaintext_input;
|
215 - |
|
216 - | pub(crate) mod shape_generate_mac_input;
|
217 - |
|
218 - | pub(crate) mod shape_generate_random_input;
|
219 - |
|
220 - | pub(crate) mod shape_get_key_policy_input;
|
221 - |
|
222 - | pub(crate) mod shape_get_key_rotation_status_input;
|
223 - |
|
224 - | pub(crate) mod shape_get_parameters_for_import_input;
|
225 - |
|
226 - | pub(crate) mod shape_get_public_key_input;
|
227 - |
|
228 - | pub(crate) mod shape_import_key_material_input;
|
229 - |
|
230 - | pub(crate) mod shape_incorrect_key_exception;
|
231 - |
|
232 - | pub(crate) mod shape_incorrect_key_material_exception;
|
233 - |
|
234 - | pub(crate) mod shape_incorrect_trust_anchor_exception;
|
235 - |
|
236 - | pub(crate) mod shape_invalid_alias_name_exception;
|
237 - |
|
238 - | pub(crate) mod shape_invalid_arn_exception;
|
239 - |
|
240 - | pub(crate) mod shape_invalid_ciphertext_exception;
|
241 - |
|
242 - | pub(crate) mod shape_invalid_grant_id_exception;
|
243 - |
|
244 - | pub(crate) mod shape_invalid_grant_token_exception;
|
245 - |
|
246 - | pub(crate) mod shape_invalid_import_token_exception;
|
247 - |
|
248 - | pub(crate) mod shape_invalid_key_usage_exception;
|
249 - |
|
250 - | pub(crate) mod shape_invalid_marker_exception;
|
251 - |
|
252 - | pub(crate) mod shape_key_unavailable_exception;
|
253 - |
|
254 - | pub(crate) mod shape_kms_internal_exception;
|
255 - |
|
256 - | pub(crate) mod shape_kms_invalid_mac_exception;
|
257 - |
|
258 - | pub(crate) mod shape_kms_invalid_signature_exception;
|
259 - |
|
260 - | pub(crate) mod shape_kms_invalid_state_exception;
|
261 - |
|
262 - | pub(crate) mod shape_limit_exceeded_exception;
|
263 - |
|
264 - | pub(crate) mod shape_list_aliases_input;
|
265 - |
|
266 - | pub(crate) mod shape_list_grants_input;
|
267 - |
|
268 - | pub(crate) mod shape_list_key_policies_input;
|
269 - |
|
270 - | pub(crate) mod shape_list_key_rotations_input;
|
271 - |
|
272 - | pub(crate) mod shape_list_keys_input;
|
273 - |
|
274 - | pub(crate) mod shape_list_resource_tags_input;
|
275 - |
|
276 - | pub(crate) mod shape_list_retirable_grants_input;
|
277 - |
|
278 - | pub(crate) mod shape_malformed_policy_document_exception;
|
279 - |
|
280 - | pub(crate) mod shape_not_found_exception;
|
281 - |
|
282 - | pub(crate) mod shape_put_key_policy_input;
|
283 - |
|
284 - | pub(crate) mod shape_re_encrypt_input;
|
285 - |
|
286 - | pub(crate) mod shape_replicate_key_input;
|
287 - |
|
288 - | pub(crate) mod shape_retire_grant_input;
|
289 - |
|
290 - | pub(crate) mod shape_revoke_grant_input;
|
291 - |
|
292 - | pub(crate) mod shape_rotate_key_on_demand_input;
|
293 - |
|
294 - | pub(crate) mod shape_schedule_key_deletion_input;
|
295 - |
|
296 - | pub(crate) mod shape_sign_input;
|
297 - |
|
298 - | pub(crate) mod shape_tag_exception;
|
299 - |
|
300 - | pub(crate) mod shape_tag_resource_input;
|
301 - |
|
302 - | pub(crate) mod shape_unsupported_operation_exception;
|
303 - |
|
304 - | pub(crate) mod shape_untag_resource_input;
|
305 - |
|
306 - | pub(crate) mod shape_update_alias_input;
|
307 - |
|
308 - | pub(crate) mod shape_update_custom_key_store_input;
|
309 - |
|
310 - | pub(crate) mod shape_update_key_description_input;
|
311 - |
|
312 - | pub(crate) mod shape_update_primary_region_input;
|
313 - |
|
314 - | pub(crate) mod shape_verify_input;
|
315 - |
|
316 - | pub(crate) mod shape_verify_mac_input;
|
317 - |
|
318 - | pub(crate) mod shape_xks_key_already_in_use_exception;
|
319 - |
|
320 - | pub(crate) mod shape_xks_key_invalid_configuration_exception;
|
321 - |
|
322 - | pub(crate) mod shape_xks_key_not_found_exception;
|
323 - |
|
324 - | pub(crate) mod shape_xks_proxy_incorrect_authentication_credential_exception;
|
325 - |
|
326 - | pub(crate) mod shape_xks_proxy_invalid_configuration_exception;
|
327 - |
|
328 - | pub(crate) mod shape_xks_proxy_invalid_response_exception;
|
329 - |
|
330 - | pub(crate) mod shape_xks_proxy_uri_endpoint_in_use_exception;
|
331 - |
|
332 - | pub(crate) mod shape_xks_proxy_uri_in_use_exception;
|
333 - |
|
334 - | pub(crate) mod shape_xks_proxy_uri_unreachable_exception;
|
335 - |
|
336 - | pub(crate) mod shape_xks_proxy_vpc_endpoint_service_in_use_exception;
|
337 - |
|
338 - | pub(crate) mod shape_xks_proxy_vpc_endpoint_service_invalid_configuration_exception;
|
339 - |
|
340 - | pub(crate) mod shape_xks_proxy_vpc_endpoint_service_not_found_exception;
|
341 - |
|
342 - | pub(crate) mod shape_alias_list;
|
343 - |
|
344 - | pub(crate) mod shape_custom_key_stores_list;
|
345 - |
|
346 - | pub(crate) mod shape_encryption_algorithm_spec_list;
|
347 - |
|
348 - | pub(crate) mod shape_grant_constraints;
|
349 - |
|
350 - | pub(crate) mod shape_grant_list;
|
351 - |
|
352 - | pub(crate) mod shape_key_agreement_algorithm_spec_list;
|
353 - |
|
354 - | pub(crate) mod shape_key_list;
|
355 - |
|
356 - | pub(crate) mod shape_key_metadata;
|
357 - |
|
358 - | pub(crate) mod shape_policy_name_list;
|
359 - |
|
360 - | pub(crate) mod shape_recipient_info;
|
361 - |
|
362 - | pub(crate) mod shape_rotations_list;
|
363 - |
|
364 - | pub(crate) mod shape_signing_algorithm_spec_list;
|
365 - |
|
366 - | pub(crate) mod shape_tag;
|
367 - |
|
368 - | pub(crate) mod shape_tag_list;
|
369 - |
|
370 - | pub(crate) mod shape_xks_proxy_authentication_credential_type;
|
371 - |
|
372 - | pub(crate) mod shape_alias_list_entry;
|
373 - |
|
374 - | pub(crate) mod shape_custom_key_stores_list_entry;
|
375 - |
|
376 - | pub(crate) mod shape_grant_list_entry;
|
377 - |
|
378 - | pub(crate) mod shape_key_list_entry;
|
379 - |
|
380 - | pub(crate) mod shape_mac_algorithm_spec_list;
|
381 - |
|
382 - | pub(crate) mod shape_multi_region_configuration;
|
383 - |
|
384 - | pub(crate) mod shape_rotations_list_entry;
|
385 - |
|
386 - | pub(crate) mod shape_xks_key_configuration_type;
|
387 - |
|
388 - | pub(crate) mod shape_grant_operation_list;
|
389 - |
|
390 - | pub(crate) mod shape_multi_region_key;
|
391 - |
|
392 - | pub(crate) mod shape_multi_region_key_list;
|
393 - |
|
394 - | pub(crate) mod shape_xks_proxy_configuration_type;
|
395 - |
|
396 - | pub(crate) mod shape_encryption_context_type;
|