206 206 | }
|
207 207 | ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
|
208 208 | }
|
209 209 | }
|
210 210 | #[derive(Debug)]
|
211 211 | struct XmlMapsFlattenedNestedXmlNamespaceEndpointParamsInterceptor;
|
212 212 |
|
213 213 | impl ::aws_smithy_runtime_api::client::interceptors::Intercept for XmlMapsFlattenedNestedXmlNamespaceEndpointParamsInterceptor {
|
214 214 | fn name(&self) -> &'static str {
|
215 215 | "XmlMapsFlattenedNestedXmlNamespaceEndpointParamsInterceptor"
|
216 216 | }
|
217 217 |
|
218 218 | fn read_before_execution(
|
219 219 | &self,
|
220 220 | context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
|
221 221 | '_,
|
222 222 | ::aws_smithy_runtime_api::client::interceptors::context::Input,
|
223 223 | ::aws_smithy_runtime_api::client::interceptors::context::Output,
|
224 224 | ::aws_smithy_runtime_api::client::interceptors::context::Error,
|
225 225 | >,
|
226 226 | cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
|
227 227 | ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
|
228 228 | let _input = context
|
229 229 | .input()
|
230 230 | .downcast_ref::<XmlMapsFlattenedNestedXmlNamespaceInput>()
|
231 231 | .ok_or("failed to downcast to XmlMapsFlattenedNestedXmlNamespaceInput")?;
|
232 232 |
|
233 233 | let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
|
234 234 | ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
|
235 235 | })?;
|
236 + |
|
236 237 | cfg.interceptor_state()
|
237 238 | .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
|
239 + |
|
238 240 | ::std::result::Result::Ok(())
|
239 241 | }
|
240 242 | }
|
241 243 |
|
242 244 | // The get_* functions below are generated from JMESPath expressions in the
|
243 245 | // operationContextParams trait. They target the operation's input shape.
|
244 246 |
|
245 247 | #[allow(unreachable_code, unused_variables)]
|
246 248 | #[cfg(test)]
|
247 249 | mod xml_maps_flattened_nested_xml_namespace_test {
|
248 250 |
|
249 251 | /// Test ID: DeserFlatNamespaceMaps
|
250 252 | #[::tokio::test]
|
251 253 | #[::tracing_test::traced_test]
|
252 254 | async fn deser_flat_namespace_maps_response() {
|
253 255 | let expected_output = crate::operation::xml_maps_flattened_nested_xml_namespace::XmlMapsFlattenedNestedXmlNamespaceOutput::builder()
|
254 256 | .set_my_map(::std::option::Option::Some({
|
255 257 | let mut ret = ::std::collections::HashMap::new();
|
256 258 | ret.insert("map2".to_owned(), {
|
257 259 | let mut ret = ::std::collections::HashMap::new();
|
258 260 | ret.insert("fourth".to_owned(), "onegai".to_owned());
|
259 261 | ret.insert("third".to_owned(), "plz".to_owned());
|
260 262 | ret
|
261 263 | });
|
262 264 | ret.insert("map1".to_owned(), {
|
263 265 | let mut ret = ::std::collections::HashMap::new();
|
264 266 | ret.insert("second".to_owned(), "konnichiwa".to_owned());
|
265 267 | ret.insert("first".to_owned(), "hi".to_owned());
|
266 268 | ret
|
267 269 | });
|