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