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