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