196 196 | .unwrap_or_default();
|
197 197 | let mut request_builder = {
|
198 198 | #[allow(clippy::uninlined_format_args)]
|
199 199 | fn uri_base(
|
200 200 | _input: &crate::operation::delete_vpc_association_authorization::DeleteVpcAssociationAuthorizationInput,
|
201 201 | output: &mut ::std::string::String,
|
202 202 | ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
|
203 203 | use ::std::fmt::Write as _;
|
204 204 | let input_1 = &_input.hosted_zone_id;
|
205 205 | let input_1 = input_1
|
206 206 | .as_ref()
|
207 207 | .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("hosted_zone_id", "cannot be empty or unset"))?;
|
208 208 | let hosted_zone_id = ::aws_smithy_http::label::fmt_string(input_1, ::aws_smithy_http::label::EncodingStrategy::Default);
|
209 209 | if hosted_zone_id.is_empty() {
|
210 210 | return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
|
211 211 | "hosted_zone_id",
|
212 212 | "cannot be empty or unset",
|
213 213 | ));
|
214 214 | }
|
215 215 | ::std::write!(
|
216 216 | output,
|
217 217 | "/2013-04-01/hostedzone/{HostedZoneId}/deauthorizevpcassociation",
|
218 218 | HostedZoneId = hosted_zone_id
|
219 219 | )
|
220 220 | .expect("formatting should succeed");
|
221 221 | ::std::result::Result::Ok(())
|
222 222 | }
|
223 223 | #[allow(clippy::unnecessary_wraps)]
|
224 224 | fn update_http_builder(
|
225 225 | input: &crate::operation::delete_vpc_association_authorization::DeleteVpcAssociationAuthorizationInput,
|
226 - | builder: ::http::request::Builder,
|
227 - | ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
|
226 + | builder: ::http_1x::request::Builder,
|
227 + | ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
|
228 228 | let mut uri = ::std::string::String::new();
|
229 229 | uri_base(input, &mut uri)?;
|
230 230 | ::std::result::Result::Ok(builder.method("POST").uri(uri))
|
231 231 | }
|
232 - | let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
|
233 - | builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/xml");
|
232 + | let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
|
233 + | builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/xml");
|
234 234 | builder
|
235 235 | };
|
236 236 | let body = ::aws_smithy_types::body::SdkBody::from(
|
237 237 | crate::protocol_serde::shape_delete_vpc_association_authorization::ser_delete_vpc_association_authorization_op_input(&input)?,
|
238 238 | );
|
239 239 | if let Some(content_length) = body.content_length() {
|
240 240 | let content_length = content_length.to_string();
|
241 - | request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
|
241 + | request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
|
242 242 | }
|
243 243 | ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
|
244 244 | }
|
245 245 | }
|
246 246 | #[derive(Debug)]
|
247 247 | struct DeleteVPCAssociationAuthorizationEndpointParamsInterceptor;
|
248 248 |
|
249 249 | impl ::aws_smithy_runtime_api::client::interceptors::Intercept for DeleteVPCAssociationAuthorizationEndpointParamsInterceptor {
|
250 250 | fn name(&self) -> &'static str {
|
251 251 | "DeleteVPCAssociationAuthorizationEndpointParamsInterceptor"
|
252 252 | }
|
253 253 |
|
254 254 | fn read_before_execution(
|
255 255 | &self,
|
256 256 | context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
|
257 257 | '_,
|
258 258 | ::aws_smithy_runtime_api::client::interceptors::context::Input,
|
259 259 | ::aws_smithy_runtime_api::client::interceptors::context::Output,
|
260 260 | ::aws_smithy_runtime_api::client::interceptors::context::Error,
|
261 261 | >,
|
262 262 | cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
|
263 263 | ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
|
264 264 | let _input = context
|
265 265 | .input()
|
266 266 | .downcast_ref::<DeleteVpcAssociationAuthorizationInput>()
|
267 267 | .ok_or("failed to downcast to DeleteVpcAssociationAuthorizationInput")?;
|
268 268 |
|
269 269 | let params = crate::config::endpoint::Params::builder()
|
270 270 | .set_region(cfg.load::<::aws_types::region::Region>().map(|r| r.as_ref().to_owned()))
|
271 271 | .set_use_dual_stack(cfg.load::<::aws_types::endpoint_config::UseDualStack>().map(|ty| ty.0))
|