172 172 | }
|
173 173 | #[derive(Debug)]
|
174 174 | struct DescribeScheduledQueryRequestSerializer;
|
175 175 | impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for DescribeScheduledQueryRequestSerializer {
|
176 176 | #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
|
177 177 | fn serialize_input(
|
178 178 | &self,
|
179 179 | input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
|
180 180 | _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
|
181 181 | ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
|
182 182 | let input = input
|
183 183 | .downcast::<crate::operation::describe_scheduled_query::DescribeScheduledQueryInput>()
|
184 184 | .expect("correct type");
|
185 185 | let _header_serialization_settings = _cfg
|
186 186 | .load::<crate::serialization_settings::HeaderSerializationSettings>()
|
187 187 | .cloned()
|
188 188 | .unwrap_or_default();
|
189 189 | let mut request_builder = {
|
190 190 | #[allow(clippy::uninlined_format_args)]
|
191 191 | fn uri_base(
|
192 192 | _input: &crate::operation::describe_scheduled_query::DescribeScheduledQueryInput,
|
193 193 | output: &mut ::std::string::String,
|
194 194 | ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
|
195 195 | use ::std::fmt::Write as _;
|
196 196 | ::std::write!(output, "/").expect("formatting should succeed");
|
197 197 | ::std::result::Result::Ok(())
|
198 198 | }
|
199 199 | #[allow(clippy::unnecessary_wraps)]
|
200 200 | fn update_http_builder(
|
201 201 | input: &crate::operation::describe_scheduled_query::DescribeScheduledQueryInput,
|
202 - | builder: ::http::request::Builder,
|
203 - | ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
|
202 + | builder: ::http_1x::request::Builder,
|
203 + | ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
|
204 204 | let mut uri = ::std::string::String::new();
|
205 205 | uri_base(input, &mut uri)?;
|
206 206 | ::std::result::Result::Ok(builder.method("POST").uri(uri))
|
207 207 | }
|
208 - | let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
|
209 - | builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/x-amz-json-1.0");
|
208 + | let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
|
209 + | builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/x-amz-json-1.0");
|
210 210 | builder = _header_serialization_settings.set_default_header(
|
211 211 | builder,
|
212 - | ::http::header::HeaderName::from_static("x-amz-target"),
|
212 + | ::http_1x::header::HeaderName::from_static("x-amz-target"),
|
213 213 | "Timestream_20181101.DescribeScheduledQuery",
|
214 214 | );
|
215 215 | builder
|
216 216 | };
|
217 217 | let body = ::aws_smithy_types::body::SdkBody::from(
|
218 218 | crate::protocol_serde::shape_describe_scheduled_query::ser_describe_scheduled_query_input(&input)?,
|
219 219 | );
|
220 220 | if let Some(content_length) = body.content_length() {
|
221 221 | let content_length = content_length.to_string();
|
222 - | request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
|
222 + | request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
|
223 223 | }
|
224 224 | ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
|
225 225 | }
|
226 226 | }
|
227 227 | #[derive(Debug)]
|
228 228 | struct DescribeScheduledQueryEndpointParamsInterceptor;
|
229 229 |
|
230 230 | impl ::aws_smithy_runtime_api::client::interceptors::Intercept for DescribeScheduledQueryEndpointParamsInterceptor {
|
231 231 | fn name(&self) -> &'static str {
|
232 232 | "DescribeScheduledQueryEndpointParamsInterceptor"
|
233 233 | }
|
234 234 |
|
235 235 | fn read_before_execution(
|
236 236 | &self,
|
237 237 | context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
|
238 238 | '_,
|
239 239 | ::aws_smithy_runtime_api::client::interceptors::context::Input,
|
240 240 | ::aws_smithy_runtime_api::client::interceptors::context::Output,
|
241 241 | ::aws_smithy_runtime_api::client::interceptors::context::Error,
|
242 242 | >,
|
243 243 | cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
|
244 244 | ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
|
245 245 | let _input = context
|
246 246 | .input()
|
247 247 | .downcast_ref::<DescribeScheduledQueryInput>()
|
248 248 | .ok_or("failed to downcast to DescribeScheduledQueryInput")?;
|
249 249 |
|
250 250 | let params = crate::config::endpoint::Params::builder()
|
251 251 | .set_region(cfg.load::<::aws_types::region::Region>().map(|r| r.as_ref().to_owned()))
|
252 252 | .set_use_dual_stack(cfg.load::<::aws_types::endpoint_config::UseDualStack>().map(|ty| ty.0))
|