20 20 | "DependencyTimeoutException" => crate::operation::re_encrypt::ReEncryptError::DependencyTimeoutException({
|
21 21 | #[allow(unused_mut)]
|
22 22 | let mut tmp = {
|
23 23 | #[allow(unused_mut)]
|
24 24 | let mut output = crate::types::error::builders::DependencyTimeoutExceptionBuilder::default();
|
25 25 | output = crate::protocol_serde::shape_dependency_timeout_exception::de_dependency_timeout_exception_json_err(_response_body, output)
|
26 26 | .map_err(crate::operation::re_encrypt::ReEncryptError::unhandled)?;
|
27 27 | let output = output.meta(generic);
|
28 28 | output.build()
|
29 29 | };
|
30 - | if tmp.message.is_none() {
|
31 - | tmp.message = _error_message;
|
32 - | }
|
33 30 | tmp
|
34 31 | }),
|
35 32 | "DisabledException" => crate::operation::re_encrypt::ReEncryptError::DisabledException({
|
36 33 | #[allow(unused_mut)]
|
37 34 | let mut tmp = {
|
38 35 | #[allow(unused_mut)]
|
39 36 | let mut output = crate::types::error::builders::DisabledExceptionBuilder::default();
|
40 37 | output = crate::protocol_serde::shape_disabled_exception::de_disabled_exception_json_err(_response_body, output)
|
41 38 | .map_err(crate::operation::re_encrypt::ReEncryptError::unhandled)?;
|
42 39 | let output = output.meta(generic);
|
43 40 | output.build()
|
44 41 | };
|
45 - | if tmp.message.is_none() {
|
46 - | tmp.message = _error_message;
|
47 - | }
|
48 42 | tmp
|
49 43 | }),
|
50 44 | "DryRunOperationException" => crate::operation::re_encrypt::ReEncryptError::DryRunOperationException({
|
51 45 | #[allow(unused_mut)]
|
52 46 | let mut tmp = {
|
53 47 | #[allow(unused_mut)]
|
54 48 | let mut output = crate::types::error::builders::DryRunOperationExceptionBuilder::default();
|
55 49 | output = crate::protocol_serde::shape_dry_run_operation_exception::de_dry_run_operation_exception_json_err(_response_body, output)
|
56 50 | .map_err(crate::operation::re_encrypt::ReEncryptError::unhandled)?;
|
57 51 | let output = output.meta(generic);
|
58 52 | output.build()
|
59 53 | };
|
60 - | if tmp.message.is_none() {
|
61 - | tmp.message = _error_message;
|
62 - | }
|
63 54 | tmp
|
64 55 | }),
|
65 56 | "IncorrectKeyException" => crate::operation::re_encrypt::ReEncryptError::IncorrectKeyException({
|
66 57 | #[allow(unused_mut)]
|
67 58 | let mut tmp = {
|
68 59 | #[allow(unused_mut)]
|
69 60 | let mut output = crate::types::error::builders::IncorrectKeyExceptionBuilder::default();
|
70 61 | output = crate::protocol_serde::shape_incorrect_key_exception::de_incorrect_key_exception_json_err(_response_body, output)
|
71 62 | .map_err(crate::operation::re_encrypt::ReEncryptError::unhandled)?;
|
72 63 | let output = output.meta(generic);
|
73 64 | output.build()
|
74 65 | };
|
75 - | if tmp.message.is_none() {
|
76 - | tmp.message = _error_message;
|
77 - | }
|
78 66 | tmp
|
79 67 | }),
|
80 68 | "InvalidCiphertextException" => crate::operation::re_encrypt::ReEncryptError::InvalidCiphertextException({
|
81 69 | #[allow(unused_mut)]
|
82 70 | let mut tmp = {
|
83 71 | #[allow(unused_mut)]
|
84 72 | let mut output = crate::types::error::builders::InvalidCiphertextExceptionBuilder::default();
|
85 73 | output = crate::protocol_serde::shape_invalid_ciphertext_exception::de_invalid_ciphertext_exception_json_err(_response_body, output)
|
86 74 | .map_err(crate::operation::re_encrypt::ReEncryptError::unhandled)?;
|
87 75 | let output = output.meta(generic);
|
88 76 | output.build()
|
89 77 | };
|
90 - | if tmp.message.is_none() {
|
91 - | tmp.message = _error_message;
|
92 - | }
|
93 78 | tmp
|
94 79 | }),
|
95 80 | "InvalidGrantTokenException" => crate::operation::re_encrypt::ReEncryptError::InvalidGrantTokenException({
|
96 81 | #[allow(unused_mut)]
|
97 82 | let mut tmp = {
|
98 83 | #[allow(unused_mut)]
|
99 84 | let mut output = crate::types::error::builders::InvalidGrantTokenExceptionBuilder::default();
|
100 85 | output =
|
101 86 | crate::protocol_serde::shape_invalid_grant_token_exception::de_invalid_grant_token_exception_json_err(_response_body, output)
|
102 87 | .map_err(crate::operation::re_encrypt::ReEncryptError::unhandled)?;
|
103 88 | let output = output.meta(generic);
|
104 89 | output.build()
|
105 90 | };
|
106 - | if tmp.message.is_none() {
|
107 - | tmp.message = _error_message;
|
108 - | }
|
109 91 | tmp
|
110 92 | }),
|
111 93 | "InvalidKeyUsageException" => crate::operation::re_encrypt::ReEncryptError::InvalidKeyUsageException({
|
112 94 | #[allow(unused_mut)]
|
113 95 | let mut tmp = {
|
114 96 | #[allow(unused_mut)]
|
115 97 | let mut output = crate::types::error::builders::InvalidKeyUsageExceptionBuilder::default();
|
116 98 | output = crate::protocol_serde::shape_invalid_key_usage_exception::de_invalid_key_usage_exception_json_err(_response_body, output)
|
117 99 | .map_err(crate::operation::re_encrypt::ReEncryptError::unhandled)?;
|
118 100 | let output = output.meta(generic);
|
119 101 | output.build()
|
120 102 | };
|
121 - | if tmp.message.is_none() {
|
122 - | tmp.message = _error_message;
|
123 - | }
|
124 103 | tmp
|
125 104 | }),
|
126 105 | "KeyUnavailableException" => crate::operation::re_encrypt::ReEncryptError::KeyUnavailableException({
|
127 106 | #[allow(unused_mut)]
|
128 107 | let mut tmp = {
|
129 108 | #[allow(unused_mut)]
|
130 109 | let mut output = crate::types::error::builders::KeyUnavailableExceptionBuilder::default();
|
131 110 | output = crate::protocol_serde::shape_key_unavailable_exception::de_key_unavailable_exception_json_err(_response_body, output)
|
132 111 | .map_err(crate::operation::re_encrypt::ReEncryptError::unhandled)?;
|
133 112 | let output = output.meta(generic);
|
134 113 | output.build()
|
135 114 | };
|
136 - | if tmp.message.is_none() {
|
137 - | tmp.message = _error_message;
|
138 - | }
|
139 115 | tmp
|
140 116 | }),
|
141 117 | "KMSInternalException" => crate::operation::re_encrypt::ReEncryptError::KmsInternalException({
|
142 118 | #[allow(unused_mut)]
|
143 119 | let mut tmp = {
|
144 120 | #[allow(unused_mut)]
|
145 121 | let mut output = crate::types::error::builders::KmsInternalExceptionBuilder::default();
|
146 122 | output = crate::protocol_serde::shape_kms_internal_exception::de_kms_internal_exception_json_err(_response_body, output)
|
147 123 | .map_err(crate::operation::re_encrypt::ReEncryptError::unhandled)?;
|
148 124 | let output = output.meta(generic);
|
149 125 | output.build()
|
150 126 | };
|
151 - | if tmp.message.is_none() {
|
152 - | tmp.message = _error_message;
|
153 - | }
|
154 127 | tmp
|
155 128 | }),
|
156 129 | "KMSInvalidStateException" => crate::operation::re_encrypt::ReEncryptError::KmsInvalidStateException({
|
157 130 | #[allow(unused_mut)]
|
158 131 | let mut tmp = {
|
159 132 | #[allow(unused_mut)]
|
160 133 | let mut output = crate::types::error::builders::KmsInvalidStateExceptionBuilder::default();
|
161 134 | output = crate::protocol_serde::shape_kms_invalid_state_exception::de_kms_invalid_state_exception_json_err(_response_body, output)
|
162 135 | .map_err(crate::operation::re_encrypt::ReEncryptError::unhandled)?;
|
163 136 | let output = output.meta(generic);
|
164 137 | output.build()
|
165 138 | };
|
166 - | if tmp.message.is_none() {
|
167 - | tmp.message = _error_message;
|
168 - | }
|
169 139 | tmp
|
170 140 | }),
|
171 141 | "NotFoundException" => crate::operation::re_encrypt::ReEncryptError::NotFoundException({
|
172 142 | #[allow(unused_mut)]
|
173 143 | let mut tmp = {
|
174 144 | #[allow(unused_mut)]
|
175 145 | let mut output = crate::types::error::builders::NotFoundExceptionBuilder::default();
|
176 146 | output = crate::protocol_serde::shape_not_found_exception::de_not_found_exception_json_err(_response_body, output)
|
177 147 | .map_err(crate::operation::re_encrypt::ReEncryptError::unhandled)?;
|
178 148 | let output = output.meta(generic);
|
179 149 | output.build()
|
180 150 | };
|
181 - | if tmp.message.is_none() {
|
182 - | tmp.message = _error_message;
|
183 - | }
|
184 151 | tmp
|
185 152 | }),
|
186 153 | _ => crate::operation::re_encrypt::ReEncryptError::generic(generic),
|
187 154 | })
|
188 155 | }
|
189 156 |
|
190 157 | #[allow(clippy::unnecessary_wraps)]
|
191 158 | pub fn de_re_encrypt_http_response(
|
192 159 | _response_status: u16,
|
193 160 | _response_headers: &::aws_smithy_runtime_api::http::Headers,
|