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