185 185 |
|
186 186 | ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
|
187 187 | }
|
188 188 | }
|
189 189 | #[derive(Debug)]
|
190 190 | struct XmlListsEndpointParamsInterceptor;
|
191 191 |
|
192 192 | impl ::aws_smithy_runtime_api::client::interceptors::Intercept for XmlListsEndpointParamsInterceptor {
|
193 193 | fn name(&self) -> &'static str {
|
194 194 | "XmlListsEndpointParamsInterceptor"
|
195 195 | }
|
196 196 |
|
197 197 | fn read_before_execution(
|
198 198 | &self,
|
199 199 | context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
|
200 200 | '_,
|
201 201 | ::aws_smithy_runtime_api::client::interceptors::context::Input,
|
202 202 | ::aws_smithy_runtime_api::client::interceptors::context::Output,
|
203 203 | ::aws_smithy_runtime_api::client::interceptors::context::Error,
|
204 204 | >,
|
205 205 | cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
|
206 206 | ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
|
207 207 | let _input = context
|
208 208 | .input()
|
209 209 | .downcast_ref::<XmlListsInput>()
|
210 210 | .ok_or("failed to downcast to XmlListsInput")?;
|
211 211 |
|
212 212 | let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
|
213 213 | ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
|
214 214 | })?;
|
215 + |
|
215 216 | cfg.interceptor_state()
|
216 217 | .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
|
218 + |
|
217 219 | ::std::result::Result::Ok(())
|
218 220 | }
|
219 221 | }
|
220 222 |
|
221 223 | // The get_* functions below are generated from JMESPath expressions in the
|
222 224 | // operationContextParams trait. They target the operation's input shape.
|
223 225 |
|
224 226 | #[allow(unreachable_code, unused_variables)]
|
225 227 | #[cfg(test)]
|
226 228 | mod xml_lists_test {
|
227 229 |
|
228 230 | /// Tests for XML list serialization
|
229 231 | /// Test ID: QueryXmlLists
|
230 232 | #[::tokio::test]
|
231 233 | #[::tracing_test::traced_test]
|
232 234 | async fn query_xml_lists_response() {
|
233 235 | let expected_output = crate::operation::xml_lists::XmlListsOutput::builder()
|
234 236 | .set_string_list(::std::option::Option::Some(vec!["foo".to_owned(), "bar".to_owned()]))
|
235 237 | .set_string_set(::std::option::Option::Some(vec!["foo".to_owned(), "bar".to_owned()]))
|
236 238 | .set_integer_list(::std::option::Option::Some(vec![1, 2]))
|
237 239 | .set_boolean_list(::std::option::Option::Some(vec![true, false]))
|
238 240 | .set_timestamp_list(::std::option::Option::Some(vec![
|
239 241 | ::aws_smithy_types::DateTime::from_fractional_secs(1398796238, 0_f64),
|
240 242 | ::aws_smithy_types::DateTime::from_fractional_secs(1398796238, 0_f64),
|
241 243 | ]))
|
242 244 | .set_enum_list(::std::option::Option::Some(vec![
|
243 245 | "Foo".parse::<crate::types::FooEnum>().expect("static value validated to member"),
|
244 246 | "0".parse::<crate::types::FooEnum>().expect("static value validated to member"),
|
245 247 | ]))
|
246 248 | .set_int_enum_list(::std::option::Option::Some(vec![1, 2]))
|