199 199 | }
|
200 200 | ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
|
201 201 | }
|
202 202 | }
|
203 203 | #[derive(Debug)]
|
204 204 | struct ExecuteStatementEndpointParamsInterceptor;
|
205 205 |
|
206 206 | impl ::aws_smithy_runtime_api::client::interceptors::Intercept for ExecuteStatementEndpointParamsInterceptor {
|
207 207 | fn name(&self) -> &'static str {
|
208 208 | "ExecuteStatementEndpointParamsInterceptor"
|
209 209 | }
|
210 210 |
|
211 211 | fn read_before_execution(
|
212 212 | &self,
|
213 213 | context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
|
214 214 | '_,
|
215 215 | ::aws_smithy_runtime_api::client::interceptors::context::Input,
|
216 216 | ::aws_smithy_runtime_api::client::interceptors::context::Output,
|
217 217 | ::aws_smithy_runtime_api::client::interceptors::context::Error,
|
218 218 | >,
|
219 219 | cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
|
220 220 | ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
|
221 221 | let _input = context
|
222 222 | .input()
|
223 223 | .downcast_ref::<ExecuteStatementInput>()
|
224 224 | .ok_or("failed to downcast to ExecuteStatementInput")?;
|
225 225 |
|
226 226 | let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
|
227 227 | ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
|
228 228 | })?;
|
229 + |
|
229 230 | cfg.interceptor_state()
|
230 231 | .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
|
232 + |
|
231 233 | ::std::result::Result::Ok(())
|
232 234 | }
|
233 235 | }
|
234 236 |
|
235 237 | // The get_* functions below are generated from JMESPath expressions in the
|
236 238 | // operationContextParams trait. They target the operation's input shape.
|
237 239 |
|
238 240 | /// Error type for the `ExecuteStatementError` operation.
|
239 241 | #[non_exhaustive]
|
240 242 | #[derive(::std::fmt::Debug)]
|
241 243 | pub enum ExecuteStatementError {
|
242 244 | /// <p>A condition specified in the operation could not be evaluated.</p>
|
243 245 | ConditionalCheckFailedError(crate::types::error::ConditionalCheckFailedError),
|
244 246 | /// <p>There was an attempt to insert an item with the same primary key as an item that already exists in the DynamoDB table.</p>
|
245 247 | DuplicateItemError(crate::types::error::DuplicateItemError),
|
246 248 | /// <p>An error occurred on the server side.</p>
|
247 249 | InternalServerError(crate::types::error::InternalServerError),
|
248 250 | /// <p>An item collection is too large. This exception is only returned for tables that have one or more local secondary indexes.</p>
|
249 251 | ItemCollectionSizeLimitExceededError(crate::types::error::ItemCollectionSizeLimitExceededError),
|
250 252 | /// <p>Your request rate is too high. The AWS SDKs for DynamoDB automatically retry requests that receive this exception. Your request is eventually successful, unless your retry queue is too large to finish. Reduce the frequency of requests and use exponential backoff. For more information, go to <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Programming.Errors.html#Programming.Errors.RetryAndBackoff">Error Retries and Exponential Backoff</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
|
251 253 | ProvisionedThroughputExceededError(crate::types::error::ProvisionedThroughputExceededError),
|
252 254 | /// <p>Throughput exceeds the current throughput quota for your account. Please contact AWS Support at <a href="https://aws.amazon.com/support">AWS Support</a> to request a quota increase.</p>
|
253 255 | RequestLimitExceeded(crate::types::error::RequestLimitExceeded),
|
254 256 | /// <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>
|
255 257 | ResourceNotFoundError(crate::types::error::ResourceNotFoundError),
|
256 258 | /// <p>Operation was rejected because there is an ongoing transaction for the item.</p>
|
257 259 | TransactionConflictError(crate::types::error::TransactionConflictError),
|
258 260 | /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
|
259 261 | #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
|
260 262 | variable wildcard pattern and check `.code()`:
|