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