196 196 | }
|
197 197 | ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
|
198 198 | }
|
199 199 | }
|
200 200 | #[derive(Debug)]
|
201 201 | struct CreateBackupEndpointParamsInterceptor;
|
202 202 |
|
203 203 | impl ::aws_smithy_runtime_api::client::interceptors::Intercept for CreateBackupEndpointParamsInterceptor {
|
204 204 | fn name(&self) -> &'static str {
|
205 205 | "CreateBackupEndpointParamsInterceptor"
|
206 206 | }
|
207 207 |
|
208 208 | fn read_before_execution(
|
209 209 | &self,
|
210 210 | context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
|
211 211 | '_,
|
212 212 | ::aws_smithy_runtime_api::client::interceptors::context::Input,
|
213 213 | ::aws_smithy_runtime_api::client::interceptors::context::Output,
|
214 214 | ::aws_smithy_runtime_api::client::interceptors::context::Error,
|
215 215 | >,
|
216 216 | cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
|
217 217 | ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
|
218 218 | let _input = context
|
219 219 | .input()
|
220 220 | .downcast_ref::<CreateBackupInput>()
|
221 221 | .ok_or("failed to downcast to CreateBackupInput")?;
|
222 222 |
|
223 223 | let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
|
224 224 | ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
|
225 225 | })?;
|
226 + |
|
226 227 | cfg.interceptor_state()
|
227 228 | .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
|
229 + |
|
228 230 | ::std::result::Result::Ok(())
|
229 231 | }
|
230 232 | }
|
231 233 |
|
232 234 | // The get_* functions below are generated from JMESPath expressions in the
|
233 235 | // operationContextParams trait. They target the operation's input shape.
|
234 236 |
|
235 237 | /// Error type for the `CreateBackupError` operation.
|
236 238 | #[non_exhaustive]
|
237 239 | #[derive(::std::fmt::Debug)]
|
238 240 | pub enum CreateBackupError {
|
239 241 | /// <p>There is another ongoing conflicting backup control plane operation on the table. The backup is either being created, deleted or restored to a table.</p>
|
240 242 | BackupInUseError(crate::types::error::BackupInUseError),
|
241 243 | /// <p>Backups have not yet been enabled for this table.</p>
|
242 244 | ContinuousBackupsUnavailableError(crate::types::error::ContinuousBackupsUnavailableError),
|
243 245 | /// <p>An error occurred on the server side.</p>
|
244 246 | InternalServerError(crate::types::error::InternalServerError),
|
245 247 | #[allow(missing_docs)] // documentation missing in model
|
246 248 | InvalidEndpointError(crate::types::error::InvalidEndpointError),
|
247 249 | /// <p>There is no limit to the number of daily on-demand backups that can be taken.</p>
|
248 250 | /// <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>
|
249 251 | /// <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>
|
250 252 | /// <p>There is a soft account quota of 256 tables.</p>
|
251 253 | LimitExceededError(crate::types::error::LimitExceededError),
|
252 254 | /// <p>A target table with the specified name is either being created or deleted.</p>
|
253 255 | TableInUseError(crate::types::error::TableInUseError),
|
254 256 | /// <p>A source table with the name <code>TableName</code> does not currently exist within the subscriber's account.</p>
|
255 257 | TableNotFoundError(crate::types::error::TableNotFoundError),
|
256 258 | /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
|
257 259 | #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
|