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