23 23 | "AccessDeniedException" => crate::operation::create_token_with_iam::CreateTokenWithIAMError::AccessDeniedException({
|
24 24 | #[allow(unused_mut)]
|
25 25 | let mut tmp = {
|
26 26 | #[allow(unused_mut)]
|
27 27 | let mut output = crate::types::error::builders::AccessDeniedExceptionBuilder::default();
|
28 28 | output = crate::protocol_serde::shape_access_denied_exception::de_access_denied_exception_json_err(_response_body, output)
|
29 29 | .map_err(crate::operation::create_token_with_iam::CreateTokenWithIAMError::unhandled)?;
|
30 30 | let output = output.meta(generic);
|
31 31 | output.build()
|
32 32 | };
|
33 - | if tmp.message.is_none() {
|
34 - | tmp.message = _error_message;
|
35 - | }
|
36 33 | tmp
|
37 34 | }),
|
38 35 | "AuthorizationPendingException" => crate::operation::create_token_with_iam::CreateTokenWithIAMError::AuthorizationPendingException({
|
39 36 | #[allow(unused_mut)]
|
40 37 | let mut tmp = {
|
41 38 | #[allow(unused_mut)]
|
42 39 | let mut output = crate::types::error::builders::AuthorizationPendingExceptionBuilder::default();
|
43 40 | output =
|
44 41 | crate::protocol_serde::shape_authorization_pending_exception::de_authorization_pending_exception_json_err(_response_body, output)
|
45 42 | .map_err(crate::operation::create_token_with_iam::CreateTokenWithIAMError::unhandled)?;
|
46 43 | let output = output.meta(generic);
|
47 44 | output.build()
|
48 45 | };
|
49 - | if tmp.message.is_none() {
|
50 - | tmp.message = _error_message;
|
51 - | }
|
52 46 | tmp
|
53 47 | }),
|
54 48 | "ExpiredTokenException" => crate::operation::create_token_with_iam::CreateTokenWithIAMError::ExpiredTokenException({
|
55 49 | #[allow(unused_mut)]
|
56 50 | let mut tmp = {
|
57 51 | #[allow(unused_mut)]
|
58 52 | let mut output = crate::types::error::builders::ExpiredTokenExceptionBuilder::default();
|
59 53 | output = crate::protocol_serde::shape_expired_token_exception::de_expired_token_exception_json_err(_response_body, output)
|
60 54 | .map_err(crate::operation::create_token_with_iam::CreateTokenWithIAMError::unhandled)?;
|
61 55 | let output = output.meta(generic);
|
62 56 | output.build()
|
63 57 | };
|
64 - | if tmp.message.is_none() {
|
65 - | tmp.message = _error_message;
|
66 - | }
|
67 58 | tmp
|
68 59 | }),
|
69 60 | "InternalServerException" => crate::operation::create_token_with_iam::CreateTokenWithIAMError::InternalServerException({
|
70 61 | #[allow(unused_mut)]
|
71 62 | let mut tmp = {
|
72 63 | #[allow(unused_mut)]
|
73 64 | let mut output = crate::types::error::builders::InternalServerExceptionBuilder::default();
|
74 65 | output = crate::protocol_serde::shape_internal_server_exception::de_internal_server_exception_json_err(_response_body, output)
|
75 66 | .map_err(crate::operation::create_token_with_iam::CreateTokenWithIAMError::unhandled)?;
|
76 67 | let output = output.meta(generic);
|
77 68 | output.build()
|
78 69 | };
|
79 - | if tmp.message.is_none() {
|
80 - | tmp.message = _error_message;
|
81 - | }
|
82 70 | tmp
|
83 71 | }),
|
84 72 | "InvalidClientException" => crate::operation::create_token_with_iam::CreateTokenWithIAMError::InvalidClientException({
|
85 73 | #[allow(unused_mut)]
|
86 74 | let mut tmp = {
|
87 75 | #[allow(unused_mut)]
|
88 76 | let mut output = crate::types::error::builders::InvalidClientExceptionBuilder::default();
|
89 77 | output = crate::protocol_serde::shape_invalid_client_exception::de_invalid_client_exception_json_err(_response_body, output)
|
90 78 | .map_err(crate::operation::create_token_with_iam::CreateTokenWithIAMError::unhandled)?;
|
91 79 | let output = output.meta(generic);
|
92 80 | output.build()
|
93 81 | };
|
94 - | if tmp.message.is_none() {
|
95 - | tmp.message = _error_message;
|
96 - | }
|
97 82 | tmp
|
98 83 | }),
|
99 84 | "InvalidGrantException" => crate::operation::create_token_with_iam::CreateTokenWithIAMError::InvalidGrantException({
|
100 85 | #[allow(unused_mut)]
|
101 86 | let mut tmp = {
|
102 87 | #[allow(unused_mut)]
|
103 88 | let mut output = crate::types::error::builders::InvalidGrantExceptionBuilder::default();
|
104 89 | output = crate::protocol_serde::shape_invalid_grant_exception::de_invalid_grant_exception_json_err(_response_body, output)
|
105 90 | .map_err(crate::operation::create_token_with_iam::CreateTokenWithIAMError::unhandled)?;
|
106 91 | let output = output.meta(generic);
|
107 92 | output.build()
|
108 93 | };
|
109 - | if tmp.message.is_none() {
|
110 - | tmp.message = _error_message;
|
111 - | }
|
112 94 | tmp
|
113 95 | }),
|
114 96 | "InvalidRequestException" => crate::operation::create_token_with_iam::CreateTokenWithIAMError::InvalidRequestException({
|
115 97 | #[allow(unused_mut)]
|
116 98 | let mut tmp = {
|
117 99 | #[allow(unused_mut)]
|
118 100 | let mut output = crate::types::error::builders::InvalidRequestExceptionBuilder::default();
|
119 101 | output = crate::protocol_serde::shape_invalid_request_exception::de_invalid_request_exception_json_err(_response_body, output)
|
120 102 | .map_err(crate::operation::create_token_with_iam::CreateTokenWithIAMError::unhandled)?;
|
121 103 | let output = output.meta(generic);
|
122 104 | output.build()
|
123 105 | };
|
124 - | if tmp.message.is_none() {
|
125 - | tmp.message = _error_message;
|
126 - | }
|
127 106 | tmp
|
128 107 | }),
|
129 108 | "InvalidRequestRegionException" => crate::operation::create_token_with_iam::CreateTokenWithIAMError::InvalidRequestRegionException({
|
130 109 | #[allow(unused_mut)]
|
131 110 | let mut tmp = {
|
132 111 | #[allow(unused_mut)]
|
133 112 | let mut output = crate::types::error::builders::InvalidRequestRegionExceptionBuilder::default();
|
134 113 | output = crate::protocol_serde::shape_invalid_request_region_exception::de_invalid_request_region_exception_json_err(
|
135 114 | _response_body,
|
136 115 | output,
|
137 116 | )
|
138 117 | .map_err(crate::operation::create_token_with_iam::CreateTokenWithIAMError::unhandled)?;
|
139 118 | let output = output.meta(generic);
|
140 119 | output.build()
|
141 120 | };
|
142 - | if tmp.message.is_none() {
|
143 - | tmp.message = _error_message;
|
144 - | }
|
145 121 | tmp
|
146 122 | }),
|
147 123 | "InvalidScopeException" => crate::operation::create_token_with_iam::CreateTokenWithIAMError::InvalidScopeException({
|
148 124 | #[allow(unused_mut)]
|
149 125 | let mut tmp = {
|
150 126 | #[allow(unused_mut)]
|
151 127 | let mut output = crate::types::error::builders::InvalidScopeExceptionBuilder::default();
|
152 128 | output = crate::protocol_serde::shape_invalid_scope_exception::de_invalid_scope_exception_json_err(_response_body, output)
|
153 129 | .map_err(crate::operation::create_token_with_iam::CreateTokenWithIAMError::unhandled)?;
|
154 130 | let output = output.meta(generic);
|
155 131 | output.build()
|
156 132 | };
|
157 - | if tmp.message.is_none() {
|
158 - | tmp.message = _error_message;
|
159 - | }
|
160 133 | tmp
|
161 134 | }),
|
162 135 | "SlowDownException" => crate::operation::create_token_with_iam::CreateTokenWithIAMError::SlowDownException({
|
163 136 | #[allow(unused_mut)]
|
164 137 | let mut tmp = {
|
165 138 | #[allow(unused_mut)]
|
166 139 | let mut output = crate::types::error::builders::SlowDownExceptionBuilder::default();
|
167 140 | output = crate::protocol_serde::shape_slow_down_exception::de_slow_down_exception_json_err(_response_body, output)
|
168 141 | .map_err(crate::operation::create_token_with_iam::CreateTokenWithIAMError::unhandled)?;
|
169 142 | let output = output.meta(generic);
|
170 143 | output.build()
|
171 144 | };
|
172 - | if tmp.message.is_none() {
|
173 - | tmp.message = _error_message;
|
174 - | }
|
175 145 | tmp
|
176 146 | }),
|
177 147 | "UnauthorizedClientException" => crate::operation::create_token_with_iam::CreateTokenWithIAMError::UnauthorizedClientException({
|
178 148 | #[allow(unused_mut)]
|
179 149 | let mut tmp = {
|
180 150 | #[allow(unused_mut)]
|
181 151 | let mut output = crate::types::error::builders::UnauthorizedClientExceptionBuilder::default();
|
182 152 | output =
|
183 153 | crate::protocol_serde::shape_unauthorized_client_exception::de_unauthorized_client_exception_json_err(_response_body, output)
|
184 154 | .map_err(crate::operation::create_token_with_iam::CreateTokenWithIAMError::unhandled)?;
|
185 155 | let output = output.meta(generic);
|
186 156 | output.build()
|
187 157 | };
|
188 - | if tmp.message.is_none() {
|
189 - | tmp.message = _error_message;
|
190 - | }
|
191 158 | tmp
|
192 159 | }),
|
193 160 | "UnsupportedGrantTypeException" => crate::operation::create_token_with_iam::CreateTokenWithIAMError::UnsupportedGrantTypeException({
|
194 161 | #[allow(unused_mut)]
|
195 162 | let mut tmp = {
|
196 163 | #[allow(unused_mut)]
|
197 164 | let mut output = crate::types::error::builders::UnsupportedGrantTypeExceptionBuilder::default();
|
198 165 | output = crate::protocol_serde::shape_unsupported_grant_type_exception::de_unsupported_grant_type_exception_json_err(
|
199 166 | _response_body,
|
200 167 | output,
|
201 168 | )
|
202 169 | .map_err(crate::operation::create_token_with_iam::CreateTokenWithIAMError::unhandled)?;
|
203 170 | let output = output.meta(generic);
|
204 171 | output.build()
|
205 172 | };
|
206 - | if tmp.message.is_none() {
|
207 - | tmp.message = _error_message;
|
208 - | }
|
209 173 | tmp
|
210 174 | }),
|
211 175 | _ => crate::operation::create_token_with_iam::CreateTokenWithIAMError::generic(generic),
|
212 176 | })
|
213 177 | }
|
214 178 |
|
215 179 | #[allow(clippy::unnecessary_wraps)]
|
216 180 | pub fn de_create_token_with_iam_http_response(
|
217 181 | _response_status: u16,
|
218 182 | _response_headers: &::aws_smithy_runtime_api::http::Headers,
|