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