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 BatchWriteItem {
|
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("BatchWriteItem");
|
91 102 |
|
92 103 | cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
|
93 104 | BatchWriteItemRequestSerializer,
|
94 105 | ));
|
95 106 | cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
|
96 107 | BatchWriteItemResponseDeserializer,
|
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 | "BatchWriteItem",
|
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("BatchWriteItem")
|
117 128 | .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
|
118 129 | .with_interceptor(BatchWriteItemEndpointParamsInterceptor)
|
119 130 | .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
|
120 131 | crate::operation::batch_write_item::BatchWriteItemError,
|
121 132 | >::new())
|
122 133 | .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
|
123 134 | crate::operation::batch_write_item::BatchWriteItemError,
|
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 BatchWriteItemResponseDeserializer;
|
132 144 | impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for BatchWriteItemResponseDeserializer {
|
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_batch_write_item::de_batch_write_item_http_error(status, headers, body)
|
145 157 | } else {
|
146 158 | crate::protocol_serde::shape_batch_write_item::de_batch_write_item_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 BatchWriteItemRequestSerializer;
|
153 166 | impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for BatchWriteItemRequestSerializer {
|
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::batch_write_item::BatchWriteItemInput>()
|
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::batch_write_item::BatchWriteItemInput,
|
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::batch_write_item::BatchWriteItemInput,
|
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.BatchWriteItem",
|
191 204 | );
|
192 205 | builder
|
193 206 | };
|
194 207 | let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_batch_write_item::ser_batch_write_item_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 BatchWriteItemEndpointParamsInterceptor;
|
204 218 |
|
205 219 | impl ::aws_smithy_runtime_api::client::interceptors::Intercept for BatchWriteItemEndpointParamsInterceptor {
|
206 220 | fn name(&self) -> &'static str {
|
207 221 | "BatchWriteItemEndpointParamsInterceptor"
|
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::<BatchWriteItemInput>()
|
223 237 | .ok_or("failed to downcast to BatchWriteItemInput")?;
|
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 `BatchWriteItemError` operation.
|
253 + | /* RustType.kt:516 */
|
238 254 | #[non_exhaustive]
|
255 + | /* RustType.kt:516 */
|
239 256 | #[derive(::std::fmt::Debug)]
|
240 - | pub enum BatchWriteItemError {
|
241 - | /// <p>An error occurred on the server side.</p>
|
257 + | pub /* OperationErrorGenerator.kt:81 */ enum BatchWriteItemError {
|
258 + | /// /* OperationErrorGenerator.kt:83 */<p>An error occurred on the server side.</p>
|
259 + | /* OperationErrorGenerator.kt:86 */
|
242 260 | InternalServerError(crate::types::error::InternalServerError),
|
261 + | /* OperationErrorGenerator.kt:83 */
|
243 262 | #[allow(missing_docs)] // documentation missing in model
|
263 + | /* OperationErrorGenerator.kt:86 */
|
244 264 | InvalidEndpointError(crate::types::error::InvalidEndpointError),
|
245 - | /// <p>An item collection is too large. This exception is only returned for tables that have one or more local secondary indexes.</p>
|
265 + | /// /* 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>
|
266 + | /* OperationErrorGenerator.kt:86 */
|
246 267 | ItemCollectionSizeLimitExceededError(crate::types::error::ItemCollectionSizeLimitExceededError),
|
247 - | /// <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>
|
268 + | /// /* 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>
|
269 + | /* OperationErrorGenerator.kt:86 */
|
248 270 | ProvisionedThroughputExceededError(crate::types::error::ProvisionedThroughputExceededError),
|
249 - | /// <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>
|
271 + | /// /* 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>
|
272 + | /* OperationErrorGenerator.kt:86 */
|
250 273 | RequestLimitExceeded(crate::types::error::RequestLimitExceeded),
|
251 - | /// <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>
|
274 + | /// /* 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>
|
275 + | /* OperationErrorGenerator.kt:86 */
|
252 276 | ResourceNotFoundError(crate::types::error::ResourceNotFoundError),
|
277 + | /* OperationErrorGenerator.kt:88 */
|
253 278 | /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
|
254 279 | #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
|
255 280 | variable wildcard pattern and check `.code()`:
|
256 281 | \
|
257 282 | `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
|
258 283 | \
|
259 284 | See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-BatchWriteItemError) for what information is available for the error.")]
|
260 285 | Unhandled(crate::error::sealed_unhandled::Unhandled),
|
286 + | /* OperationErrorGenerator.kt:81 */
|
261 287 | }
|
288 + | /* OperationErrorGenerator.kt:218 */
|
262 289 | impl BatchWriteItemError {
|
290 + | /* OperationErrorGenerator.kt:219 */
|
263 291 | /// Creates the `BatchWriteItemError::Unhandled` variant from any error type.
|
264 292 | pub fn unhandled(
|
265 293 | err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
|
266 294 | ) -> Self {
|
267 295 | Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
268 296 | source: err.into(),
|
269 297 | meta: ::std::default::Default::default(),
|
270 298 | })
|
271 299 | }
|
272 300 |
|
273 301 | /// Creates the `BatchWriteItemError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
|
274 302 | pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
|
275 303 | Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
276 304 | source: err.clone().into(),
|
277 305 | meta: err,
|
278 306 | })
|
279 307 | }
|
280 - | ///
|
308 + | /// /* OperationErrorGenerator.kt:236 */
|
281 309 | /// Returns error metadata, which includes the error code, message,
|
282 310 | /// request ID, and potentially additional information.
|
283 311 | ///
|
312 + | /* OperationErrorGenerator.kt:242 */
|
284 313 | pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
|
314 + | /* OperationErrorGenerator.kt:243 */
|
285 315 | match self {
|
316 + | /* OperationErrorGenerator.kt:246 */
|
286 317 | Self::InternalServerError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
|
318 + | /* OperationErrorGenerator.kt:246 */
|
287 319 | Self::InvalidEndpointError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
|
320 + | /* OperationErrorGenerator.kt:246 */
|
288 321 | Self::ItemCollectionSizeLimitExceededError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
|
322 + | /* OperationErrorGenerator.kt:246 */
|
289 323 | Self::ProvisionedThroughputExceededError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
|
324 + | /* OperationErrorGenerator.kt:246 */
|
290 325 | Self::RequestLimitExceeded(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
|
326 + | /* OperationErrorGenerator.kt:246 */
|
291 327 | Self::ResourceNotFoundError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
|
292 - | Self::Unhandled(e) => &e.meta,
|
328 + | /* OperationErrorGenerator.kt:251 */ Self::Unhandled(e) => &e.meta,
|
329 + | /* OperationErrorGenerator.kt:243 */
|
293 330 | }
|
331 + | /* OperationErrorGenerator.kt:242 */
|
294 332 | }
|
333 + | /* OperationErrorGenerator.kt:257 */
|
295 334 | /// Returns `true` if the error kind is `BatchWriteItemError::InternalServerError`.
|
335 + | /* OperationErrorGenerator.kt:258 */
|
296 336 | pub fn is_internal_server_error(&self) -> bool {
|
337 + | /* OperationErrorGenerator.kt:259 */
|
297 338 | matches!(self, Self::InternalServerError(_))
|
339 + | /* OperationErrorGenerator.kt:258 */
|
298 340 | }
|
341 + | /* OperationErrorGenerator.kt:257 */
|
299 342 | /// Returns `true` if the error kind is `BatchWriteItemError::InvalidEndpointError`.
|
343 + | /* OperationErrorGenerator.kt:258 */
|
300 344 | pub fn is_invalid_endpoint_error(&self) -> bool {
|
345 + | /* OperationErrorGenerator.kt:259 */
|
301 346 | matches!(self, Self::InvalidEndpointError(_))
|
347 + | /* OperationErrorGenerator.kt:258 */
|
302 348 | }
|
349 + | /* OperationErrorGenerator.kt:257 */
|
303 350 | /// Returns `true` if the error kind is `BatchWriteItemError::ItemCollectionSizeLimitExceededError`.
|
351 + | /* OperationErrorGenerator.kt:258 */
|
304 352 | pub fn is_item_collection_size_limit_exceeded_error(&self) -> bool {
|
353 + | /* OperationErrorGenerator.kt:259 */
|
305 354 | matches!(self, Self::ItemCollectionSizeLimitExceededError(_))
|
355 + | /* OperationErrorGenerator.kt:258 */
|
306 356 | }
|
357 + | /* OperationErrorGenerator.kt:257 */
|
307 358 | /// Returns `true` if the error kind is `BatchWriteItemError::ProvisionedThroughputExceededError`.
|
359 + | /* OperationErrorGenerator.kt:258 */
|
308 360 | pub fn is_provisioned_throughput_exceeded_error(&self) -> bool {
|
361 + | /* OperationErrorGenerator.kt:259 */
|
309 362 | matches!(self, Self::ProvisionedThroughputExceededError(_))
|
363 + | /* OperationErrorGenerator.kt:258 */
|
310 364 | }
|
365 + | /* OperationErrorGenerator.kt:257 */
|
311 366 | /// Returns `true` if the error kind is `BatchWriteItemError::RequestLimitExceeded`.
|
367 + | /* OperationErrorGenerator.kt:258 */
|
312 368 | pub fn is_request_limit_exceeded(&self) -> bool {
|
369 + | /* OperationErrorGenerator.kt:259 */
|
313 370 | matches!(self, Self::RequestLimitExceeded(_))
|
371 + | /* OperationErrorGenerator.kt:258 */
|
314 372 | }
|
373 + | /* OperationErrorGenerator.kt:257 */
|
315 374 | /// Returns `true` if the error kind is `BatchWriteItemError::ResourceNotFoundError`.
|
375 + | /* OperationErrorGenerator.kt:258 */
|
316 376 | pub fn is_resource_not_found_error(&self) -> bool {
|
377 + | /* OperationErrorGenerator.kt:259 */
|
317 378 | matches!(self, Self::ResourceNotFoundError(_))
|
379 + | /* OperationErrorGenerator.kt:258 */
|
318 380 | }
|
381 + | /* OperationErrorGenerator.kt:218 */
|
319 382 | }
|
383 + | /* OperationErrorGenerator.kt:269 */
|
320 384 | impl ::std::error::Error for BatchWriteItemError {
|
385 + | /* OperationErrorGenerator.kt:270 */
|
321 386 | fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
387 + | /* OperationErrorGenerator.kt:318 */
|
322 388 | match self {
|
323 - | Self::InternalServerError(_inner) => ::std::option::Option::Some(_inner),
|
324 - | Self::InvalidEndpointError(_inner) => ::std::option::Option::Some(_inner),
|
325 - | Self::ItemCollectionSizeLimitExceededError(_inner) => ::std::option::Option::Some(_inner),
|
326 - | Self::ProvisionedThroughputExceededError(_inner) => ::std::option::Option::Some(_inner),
|
327 - | Self::RequestLimitExceeded(_inner) => ::std::option::Option::Some(_inner),
|
328 - | Self::ResourceNotFoundError(_inner) => ::std::option::Option::Some(_inner),
|
329 - | Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
|
389 + | /* OperationErrorGenerator.kt:321 */
|
390 + | Self::InternalServerError(_inner) =>
|
391 + | /* OperationErrorGenerator.kt:283 */
|
392 + | {
|
393 + | ::std::option::Option::Some(_inner)
|
394 + | }
|
395 + | ,
|
396 + | /* OperationErrorGenerator.kt:321 */
|
397 + | Self::InvalidEndpointError(_inner) =>
|
398 + | /* OperationErrorGenerator.kt:283 */
|
399 + | {
|
400 + | ::std::option::Option::Some(_inner)
|
401 + | }
|
402 + | ,
|
403 + | /* OperationErrorGenerator.kt:321 */
|
404 + | Self::ItemCollectionSizeLimitExceededError(_inner) =>
|
405 + | /* OperationErrorGenerator.kt:283 */
|
406 + | {
|
407 + | ::std::option::Option::Some(_inner)
|
408 + | }
|
409 + | ,
|
410 + | /* OperationErrorGenerator.kt:321 */
|
411 + | Self::ProvisionedThroughputExceededError(_inner) =>
|
412 + | /* OperationErrorGenerator.kt:283 */
|
413 + | {
|
414 + | ::std::option::Option::Some(_inner)
|
415 + | }
|
416 + | ,
|
417 + | /* OperationErrorGenerator.kt:321 */
|
418 + | Self::RequestLimitExceeded(_inner) =>
|
419 + | /* OperationErrorGenerator.kt:283 */
|
420 + | {
|
421 + | ::std::option::Option::Some(_inner)
|
422 + | }
|
423 + | ,
|
424 + | /* OperationErrorGenerator.kt:321 */
|
425 + | Self::ResourceNotFoundError(_inner) =>
|
426 + | /* OperationErrorGenerator.kt:283 */
|
427 + | {
|
428 + | ::std::option::Option::Some(_inner)
|
429 + | }
|
430 + | ,
|
431 + | /* OperationErrorGenerator.kt:326 */
|
432 + | Self::Unhandled(_inner) => {
|
433 + | /* OperationErrorGenerator.kt:279 */
|
434 + | ::std::option::Option::Some(&*_inner.source)
|
435 + | /* OperationErrorGenerator.kt:326 */
|
436 + | } /* OperationErrorGenerator.kt:318 */
|
330 437 | }
|
438 + | /* OperationErrorGenerator.kt:270 */
|
331 439 | }
|
440 + | /* OperationErrorGenerator.kt:269 */
|
332 441 | }
|
442 + | /* OperationErrorGenerator.kt:133 */
|
333 443 | impl ::std::fmt::Display for BatchWriteItemError {
|
444 + | /* OperationErrorGenerator.kt:134 */
|
334 445 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
446 + | /* OperationErrorGenerator.kt:318 */
|
335 447 | match self {
|
336 - | Self::InternalServerError(_inner) => _inner.fmt(f),
|
337 - | Self::InvalidEndpointError(_inner) => _inner.fmt(f),
|
338 - | Self::ItemCollectionSizeLimitExceededError(_inner) => _inner.fmt(f),
|
339 - | Self::ProvisionedThroughputExceededError(_inner) => _inner.fmt(f),
|
340 - | Self::RequestLimitExceeded(_inner) => _inner.fmt(f),
|
341 - | Self::ResourceNotFoundError(_inner) => _inner.fmt(f),
|
448 + | /* OperationErrorGenerator.kt:321 */
|
449 + | Self::InternalServerError(_inner) =>
|
450 + | /* OperationErrorGenerator.kt:151 */
|
451 + | {
|
452 + | _inner.fmt(f)
|
453 + | }
|
454 + | ,
|
455 + | /* OperationErrorGenerator.kt:321 */
|
456 + | Self::InvalidEndpointError(_inner) =>
|
457 + | /* OperationErrorGenerator.kt:151 */
|
458 + | {
|
459 + | _inner.fmt(f)
|
460 + | }
|
461 + | ,
|
462 + | /* OperationErrorGenerator.kt:321 */
|
463 + | Self::ItemCollectionSizeLimitExceededError(_inner) =>
|
464 + | /* OperationErrorGenerator.kt:151 */
|
465 + | {
|
466 + | _inner.fmt(f)
|
467 + | }
|
468 + | ,
|
469 + | /* OperationErrorGenerator.kt:321 */
|
470 + | Self::ProvisionedThroughputExceededError(_inner) =>
|
471 + | /* OperationErrorGenerator.kt:151 */
|
472 + | {
|
473 + | _inner.fmt(f)
|
474 + | }
|
475 + | ,
|
476 + | /* OperationErrorGenerator.kt:321 */
|
477 + | Self::RequestLimitExceeded(_inner) =>
|
478 + | /* OperationErrorGenerator.kt:151 */
|
479 + | {
|
480 + | _inner.fmt(f)
|
481 + | }
|
482 + | ,
|
483 + | /* OperationErrorGenerator.kt:321 */
|
484 + | Self::ResourceNotFoundError(_inner) =>
|
485 + | /* OperationErrorGenerator.kt:151 */
|
486 + | {
|
487 + | _inner.fmt(f)
|
488 + | }
|
489 + | ,
|
490 + | /* OperationErrorGenerator.kt:326 */
|
342 491 | Self::Unhandled(_inner) => {
|
492 + | /* OperationErrorGenerator.kt:139 */
|
343 493 | if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
|
344 494 | write!(f, "unhandled error ({code})")
|
345 495 | } else {
|
346 496 | f.write_str("unhandled error")
|
347 497 | }
|
498 + | /* OperationErrorGenerator.kt:326 */
|
499 + | } /* OperationErrorGenerator.kt:318 */
|
348 500 | }
|
501 + | /* OperationErrorGenerator.kt:134 */
|
349 502 | }
|
350 - | }
|
503 + | /* OperationErrorGenerator.kt:133 */
|
351 504 | }
|
505 + | /* OperationErrorGenerator.kt:182 */
|
352 506 | impl ::aws_smithy_types::retry::ProvideErrorKind for BatchWriteItemError {
|
507 + | /* OperationErrorGenerator.kt:186 */
|
353 508 | fn code(&self) -> ::std::option::Option<&str> {
|
509 + | /* OperationErrorGenerator.kt:187 */
|
354 510 | ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
|
511 + | /* OperationErrorGenerator.kt:186 */
|
355 512 | }
|
513 + | /* OperationErrorGenerator.kt:190 */
|
356 514 | fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
|
515 + | /* OperationErrorGenerator.kt:197 */
|
357 516 | ::std::option::Option::None
|
517 + | /* OperationErrorGenerator.kt:190 */
|
358 518 | }
|
519 + | /* OperationErrorGenerator.kt:182 */
|
359 520 | }
|
521 + | /* OperationErrorGenerator.kt:163 */
|
360 522 | impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for BatchWriteItemError {
|
523 + | /* OperationErrorGenerator.kt:164 */
|
361 524 | fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
|
525 + | /* OperationErrorGenerator.kt:318 */
|
362 526 | match self {
|
363 - | Self::InternalServerError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
|
364 - | Self::InvalidEndpointError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
|
365 - | Self::ItemCollectionSizeLimitExceededError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
|
366 - | Self::ProvisionedThroughputExceededError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
|
367 - | Self::RequestLimitExceeded(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
|
368 - | Self::ResourceNotFoundError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
|
369 - | Self::Unhandled(_inner) => &_inner.meta,
|
527 + | /* OperationErrorGenerator.kt:321 */
|
528 + | Self::InternalServerError(_inner) =>
|
529 + | /* OperationErrorGenerator.kt:169 */
|
530 + | {
|
531 + | ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
|
532 + | }
|
533 + | ,
|
534 + | /* OperationErrorGenerator.kt:321 */
|
535 + | Self::InvalidEndpointError(_inner) =>
|
536 + | /* OperationErrorGenerator.kt:169 */
|
537 + | {
|
538 + | ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
|
539 + | }
|
540 + | ,
|
541 + | /* OperationErrorGenerator.kt:321 */
|
542 + | Self::ItemCollectionSizeLimitExceededError(_inner) =>
|
543 + | /* OperationErrorGenerator.kt:169 */
|
544 + | {
|
545 + | ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
|
546 + | }
|
547 + | ,
|
548 + | /* OperationErrorGenerator.kt:321 */
|
549 + | Self::ProvisionedThroughputExceededError(_inner) =>
|
550 + | /* OperationErrorGenerator.kt:169 */
|
551 + | {
|
552 + | ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
|
553 + | }
|
554 + | ,
|
555 + | /* OperationErrorGenerator.kt:321 */
|
556 + | Self::RequestLimitExceeded(_inner) =>
|
557 + | /* OperationErrorGenerator.kt:169 */
|
558 + | {
|
559 + | ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
|
560 + | }
|
561 + | ,
|
562 + | /* OperationErrorGenerator.kt:321 */
|
563 + | Self::ResourceNotFoundError(_inner) =>
|
564 + | /* OperationErrorGenerator.kt:169 */
|
565 + | {
|
566 + | ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
|
567 + | }
|
568 + | ,
|
569 + | /* OperationErrorGenerator.kt:326 */
|
570 + | Self::Unhandled(_inner) => {
|
571 + | /* OperationErrorGenerator.kt:168 */
|
572 + | &_inner.meta
|
573 + | /* OperationErrorGenerator.kt:326 */
|
574 + | } /* OperationErrorGenerator.kt:318 */
|
370 575 | }
|
576 + | /* OperationErrorGenerator.kt:164 */
|
371 577 | }
|
578 + | /* OperationErrorGenerator.kt:163 */
|
372 579 | }
|
580 + | /* OperationErrorGenerator.kt:109 */
|
373 581 | impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for BatchWriteItemError {
|
582 + | /* OperationErrorGenerator.kt:110 */
|
374 583 | fn create_unhandled_error(
|
375 584 | source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
|
376 585 | meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
|
377 586 | ) -> Self {
|
587 + | /* OperationErrorGenerator.kt:121 */
|
378 588 | Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
379 589 | source,
|
380 590 | meta: meta.unwrap_or_default(),
|
381 591 | })
|
592 + | /* OperationErrorGenerator.kt:110 */
|
382 593 | }
|
594 + | /* OperationErrorGenerator.kt:109 */
|
383 595 | }
|
384 596 |
|
597 + | /* CodegenDelegator.kt:255 */
|
385 598 | pub use crate::operation::batch_write_item::_batch_write_item_output::BatchWriteItemOutput;
|
386 599 |
|
600 + | /* CodegenDelegator.kt:255 */
|
387 601 | pub use crate::operation::batch_write_item::_batch_write_item_input::BatchWriteItemInput;
|
388 602 |
|
603 + | /* RustModule.kt:172 */
|
389 604 | mod _batch_write_item_input;
|
390 605 |
|
606 + | /* RustModule.kt:172 */
|
391 607 | mod _batch_write_item_output;
|
392 608 |
|
393 - | /// Builders
|
609 + | /// /* CodegenDelegator.kt:51 */Builders
|
394 610 | pub mod builders;
|