157 157 | }
|
158 158 | #[derive(Debug)]
|
159 159 | struct UpdateTableReplicaAutoScalingRequestSerializer;
|
160 160 | impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for UpdateTableReplicaAutoScalingRequestSerializer {
|
161 161 | #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
|
162 162 | fn serialize_input(
|
163 163 | &self,
|
164 164 | input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
|
165 165 | _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
|
166 166 | ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
|
167 167 | let input = input
|
168 168 | .downcast::<crate::operation::update_table_replica_auto_scaling::UpdateTableReplicaAutoScalingInput>()
|
169 169 | .expect("correct type");
|
170 170 | let _header_serialization_settings = _cfg
|
171 171 | .load::<crate::serialization_settings::HeaderSerializationSettings>()
|
172 172 | .cloned()
|
173 173 | .unwrap_or_default();
|
174 174 | let mut request_builder = {
|
175 175 | #[allow(clippy::uninlined_format_args)]
|
176 176 | fn uri_base(
|
177 177 | _input: &crate::operation::update_table_replica_auto_scaling::UpdateTableReplicaAutoScalingInput,
|
178 178 | output: &mut ::std::string::String,
|
179 179 | ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
|
180 180 | use ::std::fmt::Write as _;
|
181 181 | ::std::write!(output, "/").expect("formatting should succeed");
|
182 182 | ::std::result::Result::Ok(())
|
183 183 | }
|
184 184 | #[allow(clippy::unnecessary_wraps)]
|
185 185 | fn update_http_builder(
|
186 186 | input: &crate::operation::update_table_replica_auto_scaling::UpdateTableReplicaAutoScalingInput,
|
187 - | builder: ::http::request::Builder,
|
188 - | ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
|
187 + | builder: ::http_1x::request::Builder,
|
188 + | ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
|
189 189 | let mut uri = ::std::string::String::new();
|
190 190 | uri_base(input, &mut uri)?;
|
191 191 | ::std::result::Result::Ok(builder.method("POST").uri(uri))
|
192 192 | }
|
193 - | let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
|
194 - | builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/x-amz-json-1.0");
|
193 + | let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
|
194 + | builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/x-amz-json-1.0");
|
195 195 | builder = _header_serialization_settings.set_default_header(
|
196 196 | builder,
|
197 - | ::http::header::HeaderName::from_static("x-amz-target"),
|
197 + | ::http_1x::header::HeaderName::from_static("x-amz-target"),
|
198 198 | "DynamoDB_20120810.UpdateTableReplicaAutoScaling",
|
199 199 | );
|
200 200 | builder
|
201 201 | };
|
202 202 | let body = ::aws_smithy_types::body::SdkBody::from(
|
203 203 | crate::protocol_serde::shape_update_table_replica_auto_scaling::ser_update_table_replica_auto_scaling_input(&input)?,
|
204 204 | );
|
205 205 | if let Some(content_length) = body.content_length() {
|
206 206 | let content_length = content_length.to_string();
|
207 - | request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
|
207 + | request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
|
208 208 | }
|
209 209 | ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
|
210 210 | }
|
211 211 | }
|
212 212 | #[derive(Debug)]
|
213 213 | struct UpdateTableReplicaAutoScalingEndpointParamsInterceptor;
|
214 214 |
|
215 215 | impl ::aws_smithy_runtime_api::client::interceptors::Intercept for UpdateTableReplicaAutoScalingEndpointParamsInterceptor {
|
216 216 | fn name(&self) -> &'static str {
|
217 217 | "UpdateTableReplicaAutoScalingEndpointParamsInterceptor"
|
218 218 | }
|
219 219 |
|
220 220 | fn read_before_execution(
|
221 221 | &self,
|
222 222 | context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
|
223 223 | '_,
|
224 224 | ::aws_smithy_runtime_api::client::interceptors::context::Input,
|
225 225 | ::aws_smithy_runtime_api::client::interceptors::context::Output,
|
226 226 | ::aws_smithy_runtime_api::client::interceptors::context::Error,
|
227 227 | >,
|
228 228 | cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
|
229 229 | ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
|
230 230 | let _input = context
|
231 231 | .input()
|
232 232 | .downcast_ref::<UpdateTableReplicaAutoScalingInput>()
|
233 233 | .ok_or("failed to downcast to UpdateTableReplicaAutoScalingInput")?;
|
234 234 |
|
235 235 | let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
|
236 236 | ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
|
237 237 | })?;
|