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