1#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6 ConcurrentModificationException(crate::types::error::ConcurrentModificationException),
8 DryRunOperationException(crate::types::error::DryRunOperationException),
10 EntitlementAlreadyExistsException(crate::types::error::EntitlementAlreadyExistsException),
12 EntitlementNotFoundException(crate::types::error::EntitlementNotFoundException),
14 IncompatibleImageException(crate::types::error::IncompatibleImageException),
16 InvalidAccountStatusException(crate::types::error::InvalidAccountStatusException),
18 InvalidParameterCombinationException(crate::types::error::InvalidParameterCombinationException),
20 InvalidRoleException(crate::types::error::InvalidRoleException),
22 LimitExceededException(crate::types::error::LimitExceededException),
24 OperationNotPermittedException(crate::types::error::OperationNotPermittedException),
26 RequestLimitExceededException(crate::types::error::RequestLimitExceededException),
28 ResourceAlreadyExistsException(crate::types::error::ResourceAlreadyExistsException),
30 ResourceInUseException(crate::types::error::ResourceInUseException),
32 ResourceNotAvailableException(crate::types::error::ResourceNotAvailableException),
34 ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
36 #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
38 variable wildcard pattern and check `.code()`:
39 \
40 `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
41 \
42 See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
43 Unhandled(crate::error::sealed_unhandled::Unhandled),
44}
45impl ::std::fmt::Display for Error {
46 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
47 match self {
48 Error::ConcurrentModificationException(inner) => inner.fmt(f),
49 Error::DryRunOperationException(inner) => inner.fmt(f),
50 Error::EntitlementAlreadyExistsException(inner) => inner.fmt(f),
51 Error::EntitlementNotFoundException(inner) => inner.fmt(f),
52 Error::IncompatibleImageException(inner) => inner.fmt(f),
53 Error::InvalidAccountStatusException(inner) => inner.fmt(f),
54 Error::InvalidParameterCombinationException(inner) => inner.fmt(f),
55 Error::InvalidRoleException(inner) => inner.fmt(f),
56 Error::LimitExceededException(inner) => inner.fmt(f),
57 Error::OperationNotPermittedException(inner) => inner.fmt(f),
58 Error::RequestLimitExceededException(inner) => inner.fmt(f),
59 Error::ResourceAlreadyExistsException(inner) => inner.fmt(f),
60 Error::ResourceInUseException(inner) => inner.fmt(f),
61 Error::ResourceNotAvailableException(inner) => inner.fmt(f),
62 Error::ResourceNotFoundException(inner) => inner.fmt(f),
63 Error::Unhandled(_) => {
64 if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
65 write!(f, "unhandled error ({code})")
66 } else {
67 f.write_str("unhandled error")
68 }
69 }
70 }
71 }
72}
73impl From<::aws_smithy_types::error::operation::BuildError> for Error {
74 fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
75 Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
76 source: value.into(),
77 meta: ::std::default::Default::default(),
78 })
79 }
80}
81impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
82 fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
83 match self {
84 Self::ConcurrentModificationException(inner) => inner.meta(),
85 Self::DryRunOperationException(inner) => inner.meta(),
86 Self::EntitlementAlreadyExistsException(inner) => inner.meta(),
87 Self::EntitlementNotFoundException(inner) => inner.meta(),
88 Self::IncompatibleImageException(inner) => inner.meta(),
89 Self::InvalidAccountStatusException(inner) => inner.meta(),
90 Self::InvalidParameterCombinationException(inner) => inner.meta(),
91 Self::InvalidRoleException(inner) => inner.meta(),
92 Self::LimitExceededException(inner) => inner.meta(),
93 Self::OperationNotPermittedException(inner) => inner.meta(),
94 Self::RequestLimitExceededException(inner) => inner.meta(),
95 Self::ResourceAlreadyExistsException(inner) => inner.meta(),
96 Self::ResourceInUseException(inner) => inner.meta(),
97 Self::ResourceNotAvailableException(inner) => inner.meta(),
98 Self::ResourceNotFoundException(inner) => inner.meta(),
99 Self::Unhandled(inner) => &inner.meta,
100 }
101 }
102}
103impl<R>
104 From<
105 ::aws_smithy_runtime_api::client::result::SdkError<
106 crate::operation::associate_app_block_builder_app_block::AssociateAppBlockBuilderAppBlockError,
107 R,
108 >,
109 > for Error
110where
111 R: Send + Sync + std::fmt::Debug + 'static,
112{
113 fn from(
114 err: ::aws_smithy_runtime_api::client::result::SdkError<
115 crate::operation::associate_app_block_builder_app_block::AssociateAppBlockBuilderAppBlockError,
116 R,
117 >,
118 ) -> Self {
119 match err {
120 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
121 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
122 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
123 source: err.into(),
124 }),
125 }
126 }
127}
128impl From<crate::operation::associate_app_block_builder_app_block::AssociateAppBlockBuilderAppBlockError> for Error {
129 fn from(err: crate::operation::associate_app_block_builder_app_block::AssociateAppBlockBuilderAppBlockError) -> Self {
130 match err {
131 crate::operation::associate_app_block_builder_app_block::AssociateAppBlockBuilderAppBlockError::ConcurrentModificationException(
132 inner,
133 ) => Error::ConcurrentModificationException(inner),
134 crate::operation::associate_app_block_builder_app_block::AssociateAppBlockBuilderAppBlockError::InvalidParameterCombinationException(
135 inner,
136 ) => Error::InvalidParameterCombinationException(inner),
137 crate::operation::associate_app_block_builder_app_block::AssociateAppBlockBuilderAppBlockError::LimitExceededException(inner) => {
138 Error::LimitExceededException(inner)
139 }
140 crate::operation::associate_app_block_builder_app_block::AssociateAppBlockBuilderAppBlockError::OperationNotPermittedException(inner) => {
141 Error::OperationNotPermittedException(inner)
142 }
143 crate::operation::associate_app_block_builder_app_block::AssociateAppBlockBuilderAppBlockError::ResourceNotFoundException(inner) => {
144 Error::ResourceNotFoundException(inner)
145 }
146 crate::operation::associate_app_block_builder_app_block::AssociateAppBlockBuilderAppBlockError::Unhandled(inner) => {
147 Error::Unhandled(inner)
148 }
149 }
150 }
151}
152impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_application_fleet::AssociateApplicationFleetError, R>>
153 for Error
154where
155 R: Send + Sync + std::fmt::Debug + 'static,
156{
157 fn from(
158 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_application_fleet::AssociateApplicationFleetError, R>,
159 ) -> Self {
160 match err {
161 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
162 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
163 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
164 source: err.into(),
165 }),
166 }
167 }
168}
169impl From<crate::operation::associate_application_fleet::AssociateApplicationFleetError> for Error {
170 fn from(err: crate::operation::associate_application_fleet::AssociateApplicationFleetError) -> Self {
171 match err {
172 crate::operation::associate_application_fleet::AssociateApplicationFleetError::ConcurrentModificationException(inner) => {
173 Error::ConcurrentModificationException(inner)
174 }
175 crate::operation::associate_application_fleet::AssociateApplicationFleetError::InvalidParameterCombinationException(inner) => {
176 Error::InvalidParameterCombinationException(inner)
177 }
178 crate::operation::associate_application_fleet::AssociateApplicationFleetError::LimitExceededException(inner) => {
179 Error::LimitExceededException(inner)
180 }
181 crate::operation::associate_application_fleet::AssociateApplicationFleetError::OperationNotPermittedException(inner) => {
182 Error::OperationNotPermittedException(inner)
183 }
184 crate::operation::associate_application_fleet::AssociateApplicationFleetError::ResourceNotFoundException(inner) => {
185 Error::ResourceNotFoundException(inner)
186 }
187 crate::operation::associate_application_fleet::AssociateApplicationFleetError::Unhandled(inner) => Error::Unhandled(inner),
188 }
189 }
190}
191impl<R>
192 From<
193 ::aws_smithy_runtime_api::client::result::SdkError<
194 crate::operation::associate_application_to_entitlement::AssociateApplicationToEntitlementError,
195 R,
196 >,
197 > for Error
198where
199 R: Send + Sync + std::fmt::Debug + 'static,
200{
201 fn from(
202 err: ::aws_smithy_runtime_api::client::result::SdkError<
203 crate::operation::associate_application_to_entitlement::AssociateApplicationToEntitlementError,
204 R,
205 >,
206 ) -> Self {
207 match err {
208 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
209 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
210 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
211 source: err.into(),
212 }),
213 }
214 }
215}
216impl From<crate::operation::associate_application_to_entitlement::AssociateApplicationToEntitlementError> for Error {
217 fn from(err: crate::operation::associate_application_to_entitlement::AssociateApplicationToEntitlementError) -> Self {
218 match err {
219 crate::operation::associate_application_to_entitlement::AssociateApplicationToEntitlementError::EntitlementNotFoundException(inner) => {
220 Error::EntitlementNotFoundException(inner)
221 }
222 crate::operation::associate_application_to_entitlement::AssociateApplicationToEntitlementError::LimitExceededException(inner) => {
223 Error::LimitExceededException(inner)
224 }
225 crate::operation::associate_application_to_entitlement::AssociateApplicationToEntitlementError::OperationNotPermittedException(inner) => {
226 Error::OperationNotPermittedException(inner)
227 }
228 crate::operation::associate_application_to_entitlement::AssociateApplicationToEntitlementError::ResourceNotFoundException(inner) => {
229 Error::ResourceNotFoundException(inner)
230 }
231 crate::operation::associate_application_to_entitlement::AssociateApplicationToEntitlementError::Unhandled(inner) => {
232 Error::Unhandled(inner)
233 }
234 }
235 }
236}
237impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_fleet::AssociateFleetError, R>> for Error
238where
239 R: Send + Sync + std::fmt::Debug + 'static,
240{
241 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_fleet::AssociateFleetError, R>) -> Self {
242 match err {
243 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
244 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
245 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
246 source: err.into(),
247 }),
248 }
249 }
250}
251impl From<crate::operation::associate_fleet::AssociateFleetError> for Error {
252 fn from(err: crate::operation::associate_fleet::AssociateFleetError) -> Self {
253 match err {
254 crate::operation::associate_fleet::AssociateFleetError::ConcurrentModificationException(inner) => {
255 Error::ConcurrentModificationException(inner)
256 }
257 crate::operation::associate_fleet::AssociateFleetError::IncompatibleImageException(inner) => Error::IncompatibleImageException(inner),
258 crate::operation::associate_fleet::AssociateFleetError::InvalidAccountStatusException(inner) => {
259 Error::InvalidAccountStatusException(inner)
260 }
261 crate::operation::associate_fleet::AssociateFleetError::LimitExceededException(inner) => Error::LimitExceededException(inner),
262 crate::operation::associate_fleet::AssociateFleetError::OperationNotPermittedException(inner) => {
263 Error::OperationNotPermittedException(inner)
264 }
265 crate::operation::associate_fleet::AssociateFleetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
266 crate::operation::associate_fleet::AssociateFleetError::Unhandled(inner) => Error::Unhandled(inner),
267 }
268 }
269}
270impl<R>
271 From<
272 ::aws_smithy_runtime_api::client::result::SdkError<
273 crate::operation::associate_software_to_image_builder::AssociateSoftwareToImageBuilderError,
274 R,
275 >,
276 > for Error
277where
278 R: Send + Sync + std::fmt::Debug + 'static,
279{
280 fn from(
281 err: ::aws_smithy_runtime_api::client::result::SdkError<
282 crate::operation::associate_software_to_image_builder::AssociateSoftwareToImageBuilderError,
283 R,
284 >,
285 ) -> Self {
286 match err {
287 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
288 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
289 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
290 source: err.into(),
291 }),
292 }
293 }
294}
295impl From<crate::operation::associate_software_to_image_builder::AssociateSoftwareToImageBuilderError> for Error {
296 fn from(err: crate::operation::associate_software_to_image_builder::AssociateSoftwareToImageBuilderError) -> Self {
297 match err {
298 crate::operation::associate_software_to_image_builder::AssociateSoftwareToImageBuilderError::ConcurrentModificationException(inner) => {
299 Error::ConcurrentModificationException(inner)
300 }
301 crate::operation::associate_software_to_image_builder::AssociateSoftwareToImageBuilderError::IncompatibleImageException(inner) => {
302 Error::IncompatibleImageException(inner)
303 }
304 crate::operation::associate_software_to_image_builder::AssociateSoftwareToImageBuilderError::InvalidParameterCombinationException(
305 inner,
306 ) => Error::InvalidParameterCombinationException(inner),
307 crate::operation::associate_software_to_image_builder::AssociateSoftwareToImageBuilderError::OperationNotPermittedException(inner) => {
308 Error::OperationNotPermittedException(inner)
309 }
310 crate::operation::associate_software_to_image_builder::AssociateSoftwareToImageBuilderError::ResourceNotFoundException(inner) => {
311 Error::ResourceNotFoundException(inner)
312 }
313 crate::operation::associate_software_to_image_builder::AssociateSoftwareToImageBuilderError::Unhandled(inner) => Error::Unhandled(inner),
314 }
315 }
316}
317impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_associate_user_stack::BatchAssociateUserStackError, R>>
318 for Error
319where
320 R: Send + Sync + std::fmt::Debug + 'static,
321{
322 fn from(
323 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_associate_user_stack::BatchAssociateUserStackError, R>,
324 ) -> Self {
325 match err {
326 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
327 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
328 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
329 source: err.into(),
330 }),
331 }
332 }
333}
334impl From<crate::operation::batch_associate_user_stack::BatchAssociateUserStackError> for Error {
335 fn from(err: crate::operation::batch_associate_user_stack::BatchAssociateUserStackError) -> Self {
336 match err {
337 crate::operation::batch_associate_user_stack::BatchAssociateUserStackError::InvalidParameterCombinationException(inner) => {
338 Error::InvalidParameterCombinationException(inner)
339 }
340 crate::operation::batch_associate_user_stack::BatchAssociateUserStackError::OperationNotPermittedException(inner) => {
341 Error::OperationNotPermittedException(inner)
342 }
343 crate::operation::batch_associate_user_stack::BatchAssociateUserStackError::Unhandled(inner) => Error::Unhandled(inner),
344 }
345 }
346}
347impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_disassociate_user_stack::BatchDisassociateUserStackError, R>>
348 for Error
349where
350 R: Send + Sync + std::fmt::Debug + 'static,
351{
352 fn from(
353 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_disassociate_user_stack::BatchDisassociateUserStackError, R>,
354 ) -> Self {
355 match err {
356 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
357 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
358 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
359 source: err.into(),
360 }),
361 }
362 }
363}
364impl From<crate::operation::batch_disassociate_user_stack::BatchDisassociateUserStackError> for Error {
365 fn from(err: crate::operation::batch_disassociate_user_stack::BatchDisassociateUserStackError) -> Self {
366 match err {
367 crate::operation::batch_disassociate_user_stack::BatchDisassociateUserStackError::InvalidParameterCombinationException(inner) => {
368 Error::InvalidParameterCombinationException(inner)
369 }
370 crate::operation::batch_disassociate_user_stack::BatchDisassociateUserStackError::OperationNotPermittedException(inner) => {
371 Error::OperationNotPermittedException(inner)
372 }
373 crate::operation::batch_disassociate_user_stack::BatchDisassociateUserStackError::Unhandled(inner) => Error::Unhandled(inner),
374 }
375 }
376}
377impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::copy_image::CopyImageError, R>> for Error
378where
379 R: Send + Sync + std::fmt::Debug + 'static,
380{
381 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::copy_image::CopyImageError, R>) -> Self {
382 match err {
383 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
384 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
385 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
386 source: err.into(),
387 }),
388 }
389 }
390}
391impl From<crate::operation::copy_image::CopyImageError> for Error {
392 fn from(err: crate::operation::copy_image::CopyImageError) -> Self {
393 match err {
394 crate::operation::copy_image::CopyImageError::IncompatibleImageException(inner) => Error::IncompatibleImageException(inner),
395 crate::operation::copy_image::CopyImageError::InvalidAccountStatusException(inner) => Error::InvalidAccountStatusException(inner),
396 crate::operation::copy_image::CopyImageError::LimitExceededException(inner) => Error::LimitExceededException(inner),
397 crate::operation::copy_image::CopyImageError::ResourceAlreadyExistsException(inner) => Error::ResourceAlreadyExistsException(inner),
398 crate::operation::copy_image::CopyImageError::ResourceNotAvailableException(inner) => Error::ResourceNotAvailableException(inner),
399 crate::operation::copy_image::CopyImageError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
400 crate::operation::copy_image::CopyImageError::Unhandled(inner) => Error::Unhandled(inner),
401 }
402 }
403}
404impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_app_block::CreateAppBlockError, R>> for Error
405where
406 R: Send + Sync + std::fmt::Debug + 'static,
407{
408 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_app_block::CreateAppBlockError, R>) -> Self {
409 match err {
410 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
411 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
412 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
413 source: err.into(),
414 }),
415 }
416 }
417}
418impl From<crate::operation::create_app_block::CreateAppBlockError> for Error {
419 fn from(err: crate::operation::create_app_block::CreateAppBlockError) -> Self {
420 match err {
421 crate::operation::create_app_block::CreateAppBlockError::ConcurrentModificationException(inner) => {
422 Error::ConcurrentModificationException(inner)
423 }
424 crate::operation::create_app_block::CreateAppBlockError::LimitExceededException(inner) => Error::LimitExceededException(inner),
425 crate::operation::create_app_block::CreateAppBlockError::OperationNotPermittedException(inner) => {
426 Error::OperationNotPermittedException(inner)
427 }
428 crate::operation::create_app_block::CreateAppBlockError::ResourceAlreadyExistsException(inner) => {
429 Error::ResourceAlreadyExistsException(inner)
430 }
431 crate::operation::create_app_block::CreateAppBlockError::Unhandled(inner) => Error::Unhandled(inner),
432 }
433 }
434}
435impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_app_block_builder::CreateAppBlockBuilderError, R>> for Error
436where
437 R: Send + Sync + std::fmt::Debug + 'static,
438{
439 fn from(
440 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_app_block_builder::CreateAppBlockBuilderError, R>,
441 ) -> Self {
442 match err {
443 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
444 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
445 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
446 source: err.into(),
447 }),
448 }
449 }
450}
451impl From<crate::operation::create_app_block_builder::CreateAppBlockBuilderError> for Error {
452 fn from(err: crate::operation::create_app_block_builder::CreateAppBlockBuilderError) -> Self {
453 match err {
454 crate::operation::create_app_block_builder::CreateAppBlockBuilderError::ConcurrentModificationException(inner) => {
455 Error::ConcurrentModificationException(inner)
456 }
457 crate::operation::create_app_block_builder::CreateAppBlockBuilderError::InvalidAccountStatusException(inner) => {
458 Error::InvalidAccountStatusException(inner)
459 }
460 crate::operation::create_app_block_builder::CreateAppBlockBuilderError::InvalidParameterCombinationException(inner) => {
461 Error::InvalidParameterCombinationException(inner)
462 }
463 crate::operation::create_app_block_builder::CreateAppBlockBuilderError::InvalidRoleException(inner) => Error::InvalidRoleException(inner),
464 crate::operation::create_app_block_builder::CreateAppBlockBuilderError::LimitExceededException(inner) => {
465 Error::LimitExceededException(inner)
466 }
467 crate::operation::create_app_block_builder::CreateAppBlockBuilderError::OperationNotPermittedException(inner) => {
468 Error::OperationNotPermittedException(inner)
469 }
470 crate::operation::create_app_block_builder::CreateAppBlockBuilderError::RequestLimitExceededException(inner) => {
471 Error::RequestLimitExceededException(inner)
472 }
473 crate::operation::create_app_block_builder::CreateAppBlockBuilderError::ResourceAlreadyExistsException(inner) => {
474 Error::ResourceAlreadyExistsException(inner)
475 }
476 crate::operation::create_app_block_builder::CreateAppBlockBuilderError::ResourceNotAvailableException(inner) => {
477 Error::ResourceNotAvailableException(inner)
478 }
479 crate::operation::create_app_block_builder::CreateAppBlockBuilderError::ResourceNotFoundException(inner) => {
480 Error::ResourceNotFoundException(inner)
481 }
482 crate::operation::create_app_block_builder::CreateAppBlockBuilderError::Unhandled(inner) => Error::Unhandled(inner),
483 }
484 }
485}
486impl<R>
487 From<
488 ::aws_smithy_runtime_api::client::result::SdkError<
489 crate::operation::create_app_block_builder_streaming_url::CreateAppBlockBuilderStreamingURLError,
490 R,
491 >,
492 > for Error
493where
494 R: Send + Sync + std::fmt::Debug + 'static,
495{
496 fn from(
497 err: ::aws_smithy_runtime_api::client::result::SdkError<
498 crate::operation::create_app_block_builder_streaming_url::CreateAppBlockBuilderStreamingURLError,
499 R,
500 >,
501 ) -> Self {
502 match err {
503 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
504 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
505 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
506 source: err.into(),
507 }),
508 }
509 }
510}
511impl From<crate::operation::create_app_block_builder_streaming_url::CreateAppBlockBuilderStreamingURLError> for Error {
512 fn from(err: crate::operation::create_app_block_builder_streaming_url::CreateAppBlockBuilderStreamingURLError) -> Self {
513 match err {
514 crate::operation::create_app_block_builder_streaming_url::CreateAppBlockBuilderStreamingURLError::OperationNotPermittedException(
515 inner,
516 ) => Error::OperationNotPermittedException(inner),
517 crate::operation::create_app_block_builder_streaming_url::CreateAppBlockBuilderStreamingURLError::ResourceNotFoundException(inner) => {
518 Error::ResourceNotFoundException(inner)
519 }
520 crate::operation::create_app_block_builder_streaming_url::CreateAppBlockBuilderStreamingURLError::Unhandled(inner) => {
521 Error::Unhandled(inner)
522 }
523 }
524 }
525}
526impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_application::CreateApplicationError, R>> for Error
527where
528 R: Send + Sync + std::fmt::Debug + 'static,
529{
530 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_application::CreateApplicationError, R>) -> Self {
531 match err {
532 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
533 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
534 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
535 source: err.into(),
536 }),
537 }
538 }
539}
540impl From<crate::operation::create_application::CreateApplicationError> for Error {
541 fn from(err: crate::operation::create_application::CreateApplicationError) -> Self {
542 match err {
543 crate::operation::create_application::CreateApplicationError::ConcurrentModificationException(inner) => {
544 Error::ConcurrentModificationException(inner)
545 }
546 crate::operation::create_application::CreateApplicationError::LimitExceededException(inner) => Error::LimitExceededException(inner),
547 crate::operation::create_application::CreateApplicationError::OperationNotPermittedException(inner) => {
548 Error::OperationNotPermittedException(inner)
549 }
550 crate::operation::create_application::CreateApplicationError::ResourceAlreadyExistsException(inner) => {
551 Error::ResourceAlreadyExistsException(inner)
552 }
553 crate::operation::create_application::CreateApplicationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
554 crate::operation::create_application::CreateApplicationError::Unhandled(inner) => Error::Unhandled(inner),
555 }
556 }
557}
558impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_directory_config::CreateDirectoryConfigError, R>> for Error
559where
560 R: Send + Sync + std::fmt::Debug + 'static,
561{
562 fn from(
563 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_directory_config::CreateDirectoryConfigError, R>,
564 ) -> Self {
565 match err {
566 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
567 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
568 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
569 source: err.into(),
570 }),
571 }
572 }
573}
574impl From<crate::operation::create_directory_config::CreateDirectoryConfigError> for Error {
575 fn from(err: crate::operation::create_directory_config::CreateDirectoryConfigError) -> Self {
576 match err {
577 crate::operation::create_directory_config::CreateDirectoryConfigError::InvalidAccountStatusException(inner) => {
578 Error::InvalidAccountStatusException(inner)
579 }
580 crate::operation::create_directory_config::CreateDirectoryConfigError::InvalidRoleException(inner) => Error::InvalidRoleException(inner),
581 crate::operation::create_directory_config::CreateDirectoryConfigError::LimitExceededException(inner) => {
582 Error::LimitExceededException(inner)
583 }
584 crate::operation::create_directory_config::CreateDirectoryConfigError::OperationNotPermittedException(inner) => {
585 Error::OperationNotPermittedException(inner)
586 }
587 crate::operation::create_directory_config::CreateDirectoryConfigError::ResourceAlreadyExistsException(inner) => {
588 Error::ResourceAlreadyExistsException(inner)
589 }
590 crate::operation::create_directory_config::CreateDirectoryConfigError::ResourceNotFoundException(inner) => {
591 Error::ResourceNotFoundException(inner)
592 }
593 crate::operation::create_directory_config::CreateDirectoryConfigError::Unhandled(inner) => Error::Unhandled(inner),
594 }
595 }
596}
597impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_entitlement::CreateEntitlementError, R>> for Error
598where
599 R: Send + Sync + std::fmt::Debug + 'static,
600{
601 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_entitlement::CreateEntitlementError, R>) -> Self {
602 match err {
603 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
604 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
605 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
606 source: err.into(),
607 }),
608 }
609 }
610}
611impl From<crate::operation::create_entitlement::CreateEntitlementError> for Error {
612 fn from(err: crate::operation::create_entitlement::CreateEntitlementError) -> Self {
613 match err {
614 crate::operation::create_entitlement::CreateEntitlementError::EntitlementAlreadyExistsException(inner) => {
615 Error::EntitlementAlreadyExistsException(inner)
616 }
617 crate::operation::create_entitlement::CreateEntitlementError::LimitExceededException(inner) => Error::LimitExceededException(inner),
618 crate::operation::create_entitlement::CreateEntitlementError::OperationNotPermittedException(inner) => {
619 Error::OperationNotPermittedException(inner)
620 }
621 crate::operation::create_entitlement::CreateEntitlementError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
622 crate::operation::create_entitlement::CreateEntitlementError::Unhandled(inner) => Error::Unhandled(inner),
623 }
624 }
625}
626impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_export_image_task::CreateExportImageTaskError, R>> for Error
627where
628 R: Send + Sync + std::fmt::Debug + 'static,
629{
630 fn from(
631 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_export_image_task::CreateExportImageTaskError, R>,
632 ) -> Self {
633 match err {
634 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
635 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
636 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
637 source: err.into(),
638 }),
639 }
640 }
641}
642impl From<crate::operation::create_export_image_task::CreateExportImageTaskError> for Error {
643 fn from(err: crate::operation::create_export_image_task::CreateExportImageTaskError) -> Self {
644 match err {
645 crate::operation::create_export_image_task::CreateExportImageTaskError::ConcurrentModificationException(inner) => {
646 Error::ConcurrentModificationException(inner)
647 }
648 crate::operation::create_export_image_task::CreateExportImageTaskError::InvalidAccountStatusException(inner) => {
649 Error::InvalidAccountStatusException(inner)
650 }
651 crate::operation::create_export_image_task::CreateExportImageTaskError::InvalidRoleException(inner) => Error::InvalidRoleException(inner),
652 crate::operation::create_export_image_task::CreateExportImageTaskError::LimitExceededException(inner) => {
653 Error::LimitExceededException(inner)
654 }
655 crate::operation::create_export_image_task::CreateExportImageTaskError::OperationNotPermittedException(inner) => {
656 Error::OperationNotPermittedException(inner)
657 }
658 crate::operation::create_export_image_task::CreateExportImageTaskError::ResourceNotAvailableException(inner) => {
659 Error::ResourceNotAvailableException(inner)
660 }
661 crate::operation::create_export_image_task::CreateExportImageTaskError::ResourceNotFoundException(inner) => {
662 Error::ResourceNotFoundException(inner)
663 }
664 crate::operation::create_export_image_task::CreateExportImageTaskError::Unhandled(inner) => Error::Unhandled(inner),
665 }
666 }
667}
668impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_fleet::CreateFleetError, R>> for Error
669where
670 R: Send + Sync + std::fmt::Debug + 'static,
671{
672 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_fleet::CreateFleetError, R>) -> Self {
673 match err {
674 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
675 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
676 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
677 source: err.into(),
678 }),
679 }
680 }
681}
682impl From<crate::operation::create_fleet::CreateFleetError> for Error {
683 fn from(err: crate::operation::create_fleet::CreateFleetError) -> Self {
684 match err {
685 crate::operation::create_fleet::CreateFleetError::ConcurrentModificationException(inner) => Error::ConcurrentModificationException(inner),
686 crate::operation::create_fleet::CreateFleetError::IncompatibleImageException(inner) => Error::IncompatibleImageException(inner),
687 crate::operation::create_fleet::CreateFleetError::InvalidAccountStatusException(inner) => Error::InvalidAccountStatusException(inner),
688 crate::operation::create_fleet::CreateFleetError::InvalidParameterCombinationException(inner) => {
689 Error::InvalidParameterCombinationException(inner)
690 }
691 crate::operation::create_fleet::CreateFleetError::InvalidRoleException(inner) => Error::InvalidRoleException(inner),
692 crate::operation::create_fleet::CreateFleetError::LimitExceededException(inner) => Error::LimitExceededException(inner),
693 crate::operation::create_fleet::CreateFleetError::OperationNotPermittedException(inner) => Error::OperationNotPermittedException(inner),
694 crate::operation::create_fleet::CreateFleetError::RequestLimitExceededException(inner) => Error::RequestLimitExceededException(inner),
695 crate::operation::create_fleet::CreateFleetError::ResourceAlreadyExistsException(inner) => Error::ResourceAlreadyExistsException(inner),
696 crate::operation::create_fleet::CreateFleetError::ResourceNotAvailableException(inner) => Error::ResourceNotAvailableException(inner),
697 crate::operation::create_fleet::CreateFleetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
698 crate::operation::create_fleet::CreateFleetError::Unhandled(inner) => Error::Unhandled(inner),
699 }
700 }
701}
702impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_image_builder::CreateImageBuilderError, R>> for Error
703where
704 R: Send + Sync + std::fmt::Debug + 'static,
705{
706 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_image_builder::CreateImageBuilderError, R>) -> Self {
707 match err {
708 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
709 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
710 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
711 source: err.into(),
712 }),
713 }
714 }
715}
716impl From<crate::operation::create_image_builder::CreateImageBuilderError> for Error {
717 fn from(err: crate::operation::create_image_builder::CreateImageBuilderError) -> Self {
718 match err {
719 crate::operation::create_image_builder::CreateImageBuilderError::ConcurrentModificationException(inner) => {
720 Error::ConcurrentModificationException(inner)
721 }
722 crate::operation::create_image_builder::CreateImageBuilderError::IncompatibleImageException(inner) => {
723 Error::IncompatibleImageException(inner)
724 }
725 crate::operation::create_image_builder::CreateImageBuilderError::InvalidAccountStatusException(inner) => {
726 Error::InvalidAccountStatusException(inner)
727 }
728 crate::operation::create_image_builder::CreateImageBuilderError::InvalidParameterCombinationException(inner) => {
729 Error::InvalidParameterCombinationException(inner)
730 }
731 crate::operation::create_image_builder::CreateImageBuilderError::InvalidRoleException(inner) => Error::InvalidRoleException(inner),
732 crate::operation::create_image_builder::CreateImageBuilderError::LimitExceededException(inner) => Error::LimitExceededException(inner),
733 crate::operation::create_image_builder::CreateImageBuilderError::OperationNotPermittedException(inner) => {
734 Error::OperationNotPermittedException(inner)
735 }
736 crate::operation::create_image_builder::CreateImageBuilderError::RequestLimitExceededException(inner) => {
737 Error::RequestLimitExceededException(inner)
738 }
739 crate::operation::create_image_builder::CreateImageBuilderError::ResourceAlreadyExistsException(inner) => {
740 Error::ResourceAlreadyExistsException(inner)
741 }
742 crate::operation::create_image_builder::CreateImageBuilderError::ResourceNotAvailableException(inner) => {
743 Error::ResourceNotAvailableException(inner)
744 }
745 crate::operation::create_image_builder::CreateImageBuilderError::ResourceNotFoundException(inner) => {
746 Error::ResourceNotFoundException(inner)
747 }
748 crate::operation::create_image_builder::CreateImageBuilderError::Unhandled(inner) => Error::Unhandled(inner),
749 }
750 }
751}
752impl<R>
753 From<
754 ::aws_smithy_runtime_api::client::result::SdkError<
755 crate::operation::create_image_builder_streaming_url::CreateImageBuilderStreamingURLError,
756 R,
757 >,
758 > for Error
759where
760 R: Send + Sync + std::fmt::Debug + 'static,
761{
762 fn from(
763 err: ::aws_smithy_runtime_api::client::result::SdkError<
764 crate::operation::create_image_builder_streaming_url::CreateImageBuilderStreamingURLError,
765 R,
766 >,
767 ) -> Self {
768 match err {
769 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
770 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
771 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
772 source: err.into(),
773 }),
774 }
775 }
776}
777impl From<crate::operation::create_image_builder_streaming_url::CreateImageBuilderStreamingURLError> for Error {
778 fn from(err: crate::operation::create_image_builder_streaming_url::CreateImageBuilderStreamingURLError) -> Self {
779 match err {
780 crate::operation::create_image_builder_streaming_url::CreateImageBuilderStreamingURLError::OperationNotPermittedException(inner) => {
781 Error::OperationNotPermittedException(inner)
782 }
783 crate::operation::create_image_builder_streaming_url::CreateImageBuilderStreamingURLError::ResourceNotFoundException(inner) => {
784 Error::ResourceNotFoundException(inner)
785 }
786 crate::operation::create_image_builder_streaming_url::CreateImageBuilderStreamingURLError::Unhandled(inner) => Error::Unhandled(inner),
787 }
788 }
789}
790impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_imported_image::CreateImportedImageError, R>> for Error
791where
792 R: Send + Sync + std::fmt::Debug + 'static,
793{
794 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_imported_image::CreateImportedImageError, R>) -> Self {
795 match err {
796 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
797 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
798 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
799 source: err.into(),
800 }),
801 }
802 }
803}
804impl From<crate::operation::create_imported_image::CreateImportedImageError> for Error {
805 fn from(err: crate::operation::create_imported_image::CreateImportedImageError) -> Self {
806 match err {
807 crate::operation::create_imported_image::CreateImportedImageError::DryRunOperationException(inner) => {
808 Error::DryRunOperationException(inner)
809 }
810 crate::operation::create_imported_image::CreateImportedImageError::IncompatibleImageException(inner) => {
811 Error::IncompatibleImageException(inner)
812 }
813 crate::operation::create_imported_image::CreateImportedImageError::InvalidAccountStatusException(inner) => {
814 Error::InvalidAccountStatusException(inner)
815 }
816 crate::operation::create_imported_image::CreateImportedImageError::InvalidRoleException(inner) => Error::InvalidRoleException(inner),
817 crate::operation::create_imported_image::CreateImportedImageError::LimitExceededException(inner) => Error::LimitExceededException(inner),
818 crate::operation::create_imported_image::CreateImportedImageError::OperationNotPermittedException(inner) => {
819 Error::OperationNotPermittedException(inner)
820 }
821 crate::operation::create_imported_image::CreateImportedImageError::ResourceAlreadyExistsException(inner) => {
822 Error::ResourceAlreadyExistsException(inner)
823 }
824 crate::operation::create_imported_image::CreateImportedImageError::ResourceNotFoundException(inner) => {
825 Error::ResourceNotFoundException(inner)
826 }
827 crate::operation::create_imported_image::CreateImportedImageError::Unhandled(inner) => Error::Unhandled(inner),
828 }
829 }
830}
831impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_stack::CreateStackError, R>> for Error
832where
833 R: Send + Sync + std::fmt::Debug + 'static,
834{
835 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_stack::CreateStackError, R>) -> Self {
836 match err {
837 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
838 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
839 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
840 source: err.into(),
841 }),
842 }
843 }
844}
845impl From<crate::operation::create_stack::CreateStackError> for Error {
846 fn from(err: crate::operation::create_stack::CreateStackError) -> Self {
847 match err {
848 crate::operation::create_stack::CreateStackError::ConcurrentModificationException(inner) => Error::ConcurrentModificationException(inner),
849 crate::operation::create_stack::CreateStackError::InvalidAccountStatusException(inner) => Error::InvalidAccountStatusException(inner),
850 crate::operation::create_stack::CreateStackError::InvalidParameterCombinationException(inner) => {
851 Error::InvalidParameterCombinationException(inner)
852 }
853 crate::operation::create_stack::CreateStackError::InvalidRoleException(inner) => Error::InvalidRoleException(inner),
854 crate::operation::create_stack::CreateStackError::LimitExceededException(inner) => Error::LimitExceededException(inner),
855 crate::operation::create_stack::CreateStackError::OperationNotPermittedException(inner) => Error::OperationNotPermittedException(inner),
856 crate::operation::create_stack::CreateStackError::ResourceAlreadyExistsException(inner) => Error::ResourceAlreadyExistsException(inner),
857 crate::operation::create_stack::CreateStackError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
858 crate::operation::create_stack::CreateStackError::Unhandled(inner) => Error::Unhandled(inner),
859 }
860 }
861}
862impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_streaming_url::CreateStreamingURLError, R>> for Error
863where
864 R: Send + Sync + std::fmt::Debug + 'static,
865{
866 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_streaming_url::CreateStreamingURLError, R>) -> Self {
867 match err {
868 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
869 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
870 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
871 source: err.into(),
872 }),
873 }
874 }
875}
876impl From<crate::operation::create_streaming_url::CreateStreamingURLError> for Error {
877 fn from(err: crate::operation::create_streaming_url::CreateStreamingURLError) -> Self {
878 match err {
879 crate::operation::create_streaming_url::CreateStreamingURLError::InvalidParameterCombinationException(inner) => {
880 Error::InvalidParameterCombinationException(inner)
881 }
882 crate::operation::create_streaming_url::CreateStreamingURLError::OperationNotPermittedException(inner) => {
883 Error::OperationNotPermittedException(inner)
884 }
885 crate::operation::create_streaming_url::CreateStreamingURLError::ResourceNotAvailableException(inner) => {
886 Error::ResourceNotAvailableException(inner)
887 }
888 crate::operation::create_streaming_url::CreateStreamingURLError::ResourceNotFoundException(inner) => {
889 Error::ResourceNotFoundException(inner)
890 }
891 crate::operation::create_streaming_url::CreateStreamingURLError::Unhandled(inner) => Error::Unhandled(inner),
892 }
893 }
894}
895impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_theme_for_stack::CreateThemeForStackError, R>> for Error
896where
897 R: Send + Sync + std::fmt::Debug + 'static,
898{
899 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_theme_for_stack::CreateThemeForStackError, R>) -> Self {
900 match err {
901 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
902 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
903 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
904 source: err.into(),
905 }),
906 }
907 }
908}
909impl From<crate::operation::create_theme_for_stack::CreateThemeForStackError> for Error {
910 fn from(err: crate::operation::create_theme_for_stack::CreateThemeForStackError) -> Self {
911 match err {
912 crate::operation::create_theme_for_stack::CreateThemeForStackError::ConcurrentModificationException(inner) => {
913 Error::ConcurrentModificationException(inner)
914 }
915 crate::operation::create_theme_for_stack::CreateThemeForStackError::InvalidAccountStatusException(inner) => {
916 Error::InvalidAccountStatusException(inner)
917 }
918 crate::operation::create_theme_for_stack::CreateThemeForStackError::LimitExceededException(inner) => Error::LimitExceededException(inner),
919 crate::operation::create_theme_for_stack::CreateThemeForStackError::OperationNotPermittedException(inner) => {
920 Error::OperationNotPermittedException(inner)
921 }
922 crate::operation::create_theme_for_stack::CreateThemeForStackError::ResourceAlreadyExistsException(inner) => {
923 Error::ResourceAlreadyExistsException(inner)
924 }
925 crate::operation::create_theme_for_stack::CreateThemeForStackError::ResourceNotFoundException(inner) => {
926 Error::ResourceNotFoundException(inner)
927 }
928 crate::operation::create_theme_for_stack::CreateThemeForStackError::Unhandled(inner) => Error::Unhandled(inner),
929 }
930 }
931}
932impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_updated_image::CreateUpdatedImageError, R>> for Error
933where
934 R: Send + Sync + std::fmt::Debug + 'static,
935{
936 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_updated_image::CreateUpdatedImageError, R>) -> Self {
937 match err {
938 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
939 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
940 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
941 source: err.into(),
942 }),
943 }
944 }
945}
946impl From<crate::operation::create_updated_image::CreateUpdatedImageError> for Error {
947 fn from(err: crate::operation::create_updated_image::CreateUpdatedImageError) -> Self {
948 match err {
949 crate::operation::create_updated_image::CreateUpdatedImageError::ConcurrentModificationException(inner) => {
950 Error::ConcurrentModificationException(inner)
951 }
952 crate::operation::create_updated_image::CreateUpdatedImageError::IncompatibleImageException(inner) => {
953 Error::IncompatibleImageException(inner)
954 }
955 crate::operation::create_updated_image::CreateUpdatedImageError::InvalidAccountStatusException(inner) => {
956 Error::InvalidAccountStatusException(inner)
957 }
958 crate::operation::create_updated_image::CreateUpdatedImageError::LimitExceededException(inner) => Error::LimitExceededException(inner),
959 crate::operation::create_updated_image::CreateUpdatedImageError::OperationNotPermittedException(inner) => {
960 Error::OperationNotPermittedException(inner)
961 }
962 crate::operation::create_updated_image::CreateUpdatedImageError::ResourceAlreadyExistsException(inner) => {
963 Error::ResourceAlreadyExistsException(inner)
964 }
965 crate::operation::create_updated_image::CreateUpdatedImageError::ResourceNotFoundException(inner) => {
966 Error::ResourceNotFoundException(inner)
967 }
968 crate::operation::create_updated_image::CreateUpdatedImageError::Unhandled(inner) => Error::Unhandled(inner),
969 }
970 }
971}
972impl<R>
973 From<
974 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_usage_report_subscription::CreateUsageReportSubscriptionError, R>,
975 > for Error
976where
977 R: Send + Sync + std::fmt::Debug + 'static,
978{
979 fn from(
980 err: ::aws_smithy_runtime_api::client::result::SdkError<
981 crate::operation::create_usage_report_subscription::CreateUsageReportSubscriptionError,
982 R,
983 >,
984 ) -> Self {
985 match err {
986 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
987 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
988 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
989 source: err.into(),
990 }),
991 }
992 }
993}
994impl From<crate::operation::create_usage_report_subscription::CreateUsageReportSubscriptionError> for Error {
995 fn from(err: crate::operation::create_usage_report_subscription::CreateUsageReportSubscriptionError) -> Self {
996 match err {
997 crate::operation::create_usage_report_subscription::CreateUsageReportSubscriptionError::InvalidAccountStatusException(inner) => {
998 Error::InvalidAccountStatusException(inner)
999 }
1000 crate::operation::create_usage_report_subscription::CreateUsageReportSubscriptionError::InvalidRoleException(inner) => {
1001 Error::InvalidRoleException(inner)
1002 }
1003 crate::operation::create_usage_report_subscription::CreateUsageReportSubscriptionError::LimitExceededException(inner) => {
1004 Error::LimitExceededException(inner)
1005 }
1006 crate::operation::create_usage_report_subscription::CreateUsageReportSubscriptionError::Unhandled(inner) => Error::Unhandled(inner),
1007 }
1008 }
1009}
1010impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_user::CreateUserError, R>> for Error
1011where
1012 R: Send + Sync + std::fmt::Debug + 'static,
1013{
1014 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_user::CreateUserError, R>) -> Self {
1015 match err {
1016 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1017 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1018 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1019 source: err.into(),
1020 }),
1021 }
1022 }
1023}
1024impl From<crate::operation::create_user::CreateUserError> for Error {
1025 fn from(err: crate::operation::create_user::CreateUserError) -> Self {
1026 match err {
1027 crate::operation::create_user::CreateUserError::InvalidAccountStatusException(inner) => Error::InvalidAccountStatusException(inner),
1028 crate::operation::create_user::CreateUserError::InvalidParameterCombinationException(inner) => {
1029 Error::InvalidParameterCombinationException(inner)
1030 }
1031 crate::operation::create_user::CreateUserError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1032 crate::operation::create_user::CreateUserError::OperationNotPermittedException(inner) => Error::OperationNotPermittedException(inner),
1033 crate::operation::create_user::CreateUserError::ResourceAlreadyExistsException(inner) => Error::ResourceAlreadyExistsException(inner),
1034 crate::operation::create_user::CreateUserError::Unhandled(inner) => Error::Unhandled(inner),
1035 }
1036 }
1037}
1038impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_app_block::DeleteAppBlockError, R>> for Error
1039where
1040 R: Send + Sync + std::fmt::Debug + 'static,
1041{
1042 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_app_block::DeleteAppBlockError, R>) -> Self {
1043 match err {
1044 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1045 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1046 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1047 source: err.into(),
1048 }),
1049 }
1050 }
1051}
1052impl From<crate::operation::delete_app_block::DeleteAppBlockError> for Error {
1053 fn from(err: crate::operation::delete_app_block::DeleteAppBlockError) -> Self {
1054 match err {
1055 crate::operation::delete_app_block::DeleteAppBlockError::ConcurrentModificationException(inner) => {
1056 Error::ConcurrentModificationException(inner)
1057 }
1058 crate::operation::delete_app_block::DeleteAppBlockError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
1059 crate::operation::delete_app_block::DeleteAppBlockError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1060 crate::operation::delete_app_block::DeleteAppBlockError::Unhandled(inner) => Error::Unhandled(inner),
1061 }
1062 }
1063}
1064impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_app_block_builder::DeleteAppBlockBuilderError, R>> for Error
1065where
1066 R: Send + Sync + std::fmt::Debug + 'static,
1067{
1068 fn from(
1069 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_app_block_builder::DeleteAppBlockBuilderError, R>,
1070 ) -> Self {
1071 match err {
1072 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1073 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1074 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1075 source: err.into(),
1076 }),
1077 }
1078 }
1079}
1080impl From<crate::operation::delete_app_block_builder::DeleteAppBlockBuilderError> for Error {
1081 fn from(err: crate::operation::delete_app_block_builder::DeleteAppBlockBuilderError) -> Self {
1082 match err {
1083 crate::operation::delete_app_block_builder::DeleteAppBlockBuilderError::ConcurrentModificationException(inner) => {
1084 Error::ConcurrentModificationException(inner)
1085 }
1086 crate::operation::delete_app_block_builder::DeleteAppBlockBuilderError::OperationNotPermittedException(inner) => {
1087 Error::OperationNotPermittedException(inner)
1088 }
1089 crate::operation::delete_app_block_builder::DeleteAppBlockBuilderError::ResourceInUseException(inner) => {
1090 Error::ResourceInUseException(inner)
1091 }
1092 crate::operation::delete_app_block_builder::DeleteAppBlockBuilderError::ResourceNotFoundException(inner) => {
1093 Error::ResourceNotFoundException(inner)
1094 }
1095 crate::operation::delete_app_block_builder::DeleteAppBlockBuilderError::Unhandled(inner) => Error::Unhandled(inner),
1096 }
1097 }
1098}
1099impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_application::DeleteApplicationError, R>> for Error
1100where
1101 R: Send + Sync + std::fmt::Debug + 'static,
1102{
1103 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_application::DeleteApplicationError, R>) -> Self {
1104 match err {
1105 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1106 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1107 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1108 source: err.into(),
1109 }),
1110 }
1111 }
1112}
1113impl From<crate::operation::delete_application::DeleteApplicationError> for Error {
1114 fn from(err: crate::operation::delete_application::DeleteApplicationError) -> Self {
1115 match err {
1116 crate::operation::delete_application::DeleteApplicationError::ConcurrentModificationException(inner) => {
1117 Error::ConcurrentModificationException(inner)
1118 }
1119 crate::operation::delete_application::DeleteApplicationError::OperationNotPermittedException(inner) => {
1120 Error::OperationNotPermittedException(inner)
1121 }
1122 crate::operation::delete_application::DeleteApplicationError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
1123 crate::operation::delete_application::DeleteApplicationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1124 crate::operation::delete_application::DeleteApplicationError::Unhandled(inner) => Error::Unhandled(inner),
1125 }
1126 }
1127}
1128impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_directory_config::DeleteDirectoryConfigError, R>> for Error
1129where
1130 R: Send + Sync + std::fmt::Debug + 'static,
1131{
1132 fn from(
1133 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_directory_config::DeleteDirectoryConfigError, R>,
1134 ) -> Self {
1135 match err {
1136 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1137 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1138 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1139 source: err.into(),
1140 }),
1141 }
1142 }
1143}
1144impl From<crate::operation::delete_directory_config::DeleteDirectoryConfigError> for Error {
1145 fn from(err: crate::operation::delete_directory_config::DeleteDirectoryConfigError) -> Self {
1146 match err {
1147 crate::operation::delete_directory_config::DeleteDirectoryConfigError::ResourceInUseException(inner) => {
1148 Error::ResourceInUseException(inner)
1149 }
1150 crate::operation::delete_directory_config::DeleteDirectoryConfigError::ResourceNotFoundException(inner) => {
1151 Error::ResourceNotFoundException(inner)
1152 }
1153 crate::operation::delete_directory_config::DeleteDirectoryConfigError::Unhandled(inner) => Error::Unhandled(inner),
1154 }
1155 }
1156}
1157impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_entitlement::DeleteEntitlementError, R>> for Error
1158where
1159 R: Send + Sync + std::fmt::Debug + 'static,
1160{
1161 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_entitlement::DeleteEntitlementError, R>) -> Self {
1162 match err {
1163 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1164 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1165 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1166 source: err.into(),
1167 }),
1168 }
1169 }
1170}
1171impl From<crate::operation::delete_entitlement::DeleteEntitlementError> for Error {
1172 fn from(err: crate::operation::delete_entitlement::DeleteEntitlementError) -> Self {
1173 match err {
1174 crate::operation::delete_entitlement::DeleteEntitlementError::ConcurrentModificationException(inner) => {
1175 Error::ConcurrentModificationException(inner)
1176 }
1177 crate::operation::delete_entitlement::DeleteEntitlementError::EntitlementNotFoundException(inner) => {
1178 Error::EntitlementNotFoundException(inner)
1179 }
1180 crate::operation::delete_entitlement::DeleteEntitlementError::OperationNotPermittedException(inner) => {
1181 Error::OperationNotPermittedException(inner)
1182 }
1183 crate::operation::delete_entitlement::DeleteEntitlementError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1184 crate::operation::delete_entitlement::DeleteEntitlementError::Unhandled(inner) => Error::Unhandled(inner),
1185 }
1186 }
1187}
1188impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_fleet::DeleteFleetError, R>> for Error
1189where
1190 R: Send + Sync + std::fmt::Debug + 'static,
1191{
1192 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_fleet::DeleteFleetError, R>) -> Self {
1193 match err {
1194 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1195 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1196 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1197 source: err.into(),
1198 }),
1199 }
1200 }
1201}
1202impl From<crate::operation::delete_fleet::DeleteFleetError> for Error {
1203 fn from(err: crate::operation::delete_fleet::DeleteFleetError) -> Self {
1204 match err {
1205 crate::operation::delete_fleet::DeleteFleetError::ConcurrentModificationException(inner) => Error::ConcurrentModificationException(inner),
1206 crate::operation::delete_fleet::DeleteFleetError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
1207 crate::operation::delete_fleet::DeleteFleetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1208 crate::operation::delete_fleet::DeleteFleetError::Unhandled(inner) => Error::Unhandled(inner),
1209 }
1210 }
1211}
1212impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_image::DeleteImageError, R>> for Error
1213where
1214 R: Send + Sync + std::fmt::Debug + 'static,
1215{
1216 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_image::DeleteImageError, R>) -> Self {
1217 match err {
1218 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1219 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1220 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1221 source: err.into(),
1222 }),
1223 }
1224 }
1225}
1226impl From<crate::operation::delete_image::DeleteImageError> for Error {
1227 fn from(err: crate::operation::delete_image::DeleteImageError) -> Self {
1228 match err {
1229 crate::operation::delete_image::DeleteImageError::ConcurrentModificationException(inner) => Error::ConcurrentModificationException(inner),
1230 crate::operation::delete_image::DeleteImageError::OperationNotPermittedException(inner) => Error::OperationNotPermittedException(inner),
1231 crate::operation::delete_image::DeleteImageError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
1232 crate::operation::delete_image::DeleteImageError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1233 crate::operation::delete_image::DeleteImageError::Unhandled(inner) => Error::Unhandled(inner),
1234 }
1235 }
1236}
1237impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_image_builder::DeleteImageBuilderError, R>> for Error
1238where
1239 R: Send + Sync + std::fmt::Debug + 'static,
1240{
1241 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_image_builder::DeleteImageBuilderError, R>) -> Self {
1242 match err {
1243 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1244 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1245 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1246 source: err.into(),
1247 }),
1248 }
1249 }
1250}
1251impl From<crate::operation::delete_image_builder::DeleteImageBuilderError> for Error {
1252 fn from(err: crate::operation::delete_image_builder::DeleteImageBuilderError) -> Self {
1253 match err {
1254 crate::operation::delete_image_builder::DeleteImageBuilderError::ConcurrentModificationException(inner) => {
1255 Error::ConcurrentModificationException(inner)
1256 }
1257 crate::operation::delete_image_builder::DeleteImageBuilderError::OperationNotPermittedException(inner) => {
1258 Error::OperationNotPermittedException(inner)
1259 }
1260 crate::operation::delete_image_builder::DeleteImageBuilderError::ResourceNotFoundException(inner) => {
1261 Error::ResourceNotFoundException(inner)
1262 }
1263 crate::operation::delete_image_builder::DeleteImageBuilderError::Unhandled(inner) => Error::Unhandled(inner),
1264 }
1265 }
1266}
1267impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_image_permissions::DeleteImagePermissionsError, R>> for Error
1268where
1269 R: Send + Sync + std::fmt::Debug + 'static,
1270{
1271 fn from(
1272 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_image_permissions::DeleteImagePermissionsError, R>,
1273 ) -> Self {
1274 match err {
1275 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1276 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1277 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1278 source: err.into(),
1279 }),
1280 }
1281 }
1282}
1283impl From<crate::operation::delete_image_permissions::DeleteImagePermissionsError> for Error {
1284 fn from(err: crate::operation::delete_image_permissions::DeleteImagePermissionsError) -> Self {
1285 match err {
1286 crate::operation::delete_image_permissions::DeleteImagePermissionsError::ResourceNotAvailableException(inner) => {
1287 Error::ResourceNotAvailableException(inner)
1288 }
1289 crate::operation::delete_image_permissions::DeleteImagePermissionsError::ResourceNotFoundException(inner) => {
1290 Error::ResourceNotFoundException(inner)
1291 }
1292 crate::operation::delete_image_permissions::DeleteImagePermissionsError::Unhandled(inner) => Error::Unhandled(inner),
1293 }
1294 }
1295}
1296impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_stack::DeleteStackError, R>> for Error
1297where
1298 R: Send + Sync + std::fmt::Debug + 'static,
1299{
1300 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_stack::DeleteStackError, R>) -> Self {
1301 match err {
1302 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1303 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1304 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1305 source: err.into(),
1306 }),
1307 }
1308 }
1309}
1310impl From<crate::operation::delete_stack::DeleteStackError> for Error {
1311 fn from(err: crate::operation::delete_stack::DeleteStackError) -> Self {
1312 match err {
1313 crate::operation::delete_stack::DeleteStackError::ConcurrentModificationException(inner) => Error::ConcurrentModificationException(inner),
1314 crate::operation::delete_stack::DeleteStackError::OperationNotPermittedException(inner) => Error::OperationNotPermittedException(inner),
1315 crate::operation::delete_stack::DeleteStackError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
1316 crate::operation::delete_stack::DeleteStackError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1317 crate::operation::delete_stack::DeleteStackError::Unhandled(inner) => Error::Unhandled(inner),
1318 }
1319 }
1320}
1321impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_theme_for_stack::DeleteThemeForStackError, R>> for Error
1322where
1323 R: Send + Sync + std::fmt::Debug + 'static,
1324{
1325 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_theme_for_stack::DeleteThemeForStackError, R>) -> Self {
1326 match err {
1327 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1328 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1329 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1330 source: err.into(),
1331 }),
1332 }
1333 }
1334}
1335impl From<crate::operation::delete_theme_for_stack::DeleteThemeForStackError> for Error {
1336 fn from(err: crate::operation::delete_theme_for_stack::DeleteThemeForStackError) -> Self {
1337 match err {
1338 crate::operation::delete_theme_for_stack::DeleteThemeForStackError::ConcurrentModificationException(inner) => {
1339 Error::ConcurrentModificationException(inner)
1340 }
1341 crate::operation::delete_theme_for_stack::DeleteThemeForStackError::OperationNotPermittedException(inner) => {
1342 Error::OperationNotPermittedException(inner)
1343 }
1344 crate::operation::delete_theme_for_stack::DeleteThemeForStackError::ResourceNotFoundException(inner) => {
1345 Error::ResourceNotFoundException(inner)
1346 }
1347 crate::operation::delete_theme_for_stack::DeleteThemeForStackError::Unhandled(inner) => Error::Unhandled(inner),
1348 }
1349 }
1350}
1351impl<R>
1352 From<
1353 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_usage_report_subscription::DeleteUsageReportSubscriptionError, R>,
1354 > for Error
1355where
1356 R: Send + Sync + std::fmt::Debug + 'static,
1357{
1358 fn from(
1359 err: ::aws_smithy_runtime_api::client::result::SdkError<
1360 crate::operation::delete_usage_report_subscription::DeleteUsageReportSubscriptionError,
1361 R,
1362 >,
1363 ) -> Self {
1364 match err {
1365 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1366 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1367 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1368 source: err.into(),
1369 }),
1370 }
1371 }
1372}
1373impl From<crate::operation::delete_usage_report_subscription::DeleteUsageReportSubscriptionError> for Error {
1374 fn from(err: crate::operation::delete_usage_report_subscription::DeleteUsageReportSubscriptionError) -> Self {
1375 match err {
1376 crate::operation::delete_usage_report_subscription::DeleteUsageReportSubscriptionError::InvalidAccountStatusException(inner) => {
1377 Error::InvalidAccountStatusException(inner)
1378 }
1379 crate::operation::delete_usage_report_subscription::DeleteUsageReportSubscriptionError::ResourceNotFoundException(inner) => {
1380 Error::ResourceNotFoundException(inner)
1381 }
1382 crate::operation::delete_usage_report_subscription::DeleteUsageReportSubscriptionError::Unhandled(inner) => Error::Unhandled(inner),
1383 }
1384 }
1385}
1386impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_user::DeleteUserError, R>> for Error
1387where
1388 R: Send + Sync + std::fmt::Debug + 'static,
1389{
1390 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_user::DeleteUserError, R>) -> Self {
1391 match err {
1392 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1393 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1394 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1395 source: err.into(),
1396 }),
1397 }
1398 }
1399}
1400impl From<crate::operation::delete_user::DeleteUserError> for Error {
1401 fn from(err: crate::operation::delete_user::DeleteUserError) -> Self {
1402 match err {
1403 crate::operation::delete_user::DeleteUserError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1404 crate::operation::delete_user::DeleteUserError::Unhandled(inner) => Error::Unhandled(inner),
1405 }
1406 }
1407}
1408impl<R>
1409 From<
1410 ::aws_smithy_runtime_api::client::result::SdkError<
1411 crate::operation::describe_app_block_builder_app_block_associations::DescribeAppBlockBuilderAppBlockAssociationsError,
1412 R,
1413 >,
1414 > for Error
1415where
1416 R: Send + Sync + std::fmt::Debug + 'static,
1417{
1418 fn from(
1419 err: ::aws_smithy_runtime_api::client::result::SdkError<
1420 crate::operation::describe_app_block_builder_app_block_associations::DescribeAppBlockBuilderAppBlockAssociationsError,
1421 R,
1422 >,
1423 ) -> Self {
1424 match err {
1425 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1426 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1427 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1428 source: err.into(),
1429 }),
1430 }
1431 }
1432}
1433impl From<crate::operation::describe_app_block_builder_app_block_associations::DescribeAppBlockBuilderAppBlockAssociationsError> for Error {
1434 fn from(err: crate::operation::describe_app_block_builder_app_block_associations::DescribeAppBlockBuilderAppBlockAssociationsError) -> Self {
1435 match err {
1436 crate::operation::describe_app_block_builder_app_block_associations::DescribeAppBlockBuilderAppBlockAssociationsError::InvalidParameterCombinationException(inner) => Error::InvalidParameterCombinationException(inner),
1437 crate::operation::describe_app_block_builder_app_block_associations::DescribeAppBlockBuilderAppBlockAssociationsError::OperationNotPermittedException(inner) => Error::OperationNotPermittedException(inner),
1438 crate::operation::describe_app_block_builder_app_block_associations::DescribeAppBlockBuilderAppBlockAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
1439 }
1440 }
1441}
1442impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_app_block_builders::DescribeAppBlockBuildersError, R>>
1443 for Error
1444where
1445 R: Send + Sync + std::fmt::Debug + 'static,
1446{
1447 fn from(
1448 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_app_block_builders::DescribeAppBlockBuildersError, R>,
1449 ) -> Self {
1450 match err {
1451 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1452 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1453 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1454 source: err.into(),
1455 }),
1456 }
1457 }
1458}
1459impl From<crate::operation::describe_app_block_builders::DescribeAppBlockBuildersError> for Error {
1460 fn from(err: crate::operation::describe_app_block_builders::DescribeAppBlockBuildersError) -> Self {
1461 match err {
1462 crate::operation::describe_app_block_builders::DescribeAppBlockBuildersError::OperationNotPermittedException(inner) => {
1463 Error::OperationNotPermittedException(inner)
1464 }
1465 crate::operation::describe_app_block_builders::DescribeAppBlockBuildersError::ResourceNotFoundException(inner) => {
1466 Error::ResourceNotFoundException(inner)
1467 }
1468 crate::operation::describe_app_block_builders::DescribeAppBlockBuildersError::Unhandled(inner) => Error::Unhandled(inner),
1469 }
1470 }
1471}
1472impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_app_blocks::DescribeAppBlocksError, R>> for Error
1473where
1474 R: Send + Sync + std::fmt::Debug + 'static,
1475{
1476 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_app_blocks::DescribeAppBlocksError, R>) -> Self {
1477 match err {
1478 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1479 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1480 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1481 source: err.into(),
1482 }),
1483 }
1484 }
1485}
1486impl From<crate::operation::describe_app_blocks::DescribeAppBlocksError> for Error {
1487 fn from(err: crate::operation::describe_app_blocks::DescribeAppBlocksError) -> Self {
1488 match err {
1489 crate::operation::describe_app_blocks::DescribeAppBlocksError::OperationNotPermittedException(inner) => {
1490 Error::OperationNotPermittedException(inner)
1491 }
1492 crate::operation::describe_app_blocks::DescribeAppBlocksError::ResourceNotFoundException(inner) => {
1493 Error::ResourceNotFoundException(inner)
1494 }
1495 crate::operation::describe_app_blocks::DescribeAppBlocksError::Unhandled(inner) => Error::Unhandled(inner),
1496 }
1497 }
1498}
1499impl<R>
1500 From<
1501 ::aws_smithy_runtime_api::client::result::SdkError<
1502 crate::operation::describe_application_fleet_associations::DescribeApplicationFleetAssociationsError,
1503 R,
1504 >,
1505 > for Error
1506where
1507 R: Send + Sync + std::fmt::Debug + 'static,
1508{
1509 fn from(
1510 err: ::aws_smithy_runtime_api::client::result::SdkError<
1511 crate::operation::describe_application_fleet_associations::DescribeApplicationFleetAssociationsError,
1512 R,
1513 >,
1514 ) -> Self {
1515 match err {
1516 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1517 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1518 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1519 source: err.into(),
1520 }),
1521 }
1522 }
1523}
1524impl From<crate::operation::describe_application_fleet_associations::DescribeApplicationFleetAssociationsError> for Error {
1525 fn from(err: crate::operation::describe_application_fleet_associations::DescribeApplicationFleetAssociationsError) -> Self {
1526 match err {
1527 crate::operation::describe_application_fleet_associations::DescribeApplicationFleetAssociationsError::InvalidParameterCombinationException(inner) => Error::InvalidParameterCombinationException(inner),
1528 crate::operation::describe_application_fleet_associations::DescribeApplicationFleetAssociationsError::OperationNotPermittedException(inner) => Error::OperationNotPermittedException(inner),
1529 crate::operation::describe_application_fleet_associations::DescribeApplicationFleetAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
1530 }
1531 }
1532}
1533impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_applications::DescribeApplicationsError, R>> for Error
1534where
1535 R: Send + Sync + std::fmt::Debug + 'static,
1536{
1537 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_applications::DescribeApplicationsError, R>) -> Self {
1538 match err {
1539 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1540 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1541 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1542 source: err.into(),
1543 }),
1544 }
1545 }
1546}
1547impl From<crate::operation::describe_applications::DescribeApplicationsError> for Error {
1548 fn from(err: crate::operation::describe_applications::DescribeApplicationsError) -> Self {
1549 match err {
1550 crate::operation::describe_applications::DescribeApplicationsError::OperationNotPermittedException(inner) => {
1551 Error::OperationNotPermittedException(inner)
1552 }
1553 crate::operation::describe_applications::DescribeApplicationsError::ResourceNotFoundException(inner) => {
1554 Error::ResourceNotFoundException(inner)
1555 }
1556 crate::operation::describe_applications::DescribeApplicationsError::Unhandled(inner) => Error::Unhandled(inner),
1557 }
1558 }
1559}
1560impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_app_license_usage::DescribeAppLicenseUsageError, R>>
1561 for Error
1562where
1563 R: Send + Sync + std::fmt::Debug + 'static,
1564{
1565 fn from(
1566 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_app_license_usage::DescribeAppLicenseUsageError, R>,
1567 ) -> Self {
1568 match err {
1569 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1570 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1571 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1572 source: err.into(),
1573 }),
1574 }
1575 }
1576}
1577impl From<crate::operation::describe_app_license_usage::DescribeAppLicenseUsageError> for Error {
1578 fn from(err: crate::operation::describe_app_license_usage::DescribeAppLicenseUsageError) -> Self {
1579 match err {
1580 crate::operation::describe_app_license_usage::DescribeAppLicenseUsageError::InvalidParameterCombinationException(inner) => {
1581 Error::InvalidParameterCombinationException(inner)
1582 }
1583 crate::operation::describe_app_license_usage::DescribeAppLicenseUsageError::OperationNotPermittedException(inner) => {
1584 Error::OperationNotPermittedException(inner)
1585 }
1586 crate::operation::describe_app_license_usage::DescribeAppLicenseUsageError::ResourceNotFoundException(inner) => {
1587 Error::ResourceNotFoundException(inner)
1588 }
1589 crate::operation::describe_app_license_usage::DescribeAppLicenseUsageError::Unhandled(inner) => Error::Unhandled(inner),
1590 }
1591 }
1592}
1593impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_directory_configs::DescribeDirectoryConfigsError, R>>
1594 for Error
1595where
1596 R: Send + Sync + std::fmt::Debug + 'static,
1597{
1598 fn from(
1599 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_directory_configs::DescribeDirectoryConfigsError, R>,
1600 ) -> Self {
1601 match err {
1602 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1603 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1604 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1605 source: err.into(),
1606 }),
1607 }
1608 }
1609}
1610impl From<crate::operation::describe_directory_configs::DescribeDirectoryConfigsError> for Error {
1611 fn from(err: crate::operation::describe_directory_configs::DescribeDirectoryConfigsError) -> Self {
1612 match err {
1613 crate::operation::describe_directory_configs::DescribeDirectoryConfigsError::ResourceNotFoundException(inner) => {
1614 Error::ResourceNotFoundException(inner)
1615 }
1616 crate::operation::describe_directory_configs::DescribeDirectoryConfigsError::Unhandled(inner) => Error::Unhandled(inner),
1617 }
1618 }
1619}
1620impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_entitlements::DescribeEntitlementsError, R>> for Error
1621where
1622 R: Send + Sync + std::fmt::Debug + 'static,
1623{
1624 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_entitlements::DescribeEntitlementsError, R>) -> Self {
1625 match err {
1626 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1627 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1628 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1629 source: err.into(),
1630 }),
1631 }
1632 }
1633}
1634impl From<crate::operation::describe_entitlements::DescribeEntitlementsError> for Error {
1635 fn from(err: crate::operation::describe_entitlements::DescribeEntitlementsError) -> Self {
1636 match err {
1637 crate::operation::describe_entitlements::DescribeEntitlementsError::EntitlementNotFoundException(inner) => {
1638 Error::EntitlementNotFoundException(inner)
1639 }
1640 crate::operation::describe_entitlements::DescribeEntitlementsError::OperationNotPermittedException(inner) => {
1641 Error::OperationNotPermittedException(inner)
1642 }
1643 crate::operation::describe_entitlements::DescribeEntitlementsError::ResourceNotFoundException(inner) => {
1644 Error::ResourceNotFoundException(inner)
1645 }
1646 crate::operation::describe_entitlements::DescribeEntitlementsError::Unhandled(inner) => Error::Unhandled(inner),
1647 }
1648 }
1649}
1650impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fleets::DescribeFleetsError, R>> for Error
1651where
1652 R: Send + Sync + std::fmt::Debug + 'static,
1653{
1654 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fleets::DescribeFleetsError, R>) -> Self {
1655 match err {
1656 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1657 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1658 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1659 source: err.into(),
1660 }),
1661 }
1662 }
1663}
1664impl From<crate::operation::describe_fleets::DescribeFleetsError> for Error {
1665 fn from(err: crate::operation::describe_fleets::DescribeFleetsError) -> Self {
1666 match err {
1667 crate::operation::describe_fleets::DescribeFleetsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1668 crate::operation::describe_fleets::DescribeFleetsError::Unhandled(inner) => Error::Unhandled(inner),
1669 }
1670 }
1671}
1672impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image_builders::DescribeImageBuildersError, R>> for Error
1673where
1674 R: Send + Sync + std::fmt::Debug + 'static,
1675{
1676 fn from(
1677 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image_builders::DescribeImageBuildersError, R>,
1678 ) -> Self {
1679 match err {
1680 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1681 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1682 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1683 source: err.into(),
1684 }),
1685 }
1686 }
1687}
1688impl From<crate::operation::describe_image_builders::DescribeImageBuildersError> for Error {
1689 fn from(err: crate::operation::describe_image_builders::DescribeImageBuildersError) -> Self {
1690 match err {
1691 crate::operation::describe_image_builders::DescribeImageBuildersError::ResourceNotFoundException(inner) => {
1692 Error::ResourceNotFoundException(inner)
1693 }
1694 crate::operation::describe_image_builders::DescribeImageBuildersError::Unhandled(inner) => Error::Unhandled(inner),
1695 }
1696 }
1697}
1698impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image_permissions::DescribeImagePermissionsError, R>>
1699 for Error
1700where
1701 R: Send + Sync + std::fmt::Debug + 'static,
1702{
1703 fn from(
1704 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image_permissions::DescribeImagePermissionsError, R>,
1705 ) -> Self {
1706 match err {
1707 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1708 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1709 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1710 source: err.into(),
1711 }),
1712 }
1713 }
1714}
1715impl From<crate::operation::describe_image_permissions::DescribeImagePermissionsError> for Error {
1716 fn from(err: crate::operation::describe_image_permissions::DescribeImagePermissionsError) -> Self {
1717 match err {
1718 crate::operation::describe_image_permissions::DescribeImagePermissionsError::ResourceNotFoundException(inner) => {
1719 Error::ResourceNotFoundException(inner)
1720 }
1721 crate::operation::describe_image_permissions::DescribeImagePermissionsError::Unhandled(inner) => Error::Unhandled(inner),
1722 }
1723 }
1724}
1725impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_images::DescribeImagesError, R>> for Error
1726where
1727 R: Send + Sync + std::fmt::Debug + 'static,
1728{
1729 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_images::DescribeImagesError, R>) -> Self {
1730 match err {
1731 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1732 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1733 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1734 source: err.into(),
1735 }),
1736 }
1737 }
1738}
1739impl From<crate::operation::describe_images::DescribeImagesError> for Error {
1740 fn from(err: crate::operation::describe_images::DescribeImagesError) -> Self {
1741 match err {
1742 crate::operation::describe_images::DescribeImagesError::InvalidParameterCombinationException(inner) => {
1743 Error::InvalidParameterCombinationException(inner)
1744 }
1745 crate::operation::describe_images::DescribeImagesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1746 crate::operation::describe_images::DescribeImagesError::Unhandled(inner) => Error::Unhandled(inner),
1747 }
1748 }
1749}
1750impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_sessions::DescribeSessionsError, R>> for Error
1751where
1752 R: Send + Sync + std::fmt::Debug + 'static,
1753{
1754 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_sessions::DescribeSessionsError, R>) -> Self {
1755 match err {
1756 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1757 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1758 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1759 source: err.into(),
1760 }),
1761 }
1762 }
1763}
1764impl From<crate::operation::describe_sessions::DescribeSessionsError> for Error {
1765 fn from(err: crate::operation::describe_sessions::DescribeSessionsError) -> Self {
1766 match err {
1767 crate::operation::describe_sessions::DescribeSessionsError::InvalidParameterCombinationException(inner) => {
1768 Error::InvalidParameterCombinationException(inner)
1769 }
1770 crate::operation::describe_sessions::DescribeSessionsError::Unhandled(inner) => Error::Unhandled(inner),
1771 }
1772 }
1773}
1774impl<R>
1775 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_software_associations::DescribeSoftwareAssociationsError, R>>
1776 for Error
1777where
1778 R: Send + Sync + std::fmt::Debug + 'static,
1779{
1780 fn from(
1781 err: ::aws_smithy_runtime_api::client::result::SdkError<
1782 crate::operation::describe_software_associations::DescribeSoftwareAssociationsError,
1783 R,
1784 >,
1785 ) -> Self {
1786 match err {
1787 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1788 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1789 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1790 source: err.into(),
1791 }),
1792 }
1793 }
1794}
1795impl From<crate::operation::describe_software_associations::DescribeSoftwareAssociationsError> for Error {
1796 fn from(err: crate::operation::describe_software_associations::DescribeSoftwareAssociationsError) -> Self {
1797 match err {
1798 crate::operation::describe_software_associations::DescribeSoftwareAssociationsError::OperationNotPermittedException(inner) => {
1799 Error::OperationNotPermittedException(inner)
1800 }
1801 crate::operation::describe_software_associations::DescribeSoftwareAssociationsError::ResourceNotFoundException(inner) => {
1802 Error::ResourceNotFoundException(inner)
1803 }
1804 crate::operation::describe_software_associations::DescribeSoftwareAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
1805 }
1806 }
1807}
1808impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_stacks::DescribeStacksError, R>> for Error
1809where
1810 R: Send + Sync + std::fmt::Debug + 'static,
1811{
1812 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_stacks::DescribeStacksError, R>) -> Self {
1813 match err {
1814 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1815 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1816 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1817 source: err.into(),
1818 }),
1819 }
1820 }
1821}
1822impl From<crate::operation::describe_stacks::DescribeStacksError> for Error {
1823 fn from(err: crate::operation::describe_stacks::DescribeStacksError) -> Self {
1824 match err {
1825 crate::operation::describe_stacks::DescribeStacksError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1826 crate::operation::describe_stacks::DescribeStacksError::Unhandled(inner) => Error::Unhandled(inner),
1827 }
1828 }
1829}
1830impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_theme_for_stack::DescribeThemeForStackError, R>> for Error
1831where
1832 R: Send + Sync + std::fmt::Debug + 'static,
1833{
1834 fn from(
1835 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_theme_for_stack::DescribeThemeForStackError, R>,
1836 ) -> Self {
1837 match err {
1838 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1839 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1840 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1841 source: err.into(),
1842 }),
1843 }
1844 }
1845}
1846impl From<crate::operation::describe_theme_for_stack::DescribeThemeForStackError> for Error {
1847 fn from(err: crate::operation::describe_theme_for_stack::DescribeThemeForStackError) -> Self {
1848 match err {
1849 crate::operation::describe_theme_for_stack::DescribeThemeForStackError::OperationNotPermittedException(inner) => {
1850 Error::OperationNotPermittedException(inner)
1851 }
1852 crate::operation::describe_theme_for_stack::DescribeThemeForStackError::ResourceNotFoundException(inner) => {
1853 Error::ResourceNotFoundException(inner)
1854 }
1855 crate::operation::describe_theme_for_stack::DescribeThemeForStackError::Unhandled(inner) => Error::Unhandled(inner),
1856 }
1857 }
1858}
1859impl<R>
1860 From<
1861 ::aws_smithy_runtime_api::client::result::SdkError<
1862 crate::operation::describe_usage_report_subscriptions::DescribeUsageReportSubscriptionsError,
1863 R,
1864 >,
1865 > for Error
1866where
1867 R: Send + Sync + std::fmt::Debug + 'static,
1868{
1869 fn from(
1870 err: ::aws_smithy_runtime_api::client::result::SdkError<
1871 crate::operation::describe_usage_report_subscriptions::DescribeUsageReportSubscriptionsError,
1872 R,
1873 >,
1874 ) -> Self {
1875 match err {
1876 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1877 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1878 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1879 source: err.into(),
1880 }),
1881 }
1882 }
1883}
1884impl From<crate::operation::describe_usage_report_subscriptions::DescribeUsageReportSubscriptionsError> for Error {
1885 fn from(err: crate::operation::describe_usage_report_subscriptions::DescribeUsageReportSubscriptionsError) -> Self {
1886 match err {
1887 crate::operation::describe_usage_report_subscriptions::DescribeUsageReportSubscriptionsError::InvalidAccountStatusException(inner) => {
1888 Error::InvalidAccountStatusException(inner)
1889 }
1890 crate::operation::describe_usage_report_subscriptions::DescribeUsageReportSubscriptionsError::ResourceNotFoundException(inner) => {
1891 Error::ResourceNotFoundException(inner)
1892 }
1893 crate::operation::describe_usage_report_subscriptions::DescribeUsageReportSubscriptionsError::Unhandled(inner) => Error::Unhandled(inner),
1894 }
1895 }
1896}
1897impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_users::DescribeUsersError, R>> for Error
1898where
1899 R: Send + Sync + std::fmt::Debug + 'static,
1900{
1901 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_users::DescribeUsersError, R>) -> Self {
1902 match err {
1903 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1904 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1905 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1906 source: err.into(),
1907 }),
1908 }
1909 }
1910}
1911impl From<crate::operation::describe_users::DescribeUsersError> for Error {
1912 fn from(err: crate::operation::describe_users::DescribeUsersError) -> Self {
1913 match err {
1914 crate::operation::describe_users::DescribeUsersError::InvalidParameterCombinationException(inner) => {
1915 Error::InvalidParameterCombinationException(inner)
1916 }
1917 crate::operation::describe_users::DescribeUsersError::OperationNotPermittedException(inner) => {
1918 Error::OperationNotPermittedException(inner)
1919 }
1920 crate::operation::describe_users::DescribeUsersError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1921 crate::operation::describe_users::DescribeUsersError::Unhandled(inner) => Error::Unhandled(inner),
1922 }
1923 }
1924}
1925impl<R>
1926 From<
1927 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_user_stack_associations::DescribeUserStackAssociationsError, R>,
1928 > for Error
1929where
1930 R: Send + Sync + std::fmt::Debug + 'static,
1931{
1932 fn from(
1933 err: ::aws_smithy_runtime_api::client::result::SdkError<
1934 crate::operation::describe_user_stack_associations::DescribeUserStackAssociationsError,
1935 R,
1936 >,
1937 ) -> Self {
1938 match err {
1939 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1940 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1941 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1942 source: err.into(),
1943 }),
1944 }
1945 }
1946}
1947impl From<crate::operation::describe_user_stack_associations::DescribeUserStackAssociationsError> for Error {
1948 fn from(err: crate::operation::describe_user_stack_associations::DescribeUserStackAssociationsError) -> Self {
1949 match err {
1950 crate::operation::describe_user_stack_associations::DescribeUserStackAssociationsError::InvalidParameterCombinationException(inner) => {
1951 Error::InvalidParameterCombinationException(inner)
1952 }
1953 crate::operation::describe_user_stack_associations::DescribeUserStackAssociationsError::OperationNotPermittedException(inner) => {
1954 Error::OperationNotPermittedException(inner)
1955 }
1956 crate::operation::describe_user_stack_associations::DescribeUserStackAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
1957 }
1958 }
1959}
1960impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_user::DisableUserError, R>> for Error
1961where
1962 R: Send + Sync + std::fmt::Debug + 'static,
1963{
1964 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_user::DisableUserError, R>) -> Self {
1965 match err {
1966 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1967 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1968 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1969 source: err.into(),
1970 }),
1971 }
1972 }
1973}
1974impl From<crate::operation::disable_user::DisableUserError> for Error {
1975 fn from(err: crate::operation::disable_user::DisableUserError) -> Self {
1976 match err {
1977 crate::operation::disable_user::DisableUserError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1978 crate::operation::disable_user::DisableUserError::Unhandled(inner) => Error::Unhandled(inner),
1979 }
1980 }
1981}
1982impl<R>
1983 From<
1984 ::aws_smithy_runtime_api::client::result::SdkError<
1985 crate::operation::disassociate_app_block_builder_app_block::DisassociateAppBlockBuilderAppBlockError,
1986 R,
1987 >,
1988 > for Error
1989where
1990 R: Send + Sync + std::fmt::Debug + 'static,
1991{
1992 fn from(
1993 err: ::aws_smithy_runtime_api::client::result::SdkError<
1994 crate::operation::disassociate_app_block_builder_app_block::DisassociateAppBlockBuilderAppBlockError,
1995 R,
1996 >,
1997 ) -> Self {
1998 match err {
1999 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2000 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2001 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2002 source: err.into(),
2003 }),
2004 }
2005 }
2006}
2007impl From<crate::operation::disassociate_app_block_builder_app_block::DisassociateAppBlockBuilderAppBlockError> for Error {
2008 fn from(err: crate::operation::disassociate_app_block_builder_app_block::DisassociateAppBlockBuilderAppBlockError) -> Self {
2009 match err {
2010 crate::operation::disassociate_app_block_builder_app_block::DisassociateAppBlockBuilderAppBlockError::ConcurrentModificationException(inner) => Error::ConcurrentModificationException(inner),
2011 crate::operation::disassociate_app_block_builder_app_block::DisassociateAppBlockBuilderAppBlockError::InvalidParameterCombinationException(inner) => Error::InvalidParameterCombinationException(inner),
2012 crate::operation::disassociate_app_block_builder_app_block::DisassociateAppBlockBuilderAppBlockError::OperationNotPermittedException(inner) => Error::OperationNotPermittedException(inner),
2013 crate::operation::disassociate_app_block_builder_app_block::DisassociateAppBlockBuilderAppBlockError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2014 crate::operation::disassociate_app_block_builder_app_block::DisassociateAppBlockBuilderAppBlockError::Unhandled(inner) => Error::Unhandled(inner),
2015 }
2016 }
2017}
2018impl<R>
2019 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_application_fleet::DisassociateApplicationFleetError, R>>
2020 for Error
2021where
2022 R: Send + Sync + std::fmt::Debug + 'static,
2023{
2024 fn from(
2025 err: ::aws_smithy_runtime_api::client::result::SdkError<
2026 crate::operation::disassociate_application_fleet::DisassociateApplicationFleetError,
2027 R,
2028 >,
2029 ) -> Self {
2030 match err {
2031 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2032 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2033 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2034 source: err.into(),
2035 }),
2036 }
2037 }
2038}
2039impl From<crate::operation::disassociate_application_fleet::DisassociateApplicationFleetError> for Error {
2040 fn from(err: crate::operation::disassociate_application_fleet::DisassociateApplicationFleetError) -> Self {
2041 match err {
2042 crate::operation::disassociate_application_fleet::DisassociateApplicationFleetError::ConcurrentModificationException(inner) => {
2043 Error::ConcurrentModificationException(inner)
2044 }
2045 crate::operation::disassociate_application_fleet::DisassociateApplicationFleetError::InvalidParameterCombinationException(inner) => {
2046 Error::InvalidParameterCombinationException(inner)
2047 }
2048 crate::operation::disassociate_application_fleet::DisassociateApplicationFleetError::OperationNotPermittedException(inner) => {
2049 Error::OperationNotPermittedException(inner)
2050 }
2051 crate::operation::disassociate_application_fleet::DisassociateApplicationFleetError::Unhandled(inner) => Error::Unhandled(inner),
2052 }
2053 }
2054}
2055impl<R>
2056 From<
2057 ::aws_smithy_runtime_api::client::result::SdkError<
2058 crate::operation::disassociate_application_from_entitlement::DisassociateApplicationFromEntitlementError,
2059 R,
2060 >,
2061 > for Error
2062where
2063 R: Send + Sync + std::fmt::Debug + 'static,
2064{
2065 fn from(
2066 err: ::aws_smithy_runtime_api::client::result::SdkError<
2067 crate::operation::disassociate_application_from_entitlement::DisassociateApplicationFromEntitlementError,
2068 R,
2069 >,
2070 ) -> Self {
2071 match err {
2072 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2073 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2074 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2075 source: err.into(),
2076 }),
2077 }
2078 }
2079}
2080impl From<crate::operation::disassociate_application_from_entitlement::DisassociateApplicationFromEntitlementError> for Error {
2081 fn from(err: crate::operation::disassociate_application_from_entitlement::DisassociateApplicationFromEntitlementError) -> Self {
2082 match err {
2083 crate::operation::disassociate_application_from_entitlement::DisassociateApplicationFromEntitlementError::EntitlementNotFoundException(inner) => Error::EntitlementNotFoundException(inner),
2084 crate::operation::disassociate_application_from_entitlement::DisassociateApplicationFromEntitlementError::OperationNotPermittedException(inner) => Error::OperationNotPermittedException(inner),
2085 crate::operation::disassociate_application_from_entitlement::DisassociateApplicationFromEntitlementError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2086 crate::operation::disassociate_application_from_entitlement::DisassociateApplicationFromEntitlementError::Unhandled(inner) => Error::Unhandled(inner),
2087 }
2088 }
2089}
2090impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_fleet::DisassociateFleetError, R>> for Error
2091where
2092 R: Send + Sync + std::fmt::Debug + 'static,
2093{
2094 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_fleet::DisassociateFleetError, R>) -> Self {
2095 match err {
2096 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2097 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2098 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2099 source: err.into(),
2100 }),
2101 }
2102 }
2103}
2104impl From<crate::operation::disassociate_fleet::DisassociateFleetError> for Error {
2105 fn from(err: crate::operation::disassociate_fleet::DisassociateFleetError) -> Self {
2106 match err {
2107 crate::operation::disassociate_fleet::DisassociateFleetError::ConcurrentModificationException(inner) => {
2108 Error::ConcurrentModificationException(inner)
2109 }
2110 crate::operation::disassociate_fleet::DisassociateFleetError::OperationNotPermittedException(inner) => {
2111 Error::OperationNotPermittedException(inner)
2112 }
2113 crate::operation::disassociate_fleet::DisassociateFleetError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
2114 crate::operation::disassociate_fleet::DisassociateFleetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2115 crate::operation::disassociate_fleet::DisassociateFleetError::Unhandled(inner) => Error::Unhandled(inner),
2116 }
2117 }
2118}
2119impl<R>
2120 From<
2121 ::aws_smithy_runtime_api::client::result::SdkError<
2122 crate::operation::disassociate_software_from_image_builder::DisassociateSoftwareFromImageBuilderError,
2123 R,
2124 >,
2125 > for Error
2126where
2127 R: Send + Sync + std::fmt::Debug + 'static,
2128{
2129 fn from(
2130 err: ::aws_smithy_runtime_api::client::result::SdkError<
2131 crate::operation::disassociate_software_from_image_builder::DisassociateSoftwareFromImageBuilderError,
2132 R,
2133 >,
2134 ) -> Self {
2135 match err {
2136 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2137 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2138 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2139 source: err.into(),
2140 }),
2141 }
2142 }
2143}
2144impl From<crate::operation::disassociate_software_from_image_builder::DisassociateSoftwareFromImageBuilderError> for Error {
2145 fn from(err: crate::operation::disassociate_software_from_image_builder::DisassociateSoftwareFromImageBuilderError) -> Self {
2146 match err {
2147 crate::operation::disassociate_software_from_image_builder::DisassociateSoftwareFromImageBuilderError::ConcurrentModificationException(inner) => Error::ConcurrentModificationException(inner),
2148 crate::operation::disassociate_software_from_image_builder::DisassociateSoftwareFromImageBuilderError::InvalidParameterCombinationException(inner) => Error::InvalidParameterCombinationException(inner),
2149 crate::operation::disassociate_software_from_image_builder::DisassociateSoftwareFromImageBuilderError::OperationNotPermittedException(inner) => Error::OperationNotPermittedException(inner),
2150 crate::operation::disassociate_software_from_image_builder::DisassociateSoftwareFromImageBuilderError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2151 crate::operation::disassociate_software_from_image_builder::DisassociateSoftwareFromImageBuilderError::Unhandled(inner) => Error::Unhandled(inner),
2152 }
2153 }
2154}
2155impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_user::EnableUserError, R>> for Error
2156where
2157 R: Send + Sync + std::fmt::Debug + 'static,
2158{
2159 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_user::EnableUserError, R>) -> Self {
2160 match err {
2161 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2162 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2163 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2164 source: err.into(),
2165 }),
2166 }
2167 }
2168}
2169impl From<crate::operation::enable_user::EnableUserError> for Error {
2170 fn from(err: crate::operation::enable_user::EnableUserError) -> Self {
2171 match err {
2172 crate::operation::enable_user::EnableUserError::InvalidAccountStatusException(inner) => Error::InvalidAccountStatusException(inner),
2173 crate::operation::enable_user::EnableUserError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2174 crate::operation::enable_user::EnableUserError::Unhandled(inner) => Error::Unhandled(inner),
2175 }
2176 }
2177}
2178impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::expire_session::ExpireSessionError, R>> for Error
2179where
2180 R: Send + Sync + std::fmt::Debug + 'static,
2181{
2182 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::expire_session::ExpireSessionError, R>) -> Self {
2183 match err {
2184 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2185 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2186 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2187 source: err.into(),
2188 }),
2189 }
2190 }
2191}
2192impl From<crate::operation::expire_session::ExpireSessionError> for Error {
2193 fn from(err: crate::operation::expire_session::ExpireSessionError) -> Self {
2194 match err {
2195 crate::operation::expire_session::ExpireSessionError::Unhandled(inner) => Error::Unhandled(inner),
2196 }
2197 }
2198}
2199impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_export_image_task::GetExportImageTaskError, R>> for Error
2200where
2201 R: Send + Sync + std::fmt::Debug + 'static,
2202{
2203 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_export_image_task::GetExportImageTaskError, R>) -> Self {
2204 match err {
2205 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2206 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2207 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2208 source: err.into(),
2209 }),
2210 }
2211 }
2212}
2213impl From<crate::operation::get_export_image_task::GetExportImageTaskError> for Error {
2214 fn from(err: crate::operation::get_export_image_task::GetExportImageTaskError) -> Self {
2215 match err {
2216 crate::operation::get_export_image_task::GetExportImageTaskError::OperationNotPermittedException(inner) => {
2217 Error::OperationNotPermittedException(inner)
2218 }
2219 crate::operation::get_export_image_task::GetExportImageTaskError::ResourceNotFoundException(inner) => {
2220 Error::ResourceNotFoundException(inner)
2221 }
2222 crate::operation::get_export_image_task::GetExportImageTaskError::Unhandled(inner) => Error::Unhandled(inner),
2223 }
2224 }
2225}
2226impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_associated_fleets::ListAssociatedFleetsError, R>> for Error
2227where
2228 R: Send + Sync + std::fmt::Debug + 'static,
2229{
2230 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_associated_fleets::ListAssociatedFleetsError, R>) -> Self {
2231 match err {
2232 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2233 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2234 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2235 source: err.into(),
2236 }),
2237 }
2238 }
2239}
2240impl From<crate::operation::list_associated_fleets::ListAssociatedFleetsError> for Error {
2241 fn from(err: crate::operation::list_associated_fleets::ListAssociatedFleetsError) -> Self {
2242 match err {
2243 crate::operation::list_associated_fleets::ListAssociatedFleetsError::Unhandled(inner) => Error::Unhandled(inner),
2244 }
2245 }
2246}
2247impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_associated_stacks::ListAssociatedStacksError, R>> for Error
2248where
2249 R: Send + Sync + std::fmt::Debug + 'static,
2250{
2251 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_associated_stacks::ListAssociatedStacksError, R>) -> Self {
2252 match err {
2253 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2254 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2255 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2256 source: err.into(),
2257 }),
2258 }
2259 }
2260}
2261impl From<crate::operation::list_associated_stacks::ListAssociatedStacksError> for Error {
2262 fn from(err: crate::operation::list_associated_stacks::ListAssociatedStacksError) -> Self {
2263 match err {
2264 crate::operation::list_associated_stacks::ListAssociatedStacksError::Unhandled(inner) => Error::Unhandled(inner),
2265 }
2266 }
2267}
2268impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_entitled_applications::ListEntitledApplicationsError, R>>
2269 for Error
2270where
2271 R: Send + Sync + std::fmt::Debug + 'static,
2272{
2273 fn from(
2274 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_entitled_applications::ListEntitledApplicationsError, R>,
2275 ) -> Self {
2276 match err {
2277 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2278 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2279 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2280 source: err.into(),
2281 }),
2282 }
2283 }
2284}
2285impl From<crate::operation::list_entitled_applications::ListEntitledApplicationsError> for Error {
2286 fn from(err: crate::operation::list_entitled_applications::ListEntitledApplicationsError) -> Self {
2287 match err {
2288 crate::operation::list_entitled_applications::ListEntitledApplicationsError::EntitlementNotFoundException(inner) => {
2289 Error::EntitlementNotFoundException(inner)
2290 }
2291 crate::operation::list_entitled_applications::ListEntitledApplicationsError::OperationNotPermittedException(inner) => {
2292 Error::OperationNotPermittedException(inner)
2293 }
2294 crate::operation::list_entitled_applications::ListEntitledApplicationsError::ResourceNotFoundException(inner) => {
2295 Error::ResourceNotFoundException(inner)
2296 }
2297 crate::operation::list_entitled_applications::ListEntitledApplicationsError::Unhandled(inner) => Error::Unhandled(inner),
2298 }
2299 }
2300}
2301impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_export_image_tasks::ListExportImageTasksError, R>> for Error
2302where
2303 R: Send + Sync + std::fmt::Debug + 'static,
2304{
2305 fn from(
2306 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_export_image_tasks::ListExportImageTasksError, R>,
2307 ) -> Self {
2308 match err {
2309 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2310 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2311 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2312 source: err.into(),
2313 }),
2314 }
2315 }
2316}
2317impl From<crate::operation::list_export_image_tasks::ListExportImageTasksError> for Error {
2318 fn from(err: crate::operation::list_export_image_tasks::ListExportImageTasksError) -> Self {
2319 match err {
2320 crate::operation::list_export_image_tasks::ListExportImageTasksError::OperationNotPermittedException(inner) => {
2321 Error::OperationNotPermittedException(inner)
2322 }
2323 crate::operation::list_export_image_tasks::ListExportImageTasksError::Unhandled(inner) => Error::Unhandled(inner),
2324 }
2325 }
2326}
2327impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
2328where
2329 R: Send + Sync + std::fmt::Debug + 'static,
2330{
2331 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
2332 match err {
2333 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2334 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2335 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2336 source: err.into(),
2337 }),
2338 }
2339 }
2340}
2341impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
2342 fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
2343 match err {
2344 crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
2345 Error::ResourceNotFoundException(inner)
2346 }
2347 crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
2348 }
2349 }
2350}
2351impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_app_block_builder::StartAppBlockBuilderError, R>> for Error
2352where
2353 R: Send + Sync + std::fmt::Debug + 'static,
2354{
2355 fn from(
2356 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_app_block_builder::StartAppBlockBuilderError, R>,
2357 ) -> Self {
2358 match err {
2359 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2360 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2361 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2362 source: err.into(),
2363 }),
2364 }
2365 }
2366}
2367impl From<crate::operation::start_app_block_builder::StartAppBlockBuilderError> for Error {
2368 fn from(err: crate::operation::start_app_block_builder::StartAppBlockBuilderError) -> Self {
2369 match err {
2370 crate::operation::start_app_block_builder::StartAppBlockBuilderError::ConcurrentModificationException(inner) => {
2371 Error::ConcurrentModificationException(inner)
2372 }
2373 crate::operation::start_app_block_builder::StartAppBlockBuilderError::InvalidAccountStatusException(inner) => {
2374 Error::InvalidAccountStatusException(inner)
2375 }
2376 crate::operation::start_app_block_builder::StartAppBlockBuilderError::LimitExceededException(inner) => {
2377 Error::LimitExceededException(inner)
2378 }
2379 crate::operation::start_app_block_builder::StartAppBlockBuilderError::OperationNotPermittedException(inner) => {
2380 Error::OperationNotPermittedException(inner)
2381 }
2382 crate::operation::start_app_block_builder::StartAppBlockBuilderError::RequestLimitExceededException(inner) => {
2383 Error::RequestLimitExceededException(inner)
2384 }
2385 crate::operation::start_app_block_builder::StartAppBlockBuilderError::ResourceNotAvailableException(inner) => {
2386 Error::ResourceNotAvailableException(inner)
2387 }
2388 crate::operation::start_app_block_builder::StartAppBlockBuilderError::ResourceNotFoundException(inner) => {
2389 Error::ResourceNotFoundException(inner)
2390 }
2391 crate::operation::start_app_block_builder::StartAppBlockBuilderError::Unhandled(inner) => Error::Unhandled(inner),
2392 }
2393 }
2394}
2395impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_fleet::StartFleetError, R>> for Error
2396where
2397 R: Send + Sync + std::fmt::Debug + 'static,
2398{
2399 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_fleet::StartFleetError, R>) -> Self {
2400 match err {
2401 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2402 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2403 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2404 source: err.into(),
2405 }),
2406 }
2407 }
2408}
2409impl From<crate::operation::start_fleet::StartFleetError> for Error {
2410 fn from(err: crate::operation::start_fleet::StartFleetError) -> Self {
2411 match err {
2412 crate::operation::start_fleet::StartFleetError::ConcurrentModificationException(inner) => Error::ConcurrentModificationException(inner),
2413 crate::operation::start_fleet::StartFleetError::InvalidAccountStatusException(inner) => Error::InvalidAccountStatusException(inner),
2414 crate::operation::start_fleet::StartFleetError::InvalidRoleException(inner) => Error::InvalidRoleException(inner),
2415 crate::operation::start_fleet::StartFleetError::LimitExceededException(inner) => Error::LimitExceededException(inner),
2416 crate::operation::start_fleet::StartFleetError::OperationNotPermittedException(inner) => Error::OperationNotPermittedException(inner),
2417 crate::operation::start_fleet::StartFleetError::RequestLimitExceededException(inner) => Error::RequestLimitExceededException(inner),
2418 crate::operation::start_fleet::StartFleetError::ResourceNotAvailableException(inner) => Error::ResourceNotAvailableException(inner),
2419 crate::operation::start_fleet::StartFleetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2420 crate::operation::start_fleet::StartFleetError::Unhandled(inner) => Error::Unhandled(inner),
2421 }
2422 }
2423}
2424impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_image_builder::StartImageBuilderError, R>> for Error
2425where
2426 R: Send + Sync + std::fmt::Debug + 'static,
2427{
2428 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_image_builder::StartImageBuilderError, R>) -> Self {
2429 match err {
2430 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2431 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2432 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2433 source: err.into(),
2434 }),
2435 }
2436 }
2437}
2438impl From<crate::operation::start_image_builder::StartImageBuilderError> for Error {
2439 fn from(err: crate::operation::start_image_builder::StartImageBuilderError) -> Self {
2440 match err {
2441 crate::operation::start_image_builder::StartImageBuilderError::ConcurrentModificationException(inner) => {
2442 Error::ConcurrentModificationException(inner)
2443 }
2444 crate::operation::start_image_builder::StartImageBuilderError::IncompatibleImageException(inner) => {
2445 Error::IncompatibleImageException(inner)
2446 }
2447 crate::operation::start_image_builder::StartImageBuilderError::InvalidAccountStatusException(inner) => {
2448 Error::InvalidAccountStatusException(inner)
2449 }
2450 crate::operation::start_image_builder::StartImageBuilderError::ResourceNotAvailableException(inner) => {
2451 Error::ResourceNotAvailableException(inner)
2452 }
2453 crate::operation::start_image_builder::StartImageBuilderError::ResourceNotFoundException(inner) => {
2454 Error::ResourceNotFoundException(inner)
2455 }
2456 crate::operation::start_image_builder::StartImageBuilderError::Unhandled(inner) => Error::Unhandled(inner),
2457 }
2458 }
2459}
2460impl<R>
2461 From<
2462 ::aws_smithy_runtime_api::client::result::SdkError<
2463 crate::operation::start_software_deployment_to_image_builder::StartSoftwareDeploymentToImageBuilderError,
2464 R,
2465 >,
2466 > for Error
2467where
2468 R: Send + Sync + std::fmt::Debug + 'static,
2469{
2470 fn from(
2471 err: ::aws_smithy_runtime_api::client::result::SdkError<
2472 crate::operation::start_software_deployment_to_image_builder::StartSoftwareDeploymentToImageBuilderError,
2473 R,
2474 >,
2475 ) -> Self {
2476 match err {
2477 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2478 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2479 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2480 source: err.into(),
2481 }),
2482 }
2483 }
2484}
2485impl From<crate::operation::start_software_deployment_to_image_builder::StartSoftwareDeploymentToImageBuilderError> for Error {
2486 fn from(err: crate::operation::start_software_deployment_to_image_builder::StartSoftwareDeploymentToImageBuilderError) -> Self {
2487 match err {
2488 crate::operation::start_software_deployment_to_image_builder::StartSoftwareDeploymentToImageBuilderError::ConcurrentModificationException(inner) => Error::ConcurrentModificationException(inner),
2489 crate::operation::start_software_deployment_to_image_builder::StartSoftwareDeploymentToImageBuilderError::OperationNotPermittedException(inner) => Error::OperationNotPermittedException(inner),
2490 crate::operation::start_software_deployment_to_image_builder::StartSoftwareDeploymentToImageBuilderError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2491 crate::operation::start_software_deployment_to_image_builder::StartSoftwareDeploymentToImageBuilderError::Unhandled(inner) => Error::Unhandled(inner),
2492 }
2493 }
2494}
2495impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_app_block_builder::StopAppBlockBuilderError, R>> for Error
2496where
2497 R: Send + Sync + std::fmt::Debug + 'static,
2498{
2499 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_app_block_builder::StopAppBlockBuilderError, R>) -> Self {
2500 match err {
2501 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2502 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2503 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2504 source: err.into(),
2505 }),
2506 }
2507 }
2508}
2509impl From<crate::operation::stop_app_block_builder::StopAppBlockBuilderError> for Error {
2510 fn from(err: crate::operation::stop_app_block_builder::StopAppBlockBuilderError) -> Self {
2511 match err {
2512 crate::operation::stop_app_block_builder::StopAppBlockBuilderError::ConcurrentModificationException(inner) => {
2513 Error::ConcurrentModificationException(inner)
2514 }
2515 crate::operation::stop_app_block_builder::StopAppBlockBuilderError::OperationNotPermittedException(inner) => {
2516 Error::OperationNotPermittedException(inner)
2517 }
2518 crate::operation::stop_app_block_builder::StopAppBlockBuilderError::ResourceNotFoundException(inner) => {
2519 Error::ResourceNotFoundException(inner)
2520 }
2521 crate::operation::stop_app_block_builder::StopAppBlockBuilderError::Unhandled(inner) => Error::Unhandled(inner),
2522 }
2523 }
2524}
2525impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_fleet::StopFleetError, R>> for Error
2526where
2527 R: Send + Sync + std::fmt::Debug + 'static,
2528{
2529 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_fleet::StopFleetError, R>) -> Self {
2530 match err {
2531 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2532 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2533 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2534 source: err.into(),
2535 }),
2536 }
2537 }
2538}
2539impl From<crate::operation::stop_fleet::StopFleetError> for Error {
2540 fn from(err: crate::operation::stop_fleet::StopFleetError) -> Self {
2541 match err {
2542 crate::operation::stop_fleet::StopFleetError::ConcurrentModificationException(inner) => Error::ConcurrentModificationException(inner),
2543 crate::operation::stop_fleet::StopFleetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2544 crate::operation::stop_fleet::StopFleetError::Unhandled(inner) => Error::Unhandled(inner),
2545 }
2546 }
2547}
2548impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_image_builder::StopImageBuilderError, R>> for Error
2549where
2550 R: Send + Sync + std::fmt::Debug + 'static,
2551{
2552 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_image_builder::StopImageBuilderError, R>) -> Self {
2553 match err {
2554 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2555 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2556 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2557 source: err.into(),
2558 }),
2559 }
2560 }
2561}
2562impl From<crate::operation::stop_image_builder::StopImageBuilderError> for Error {
2563 fn from(err: crate::operation::stop_image_builder::StopImageBuilderError) -> Self {
2564 match err {
2565 crate::operation::stop_image_builder::StopImageBuilderError::ConcurrentModificationException(inner) => {
2566 Error::ConcurrentModificationException(inner)
2567 }
2568 crate::operation::stop_image_builder::StopImageBuilderError::OperationNotPermittedException(inner) => {
2569 Error::OperationNotPermittedException(inner)
2570 }
2571 crate::operation::stop_image_builder::StopImageBuilderError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2572 crate::operation::stop_image_builder::StopImageBuilderError::Unhandled(inner) => Error::Unhandled(inner),
2573 }
2574 }
2575}
2576impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
2577where
2578 R: Send + Sync + std::fmt::Debug + 'static,
2579{
2580 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
2581 match err {
2582 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2583 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2584 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2585 source: err.into(),
2586 }),
2587 }
2588 }
2589}
2590impl From<crate::operation::tag_resource::TagResourceError> for Error {
2591 fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
2592 match err {
2593 crate::operation::tag_resource::TagResourceError::InvalidAccountStatusException(inner) => Error::InvalidAccountStatusException(inner),
2594 crate::operation::tag_resource::TagResourceError::LimitExceededException(inner) => Error::LimitExceededException(inner),
2595 crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2596 crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
2597 }
2598 }
2599}
2600impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
2601where
2602 R: Send + Sync + std::fmt::Debug + 'static,
2603{
2604 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
2605 match err {
2606 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2607 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2608 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2609 source: err.into(),
2610 }),
2611 }
2612 }
2613}
2614impl From<crate::operation::untag_resource::UntagResourceError> for Error {
2615 fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
2616 match err {
2617 crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2618 crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
2619 }
2620 }
2621}
2622impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_app_block_builder::UpdateAppBlockBuilderError, R>> for Error
2623where
2624 R: Send + Sync + std::fmt::Debug + 'static,
2625{
2626 fn from(
2627 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_app_block_builder::UpdateAppBlockBuilderError, R>,
2628 ) -> Self {
2629 match err {
2630 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2631 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2632 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2633 source: err.into(),
2634 }),
2635 }
2636 }
2637}
2638impl From<crate::operation::update_app_block_builder::UpdateAppBlockBuilderError> for Error {
2639 fn from(err: crate::operation::update_app_block_builder::UpdateAppBlockBuilderError) -> Self {
2640 match err {
2641 crate::operation::update_app_block_builder::UpdateAppBlockBuilderError::ConcurrentModificationException(inner) => {
2642 Error::ConcurrentModificationException(inner)
2643 }
2644 crate::operation::update_app_block_builder::UpdateAppBlockBuilderError::InvalidAccountStatusException(inner) => {
2645 Error::InvalidAccountStatusException(inner)
2646 }
2647 crate::operation::update_app_block_builder::UpdateAppBlockBuilderError::InvalidParameterCombinationException(inner) => {
2648 Error::InvalidParameterCombinationException(inner)
2649 }
2650 crate::operation::update_app_block_builder::UpdateAppBlockBuilderError::InvalidRoleException(inner) => Error::InvalidRoleException(inner),
2651 crate::operation::update_app_block_builder::UpdateAppBlockBuilderError::LimitExceededException(inner) => {
2652 Error::LimitExceededException(inner)
2653 }
2654 crate::operation::update_app_block_builder::UpdateAppBlockBuilderError::OperationNotPermittedException(inner) => {
2655 Error::OperationNotPermittedException(inner)
2656 }
2657 crate::operation::update_app_block_builder::UpdateAppBlockBuilderError::RequestLimitExceededException(inner) => {
2658 Error::RequestLimitExceededException(inner)
2659 }
2660 crate::operation::update_app_block_builder::UpdateAppBlockBuilderError::ResourceInUseException(inner) => {
2661 Error::ResourceInUseException(inner)
2662 }
2663 crate::operation::update_app_block_builder::UpdateAppBlockBuilderError::ResourceNotAvailableException(inner) => {
2664 Error::ResourceNotAvailableException(inner)
2665 }
2666 crate::operation::update_app_block_builder::UpdateAppBlockBuilderError::ResourceNotFoundException(inner) => {
2667 Error::ResourceNotFoundException(inner)
2668 }
2669 crate::operation::update_app_block_builder::UpdateAppBlockBuilderError::Unhandled(inner) => Error::Unhandled(inner),
2670 }
2671 }
2672}
2673impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_application::UpdateApplicationError, R>> for Error
2674where
2675 R: Send + Sync + std::fmt::Debug + 'static,
2676{
2677 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_application::UpdateApplicationError, R>) -> Self {
2678 match err {
2679 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2680 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2681 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2682 source: err.into(),
2683 }),
2684 }
2685 }
2686}
2687impl From<crate::operation::update_application::UpdateApplicationError> for Error {
2688 fn from(err: crate::operation::update_application::UpdateApplicationError) -> Self {
2689 match err {
2690 crate::operation::update_application::UpdateApplicationError::ConcurrentModificationException(inner) => {
2691 Error::ConcurrentModificationException(inner)
2692 }
2693 crate::operation::update_application::UpdateApplicationError::OperationNotPermittedException(inner) => {
2694 Error::OperationNotPermittedException(inner)
2695 }
2696 crate::operation::update_application::UpdateApplicationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2697 crate::operation::update_application::UpdateApplicationError::Unhandled(inner) => Error::Unhandled(inner),
2698 }
2699 }
2700}
2701impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_directory_config::UpdateDirectoryConfigError, R>> for Error
2702where
2703 R: Send + Sync + std::fmt::Debug + 'static,
2704{
2705 fn from(
2706 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_directory_config::UpdateDirectoryConfigError, R>,
2707 ) -> Self {
2708 match err {
2709 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2710 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2711 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2712 source: err.into(),
2713 }),
2714 }
2715 }
2716}
2717impl From<crate::operation::update_directory_config::UpdateDirectoryConfigError> for Error {
2718 fn from(err: crate::operation::update_directory_config::UpdateDirectoryConfigError) -> Self {
2719 match err {
2720 crate::operation::update_directory_config::UpdateDirectoryConfigError::ConcurrentModificationException(inner) => {
2721 Error::ConcurrentModificationException(inner)
2722 }
2723 crate::operation::update_directory_config::UpdateDirectoryConfigError::IncompatibleImageException(inner) => {
2724 Error::IncompatibleImageException(inner)
2725 }
2726 crate::operation::update_directory_config::UpdateDirectoryConfigError::InvalidRoleException(inner) => Error::InvalidRoleException(inner),
2727 crate::operation::update_directory_config::UpdateDirectoryConfigError::OperationNotPermittedException(inner) => {
2728 Error::OperationNotPermittedException(inner)
2729 }
2730 crate::operation::update_directory_config::UpdateDirectoryConfigError::ResourceInUseException(inner) => {
2731 Error::ResourceInUseException(inner)
2732 }
2733 crate::operation::update_directory_config::UpdateDirectoryConfigError::ResourceNotFoundException(inner) => {
2734 Error::ResourceNotFoundException(inner)
2735 }
2736 crate::operation::update_directory_config::UpdateDirectoryConfigError::Unhandled(inner) => Error::Unhandled(inner),
2737 }
2738 }
2739}
2740impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_entitlement::UpdateEntitlementError, R>> for Error
2741where
2742 R: Send + Sync + std::fmt::Debug + 'static,
2743{
2744 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_entitlement::UpdateEntitlementError, R>) -> Self {
2745 match err {
2746 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2747 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2748 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2749 source: err.into(),
2750 }),
2751 }
2752 }
2753}
2754impl From<crate::operation::update_entitlement::UpdateEntitlementError> for Error {
2755 fn from(err: crate::operation::update_entitlement::UpdateEntitlementError) -> Self {
2756 match err {
2757 crate::operation::update_entitlement::UpdateEntitlementError::ConcurrentModificationException(inner) => {
2758 Error::ConcurrentModificationException(inner)
2759 }
2760 crate::operation::update_entitlement::UpdateEntitlementError::EntitlementNotFoundException(inner) => {
2761 Error::EntitlementNotFoundException(inner)
2762 }
2763 crate::operation::update_entitlement::UpdateEntitlementError::OperationNotPermittedException(inner) => {
2764 Error::OperationNotPermittedException(inner)
2765 }
2766 crate::operation::update_entitlement::UpdateEntitlementError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2767 crate::operation::update_entitlement::UpdateEntitlementError::Unhandled(inner) => Error::Unhandled(inner),
2768 }
2769 }
2770}
2771impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_fleet::UpdateFleetError, R>> for Error
2772where
2773 R: Send + Sync + std::fmt::Debug + 'static,
2774{
2775 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_fleet::UpdateFleetError, R>) -> Self {
2776 match err {
2777 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2778 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2779 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2780 source: err.into(),
2781 }),
2782 }
2783 }
2784}
2785impl From<crate::operation::update_fleet::UpdateFleetError> for Error {
2786 fn from(err: crate::operation::update_fleet::UpdateFleetError) -> Self {
2787 match err {
2788 crate::operation::update_fleet::UpdateFleetError::ConcurrentModificationException(inner) => Error::ConcurrentModificationException(inner),
2789 crate::operation::update_fleet::UpdateFleetError::IncompatibleImageException(inner) => Error::IncompatibleImageException(inner),
2790 crate::operation::update_fleet::UpdateFleetError::InvalidAccountStatusException(inner) => Error::InvalidAccountStatusException(inner),
2791 crate::operation::update_fleet::UpdateFleetError::InvalidParameterCombinationException(inner) => {
2792 Error::InvalidParameterCombinationException(inner)
2793 }
2794 crate::operation::update_fleet::UpdateFleetError::InvalidRoleException(inner) => Error::InvalidRoleException(inner),
2795 crate::operation::update_fleet::UpdateFleetError::LimitExceededException(inner) => Error::LimitExceededException(inner),
2796 crate::operation::update_fleet::UpdateFleetError::OperationNotPermittedException(inner) => Error::OperationNotPermittedException(inner),
2797 crate::operation::update_fleet::UpdateFleetError::RequestLimitExceededException(inner) => Error::RequestLimitExceededException(inner),
2798 crate::operation::update_fleet::UpdateFleetError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
2799 crate::operation::update_fleet::UpdateFleetError::ResourceNotAvailableException(inner) => Error::ResourceNotAvailableException(inner),
2800 crate::operation::update_fleet::UpdateFleetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2801 crate::operation::update_fleet::UpdateFleetError::Unhandled(inner) => Error::Unhandled(inner),
2802 }
2803 }
2804}
2805impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_image_permissions::UpdateImagePermissionsError, R>> for Error
2806where
2807 R: Send + Sync + std::fmt::Debug + 'static,
2808{
2809 fn from(
2810 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_image_permissions::UpdateImagePermissionsError, R>,
2811 ) -> Self {
2812 match err {
2813 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2814 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2815 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2816 source: err.into(),
2817 }),
2818 }
2819 }
2820}
2821impl From<crate::operation::update_image_permissions::UpdateImagePermissionsError> for Error {
2822 fn from(err: crate::operation::update_image_permissions::UpdateImagePermissionsError) -> Self {
2823 match err {
2824 crate::operation::update_image_permissions::UpdateImagePermissionsError::LimitExceededException(inner) => {
2825 Error::LimitExceededException(inner)
2826 }
2827 crate::operation::update_image_permissions::UpdateImagePermissionsError::ResourceNotAvailableException(inner) => {
2828 Error::ResourceNotAvailableException(inner)
2829 }
2830 crate::operation::update_image_permissions::UpdateImagePermissionsError::ResourceNotFoundException(inner) => {
2831 Error::ResourceNotFoundException(inner)
2832 }
2833 crate::operation::update_image_permissions::UpdateImagePermissionsError::Unhandled(inner) => Error::Unhandled(inner),
2834 }
2835 }
2836}
2837impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_stack::UpdateStackError, R>> for Error
2838where
2839 R: Send + Sync + std::fmt::Debug + 'static,
2840{
2841 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_stack::UpdateStackError, R>) -> Self {
2842 match err {
2843 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2844 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2845 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2846 source: err.into(),
2847 }),
2848 }
2849 }
2850}
2851impl From<crate::operation::update_stack::UpdateStackError> for Error {
2852 fn from(err: crate::operation::update_stack::UpdateStackError) -> Self {
2853 match err {
2854 crate::operation::update_stack::UpdateStackError::ConcurrentModificationException(inner) => Error::ConcurrentModificationException(inner),
2855 crate::operation::update_stack::UpdateStackError::IncompatibleImageException(inner) => Error::IncompatibleImageException(inner),
2856 crate::operation::update_stack::UpdateStackError::InvalidAccountStatusException(inner) => Error::InvalidAccountStatusException(inner),
2857 crate::operation::update_stack::UpdateStackError::InvalidParameterCombinationException(inner) => {
2858 Error::InvalidParameterCombinationException(inner)
2859 }
2860 crate::operation::update_stack::UpdateStackError::InvalidRoleException(inner) => Error::InvalidRoleException(inner),
2861 crate::operation::update_stack::UpdateStackError::LimitExceededException(inner) => Error::LimitExceededException(inner),
2862 crate::operation::update_stack::UpdateStackError::OperationNotPermittedException(inner) => Error::OperationNotPermittedException(inner),
2863 crate::operation::update_stack::UpdateStackError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
2864 crate::operation::update_stack::UpdateStackError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2865 crate::operation::update_stack::UpdateStackError::Unhandled(inner) => Error::Unhandled(inner),
2866 }
2867 }
2868}
2869impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_theme_for_stack::UpdateThemeForStackError, R>> for Error
2870where
2871 R: Send + Sync + std::fmt::Debug + 'static,
2872{
2873 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_theme_for_stack::UpdateThemeForStackError, R>) -> Self {
2874 match err {
2875 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2876 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2877 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2878 source: err.into(),
2879 }),
2880 }
2881 }
2882}
2883impl From<crate::operation::update_theme_for_stack::UpdateThemeForStackError> for Error {
2884 fn from(err: crate::operation::update_theme_for_stack::UpdateThemeForStackError) -> Self {
2885 match err {
2886 crate::operation::update_theme_for_stack::UpdateThemeForStackError::ConcurrentModificationException(inner) => {
2887 Error::ConcurrentModificationException(inner)
2888 }
2889 crate::operation::update_theme_for_stack::UpdateThemeForStackError::InvalidAccountStatusException(inner) => {
2890 Error::InvalidAccountStatusException(inner)
2891 }
2892 crate::operation::update_theme_for_stack::UpdateThemeForStackError::InvalidParameterCombinationException(inner) => {
2893 Error::InvalidParameterCombinationException(inner)
2894 }
2895 crate::operation::update_theme_for_stack::UpdateThemeForStackError::LimitExceededException(inner) => Error::LimitExceededException(inner),
2896 crate::operation::update_theme_for_stack::UpdateThemeForStackError::OperationNotPermittedException(inner) => {
2897 Error::OperationNotPermittedException(inner)
2898 }
2899 crate::operation::update_theme_for_stack::UpdateThemeForStackError::ResourceNotFoundException(inner) => {
2900 Error::ResourceNotFoundException(inner)
2901 }
2902 crate::operation::update_theme_for_stack::UpdateThemeForStackError::Unhandled(inner) => Error::Unhandled(inner),
2903 }
2904 }
2905}
2906impl<O, E> ::std::convert::From<::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>> for Error
2907where
2908 O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
2909 E: ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static,
2910{
2911 fn from(err: ::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>) -> Self {
2912 Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2913 meta: ::std::default::Default::default(),
2914 source: err.into(),
2915 })
2916 }
2917}
2918impl ::std::error::Error for Error {
2919 fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
2920 match self {
2921 Error::ConcurrentModificationException(inner) => inner.source(),
2922 Error::DryRunOperationException(inner) => inner.source(),
2923 Error::EntitlementAlreadyExistsException(inner) => inner.source(),
2924 Error::EntitlementNotFoundException(inner) => inner.source(),
2925 Error::IncompatibleImageException(inner) => inner.source(),
2926 Error::InvalidAccountStatusException(inner) => inner.source(),
2927 Error::InvalidParameterCombinationException(inner) => inner.source(),
2928 Error::InvalidRoleException(inner) => inner.source(),
2929 Error::LimitExceededException(inner) => inner.source(),
2930 Error::OperationNotPermittedException(inner) => inner.source(),
2931 Error::RequestLimitExceededException(inner) => inner.source(),
2932 Error::ResourceAlreadyExistsException(inner) => inner.source(),
2933 Error::ResourceInUseException(inner) => inner.source(),
2934 Error::ResourceNotAvailableException(inner) => inner.source(),
2935 Error::ResourceNotFoundException(inner) => inner.source(),
2936 Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
2937 }
2938 }
2939}
2940impl ::aws_types::request_id::RequestId for Error {
2941 fn request_id(&self) -> Option<&str> {
2942 match self {
2943 Self::ConcurrentModificationException(e) => e.request_id(),
2944 Self::DryRunOperationException(e) => e.request_id(),
2945 Self::EntitlementAlreadyExistsException(e) => e.request_id(),
2946 Self::EntitlementNotFoundException(e) => e.request_id(),
2947 Self::IncompatibleImageException(e) => e.request_id(),
2948 Self::InvalidAccountStatusException(e) => e.request_id(),
2949 Self::InvalidParameterCombinationException(e) => e.request_id(),
2950 Self::InvalidRoleException(e) => e.request_id(),
2951 Self::LimitExceededException(e) => e.request_id(),
2952 Self::OperationNotPermittedException(e) => e.request_id(),
2953 Self::RequestLimitExceededException(e) => e.request_id(),
2954 Self::ResourceAlreadyExistsException(e) => e.request_id(),
2955 Self::ResourceInUseException(e) => e.request_id(),
2956 Self::ResourceNotAvailableException(e) => e.request_id(),
2957 Self::ResourceNotFoundException(e) => e.request_id(),
2958 Self::Unhandled(e) => e.meta.request_id(),
2959 }
2960 }
2961}