77 86 | runtime_plugins = runtime_plugins.with_operation_plugin(plugin);
|
78 87 | }
|
79 88 | runtime_plugins = runtime_plugins.with_operation_plugin(crate::config::ConfigOverrideRuntimePlugin::new(
|
80 89 | config_override,
|
81 90 | client_config.config.clone(),
|
82 91 | &client_config.runtime_components,
|
83 92 | ));
|
84 93 | }
|
85 94 | runtime_plugins
|
86 95 | }
|
96 + | /* OperationGenerator.kt:85 */
|
87 97 | }
|
98 + | /* OperationRuntimePluginGenerator.kt:55 */
|
88 99 | impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for ExecuteStatement {
|
89 100 | fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
|
90 101 | let mut cfg = ::aws_smithy_types::config_bag::Layer::new("ExecuteStatement");
|
91 102 |
|
92 103 | cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
|
93 104 | ExecuteStatementRequestSerializer,
|
94 105 | ));
|
95 106 | cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
|
96 107 | ExecuteStatementResponseDeserializer,
|
97 108 | ));
|
98 109 |
|
99 110 | cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new(
|
100 111 | ::aws_smithy_runtime_api::client::auth::static_resolver::StaticAuthSchemeOptionResolverParams::new(),
|
101 112 | ));
|
102 113 |
|
103 114 | cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::Metadata::new(
|
104 115 | "ExecuteStatement",
|
105 116 | "DynamoDB",
|
106 117 | ));
|
107 118 |
|
108 119 | ::std::option::Option::Some(cfg.freeze())
|
109 120 | }
|
110 121 |
|
111 122 | fn runtime_components(
|
112 123 | &self,
|
113 124 | _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
|
114 125 | ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
|
115 126 | #[allow(unused_mut)]
|
116 127 | let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("ExecuteStatement")
|
117 128 | .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
|
118 129 | .with_interceptor(ExecuteStatementEndpointParamsInterceptor)
|
119 130 | .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
|
120 131 | crate::operation::execute_statement::ExecuteStatementError,
|
121 132 | >::new())
|
122 133 | .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
|
123 134 | crate::operation::execute_statement::ExecuteStatementError,
|
124 135 | >::new());
|
125 136 |
|
126 137 | ::std::borrow::Cow::Owned(rcb)
|
127 138 | }
|
128 139 | }
|
129 140 |
|
141 + | /* ResponseDeserializerGenerator.kt:64 */
|
130 142 | #[derive(Debug)]
|
131 143 | struct ExecuteStatementResponseDeserializer;
|
132 144 | impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for ExecuteStatementResponseDeserializer {
|
133 145 | fn deserialize_nonstreaming(
|
134 146 | &self,
|
135 147 | response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
|
136 148 | ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
|
137 149 | let (success, status) = (response.status().is_success(), response.status().as_u16());
|
138 150 | let headers = response.headers();
|
139 151 | let body = response.body().bytes().expect("body loaded");
|
140 152 | #[allow(unused_mut)]
|
141 153 | let mut force_error = false;
|
142 154 |
|
143 155 | let parse_result = if !success && status != 200 || force_error {
|
144 156 | crate::protocol_serde::shape_execute_statement::de_execute_statement_http_error(status, headers, body)
|
145 157 | } else {
|
146 158 | crate::protocol_serde::shape_execute_statement::de_execute_statement_http_response(status, headers, body)
|
147 159 | };
|
148 160 | crate::protocol_serde::type_erase_result(parse_result)
|
149 161 | }
|
150 162 | }
|
163 + | /* RequestSerializerGenerator.kt:67 */
|
151 164 | #[derive(Debug)]
|
152 165 | struct ExecuteStatementRequestSerializer;
|
153 166 | impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for ExecuteStatementRequestSerializer {
|
154 167 | #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
|
155 168 | fn serialize_input(
|
156 169 | &self,
|
157 170 | input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
|
158 171 | _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
|
159 172 | ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
|
160 173 | let input = input
|
161 174 | .downcast::<crate::operation::execute_statement::ExecuteStatementInput>()
|
162 175 | .expect("correct type");
|
163 176 | let _header_serialization_settings = _cfg
|
164 177 | .load::<crate::serialization_settings::HeaderSerializationSettings>()
|
165 178 | .cloned()
|
166 179 | .unwrap_or_default();
|
167 180 | let mut request_builder = {
|
168 181 | fn uri_base(
|
169 182 | _input: &crate::operation::execute_statement::ExecuteStatementInput,
|
170 183 | output: &mut ::std::string::String,
|
171 184 | ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
|
172 185 | use ::std::fmt::Write as _;
|
173 186 | ::std::write!(output, "/").expect("formatting should succeed");
|
174 187 | ::std::result::Result::Ok(())
|
175 188 | }
|
176 189 | #[allow(clippy::unnecessary_wraps)]
|
177 190 | fn update_http_builder(
|
178 191 | input: &crate::operation::execute_statement::ExecuteStatementInput,
|
179 192 | builder: ::http::request::Builder,
|
180 193 | ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
|
181 194 | let mut uri = ::std::string::String::new();
|
182 195 | uri_base(input, &mut uri)?;
|
183 196 | ::std::result::Result::Ok(builder.method("POST").uri(uri))
|
184 197 | }
|
185 198 | let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
|
186 199 | builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/x-amz-json-1.0");
|
187 200 | builder = _header_serialization_settings.set_default_header(
|
188 201 | builder,
|
189 202 | ::http::header::HeaderName::from_static("x-amz-target"),
|
190 203 | "DynamoDB_20120810.ExecuteStatement",
|
191 204 | );
|
192 205 | builder
|
193 206 | };
|
194 207 | let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_execute_statement::ser_execute_statement_input(&input)?);
|
195 208 | if let Some(content_length) = body.content_length() {
|
196 209 | let content_length = content_length.to_string();
|
197 210 | request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
|
198 211 | }
|
199 212 | ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
|
200 213 | }
|
201 214 | }
|
215 + | /* EndpointParamsInterceptorGenerator.kt:86 */
|
202 216 | #[derive(Debug)]
|
203 217 | struct ExecuteStatementEndpointParamsInterceptor;
|
204 218 |
|
205 219 | impl ::aws_smithy_runtime_api::client::interceptors::Intercept for ExecuteStatementEndpointParamsInterceptor {
|
206 220 | fn name(&self) -> &'static str {
|
207 221 | "ExecuteStatementEndpointParamsInterceptor"
|
208 222 | }
|
209 223 |
|
210 224 | fn read_before_execution(
|
211 225 | &self,
|
212 226 | context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
|
213 227 | '_,
|
214 228 | ::aws_smithy_runtime_api::client::interceptors::context::Input,
|
215 229 | ::aws_smithy_runtime_api::client::interceptors::context::Output,
|
216 230 | ::aws_smithy_runtime_api::client::interceptors::context::Error,
|
217 231 | >,
|
218 232 | cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
|
219 233 | ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
|
220 234 | let _input = context
|
221 235 | .input()
|
222 236 | .downcast_ref::<ExecuteStatementInput>()
|
223 237 | .ok_or("failed to downcast to ExecuteStatementInput")?;
|
224 238 |
|
225 239 | let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
|
226 240 | ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
|
227 241 | })?;
|
228 242 | cfg.interceptor_state()
|
229 243 | .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
|
230 244 | ::std::result::Result::Ok(())
|
231 245 | }
|
232 246 | }
|
233 247 |
|
234 248 | // The get_* functions below are generated from JMESPath expressions in the
|
235 249 | // operationContextParams trait. They target the operation's input shape.
|
236 250 |
|
251 + | /* OperationErrorGenerator.kt:79 */
|
237 252 | /// Error type for the `ExecuteStatementError` operation.
|
253 + | /* RustType.kt:516 */
|
238 254 | #[non_exhaustive]
|
255 + | /* RustType.kt:516 */
|
239 256 | #[derive(::std::fmt::Debug)]
|
240 - | pub enum ExecuteStatementError {
|
241 - | /// <p>A condition specified in the operation could not be evaluated.</p>
|
257 + | pub /* OperationErrorGenerator.kt:81 */ enum ExecuteStatementError {
|
258 + | /// /* OperationErrorGenerator.kt:83 */<p>A condition specified in the operation could not be evaluated.</p>
|
259 + | /* OperationErrorGenerator.kt:86 */
|
242 260 | ConditionalCheckFailedError(crate::types::error::ConditionalCheckFailedError),
|
243 - | /// <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>
|
261 + | /// /* OperationErrorGenerator.kt:83 */<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>
|
262 + | /* OperationErrorGenerator.kt:86 */
|
244 263 | DuplicateItemError(crate::types::error::DuplicateItemError),
|
245 - | /// <p>An error occurred on the server side.</p>
|
264 + | /// /* OperationErrorGenerator.kt:83 */<p>An error occurred on the server side.</p>
|
265 + | /* OperationErrorGenerator.kt:86 */
|
246 266 | InternalServerError(crate::types::error::InternalServerError),
|
247 - | /// <p>An item collection is too large. This exception is only returned for tables that have one or more local secondary indexes.</p>
|
267 + | /// /* OperationErrorGenerator.kt:83 */<p>An item collection is too large. This exception is only returned for tables that have one or more local secondary indexes.</p>
|
268 + | /* OperationErrorGenerator.kt:86 */
|
248 269 | ItemCollectionSizeLimitExceededError(crate::types::error::ItemCollectionSizeLimitExceededError),
|
249 - | /// <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>
|
270 + | /// /* OperationErrorGenerator.kt:83 */<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>
|
271 + | /* OperationErrorGenerator.kt:86 */
|
250 272 | ProvisionedThroughputExceededError(crate::types::error::ProvisionedThroughputExceededError),
|
251 - | /// <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>
|
273 + | /// /* OperationErrorGenerator.kt:83 */<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>
|
274 + | /* OperationErrorGenerator.kt:86 */
|
252 275 | RequestLimitExceeded(crate::types::error::RequestLimitExceeded),
|
253 - | /// <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>
|
276 + | /// /* OperationErrorGenerator.kt:83 */<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>
|
277 + | /* OperationErrorGenerator.kt:86 */
|
254 278 | ResourceNotFoundError(crate::types::error::ResourceNotFoundError),
|
255 - | /// <p>Operation was rejected because there is an ongoing transaction for the item.</p>
|
279 + | /// /* OperationErrorGenerator.kt:83 */<p>Operation was rejected because there is an ongoing transaction for the item.</p>
|
280 + | /* OperationErrorGenerator.kt:86 */
|
256 281 | TransactionConflictError(crate::types::error::TransactionConflictError),
|
282 + | /* OperationErrorGenerator.kt:88 */
|
257 283 | /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
|
258 284 | #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
|
259 285 | variable wildcard pattern and check `.code()`:
|
260 286 | \
|
261 287 | `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
|
262 288 | \
|
263 289 | See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-ExecuteStatementError) for what information is available for the error.")]
|
264 290 | Unhandled(crate::error::sealed_unhandled::Unhandled),
|
291 + | /* OperationErrorGenerator.kt:81 */
|
265 292 | }
|
293 + | /* OperationErrorGenerator.kt:218 */
|
266 294 | impl ExecuteStatementError {
|
295 + | /* OperationErrorGenerator.kt:219 */
|
267 296 | /// Creates the `ExecuteStatementError::Unhandled` variant from any error type.
|
268 297 | pub fn unhandled(
|
269 298 | err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
|
270 299 | ) -> Self {
|
271 300 | Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
272 301 | source: err.into(),
|
273 302 | meta: ::std::default::Default::default(),
|
274 303 | })
|
275 304 | }
|
276 305 |
|
277 306 | /// Creates the `ExecuteStatementError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
|
278 307 | pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
|
279 308 | Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
280 309 | source: err.clone().into(),
|
281 310 | meta: err,
|
282 311 | })
|
283 312 | }
|
284 - | ///
|
313 + | /// /* OperationErrorGenerator.kt:236 */
|
285 314 | /// Returns error metadata, which includes the error code, message,
|
286 315 | /// request ID, and potentially additional information.
|
287 316 | ///
|
317 + | /* OperationErrorGenerator.kt:242 */
|
288 318 | pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
|
319 + | /* OperationErrorGenerator.kt:243 */
|
289 320 | match self {
|
321 + | /* OperationErrorGenerator.kt:246 */
|
290 322 | Self::ConditionalCheckFailedError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
|
323 + | /* OperationErrorGenerator.kt:246 */
|
291 324 | Self::DuplicateItemError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
|
325 + | /* OperationErrorGenerator.kt:246 */
|
292 326 | Self::InternalServerError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
|
327 + | /* OperationErrorGenerator.kt:246 */
|
293 328 | Self::ItemCollectionSizeLimitExceededError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
|
329 + | /* OperationErrorGenerator.kt:246 */
|
294 330 | Self::ProvisionedThroughputExceededError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
|
331 + | /* OperationErrorGenerator.kt:246 */
|
295 332 | Self::RequestLimitExceeded(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
|
333 + | /* OperationErrorGenerator.kt:246 */
|
296 334 | Self::ResourceNotFoundError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
|
335 + | /* OperationErrorGenerator.kt:246 */
|
297 336 | Self::TransactionConflictError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
|
298 - | Self::Unhandled(e) => &e.meta,
|
337 + | /* OperationErrorGenerator.kt:251 */ Self::Unhandled(e) => &e.meta,
|
338 + | /* OperationErrorGenerator.kt:243 */
|
299 339 | }
|
340 + | /* OperationErrorGenerator.kt:242 */
|
300 341 | }
|
342 + | /* OperationErrorGenerator.kt:257 */
|
301 343 | /// Returns `true` if the error kind is `ExecuteStatementError::ConditionalCheckFailedError`.
|
344 + | /* OperationErrorGenerator.kt:258 */
|
302 345 | pub fn is_conditional_check_failed_error(&self) -> bool {
|
346 + | /* OperationErrorGenerator.kt:259 */
|
303 347 | matches!(self, Self::ConditionalCheckFailedError(_))
|
348 + | /* OperationErrorGenerator.kt:258 */
|
304 349 | }
|
350 + | /* OperationErrorGenerator.kt:257 */
|
305 351 | /// Returns `true` if the error kind is `ExecuteStatementError::DuplicateItemError`.
|
352 + | /* OperationErrorGenerator.kt:258 */
|
306 353 | pub fn is_duplicate_item_error(&self) -> bool {
|
354 + | /* OperationErrorGenerator.kt:259 */
|
307 355 | matches!(self, Self::DuplicateItemError(_))
|
356 + | /* OperationErrorGenerator.kt:258 */
|
308 357 | }
|
358 + | /* OperationErrorGenerator.kt:257 */
|
309 359 | /// Returns `true` if the error kind is `ExecuteStatementError::InternalServerError`.
|
360 + | /* OperationErrorGenerator.kt:258 */
|
310 361 | pub fn is_internal_server_error(&self) -> bool {
|
362 + | /* OperationErrorGenerator.kt:259 */
|
311 363 | matches!(self, Self::InternalServerError(_))
|
364 + | /* OperationErrorGenerator.kt:258 */
|
312 365 | }
|
366 + | /* OperationErrorGenerator.kt:257 */
|
313 367 | /// Returns `true` if the error kind is `ExecuteStatementError::ItemCollectionSizeLimitExceededError`.
|
368 + | /* OperationErrorGenerator.kt:258 */
|
314 369 | pub fn is_item_collection_size_limit_exceeded_error(&self) -> bool {
|
370 + | /* OperationErrorGenerator.kt:259 */
|
315 371 | matches!(self, Self::ItemCollectionSizeLimitExceededError(_))
|
372 + | /* OperationErrorGenerator.kt:258 */
|
316 373 | }
|
374 + | /* OperationErrorGenerator.kt:257 */
|
317 375 | /// Returns `true` if the error kind is `ExecuteStatementError::ProvisionedThroughputExceededError`.
|
376 + | /* OperationErrorGenerator.kt:258 */
|
318 377 | pub fn is_provisioned_throughput_exceeded_error(&self) -> bool {
|
378 + | /* OperationErrorGenerator.kt:259 */
|
319 379 | matches!(self, Self::ProvisionedThroughputExceededError(_))
|
380 + | /* OperationErrorGenerator.kt:258 */
|
320 381 | }
|
382 + | /* OperationErrorGenerator.kt:257 */
|
321 383 | /// Returns `true` if the error kind is `ExecuteStatementError::RequestLimitExceeded`.
|
384 + | /* OperationErrorGenerator.kt:258 */
|
322 385 | pub fn is_request_limit_exceeded(&self) -> bool {
|
386 + | /* OperationErrorGenerator.kt:259 */
|
323 387 | matches!(self, Self::RequestLimitExceeded(_))
|
388 + | /* OperationErrorGenerator.kt:258 */
|
324 389 | }
|
390 + | /* OperationErrorGenerator.kt:257 */
|
325 391 | /// Returns `true` if the error kind is `ExecuteStatementError::ResourceNotFoundError`.
|
392 + | /* OperationErrorGenerator.kt:258 */
|
326 393 | pub fn is_resource_not_found_error(&self) -> bool {
|
394 + | /* OperationErrorGenerator.kt:259 */
|
327 395 | matches!(self, Self::ResourceNotFoundError(_))
|
396 + | /* OperationErrorGenerator.kt:258 */
|
328 397 | }
|
398 + | /* OperationErrorGenerator.kt:257 */
|
329 399 | /// Returns `true` if the error kind is `ExecuteStatementError::TransactionConflictError`.
|
400 + | /* OperationErrorGenerator.kt:258 */
|
330 401 | pub fn is_transaction_conflict_error(&self) -> bool {
|
402 + | /* OperationErrorGenerator.kt:259 */
|
331 403 | matches!(self, Self::TransactionConflictError(_))
|
404 + | /* OperationErrorGenerator.kt:258 */
|
332 405 | }
|
406 + | /* OperationErrorGenerator.kt:218 */
|
333 407 | }
|
408 + | /* OperationErrorGenerator.kt:269 */
|
334 409 | impl ::std::error::Error for ExecuteStatementError {
|
410 + | /* OperationErrorGenerator.kt:270 */
|
335 411 | fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
412 + | /* OperationErrorGenerator.kt:318 */
|
336 413 | match self {
|
337 - | Self::ConditionalCheckFailedError(_inner) => ::std::option::Option::Some(_inner),
|
338 - | Self::DuplicateItemError(_inner) => ::std::option::Option::Some(_inner),
|
339 - | Self::InternalServerError(_inner) => ::std::option::Option::Some(_inner),
|
340 - | Self::ItemCollectionSizeLimitExceededError(_inner) => ::std::option::Option::Some(_inner),
|
341 - | Self::ProvisionedThroughputExceededError(_inner) => ::std::option::Option::Some(_inner),
|
342 - | Self::RequestLimitExceeded(_inner) => ::std::option::Option::Some(_inner),
|
343 - | Self::ResourceNotFoundError(_inner) => ::std::option::Option::Some(_inner),
|
344 - | Self::TransactionConflictError(_inner) => ::std::option::Option::Some(_inner),
|
345 - | Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
|
414 + | /* OperationErrorGenerator.kt:321 */
|
415 + | Self::ConditionalCheckFailedError(_inner) =>
|
416 + | /* OperationErrorGenerator.kt:283 */
|
417 + | {
|
418 + | ::std::option::Option::Some(_inner)
|
419 + | }
|
420 + | ,
|
421 + | /* OperationErrorGenerator.kt:321 */
|
422 + | Self::DuplicateItemError(_inner) =>
|
423 + | /* OperationErrorGenerator.kt:283 */
|
424 + | {
|
425 + | ::std::option::Option::Some(_inner)
|
426 + | }
|
427 + | ,
|
428 + | /* OperationErrorGenerator.kt:321 */
|
429 + | Self::InternalServerError(_inner) =>
|
430 + | /* OperationErrorGenerator.kt:283 */
|
431 + | {
|
432 + | ::std::option::Option::Some(_inner)
|
433 + | }
|
434 + | ,
|
435 + | /* OperationErrorGenerator.kt:321 */
|
436 + | Self::ItemCollectionSizeLimitExceededError(_inner) =>
|
437 + | /* OperationErrorGenerator.kt:283 */
|
438 + | {
|
439 + | ::std::option::Option::Some(_inner)
|
440 + | }
|
441 + | ,
|
442 + | /* OperationErrorGenerator.kt:321 */
|
443 + | Self::ProvisionedThroughputExceededError(_inner) =>
|
444 + | /* OperationErrorGenerator.kt:283 */
|
445 + | {
|
446 + | ::std::option::Option::Some(_inner)
|
447 + | }
|
448 + | ,
|
449 + | /* OperationErrorGenerator.kt:321 */
|
450 + | Self::RequestLimitExceeded(_inner) =>
|
451 + | /* OperationErrorGenerator.kt:283 */
|
452 + | {
|
453 + | ::std::option::Option::Some(_inner)
|
454 + | }
|
455 + | ,
|
456 + | /* OperationErrorGenerator.kt:321 */
|
457 + | Self::ResourceNotFoundError(_inner) =>
|
458 + | /* OperationErrorGenerator.kt:283 */
|
459 + | {
|
460 + | ::std::option::Option::Some(_inner)
|
461 + | }
|
462 + | ,
|
463 + | /* OperationErrorGenerator.kt:321 */
|
464 + | Self::TransactionConflictError(_inner) =>
|
465 + | /* OperationErrorGenerator.kt:283 */
|
466 + | {
|
467 + | ::std::option::Option::Some(_inner)
|
468 + | }
|
469 + | ,
|
470 + | /* OperationErrorGenerator.kt:326 */
|
471 + | Self::Unhandled(_inner) => {
|
472 + | /* OperationErrorGenerator.kt:279 */
|
473 + | ::std::option::Option::Some(&*_inner.source)
|
474 + | /* OperationErrorGenerator.kt:326 */
|
475 + | } /* OperationErrorGenerator.kt:318 */
|
346 476 | }
|
477 + | /* OperationErrorGenerator.kt:270 */
|
347 478 | }
|
479 + | /* OperationErrorGenerator.kt:269 */
|
348 480 | }
|
481 + | /* OperationErrorGenerator.kt:133 */
|
349 482 | impl ::std::fmt::Display for ExecuteStatementError {
|
483 + | /* OperationErrorGenerator.kt:134 */
|
350 484 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
485 + | /* OperationErrorGenerator.kt:318 */
|
351 486 | match self {
|
352 - | Self::ConditionalCheckFailedError(_inner) => _inner.fmt(f),
|
353 - | Self::DuplicateItemError(_inner) => _inner.fmt(f),
|
354 - | Self::InternalServerError(_inner) => _inner.fmt(f),
|
355 - | Self::ItemCollectionSizeLimitExceededError(_inner) => _inner.fmt(f),
|
356 - | Self::ProvisionedThroughputExceededError(_inner) => _inner.fmt(f),
|
357 - | Self::RequestLimitExceeded(_inner) => _inner.fmt(f),
|
358 - | Self::ResourceNotFoundError(_inner) => _inner.fmt(f),
|
359 - | Self::TransactionConflictError(_inner) => _inner.fmt(f),
|
487 + | /* OperationErrorGenerator.kt:321 */
|
488 + | Self::ConditionalCheckFailedError(_inner) =>
|
489 + | /* OperationErrorGenerator.kt:151 */
|
490 + | {
|
491 + | _inner.fmt(f)
|
492 + | }
|
493 + | ,
|
494 + | /* OperationErrorGenerator.kt:321 */
|
495 + | Self::DuplicateItemError(_inner) =>
|
496 + | /* OperationErrorGenerator.kt:151 */
|
497 + | {
|
498 + | _inner.fmt(f)
|
499 + | }
|
500 + | ,
|
501 + | /* OperationErrorGenerator.kt:321 */
|
502 + | Self::InternalServerError(_inner) =>
|
503 + | /* OperationErrorGenerator.kt:151 */
|
504 + | {
|
505 + | _inner.fmt(f)
|
506 + | }
|
507 + | ,
|
508 + | /* OperationErrorGenerator.kt:321 */
|
509 + | Self::ItemCollectionSizeLimitExceededError(_inner) =>
|
510 + | /* OperationErrorGenerator.kt:151 */
|
511 + | {
|
512 + | _inner.fmt(f)
|
513 + | }
|
514 + | ,
|
515 + | /* OperationErrorGenerator.kt:321 */
|
516 + | Self::ProvisionedThroughputExceededError(_inner) =>
|
517 + | /* OperationErrorGenerator.kt:151 */
|
518 + | {
|
519 + | _inner.fmt(f)
|
520 + | }
|
521 + | ,
|
522 + | /* OperationErrorGenerator.kt:321 */
|
523 + | Self::RequestLimitExceeded(_inner) =>
|
524 + | /* OperationErrorGenerator.kt:151 */
|
525 + | {
|
526 + | _inner.fmt(f)
|
527 + | }
|
528 + | ,
|
529 + | /* OperationErrorGenerator.kt:321 */
|
530 + | Self::ResourceNotFoundError(_inner) =>
|
531 + | /* OperationErrorGenerator.kt:151 */
|
532 + | {
|
533 + | _inner.fmt(f)
|
534 + | }
|
535 + | ,
|
536 + | /* OperationErrorGenerator.kt:321 */
|
537 + | Self::TransactionConflictError(_inner) =>
|
538 + | /* OperationErrorGenerator.kt:151 */
|
539 + | {
|
540 + | _inner.fmt(f)
|
541 + | }
|
542 + | ,
|
543 + | /* OperationErrorGenerator.kt:326 */
|
360 544 | Self::Unhandled(_inner) => {
|
545 + | /* OperationErrorGenerator.kt:139 */
|
361 546 | if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
|
362 547 | write!(f, "unhandled error ({code})")
|
363 548 | } else {
|
364 549 | f.write_str("unhandled error")
|
365 550 | }
|
366 - | }
|
551 + | /* OperationErrorGenerator.kt:326 */
|
552 + | } /* OperationErrorGenerator.kt:318 */
|
367 553 | }
|
554 + | /* OperationErrorGenerator.kt:134 */
|
368 555 | }
|
556 + | /* OperationErrorGenerator.kt:133 */
|
369 557 | }
|
558 + | /* OperationErrorGenerator.kt:182 */
|
370 559 | impl ::aws_smithy_types::retry::ProvideErrorKind for ExecuteStatementError {
|
560 + | /* OperationErrorGenerator.kt:186 */
|
371 561 | fn code(&self) -> ::std::option::Option<&str> {
|
562 + | /* OperationErrorGenerator.kt:187 */
|
372 563 | ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
|
564 + | /* OperationErrorGenerator.kt:186 */
|
373 565 | }
|
566 + | /* OperationErrorGenerator.kt:190 */
|
374 567 | fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
|
568 + | /* OperationErrorGenerator.kt:197 */
|
375 569 | ::std::option::Option::None
|
570 + | /* OperationErrorGenerator.kt:190 */
|
376 571 | }
|
572 + | /* OperationErrorGenerator.kt:182 */
|
377 573 | }
|
574 + | /* OperationErrorGenerator.kt:163 */
|
378 575 | impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for ExecuteStatementError {
|
576 + | /* OperationErrorGenerator.kt:164 */
|
379 577 | fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
|
578 + | /* OperationErrorGenerator.kt:318 */
|
380 579 | match self {
|
381 - | Self::ConditionalCheckFailedError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
|
382 - | Self::DuplicateItemError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
|
383 - | Self::InternalServerError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
|
384 - | Self::ItemCollectionSizeLimitExceededError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
|
385 - | Self::ProvisionedThroughputExceededError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
|
386 - | Self::RequestLimitExceeded(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
|
387 - | Self::ResourceNotFoundError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
|
388 - | Self::TransactionConflictError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
|
389 - | Self::Unhandled(_inner) => &_inner.meta,
|
580 + | /* OperationErrorGenerator.kt:321 */
|
581 + | Self::ConditionalCheckFailedError(_inner) =>
|
582 + | /* OperationErrorGenerator.kt:169 */
|
583 + | {
|
584 + | ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
|
585 + | }
|
586 + | ,
|
587 + | /* OperationErrorGenerator.kt:321 */
|
588 + | Self::DuplicateItemError(_inner) =>
|
589 + | /* OperationErrorGenerator.kt:169 */
|
590 + | {
|
591 + | ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
|
592 + | }
|
593 + | ,
|
594 + | /* OperationErrorGenerator.kt:321 */
|
595 + | Self::InternalServerError(_inner) =>
|
596 + | /* OperationErrorGenerator.kt:169 */
|
597 + | {
|
598 + | ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
|
599 + | }
|
600 + | ,
|
601 + | /* OperationErrorGenerator.kt:321 */
|
602 + | Self::ItemCollectionSizeLimitExceededError(_inner) =>
|
603 + | /* OperationErrorGenerator.kt:169 */
|
604 + | {
|
605 + | ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
|
606 + | }
|
607 + | ,
|
608 + | /* OperationErrorGenerator.kt:321 */
|
609 + | Self::ProvisionedThroughputExceededError(_inner) =>
|
610 + | /* OperationErrorGenerator.kt:169 */
|
611 + | {
|
612 + | ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
|
613 + | }
|
614 + | ,
|
615 + | /* OperationErrorGenerator.kt:321 */
|
616 + | Self::RequestLimitExceeded(_inner) =>
|
617 + | /* OperationErrorGenerator.kt:169 */
|
618 + | {
|
619 + | ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
|
620 + | }
|
621 + | ,
|
622 + | /* OperationErrorGenerator.kt:321 */
|
623 + | Self::ResourceNotFoundError(_inner) =>
|
624 + | /* OperationErrorGenerator.kt:169 */
|
625 + | {
|
626 + | ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
|
627 + | }
|
628 + | ,
|
629 + | /* OperationErrorGenerator.kt:321 */
|
630 + | Self::TransactionConflictError(_inner) =>
|
631 + | /* OperationErrorGenerator.kt:169 */
|
632 + | {
|
633 + | ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
|
634 + | }
|
635 + | ,
|
636 + | /* OperationErrorGenerator.kt:326 */
|
637 + | Self::Unhandled(_inner) => {
|
638 + | /* OperationErrorGenerator.kt:168 */
|
639 + | &_inner.meta
|
640 + | /* OperationErrorGenerator.kt:326 */
|
641 + | } /* OperationErrorGenerator.kt:318 */
|
390 642 | }
|
643 + | /* OperationErrorGenerator.kt:164 */
|
391 644 | }
|
645 + | /* OperationErrorGenerator.kt:163 */
|
392 646 | }
|
647 + | /* OperationErrorGenerator.kt:109 */
|
393 648 | impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for ExecuteStatementError {
|
649 + | /* OperationErrorGenerator.kt:110 */
|
394 650 | fn create_unhandled_error(
|
395 651 | source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
|
396 652 | meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
|
397 653 | ) -> Self {
|
654 + | /* OperationErrorGenerator.kt:121 */
|
398 655 | Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
399 656 | source,
|
400 657 | meta: meta.unwrap_or_default(),
|
401 658 | })
|
659 + | /* OperationErrorGenerator.kt:110 */
|
402 660 | }
|
661 + | /* OperationErrorGenerator.kt:109 */
|
403 662 | }
|
404 663 |
|
664 + | /* CodegenDelegator.kt:255 */
|
405 665 | pub use crate::operation::execute_statement::_execute_statement_output::ExecuteStatementOutput;
|
406 666 |
|
667 + | /* CodegenDelegator.kt:255 */
|
407 668 | pub use crate::operation::execute_statement::_execute_statement_input::ExecuteStatementInput;
|
408 669 |
|
670 + | /* RustModule.kt:172 */
|
409 671 | mod _execute_statement_input;
|
410 672 |
|
673 + | /* RustModule.kt:172 */
|
411 674 | mod _execute_statement_output;
|
412 675 |
|
413 - | /// Builders
|
676 + | /// /* CodegenDelegator.kt:51 */Builders
|
414 677 | pub mod builders;
|