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