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