207 207 | }
|
208 208 | ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
|
209 209 | }
|
210 210 | }
|
211 211 | #[derive(Debug)]
|
212 212 | struct UpdateTableReplicaAutoScalingEndpointParamsInterceptor;
|
213 213 |
|
214 214 | impl ::aws_smithy_runtime_api::client::interceptors::Intercept for UpdateTableReplicaAutoScalingEndpointParamsInterceptor {
|
215 215 | fn name(&self) -> &'static str {
|
216 216 | "UpdateTableReplicaAutoScalingEndpointParamsInterceptor"
|
217 217 | }
|
218 218 |
|
219 219 | fn read_before_execution(
|
220 220 | &self,
|
221 221 | context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
|
222 222 | '_,
|
223 223 | ::aws_smithy_runtime_api::client::interceptors::context::Input,
|
224 224 | ::aws_smithy_runtime_api::client::interceptors::context::Output,
|
225 225 | ::aws_smithy_runtime_api::client::interceptors::context::Error,
|
226 226 | >,
|
227 227 | cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
|
228 228 | ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
|
229 229 | let _input = context
|
230 230 | .input()
|
231 231 | .downcast_ref::<UpdateTableReplicaAutoScalingInput>()
|
232 232 | .ok_or("failed to downcast to UpdateTableReplicaAutoScalingInput")?;
|
233 233 |
|
234 234 | let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
|
235 235 | ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
|
236 236 | })?;
|
237 + |
|
237 238 | cfg.interceptor_state()
|
238 239 | .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
|
240 + |
|
239 241 | ::std::result::Result::Ok(())
|
240 242 | }
|
241 243 | }
|
242 244 |
|
243 245 | // The get_* functions below are generated from JMESPath expressions in the
|
244 246 | // operationContextParams trait. They target the operation's input shape.
|
245 247 |
|
246 248 | /// Error type for the `UpdateTableReplicaAutoScalingError` operation.
|
247 249 | #[non_exhaustive]
|
248 250 | #[derive(::std::fmt::Debug)]
|
249 251 | pub enum UpdateTableReplicaAutoScalingError {
|
250 252 | /// <p>An error occurred on the server side.</p>
|
251 253 | InternalServerError(crate::types::error::InternalServerError),
|
252 254 | /// <p>There is no limit to the number of daily on-demand backups that can be taken.</p>
|
253 255 | /// <p>Up to 50 simultaneous table operations are allowed per account. These operations include <code>CreateTable</code>, <code>UpdateTable</code>, <code>DeleteTable</code>,<code>UpdateTimeToLive</code>, <code>RestoreTableFromBackup</code>, and <code>RestoreTableToPointInTime</code>.</p>
|
254 256 | /// <p>The only exception is when you are creating a table with one or more secondary indexes. You can have up to 25 such requests running at a time; however, if the table or index specifications are complex, DynamoDB might temporarily reduce the number of concurrent operations.</p>
|
255 257 | /// <p>There is a soft account quota of 256 tables.</p>
|
256 258 | LimitExceededError(crate::types::error::LimitExceededError),
|
257 259 | /// <p>The operation conflicts with the resource's availability. For example, you attempted to recreate an existing table, or tried to delete a table currently in the <code>CREATING</code> state.</p>
|
258 260 | ResourceInUseError(crate::types::error::ResourceInUseError),
|
259 261 | /// <p>The operation tried to access a nonexistent table or index. The resource might not be specified correctly, or its status might not be <code>ACTIVE</code>.</p>
|
260 262 | ResourceNotFoundError(crate::types::error::ResourceNotFoundError),
|
261 263 | /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
|
262 264 | #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
|
263 265 | variable wildcard pattern and check `.code()`:
|
264 266 | \
|
265 267 | `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
|
266 268 | \
|
267 269 | See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-UpdateTableReplicaAutoScalingError) for what information is available for the error.")]
|
268 270 | Unhandled(crate::error::sealed_unhandled::Unhandled),
|