185 185 | _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
|
186 186 | ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
|
187 187 | let input = input
|
188 188 | .downcast::<crate::operation::get_object_lock_configuration::GetObjectLockConfigurationInput>()
|
189 189 | .expect("correct type");
|
190 190 | let _header_serialization_settings = _cfg
|
191 191 | .load::<crate::serialization_settings::HeaderSerializationSettings>()
|
192 192 | .cloned()
|
193 193 | .unwrap_or_default();
|
194 194 | let mut request_builder = {
|
195 195 | #[allow(clippy::uninlined_format_args)]
|
196 196 | fn uri_base(
|
197 197 | _input: &crate::operation::get_object_lock_configuration::GetObjectLockConfigurationInput,
|
198 198 | output: &mut ::std::string::String,
|
199 199 | ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
|
200 200 | use ::std::fmt::Write as _;
|
201 201 | ::std::write!(output, "/").expect("formatting should succeed");
|
202 202 | ::std::result::Result::Ok(())
|
203 203 | }
|
204 204 | fn uri_query(
|
205 205 | _input: &crate::operation::get_object_lock_configuration::GetObjectLockConfigurationInput,
|
206 206 | mut output: &mut ::std::string::String,
|
207 207 | ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
|
208 208 | let mut query = ::aws_smithy_http::query::Writer::new(output);
|
209 209 | query.push_v("object-lock");
|
210 210 | ::std::result::Result::Ok(())
|
211 211 | }
|
212 212 | #[allow(clippy::unnecessary_wraps)]
|
213 213 | fn update_http_builder(
|
214 214 | input: &crate::operation::get_object_lock_configuration::GetObjectLockConfigurationInput,
|
215 - | builder: ::http::request::Builder,
|
216 - | ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
|
215 + | builder: ::http_1x::request::Builder,
|
216 + | ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
|
217 217 | let mut uri = ::std::string::String::new();
|
218 218 | uri_base(input, &mut uri)?;
|
219 219 | uri_query(input, &mut uri)?;
|
220 220 | let builder = crate::protocol_serde::shape_get_object_lock_configuration::ser_get_object_lock_configuration_headers(input, builder)?;
|
221 221 | ::std::result::Result::Ok(builder.method("GET").uri(uri))
|
222 222 | }
|
223 - | let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
|
223 + | let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
|
224 224 | builder
|
225 225 | };
|
226 226 | let body = ::aws_smithy_types::body::SdkBody::from("");
|
227 227 |
|
228 228 | ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
|
229 229 | }
|
230 230 | }
|
231 231 | #[derive(Debug)]
|
232 232 | struct GetObjectLockConfigurationEndpointParamsInterceptor;
|
233 233 |
|
234 234 | impl ::aws_smithy_runtime_api::client::interceptors::Intercept for GetObjectLockConfigurationEndpointParamsInterceptor {
|
235 235 | fn name(&self) -> &'static str {
|
236 236 | "GetObjectLockConfigurationEndpointParamsInterceptor"
|
237 237 | }
|
238 238 |
|
239 239 | fn read_before_execution(
|
240 240 | &self,
|
241 241 | context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
|
242 242 | '_,
|
243 243 | ::aws_smithy_runtime_api::client::interceptors::context::Input,
|
244 244 | ::aws_smithy_runtime_api::client::interceptors::context::Output,
|
245 245 | ::aws_smithy_runtime_api::client::interceptors::context::Error,
|
246 246 | >,
|
247 247 | cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
|
248 248 | ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
|
249 249 | let _input = context
|
250 250 | .input()
|
251 251 | .downcast_ref::<GetObjectLockConfigurationInput>()
|
252 252 | .ok_or("failed to downcast to GetObjectLockConfigurationInput")?;
|
253 253 |
|