1#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6 ConflictException(crate::types::error::ConflictException),
22 ConformancePackTemplateValidationException(crate::types::error::ConformancePackTemplateValidationException),
24 IdempotentParameterMismatch(crate::types::error::IdempotentParameterMismatch),
26 InsufficientDeliveryPolicyException(crate::types::error::InsufficientDeliveryPolicyException),
28 InsufficientPermissionsException(crate::types::error::InsufficientPermissionsException),
50 InvalidConfigurationRecorderNameException(crate::types::error::InvalidConfigurationRecorderNameException),
52 InvalidDeliveryChannelNameException(crate::types::error::InvalidDeliveryChannelNameException),
54 InvalidExpressionException(crate::types::error::InvalidExpressionException),
56 InvalidLimitException(crate::types::error::InvalidLimitException),
58 InvalidNextTokenException(crate::types::error::InvalidNextTokenException),
60 InvalidParameterValueException(crate::types::error::InvalidParameterValueException),
62 InvalidRecordingGroupException(crate::types::error::InvalidRecordingGroupException),
80 InvalidResultTokenException(crate::types::error::InvalidResultTokenException),
82 InvalidRoleException(crate::types::error::InvalidRoleException),
84 InvalidS3KeyPrefixException(crate::types::error::InvalidS3KeyPrefixException),
86 InvalidS3KmsKeyArnException(crate::types::error::InvalidS3KmsKeyArnException),
88 InvalidSnsTopicArnException(crate::types::error::InvalidSnsTopicArnException),
90 InvalidTimeRangeException(crate::types::error::InvalidTimeRangeException),
92 LastDeliveryChannelDeleteFailedException(crate::types::error::LastDeliveryChannelDeleteFailedException),
94 LimitExceededException(crate::types::error::LimitExceededException),
98 MaxActiveResourcesExceededException(crate::types::error::MaxActiveResourcesExceededException),
100 MaxNumberOfConfigRulesExceededException(crate::types::error::MaxNumberOfConfigRulesExceededException),
102 MaxNumberOfConfigurationRecordersExceededException(crate::types::error::MaxNumberOfConfigurationRecordersExceededException),
104 MaxNumberOfConformancePacksExceededException(crate::types::error::MaxNumberOfConformancePacksExceededException),
106 MaxNumberOfConnectorsExceededException(crate::types::error::MaxNumberOfConnectorsExceededException),
108 MaxNumberOfDeliveryChannelsExceededException(crate::types::error::MaxNumberOfDeliveryChannelsExceededException),
110 MaxNumberOfOrganizationConfigRulesExceededException(crate::types::error::MaxNumberOfOrganizationConfigRulesExceededException),
112 MaxNumberOfOrganizationConformancePacksExceededException(crate::types::error::MaxNumberOfOrganizationConformancePacksExceededException),
114 MaxNumberOfRetentionConfigurationsExceededException(crate::types::error::MaxNumberOfRetentionConfigurationsExceededException),
116 NoAvailableConfigurationRecorderException(crate::types::error::NoAvailableConfigurationRecorderException),
118 NoAvailableDeliveryChannelException(crate::types::error::NoAvailableDeliveryChannelException),
120 NoAvailableOrganizationException(crate::types::error::NoAvailableOrganizationException),
122 NoRunningConfigurationRecorderException(crate::types::error::NoRunningConfigurationRecorderException),
124 NoSuchBucketException(crate::types::error::NoSuchBucketException),
126 NoSuchConfigRuleException(crate::types::error::NoSuchConfigRuleException),
128 NoSuchConfigRuleInConformancePackException(crate::types::error::NoSuchConfigRuleInConformancePackException),
130 NoSuchConfigurationAggregatorException(crate::types::error::NoSuchConfigurationAggregatorException),
132 NoSuchConfigurationRecorderException(crate::types::error::NoSuchConfigurationRecorderException),
134 NoSuchConformancePackException(crate::types::error::NoSuchConformancePackException),
136 NoSuchDeliveryChannelException(crate::types::error::NoSuchDeliveryChannelException),
138 NoSuchOrganizationConfigRuleException(crate::types::error::NoSuchOrganizationConfigRuleException),
140 NoSuchOrganizationConformancePackException(crate::types::error::NoSuchOrganizationConformancePackException),
143 NoSuchRemediationConfigurationException(crate::types::error::NoSuchRemediationConfigurationException),
145 NoSuchRemediationExceptionException(crate::types::error::NoSuchRemediationExceptionException),
147 NoSuchRetentionConfigurationException(crate::types::error::NoSuchRetentionConfigurationException),
149 OrganizationAccessDeniedException(crate::types::error::OrganizationAccessDeniedException),
162 OrganizationAllFeaturesNotEnabledException(crate::types::error::OrganizationAllFeaturesNotEnabledException),
164 OrganizationConformancePackTemplateValidationException(crate::types::error::OrganizationConformancePackTemplateValidationException),
166 OversizedConfigurationItemException(crate::types::error::OversizedConfigurationItemException),
168 RemediationInProgressException(crate::types::error::RemediationInProgressException),
170 ResourceConcurrentModificationException(crate::types::error::ResourceConcurrentModificationException),
172 ResourceInUseException(crate::types::error::ResourceInUseException),
190 ResourceNotDiscoveredException(crate::types::error::ResourceNotDiscoveredException),
192 ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
194 TooManyTagsException(crate::types::error::TooManyTagsException),
196 UnmodifiableEntityException(crate::types::error::UnmodifiableEntityException),
201 ValidationException(crate::types::error::ValidationException),
235 #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
237 variable wildcard pattern and check `.code()`:
238 \
239 `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
240 \
241 See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
242 Unhandled(crate::error::sealed_unhandled::Unhandled),
243}
244impl ::std::fmt::Display for Error {
245 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
246 match self {
247 Error::ConflictException(inner) => inner.fmt(f),
248 Error::ConformancePackTemplateValidationException(inner) => inner.fmt(f),
249 Error::IdempotentParameterMismatch(inner) => inner.fmt(f),
250 Error::InsufficientDeliveryPolicyException(inner) => inner.fmt(f),
251 Error::InsufficientPermissionsException(inner) => inner.fmt(f),
252 Error::InvalidConfigurationRecorderNameException(inner) => inner.fmt(f),
253 Error::InvalidDeliveryChannelNameException(inner) => inner.fmt(f),
254 Error::InvalidExpressionException(inner) => inner.fmt(f),
255 Error::InvalidLimitException(inner) => inner.fmt(f),
256 Error::InvalidNextTokenException(inner) => inner.fmt(f),
257 Error::InvalidParameterValueException(inner) => inner.fmt(f),
258 Error::InvalidRecordingGroupException(inner) => inner.fmt(f),
259 Error::InvalidResultTokenException(inner) => inner.fmt(f),
260 Error::InvalidRoleException(inner) => inner.fmt(f),
261 Error::InvalidS3KeyPrefixException(inner) => inner.fmt(f),
262 Error::InvalidS3KmsKeyArnException(inner) => inner.fmt(f),
263 Error::InvalidSnsTopicArnException(inner) => inner.fmt(f),
264 Error::InvalidTimeRangeException(inner) => inner.fmt(f),
265 Error::LastDeliveryChannelDeleteFailedException(inner) => inner.fmt(f),
266 Error::LimitExceededException(inner) => inner.fmt(f),
267 Error::MaxActiveResourcesExceededException(inner) => inner.fmt(f),
268 Error::MaxNumberOfConfigRulesExceededException(inner) => inner.fmt(f),
269 Error::MaxNumberOfConfigurationRecordersExceededException(inner) => inner.fmt(f),
270 Error::MaxNumberOfConformancePacksExceededException(inner) => inner.fmt(f),
271 Error::MaxNumberOfConnectorsExceededException(inner) => inner.fmt(f),
272 Error::MaxNumberOfDeliveryChannelsExceededException(inner) => inner.fmt(f),
273 Error::MaxNumberOfOrganizationConfigRulesExceededException(inner) => inner.fmt(f),
274 Error::MaxNumberOfOrganizationConformancePacksExceededException(inner) => inner.fmt(f),
275 Error::MaxNumberOfRetentionConfigurationsExceededException(inner) => inner.fmt(f),
276 Error::NoAvailableConfigurationRecorderException(inner) => inner.fmt(f),
277 Error::NoAvailableDeliveryChannelException(inner) => inner.fmt(f),
278 Error::NoAvailableOrganizationException(inner) => inner.fmt(f),
279 Error::NoRunningConfigurationRecorderException(inner) => inner.fmt(f),
280 Error::NoSuchBucketException(inner) => inner.fmt(f),
281 Error::NoSuchConfigRuleException(inner) => inner.fmt(f),
282 Error::NoSuchConfigRuleInConformancePackException(inner) => inner.fmt(f),
283 Error::NoSuchConfigurationAggregatorException(inner) => inner.fmt(f),
284 Error::NoSuchConfigurationRecorderException(inner) => inner.fmt(f),
285 Error::NoSuchConformancePackException(inner) => inner.fmt(f),
286 Error::NoSuchDeliveryChannelException(inner) => inner.fmt(f),
287 Error::NoSuchOrganizationConfigRuleException(inner) => inner.fmt(f),
288 Error::NoSuchOrganizationConformancePackException(inner) => inner.fmt(f),
289 Error::NoSuchRemediationConfigurationException(inner) => inner.fmt(f),
290 Error::NoSuchRemediationExceptionException(inner) => inner.fmt(f),
291 Error::NoSuchRetentionConfigurationException(inner) => inner.fmt(f),
292 Error::OrganizationAccessDeniedException(inner) => inner.fmt(f),
293 Error::OrganizationAllFeaturesNotEnabledException(inner) => inner.fmt(f),
294 Error::OrganizationConformancePackTemplateValidationException(inner) => inner.fmt(f),
295 Error::OversizedConfigurationItemException(inner) => inner.fmt(f),
296 Error::RemediationInProgressException(inner) => inner.fmt(f),
297 Error::ResourceConcurrentModificationException(inner) => inner.fmt(f),
298 Error::ResourceInUseException(inner) => inner.fmt(f),
299 Error::ResourceNotDiscoveredException(inner) => inner.fmt(f),
300 Error::ResourceNotFoundException(inner) => inner.fmt(f),
301 Error::TooManyTagsException(inner) => inner.fmt(f),
302 Error::UnmodifiableEntityException(inner) => inner.fmt(f),
303 Error::ValidationException(inner) => inner.fmt(f),
304 Error::Unhandled(_) => {
305 if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
306 write!(f, "unhandled error ({code})")
307 } else {
308 f.write_str("unhandled error")
309 }
310 }
311 }
312 }
313}
314impl From<::aws_smithy_types::error::operation::BuildError> for Error {
315 fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
316 Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
317 source: value.into(),
318 meta: ::std::default::Default::default(),
319 })
320 }
321}
322impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
323 fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
324 match self {
325 Self::ConflictException(inner) => inner.meta(),
326 Self::ConformancePackTemplateValidationException(inner) => inner.meta(),
327 Self::IdempotentParameterMismatch(inner) => inner.meta(),
328 Self::InsufficientDeliveryPolicyException(inner) => inner.meta(),
329 Self::InsufficientPermissionsException(inner) => inner.meta(),
330 Self::InvalidConfigurationRecorderNameException(inner) => inner.meta(),
331 Self::InvalidDeliveryChannelNameException(inner) => inner.meta(),
332 Self::InvalidExpressionException(inner) => inner.meta(),
333 Self::InvalidLimitException(inner) => inner.meta(),
334 Self::InvalidNextTokenException(inner) => inner.meta(),
335 Self::InvalidParameterValueException(inner) => inner.meta(),
336 Self::InvalidRecordingGroupException(inner) => inner.meta(),
337 Self::InvalidResultTokenException(inner) => inner.meta(),
338 Self::InvalidRoleException(inner) => inner.meta(),
339 Self::InvalidS3KeyPrefixException(inner) => inner.meta(),
340 Self::InvalidS3KmsKeyArnException(inner) => inner.meta(),
341 Self::InvalidSnsTopicArnException(inner) => inner.meta(),
342 Self::InvalidTimeRangeException(inner) => inner.meta(),
343 Self::LastDeliveryChannelDeleteFailedException(inner) => inner.meta(),
344 Self::LimitExceededException(inner) => inner.meta(),
345 Self::MaxActiveResourcesExceededException(inner) => inner.meta(),
346 Self::MaxNumberOfConfigRulesExceededException(inner) => inner.meta(),
347 Self::MaxNumberOfConfigurationRecordersExceededException(inner) => inner.meta(),
348 Self::MaxNumberOfConformancePacksExceededException(inner) => inner.meta(),
349 Self::MaxNumberOfConnectorsExceededException(inner) => inner.meta(),
350 Self::MaxNumberOfDeliveryChannelsExceededException(inner) => inner.meta(),
351 Self::MaxNumberOfOrganizationConfigRulesExceededException(inner) => inner.meta(),
352 Self::MaxNumberOfOrganizationConformancePacksExceededException(inner) => inner.meta(),
353 Self::MaxNumberOfRetentionConfigurationsExceededException(inner) => inner.meta(),
354 Self::NoAvailableConfigurationRecorderException(inner) => inner.meta(),
355 Self::NoAvailableDeliveryChannelException(inner) => inner.meta(),
356 Self::NoAvailableOrganizationException(inner) => inner.meta(),
357 Self::NoRunningConfigurationRecorderException(inner) => inner.meta(),
358 Self::NoSuchBucketException(inner) => inner.meta(),
359 Self::NoSuchConfigRuleException(inner) => inner.meta(),
360 Self::NoSuchConfigRuleInConformancePackException(inner) => inner.meta(),
361 Self::NoSuchConfigurationAggregatorException(inner) => inner.meta(),
362 Self::NoSuchConfigurationRecorderException(inner) => inner.meta(),
363 Self::NoSuchConformancePackException(inner) => inner.meta(),
364 Self::NoSuchDeliveryChannelException(inner) => inner.meta(),
365 Self::NoSuchOrganizationConfigRuleException(inner) => inner.meta(),
366 Self::NoSuchOrganizationConformancePackException(inner) => inner.meta(),
367 Self::NoSuchRemediationConfigurationException(inner) => inner.meta(),
368 Self::NoSuchRemediationExceptionException(inner) => inner.meta(),
369 Self::NoSuchRetentionConfigurationException(inner) => inner.meta(),
370 Self::OrganizationAccessDeniedException(inner) => inner.meta(),
371 Self::OrganizationAllFeaturesNotEnabledException(inner) => inner.meta(),
372 Self::OrganizationConformancePackTemplateValidationException(inner) => inner.meta(),
373 Self::OversizedConfigurationItemException(inner) => inner.meta(),
374 Self::RemediationInProgressException(inner) => inner.meta(),
375 Self::ResourceConcurrentModificationException(inner) => inner.meta(),
376 Self::ResourceInUseException(inner) => inner.meta(),
377 Self::ResourceNotDiscoveredException(inner) => inner.meta(),
378 Self::ResourceNotFoundException(inner) => inner.meta(),
379 Self::TooManyTagsException(inner) => inner.meta(),
380 Self::UnmodifiableEntityException(inner) => inner.meta(),
381 Self::ValidationException(inner) => inner.meta(),
382 Self::Unhandled(inner) => &inner.meta,
383 }
384 }
385}
386impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_resource_types::AssociateResourceTypesError, R>> for Error
387where
388 R: Send + Sync + std::fmt::Debug + 'static,
389{
390 fn from(
391 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_resource_types::AssociateResourceTypesError, R>,
392 ) -> Self {
393 match err {
394 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
395 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
396 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
397 source: err.into(),
398 }),
399 }
400 }
401}
402impl From<crate::operation::associate_resource_types::AssociateResourceTypesError> for Error {
403 fn from(err: crate::operation::associate_resource_types::AssociateResourceTypesError) -> Self {
404 match err {
405 crate::operation::associate_resource_types::AssociateResourceTypesError::ConflictException(inner) => Error::ConflictException(inner),
406 crate::operation::associate_resource_types::AssociateResourceTypesError::NoSuchConfigurationRecorderException(inner) => {
407 Error::NoSuchConfigurationRecorderException(inner)
408 }
409 crate::operation::associate_resource_types::AssociateResourceTypesError::ValidationException(inner) => Error::ValidationException(inner),
410 crate::operation::associate_resource_types::AssociateResourceTypesError::Unhandled(inner) => Error::Unhandled(inner),
411 }
412 }
413}
414impl<R>
415 From<
416 ::aws_smithy_runtime_api::client::result::SdkError<
417 crate::operation::batch_get_aggregate_resource_config::BatchGetAggregateResourceConfigError,
418 R,
419 >,
420 > for Error
421where
422 R: Send + Sync + std::fmt::Debug + 'static,
423{
424 fn from(
425 err: ::aws_smithy_runtime_api::client::result::SdkError<
426 crate::operation::batch_get_aggregate_resource_config::BatchGetAggregateResourceConfigError,
427 R,
428 >,
429 ) -> Self {
430 match err {
431 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
432 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
433 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
434 source: err.into(),
435 }),
436 }
437 }
438}
439impl From<crate::operation::batch_get_aggregate_resource_config::BatchGetAggregateResourceConfigError> for Error {
440 fn from(err: crate::operation::batch_get_aggregate_resource_config::BatchGetAggregateResourceConfigError) -> Self {
441 match err {
442 crate::operation::batch_get_aggregate_resource_config::BatchGetAggregateResourceConfigError::NoSuchConfigurationAggregatorException(
443 inner,
444 ) => Error::NoSuchConfigurationAggregatorException(inner),
445 crate::operation::batch_get_aggregate_resource_config::BatchGetAggregateResourceConfigError::ValidationException(inner) => {
446 Error::ValidationException(inner)
447 }
448 crate::operation::batch_get_aggregate_resource_config::BatchGetAggregateResourceConfigError::Unhandled(inner) => Error::Unhandled(inner),
449 }
450 }
451}
452impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_resource_config::BatchGetResourceConfigError, R>>
453 for Error
454where
455 R: Send + Sync + std::fmt::Debug + 'static,
456{
457 fn from(
458 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_resource_config::BatchGetResourceConfigError, R>,
459 ) -> Self {
460 match err {
461 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
462 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
463 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
464 source: err.into(),
465 }),
466 }
467 }
468}
469impl From<crate::operation::batch_get_resource_config::BatchGetResourceConfigError> for Error {
470 fn from(err: crate::operation::batch_get_resource_config::BatchGetResourceConfigError) -> Self {
471 match err {
472 crate::operation::batch_get_resource_config::BatchGetResourceConfigError::NoAvailableConfigurationRecorderException(inner) => {
473 Error::NoAvailableConfigurationRecorderException(inner)
474 }
475 crate::operation::batch_get_resource_config::BatchGetResourceConfigError::ValidationException(inner) => Error::ValidationException(inner),
476 crate::operation::batch_get_resource_config::BatchGetResourceConfigError::Unhandled(inner) => Error::Unhandled(inner),
477 }
478 }
479}
480impl<R>
481 From<
482 ::aws_smithy_runtime_api::client::result::SdkError<
483 crate::operation::delete_aggregation_authorization::DeleteAggregationAuthorizationError,
484 R,
485 >,
486 > for Error
487where
488 R: Send + Sync + std::fmt::Debug + 'static,
489{
490 fn from(
491 err: ::aws_smithy_runtime_api::client::result::SdkError<
492 crate::operation::delete_aggregation_authorization::DeleteAggregationAuthorizationError,
493 R,
494 >,
495 ) -> Self {
496 match err {
497 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
498 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
499 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
500 source: err.into(),
501 }),
502 }
503 }
504}
505impl From<crate::operation::delete_aggregation_authorization::DeleteAggregationAuthorizationError> for Error {
506 fn from(err: crate::operation::delete_aggregation_authorization::DeleteAggregationAuthorizationError) -> Self {
507 match err {
508 crate::operation::delete_aggregation_authorization::DeleteAggregationAuthorizationError::InvalidParameterValueException(inner) => {
509 Error::InvalidParameterValueException(inner)
510 }
511 crate::operation::delete_aggregation_authorization::DeleteAggregationAuthorizationError::Unhandled(inner) => Error::Unhandled(inner),
512 }
513 }
514}
515impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_config_rule::DeleteConfigRuleError, R>> for Error
516where
517 R: Send + Sync + std::fmt::Debug + 'static,
518{
519 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_config_rule::DeleteConfigRuleError, R>) -> Self {
520 match err {
521 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
522 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
523 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
524 source: err.into(),
525 }),
526 }
527 }
528}
529impl From<crate::operation::delete_config_rule::DeleteConfigRuleError> for Error {
530 fn from(err: crate::operation::delete_config_rule::DeleteConfigRuleError) -> Self {
531 match err {
532 crate::operation::delete_config_rule::DeleteConfigRuleError::NoSuchConfigRuleException(inner) => Error::NoSuchConfigRuleException(inner),
533 crate::operation::delete_config_rule::DeleteConfigRuleError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
534 crate::operation::delete_config_rule::DeleteConfigRuleError::Unhandled(inner) => Error::Unhandled(inner),
535 }
536 }
537}
538impl<R>
539 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_configuration_aggregator::DeleteConfigurationAggregatorError, R>>
540 for Error
541where
542 R: Send + Sync + std::fmt::Debug + 'static,
543{
544 fn from(
545 err: ::aws_smithy_runtime_api::client::result::SdkError<
546 crate::operation::delete_configuration_aggregator::DeleteConfigurationAggregatorError,
547 R,
548 >,
549 ) -> Self {
550 match err {
551 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
552 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
553 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
554 source: err.into(),
555 }),
556 }
557 }
558}
559impl From<crate::operation::delete_configuration_aggregator::DeleteConfigurationAggregatorError> for Error {
560 fn from(err: crate::operation::delete_configuration_aggregator::DeleteConfigurationAggregatorError) -> Self {
561 match err {
562 crate::operation::delete_configuration_aggregator::DeleteConfigurationAggregatorError::NoSuchConfigurationAggregatorException(inner) => {
563 Error::NoSuchConfigurationAggregatorException(inner)
564 }
565 crate::operation::delete_configuration_aggregator::DeleteConfigurationAggregatorError::Unhandled(inner) => Error::Unhandled(inner),
566 }
567 }
568}
569impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_configuration_recorder::DeleteConfigurationRecorderError, R>>
570 for Error
571where
572 R: Send + Sync + std::fmt::Debug + 'static,
573{
574 fn from(
575 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_configuration_recorder::DeleteConfigurationRecorderError, R>,
576 ) -> Self {
577 match err {
578 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
579 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
580 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
581 source: err.into(),
582 }),
583 }
584 }
585}
586impl From<crate::operation::delete_configuration_recorder::DeleteConfigurationRecorderError> for Error {
587 fn from(err: crate::operation::delete_configuration_recorder::DeleteConfigurationRecorderError) -> Self {
588 match err {
589 crate::operation::delete_configuration_recorder::DeleteConfigurationRecorderError::NoSuchConfigurationRecorderException(inner) => {
590 Error::NoSuchConfigurationRecorderException(inner)
591 }
592 crate::operation::delete_configuration_recorder::DeleteConfigurationRecorderError::UnmodifiableEntityException(inner) => {
593 Error::UnmodifiableEntityException(inner)
594 }
595 crate::operation::delete_configuration_recorder::DeleteConfigurationRecorderError::Unhandled(inner) => Error::Unhandled(inner),
596 }
597 }
598}
599impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_conformance_pack::DeleteConformancePackError, R>> for Error
600where
601 R: Send + Sync + std::fmt::Debug + 'static,
602{
603 fn from(
604 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_conformance_pack::DeleteConformancePackError, R>,
605 ) -> Self {
606 match err {
607 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
608 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
609 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
610 source: err.into(),
611 }),
612 }
613 }
614}
615impl From<crate::operation::delete_conformance_pack::DeleteConformancePackError> for Error {
616 fn from(err: crate::operation::delete_conformance_pack::DeleteConformancePackError) -> Self {
617 match err {
618 crate::operation::delete_conformance_pack::DeleteConformancePackError::NoSuchConformancePackException(inner) => {
619 Error::NoSuchConformancePackException(inner)
620 }
621 crate::operation::delete_conformance_pack::DeleteConformancePackError::ResourceInUseException(inner) => {
622 Error::ResourceInUseException(inner)
623 }
624 crate::operation::delete_conformance_pack::DeleteConformancePackError::Unhandled(inner) => Error::Unhandled(inner),
625 }
626 }
627}
628impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_connector::DeleteConnectorError, R>> for Error
629where
630 R: Send + Sync + std::fmt::Debug + 'static,
631{
632 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_connector::DeleteConnectorError, R>) -> Self {
633 match err {
634 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
635 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
636 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
637 source: err.into(),
638 }),
639 }
640 }
641}
642impl From<crate::operation::delete_connector::DeleteConnectorError> for Error {
643 fn from(err: crate::operation::delete_connector::DeleteConnectorError) -> Self {
644 match err {
645 crate::operation::delete_connector::DeleteConnectorError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
646 crate::operation::delete_connector::DeleteConnectorError::ValidationException(inner) => Error::ValidationException(inner),
647 crate::operation::delete_connector::DeleteConnectorError::Unhandled(inner) => Error::Unhandled(inner),
648 }
649 }
650}
651impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_delivery_channel::DeleteDeliveryChannelError, R>> for Error
652where
653 R: Send + Sync + std::fmt::Debug + 'static,
654{
655 fn from(
656 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_delivery_channel::DeleteDeliveryChannelError, R>,
657 ) -> Self {
658 match err {
659 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
660 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
661 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
662 source: err.into(),
663 }),
664 }
665 }
666}
667impl From<crate::operation::delete_delivery_channel::DeleteDeliveryChannelError> for Error {
668 fn from(err: crate::operation::delete_delivery_channel::DeleteDeliveryChannelError) -> Self {
669 match err {
670 crate::operation::delete_delivery_channel::DeleteDeliveryChannelError::LastDeliveryChannelDeleteFailedException(inner) => {
671 Error::LastDeliveryChannelDeleteFailedException(inner)
672 }
673 crate::operation::delete_delivery_channel::DeleteDeliveryChannelError::NoSuchDeliveryChannelException(inner) => {
674 Error::NoSuchDeliveryChannelException(inner)
675 }
676 crate::operation::delete_delivery_channel::DeleteDeliveryChannelError::Unhandled(inner) => Error::Unhandled(inner),
677 }
678 }
679}
680impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_evaluation_results::DeleteEvaluationResultsError, R>>
681 for Error
682where
683 R: Send + Sync + std::fmt::Debug + 'static,
684{
685 fn from(
686 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_evaluation_results::DeleteEvaluationResultsError, R>,
687 ) -> Self {
688 match err {
689 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
690 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
691 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
692 source: err.into(),
693 }),
694 }
695 }
696}
697impl From<crate::operation::delete_evaluation_results::DeleteEvaluationResultsError> for Error {
698 fn from(err: crate::operation::delete_evaluation_results::DeleteEvaluationResultsError) -> Self {
699 match err {
700 crate::operation::delete_evaluation_results::DeleteEvaluationResultsError::NoSuchConfigRuleException(inner) => {
701 Error::NoSuchConfigRuleException(inner)
702 }
703 crate::operation::delete_evaluation_results::DeleteEvaluationResultsError::ResourceInUseException(inner) => {
704 Error::ResourceInUseException(inner)
705 }
706 crate::operation::delete_evaluation_results::DeleteEvaluationResultsError::Unhandled(inner) => Error::Unhandled(inner),
707 }
708 }
709}
710impl<R>
711 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_organization_config_rule::DeleteOrganizationConfigRuleError, R>>
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::delete_organization_config_rule::DeleteOrganizationConfigRuleError,
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::delete_organization_config_rule::DeleteOrganizationConfigRuleError> for Error {
732 fn from(err: crate::operation::delete_organization_config_rule::DeleteOrganizationConfigRuleError) -> Self {
733 match err {
734 crate::operation::delete_organization_config_rule::DeleteOrganizationConfigRuleError::NoSuchOrganizationConfigRuleException(inner) => {
735 Error::NoSuchOrganizationConfigRuleException(inner)
736 }
737 crate::operation::delete_organization_config_rule::DeleteOrganizationConfigRuleError::OrganizationAccessDeniedException(inner) => {
738 Error::OrganizationAccessDeniedException(inner)
739 }
740 crate::operation::delete_organization_config_rule::DeleteOrganizationConfigRuleError::ResourceInUseException(inner) => {
741 Error::ResourceInUseException(inner)
742 }
743 crate::operation::delete_organization_config_rule::DeleteOrganizationConfigRuleError::Unhandled(inner) => Error::Unhandled(inner),
744 }
745 }
746}
747impl<R>
748 From<
749 ::aws_smithy_runtime_api::client::result::SdkError<
750 crate::operation::delete_organization_conformance_pack::DeleteOrganizationConformancePackError,
751 R,
752 >,
753 > for Error
754where
755 R: Send + Sync + std::fmt::Debug + 'static,
756{
757 fn from(
758 err: ::aws_smithy_runtime_api::client::result::SdkError<
759 crate::operation::delete_organization_conformance_pack::DeleteOrganizationConformancePackError,
760 R,
761 >,
762 ) -> Self {
763 match err {
764 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
765 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
766 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
767 source: err.into(),
768 }),
769 }
770 }
771}
772impl From<crate::operation::delete_organization_conformance_pack::DeleteOrganizationConformancePackError> for Error {
773 fn from(err: crate::operation::delete_organization_conformance_pack::DeleteOrganizationConformancePackError) -> Self {
774 match err {
775 crate::operation::delete_organization_conformance_pack::DeleteOrganizationConformancePackError::NoSuchOrganizationConformancePackException(inner) => Error::NoSuchOrganizationConformancePackException(inner),
776 crate::operation::delete_organization_conformance_pack::DeleteOrganizationConformancePackError::OrganizationAccessDeniedException(inner) => Error::OrganizationAccessDeniedException(inner),
777 crate::operation::delete_organization_conformance_pack::DeleteOrganizationConformancePackError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
778 crate::operation::delete_organization_conformance_pack::DeleteOrganizationConformancePackError::Unhandled(inner) => Error::Unhandled(inner),
779 }
780 }
781}
782impl<R>
783 From<
784 ::aws_smithy_runtime_api::client::result::SdkError<
785 crate::operation::delete_pending_aggregation_request::DeletePendingAggregationRequestError,
786 R,
787 >,
788 > for Error
789where
790 R: Send + Sync + std::fmt::Debug + 'static,
791{
792 fn from(
793 err: ::aws_smithy_runtime_api::client::result::SdkError<
794 crate::operation::delete_pending_aggregation_request::DeletePendingAggregationRequestError,
795 R,
796 >,
797 ) -> Self {
798 match err {
799 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
800 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
801 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
802 source: err.into(),
803 }),
804 }
805 }
806}
807impl From<crate::operation::delete_pending_aggregation_request::DeletePendingAggregationRequestError> for Error {
808 fn from(err: crate::operation::delete_pending_aggregation_request::DeletePendingAggregationRequestError) -> Self {
809 match err {
810 crate::operation::delete_pending_aggregation_request::DeletePendingAggregationRequestError::InvalidParameterValueException(inner) => {
811 Error::InvalidParameterValueException(inner)
812 }
813 crate::operation::delete_pending_aggregation_request::DeletePendingAggregationRequestError::Unhandled(inner) => Error::Unhandled(inner),
814 }
815 }
816}
817impl<R>
818 From<
819 ::aws_smithy_runtime_api::client::result::SdkError<
820 crate::operation::delete_remediation_configuration::DeleteRemediationConfigurationError,
821 R,
822 >,
823 > for Error
824where
825 R: Send + Sync + std::fmt::Debug + 'static,
826{
827 fn from(
828 err: ::aws_smithy_runtime_api::client::result::SdkError<
829 crate::operation::delete_remediation_configuration::DeleteRemediationConfigurationError,
830 R,
831 >,
832 ) -> Self {
833 match err {
834 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
835 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
836 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
837 source: err.into(),
838 }),
839 }
840 }
841}
842impl From<crate::operation::delete_remediation_configuration::DeleteRemediationConfigurationError> for Error {
843 fn from(err: crate::operation::delete_remediation_configuration::DeleteRemediationConfigurationError) -> Self {
844 match err {
845 crate::operation::delete_remediation_configuration::DeleteRemediationConfigurationError::InsufficientPermissionsException(inner) => {
846 Error::InsufficientPermissionsException(inner)
847 }
848 crate::operation::delete_remediation_configuration::DeleteRemediationConfigurationError::InvalidParameterValueException(inner) => {
849 Error::InvalidParameterValueException(inner)
850 }
851 crate::operation::delete_remediation_configuration::DeleteRemediationConfigurationError::NoSuchRemediationConfigurationException(
852 inner,
853 ) => Error::NoSuchRemediationConfigurationException(inner),
854 crate::operation::delete_remediation_configuration::DeleteRemediationConfigurationError::RemediationInProgressException(inner) => {
855 Error::RemediationInProgressException(inner)
856 }
857 crate::operation::delete_remediation_configuration::DeleteRemediationConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
858 }
859 }
860}
861impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_remediation_exceptions::DeleteRemediationExceptionsError, R>>
862 for Error
863where
864 R: Send + Sync + std::fmt::Debug + 'static,
865{
866 fn from(
867 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_remediation_exceptions::DeleteRemediationExceptionsError, R>,
868 ) -> Self {
869 match err {
870 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
871 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
872 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
873 source: err.into(),
874 }),
875 }
876 }
877}
878impl From<crate::operation::delete_remediation_exceptions::DeleteRemediationExceptionsError> for Error {
879 fn from(err: crate::operation::delete_remediation_exceptions::DeleteRemediationExceptionsError) -> Self {
880 match err {
881 crate::operation::delete_remediation_exceptions::DeleteRemediationExceptionsError::NoSuchRemediationExceptionException(inner) => {
882 Error::NoSuchRemediationExceptionException(inner)
883 }
884 crate::operation::delete_remediation_exceptions::DeleteRemediationExceptionsError::Unhandled(inner) => Error::Unhandled(inner),
885 }
886 }
887}
888impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_config::DeleteResourceConfigError, R>> for Error
889where
890 R: Send + Sync + std::fmt::Debug + 'static,
891{
892 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_config::DeleteResourceConfigError, R>) -> Self {
893 match err {
894 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
895 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
896 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
897 source: err.into(),
898 }),
899 }
900 }
901}
902impl From<crate::operation::delete_resource_config::DeleteResourceConfigError> for Error {
903 fn from(err: crate::operation::delete_resource_config::DeleteResourceConfigError) -> Self {
904 match err {
905 crate::operation::delete_resource_config::DeleteResourceConfigError::NoRunningConfigurationRecorderException(inner) => {
906 Error::NoRunningConfigurationRecorderException(inner)
907 }
908 crate::operation::delete_resource_config::DeleteResourceConfigError::ValidationException(inner) => Error::ValidationException(inner),
909 crate::operation::delete_resource_config::DeleteResourceConfigError::Unhandled(inner) => Error::Unhandled(inner),
910 }
911 }
912}
913impl<R>
914 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_retention_configuration::DeleteRetentionConfigurationError, R>>
915 for Error
916where
917 R: Send + Sync + std::fmt::Debug + 'static,
918{
919 fn from(
920 err: ::aws_smithy_runtime_api::client::result::SdkError<
921 crate::operation::delete_retention_configuration::DeleteRetentionConfigurationError,
922 R,
923 >,
924 ) -> Self {
925 match err {
926 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
927 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
928 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
929 source: err.into(),
930 }),
931 }
932 }
933}
934impl From<crate::operation::delete_retention_configuration::DeleteRetentionConfigurationError> for Error {
935 fn from(err: crate::operation::delete_retention_configuration::DeleteRetentionConfigurationError) -> Self {
936 match err {
937 crate::operation::delete_retention_configuration::DeleteRetentionConfigurationError::InvalidParameterValueException(inner) => {
938 Error::InvalidParameterValueException(inner)
939 }
940 crate::operation::delete_retention_configuration::DeleteRetentionConfigurationError::NoSuchRetentionConfigurationException(inner) => {
941 Error::NoSuchRetentionConfigurationException(inner)
942 }
943 crate::operation::delete_retention_configuration::DeleteRetentionConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
944 }
945 }
946}
947impl<R>
948 From<
949 ::aws_smithy_runtime_api::client::result::SdkError<
950 crate::operation::delete_service_linked_configuration_recorder::DeleteServiceLinkedConfigurationRecorderError,
951 R,
952 >,
953 > for Error
954where
955 R: Send + Sync + std::fmt::Debug + 'static,
956{
957 fn from(
958 err: ::aws_smithy_runtime_api::client::result::SdkError<
959 crate::operation::delete_service_linked_configuration_recorder::DeleteServiceLinkedConfigurationRecorderError,
960 R,
961 >,
962 ) -> Self {
963 match err {
964 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
965 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
966 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
967 source: err.into(),
968 }),
969 }
970 }
971}
972impl From<crate::operation::delete_service_linked_configuration_recorder::DeleteServiceLinkedConfigurationRecorderError> for Error {
973 fn from(err: crate::operation::delete_service_linked_configuration_recorder::DeleteServiceLinkedConfigurationRecorderError) -> Self {
974 match err {
975 crate::operation::delete_service_linked_configuration_recorder::DeleteServiceLinkedConfigurationRecorderError::ConflictException(inner) => Error::ConflictException(inner),
976 crate::operation::delete_service_linked_configuration_recorder::DeleteServiceLinkedConfigurationRecorderError::NoSuchConfigurationRecorderException(inner) => Error::NoSuchConfigurationRecorderException(inner),
977 crate::operation::delete_service_linked_configuration_recorder::DeleteServiceLinkedConfigurationRecorderError::ValidationException(inner) => Error::ValidationException(inner),
978 crate::operation::delete_service_linked_configuration_recorder::DeleteServiceLinkedConfigurationRecorderError::Unhandled(inner) => Error::Unhandled(inner),
979 }
980 }
981}
982impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_stored_query::DeleteStoredQueryError, R>> for Error
983where
984 R: Send + Sync + std::fmt::Debug + 'static,
985{
986 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_stored_query::DeleteStoredQueryError, R>) -> Self {
987 match err {
988 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
989 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
990 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
991 source: err.into(),
992 }),
993 }
994 }
995}
996impl From<crate::operation::delete_stored_query::DeleteStoredQueryError> for Error {
997 fn from(err: crate::operation::delete_stored_query::DeleteStoredQueryError) -> Self {
998 match err {
999 crate::operation::delete_stored_query::DeleteStoredQueryError::ResourceNotFoundException(inner) => {
1000 Error::ResourceNotFoundException(inner)
1001 }
1002 crate::operation::delete_stored_query::DeleteStoredQueryError::ValidationException(inner) => Error::ValidationException(inner),
1003 crate::operation::delete_stored_query::DeleteStoredQueryError::Unhandled(inner) => Error::Unhandled(inner),
1004 }
1005 }
1006}
1007impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deliver_config_snapshot::DeliverConfigSnapshotError, R>> for Error
1008where
1009 R: Send + Sync + std::fmt::Debug + 'static,
1010{
1011 fn from(
1012 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deliver_config_snapshot::DeliverConfigSnapshotError, R>,
1013 ) -> Self {
1014 match err {
1015 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1016 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1017 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1018 source: err.into(),
1019 }),
1020 }
1021 }
1022}
1023impl From<crate::operation::deliver_config_snapshot::DeliverConfigSnapshotError> for Error {
1024 fn from(err: crate::operation::deliver_config_snapshot::DeliverConfigSnapshotError) -> Self {
1025 match err {
1026 crate::operation::deliver_config_snapshot::DeliverConfigSnapshotError::NoAvailableConfigurationRecorderException(inner) => {
1027 Error::NoAvailableConfigurationRecorderException(inner)
1028 }
1029 crate::operation::deliver_config_snapshot::DeliverConfigSnapshotError::NoRunningConfigurationRecorderException(inner) => {
1030 Error::NoRunningConfigurationRecorderException(inner)
1031 }
1032 crate::operation::deliver_config_snapshot::DeliverConfigSnapshotError::NoSuchDeliveryChannelException(inner) => {
1033 Error::NoSuchDeliveryChannelException(inner)
1034 }
1035 crate::operation::deliver_config_snapshot::DeliverConfigSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
1036 }
1037 }
1038}
1039impl<R>
1040 From<
1041 ::aws_smithy_runtime_api::client::result::SdkError<
1042 crate::operation::describe_aggregate_compliance_by_config_rules::DescribeAggregateComplianceByConfigRulesError,
1043 R,
1044 >,
1045 > for Error
1046where
1047 R: Send + Sync + std::fmt::Debug + 'static,
1048{
1049 fn from(
1050 err: ::aws_smithy_runtime_api::client::result::SdkError<
1051 crate::operation::describe_aggregate_compliance_by_config_rules::DescribeAggregateComplianceByConfigRulesError,
1052 R,
1053 >,
1054 ) -> Self {
1055 match err {
1056 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1057 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1058 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1059 source: err.into(),
1060 }),
1061 }
1062 }
1063}
1064impl From<crate::operation::describe_aggregate_compliance_by_config_rules::DescribeAggregateComplianceByConfigRulesError> for Error {
1065 fn from(err: crate::operation::describe_aggregate_compliance_by_config_rules::DescribeAggregateComplianceByConfigRulesError) -> Self {
1066 match err {
1067 crate::operation::describe_aggregate_compliance_by_config_rules::DescribeAggregateComplianceByConfigRulesError::InvalidLimitException(inner) => Error::InvalidLimitException(inner),
1068 crate::operation::describe_aggregate_compliance_by_config_rules::DescribeAggregateComplianceByConfigRulesError::InvalidNextTokenException(inner) => Error::InvalidNextTokenException(inner),
1069 crate::operation::describe_aggregate_compliance_by_config_rules::DescribeAggregateComplianceByConfigRulesError::NoSuchConfigurationAggregatorException(inner) => Error::NoSuchConfigurationAggregatorException(inner),
1070 crate::operation::describe_aggregate_compliance_by_config_rules::DescribeAggregateComplianceByConfigRulesError::ValidationException(inner) => Error::ValidationException(inner),
1071 crate::operation::describe_aggregate_compliance_by_config_rules::DescribeAggregateComplianceByConfigRulesError::Unhandled(inner) => Error::Unhandled(inner),
1072 }
1073 }
1074}
1075impl<R>
1076 From<
1077 ::aws_smithy_runtime_api::client::result::SdkError<
1078 crate::operation::describe_aggregate_compliance_by_conformance_packs::DescribeAggregateComplianceByConformancePacksError,
1079 R,
1080 >,
1081 > for Error
1082where
1083 R: Send + Sync + std::fmt::Debug + 'static,
1084{
1085 fn from(
1086 err: ::aws_smithy_runtime_api::client::result::SdkError<
1087 crate::operation::describe_aggregate_compliance_by_conformance_packs::DescribeAggregateComplianceByConformancePacksError,
1088 R,
1089 >,
1090 ) -> Self {
1091 match err {
1092 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1093 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1094 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1095 source: err.into(),
1096 }),
1097 }
1098 }
1099}
1100impl From<crate::operation::describe_aggregate_compliance_by_conformance_packs::DescribeAggregateComplianceByConformancePacksError> for Error {
1101 fn from(err: crate::operation::describe_aggregate_compliance_by_conformance_packs::DescribeAggregateComplianceByConformancePacksError) -> Self {
1102 match err {
1103 crate::operation::describe_aggregate_compliance_by_conformance_packs::DescribeAggregateComplianceByConformancePacksError::InvalidLimitException(inner) => Error::InvalidLimitException(inner),
1104 crate::operation::describe_aggregate_compliance_by_conformance_packs::DescribeAggregateComplianceByConformancePacksError::InvalidNextTokenException(inner) => Error::InvalidNextTokenException(inner),
1105 crate::operation::describe_aggregate_compliance_by_conformance_packs::DescribeAggregateComplianceByConformancePacksError::NoSuchConfigurationAggregatorException(inner) => Error::NoSuchConfigurationAggregatorException(inner),
1106 crate::operation::describe_aggregate_compliance_by_conformance_packs::DescribeAggregateComplianceByConformancePacksError::ValidationException(inner) => Error::ValidationException(inner),
1107 crate::operation::describe_aggregate_compliance_by_conformance_packs::DescribeAggregateComplianceByConformancePacksError::Unhandled(inner) => Error::Unhandled(inner),
1108 }
1109 }
1110}
1111impl<R>
1112 From<
1113 ::aws_smithy_runtime_api::client::result::SdkError<
1114 crate::operation::describe_aggregation_authorizations::DescribeAggregationAuthorizationsError,
1115 R,
1116 >,
1117 > for Error
1118where
1119 R: Send + Sync + std::fmt::Debug + 'static,
1120{
1121 fn from(
1122 err: ::aws_smithy_runtime_api::client::result::SdkError<
1123 crate::operation::describe_aggregation_authorizations::DescribeAggregationAuthorizationsError,
1124 R,
1125 >,
1126 ) -> Self {
1127 match err {
1128 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1129 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1130 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1131 source: err.into(),
1132 }),
1133 }
1134 }
1135}
1136impl From<crate::operation::describe_aggregation_authorizations::DescribeAggregationAuthorizationsError> for Error {
1137 fn from(err: crate::operation::describe_aggregation_authorizations::DescribeAggregationAuthorizationsError) -> Self {
1138 match err {
1139 crate::operation::describe_aggregation_authorizations::DescribeAggregationAuthorizationsError::InvalidLimitException(inner) => {
1140 Error::InvalidLimitException(inner)
1141 }
1142 crate::operation::describe_aggregation_authorizations::DescribeAggregationAuthorizationsError::InvalidNextTokenException(inner) => {
1143 Error::InvalidNextTokenException(inner)
1144 }
1145 crate::operation::describe_aggregation_authorizations::DescribeAggregationAuthorizationsError::InvalidParameterValueException(inner) => {
1146 Error::InvalidParameterValueException(inner)
1147 }
1148 crate::operation::describe_aggregation_authorizations::DescribeAggregationAuthorizationsError::Unhandled(inner) => {
1149 Error::Unhandled(inner)
1150 }
1151 }
1152 }
1153}
1154impl<R>
1155 From<
1156 ::aws_smithy_runtime_api::client::result::SdkError<
1157 crate::operation::describe_compliance_by_config_rule::DescribeComplianceByConfigRuleError,
1158 R,
1159 >,
1160 > for Error
1161where
1162 R: Send + Sync + std::fmt::Debug + 'static,
1163{
1164 fn from(
1165 err: ::aws_smithy_runtime_api::client::result::SdkError<
1166 crate::operation::describe_compliance_by_config_rule::DescribeComplianceByConfigRuleError,
1167 R,
1168 >,
1169 ) -> Self {
1170 match err {
1171 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1172 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1173 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1174 source: err.into(),
1175 }),
1176 }
1177 }
1178}
1179impl From<crate::operation::describe_compliance_by_config_rule::DescribeComplianceByConfigRuleError> for Error {
1180 fn from(err: crate::operation::describe_compliance_by_config_rule::DescribeComplianceByConfigRuleError) -> Self {
1181 match err {
1182 crate::operation::describe_compliance_by_config_rule::DescribeComplianceByConfigRuleError::InvalidNextTokenException(inner) => {
1183 Error::InvalidNextTokenException(inner)
1184 }
1185 crate::operation::describe_compliance_by_config_rule::DescribeComplianceByConfigRuleError::InvalidParameterValueException(inner) => {
1186 Error::InvalidParameterValueException(inner)
1187 }
1188 crate::operation::describe_compliance_by_config_rule::DescribeComplianceByConfigRuleError::NoSuchConfigRuleException(inner) => {
1189 Error::NoSuchConfigRuleException(inner)
1190 }
1191 crate::operation::describe_compliance_by_config_rule::DescribeComplianceByConfigRuleError::Unhandled(inner) => Error::Unhandled(inner),
1192 }
1193 }
1194}
1195impl<R>
1196 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_compliance_by_resource::DescribeComplianceByResourceError, R>>
1197 for Error
1198where
1199 R: Send + Sync + std::fmt::Debug + 'static,
1200{
1201 fn from(
1202 err: ::aws_smithy_runtime_api::client::result::SdkError<
1203 crate::operation::describe_compliance_by_resource::DescribeComplianceByResourceError,
1204 R,
1205 >,
1206 ) -> Self {
1207 match err {
1208 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1209 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1210 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1211 source: err.into(),
1212 }),
1213 }
1214 }
1215}
1216impl From<crate::operation::describe_compliance_by_resource::DescribeComplianceByResourceError> for Error {
1217 fn from(err: crate::operation::describe_compliance_by_resource::DescribeComplianceByResourceError) -> Self {
1218 match err {
1219 crate::operation::describe_compliance_by_resource::DescribeComplianceByResourceError::InvalidNextTokenException(inner) => {
1220 Error::InvalidNextTokenException(inner)
1221 }
1222 crate::operation::describe_compliance_by_resource::DescribeComplianceByResourceError::InvalidParameterValueException(inner) => {
1223 Error::InvalidParameterValueException(inner)
1224 }
1225 crate::operation::describe_compliance_by_resource::DescribeComplianceByResourceError::Unhandled(inner) => Error::Unhandled(inner),
1226 }
1227 }
1228}
1229impl<R>
1230 From<
1231 ::aws_smithy_runtime_api::client::result::SdkError<
1232 crate::operation::describe_config_rule_evaluation_status::DescribeConfigRuleEvaluationStatusError,
1233 R,
1234 >,
1235 > for Error
1236where
1237 R: Send + Sync + std::fmt::Debug + 'static,
1238{
1239 fn from(
1240 err: ::aws_smithy_runtime_api::client::result::SdkError<
1241 crate::operation::describe_config_rule_evaluation_status::DescribeConfigRuleEvaluationStatusError,
1242 R,
1243 >,
1244 ) -> Self {
1245 match err {
1246 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1247 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1248 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1249 source: err.into(),
1250 }),
1251 }
1252 }
1253}
1254impl From<crate::operation::describe_config_rule_evaluation_status::DescribeConfigRuleEvaluationStatusError> for Error {
1255 fn from(err: crate::operation::describe_config_rule_evaluation_status::DescribeConfigRuleEvaluationStatusError) -> Self {
1256 match err {
1257 crate::operation::describe_config_rule_evaluation_status::DescribeConfigRuleEvaluationStatusError::InvalidNextTokenException(inner) => {
1258 Error::InvalidNextTokenException(inner)
1259 }
1260 crate::operation::describe_config_rule_evaluation_status::DescribeConfigRuleEvaluationStatusError::InvalidParameterValueException(
1261 inner,
1262 ) => Error::InvalidParameterValueException(inner),
1263 crate::operation::describe_config_rule_evaluation_status::DescribeConfigRuleEvaluationStatusError::NoSuchConfigRuleException(inner) => {
1264 Error::NoSuchConfigRuleException(inner)
1265 }
1266 crate::operation::describe_config_rule_evaluation_status::DescribeConfigRuleEvaluationStatusError::Unhandled(inner) => {
1267 Error::Unhandled(inner)
1268 }
1269 }
1270 }
1271}
1272impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_config_rules::DescribeConfigRulesError, R>> for Error
1273where
1274 R: Send + Sync + std::fmt::Debug + 'static,
1275{
1276 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_config_rules::DescribeConfigRulesError, R>) -> 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::describe_config_rules::DescribeConfigRulesError> for Error {
1287 fn from(err: crate::operation::describe_config_rules::DescribeConfigRulesError) -> Self {
1288 match err {
1289 crate::operation::describe_config_rules::DescribeConfigRulesError::InvalidNextTokenException(inner) => {
1290 Error::InvalidNextTokenException(inner)
1291 }
1292 crate::operation::describe_config_rules::DescribeConfigRulesError::InvalidParameterValueException(inner) => {
1293 Error::InvalidParameterValueException(inner)
1294 }
1295 crate::operation::describe_config_rules::DescribeConfigRulesError::NoSuchConfigRuleException(inner) => {
1296 Error::NoSuchConfigRuleException(inner)
1297 }
1298 crate::operation::describe_config_rules::DescribeConfigRulesError::Unhandled(inner) => Error::Unhandled(inner),
1299 }
1300 }
1301}
1302impl<R>
1303 From<
1304 ::aws_smithy_runtime_api::client::result::SdkError<
1305 crate::operation::describe_configuration_aggregators::DescribeConfigurationAggregatorsError,
1306 R,
1307 >,
1308 > for Error
1309where
1310 R: Send + Sync + std::fmt::Debug + 'static,
1311{
1312 fn from(
1313 err: ::aws_smithy_runtime_api::client::result::SdkError<
1314 crate::operation::describe_configuration_aggregators::DescribeConfigurationAggregatorsError,
1315 R,
1316 >,
1317 ) -> Self {
1318 match err {
1319 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1320 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1321 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1322 source: err.into(),
1323 }),
1324 }
1325 }
1326}
1327impl From<crate::operation::describe_configuration_aggregators::DescribeConfigurationAggregatorsError> for Error {
1328 fn from(err: crate::operation::describe_configuration_aggregators::DescribeConfigurationAggregatorsError) -> Self {
1329 match err {
1330 crate::operation::describe_configuration_aggregators::DescribeConfigurationAggregatorsError::InvalidLimitException(inner) => {
1331 Error::InvalidLimitException(inner)
1332 }
1333 crate::operation::describe_configuration_aggregators::DescribeConfigurationAggregatorsError::InvalidNextTokenException(inner) => {
1334 Error::InvalidNextTokenException(inner)
1335 }
1336 crate::operation::describe_configuration_aggregators::DescribeConfigurationAggregatorsError::InvalidParameterValueException(inner) => {
1337 Error::InvalidParameterValueException(inner)
1338 }
1339 crate::operation::describe_configuration_aggregators::DescribeConfigurationAggregatorsError::NoSuchConfigurationAggregatorException(
1340 inner,
1341 ) => Error::NoSuchConfigurationAggregatorException(inner),
1342 crate::operation::describe_configuration_aggregators::DescribeConfigurationAggregatorsError::Unhandled(inner) => Error::Unhandled(inner),
1343 }
1344 }
1345}
1346impl<R>
1347 From<
1348 ::aws_smithy_runtime_api::client::result::SdkError<
1349 crate::operation::describe_configuration_aggregator_sources_status::DescribeConfigurationAggregatorSourcesStatusError,
1350 R,
1351 >,
1352 > for Error
1353where
1354 R: Send + Sync + std::fmt::Debug + 'static,
1355{
1356 fn from(
1357 err: ::aws_smithy_runtime_api::client::result::SdkError<
1358 crate::operation::describe_configuration_aggregator_sources_status::DescribeConfigurationAggregatorSourcesStatusError,
1359 R,
1360 >,
1361 ) -> Self {
1362 match err {
1363 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1364 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1365 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1366 source: err.into(),
1367 }),
1368 }
1369 }
1370}
1371impl From<crate::operation::describe_configuration_aggregator_sources_status::DescribeConfigurationAggregatorSourcesStatusError> for Error {
1372 fn from(err: crate::operation::describe_configuration_aggregator_sources_status::DescribeConfigurationAggregatorSourcesStatusError) -> Self {
1373 match err {
1374 crate::operation::describe_configuration_aggregator_sources_status::DescribeConfigurationAggregatorSourcesStatusError::InvalidLimitException(inner) => Error::InvalidLimitException(inner),
1375 crate::operation::describe_configuration_aggregator_sources_status::DescribeConfigurationAggregatorSourcesStatusError::InvalidNextTokenException(inner) => Error::InvalidNextTokenException(inner),
1376 crate::operation::describe_configuration_aggregator_sources_status::DescribeConfigurationAggregatorSourcesStatusError::InvalidParameterValueException(inner) => Error::InvalidParameterValueException(inner),
1377 crate::operation::describe_configuration_aggregator_sources_status::DescribeConfigurationAggregatorSourcesStatusError::NoSuchConfigurationAggregatorException(inner) => Error::NoSuchConfigurationAggregatorException(inner),
1378 crate::operation::describe_configuration_aggregator_sources_status::DescribeConfigurationAggregatorSourcesStatusError::Unhandled(inner) => Error::Unhandled(inner),
1379 }
1380 }
1381}
1382impl<R>
1383 From<
1384 ::aws_smithy_runtime_api::client::result::SdkError<
1385 crate::operation::describe_configuration_recorders::DescribeConfigurationRecordersError,
1386 R,
1387 >,
1388 > for Error
1389where
1390 R: Send + Sync + std::fmt::Debug + 'static,
1391{
1392 fn from(
1393 err: ::aws_smithy_runtime_api::client::result::SdkError<
1394 crate::operation::describe_configuration_recorders::DescribeConfigurationRecordersError,
1395 R,
1396 >,
1397 ) -> Self {
1398 match err {
1399 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1400 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1401 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1402 source: err.into(),
1403 }),
1404 }
1405 }
1406}
1407impl From<crate::operation::describe_configuration_recorders::DescribeConfigurationRecordersError> for Error {
1408 fn from(err: crate::operation::describe_configuration_recorders::DescribeConfigurationRecordersError) -> Self {
1409 match err {
1410 crate::operation::describe_configuration_recorders::DescribeConfigurationRecordersError::NoSuchConfigurationRecorderException(inner) => {
1411 Error::NoSuchConfigurationRecorderException(inner)
1412 }
1413 crate::operation::describe_configuration_recorders::DescribeConfigurationRecordersError::ValidationException(inner) => {
1414 Error::ValidationException(inner)
1415 }
1416 crate::operation::describe_configuration_recorders::DescribeConfigurationRecordersError::Unhandled(inner) => Error::Unhandled(inner),
1417 }
1418 }
1419}
1420impl<R>
1421 From<
1422 ::aws_smithy_runtime_api::client::result::SdkError<
1423 crate::operation::describe_configuration_recorder_status::DescribeConfigurationRecorderStatusError,
1424 R,
1425 >,
1426 > for Error
1427where
1428 R: Send + Sync + std::fmt::Debug + 'static,
1429{
1430 fn from(
1431 err: ::aws_smithy_runtime_api::client::result::SdkError<
1432 crate::operation::describe_configuration_recorder_status::DescribeConfigurationRecorderStatusError,
1433 R,
1434 >,
1435 ) -> Self {
1436 match err {
1437 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1438 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1439 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1440 source: err.into(),
1441 }),
1442 }
1443 }
1444}
1445impl From<crate::operation::describe_configuration_recorder_status::DescribeConfigurationRecorderStatusError> for Error {
1446 fn from(err: crate::operation::describe_configuration_recorder_status::DescribeConfigurationRecorderStatusError) -> Self {
1447 match err {
1448 crate::operation::describe_configuration_recorder_status::DescribeConfigurationRecorderStatusError::NoSuchConfigurationRecorderException(inner) => Error::NoSuchConfigurationRecorderException(inner),
1449 crate::operation::describe_configuration_recorder_status::DescribeConfigurationRecorderStatusError::ValidationException(inner) => Error::ValidationException(inner),
1450 crate::operation::describe_configuration_recorder_status::DescribeConfigurationRecorderStatusError::Unhandled(inner) => Error::Unhandled(inner),
1451 }
1452 }
1453}
1454impl<R>
1455 From<
1456 ::aws_smithy_runtime_api::client::result::SdkError<
1457 crate::operation::describe_conformance_pack_compliance::DescribeConformancePackComplianceError,
1458 R,
1459 >,
1460 > for Error
1461where
1462 R: Send + Sync + std::fmt::Debug + 'static,
1463{
1464 fn from(
1465 err: ::aws_smithy_runtime_api::client::result::SdkError<
1466 crate::operation::describe_conformance_pack_compliance::DescribeConformancePackComplianceError,
1467 R,
1468 >,
1469 ) -> Self {
1470 match err {
1471 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1472 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1473 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1474 source: err.into(),
1475 }),
1476 }
1477 }
1478}
1479impl From<crate::operation::describe_conformance_pack_compliance::DescribeConformancePackComplianceError> for Error {
1480 fn from(err: crate::operation::describe_conformance_pack_compliance::DescribeConformancePackComplianceError) -> Self {
1481 match err {
1482 crate::operation::describe_conformance_pack_compliance::DescribeConformancePackComplianceError::InvalidLimitException(inner) => Error::InvalidLimitException(inner),
1483 crate::operation::describe_conformance_pack_compliance::DescribeConformancePackComplianceError::InvalidNextTokenException(inner) => Error::InvalidNextTokenException(inner),
1484 crate::operation::describe_conformance_pack_compliance::DescribeConformancePackComplianceError::InvalidParameterValueException(inner) => Error::InvalidParameterValueException(inner),
1485 crate::operation::describe_conformance_pack_compliance::DescribeConformancePackComplianceError::NoSuchConfigRuleInConformancePackException(inner) => Error::NoSuchConfigRuleInConformancePackException(inner),
1486 crate::operation::describe_conformance_pack_compliance::DescribeConformancePackComplianceError::NoSuchConformancePackException(inner) => Error::NoSuchConformancePackException(inner),
1487 crate::operation::describe_conformance_pack_compliance::DescribeConformancePackComplianceError::Unhandled(inner) => Error::Unhandled(inner),
1488 }
1489 }
1490}
1491impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_conformance_packs::DescribeConformancePacksError, R>>
1492 for Error
1493where
1494 R: Send + Sync + std::fmt::Debug + 'static,
1495{
1496 fn from(
1497 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_conformance_packs::DescribeConformancePacksError, R>,
1498 ) -> Self {
1499 match err {
1500 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1501 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1502 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1503 source: err.into(),
1504 }),
1505 }
1506 }
1507}
1508impl From<crate::operation::describe_conformance_packs::DescribeConformancePacksError> for Error {
1509 fn from(err: crate::operation::describe_conformance_packs::DescribeConformancePacksError) -> Self {
1510 match err {
1511 crate::operation::describe_conformance_packs::DescribeConformancePacksError::InvalidLimitException(inner) => {
1512 Error::InvalidLimitException(inner)
1513 }
1514 crate::operation::describe_conformance_packs::DescribeConformancePacksError::InvalidNextTokenException(inner) => {
1515 Error::InvalidNextTokenException(inner)
1516 }
1517 crate::operation::describe_conformance_packs::DescribeConformancePacksError::InvalidParameterValueException(inner) => {
1518 Error::InvalidParameterValueException(inner)
1519 }
1520 crate::operation::describe_conformance_packs::DescribeConformancePacksError::NoSuchConformancePackException(inner) => {
1521 Error::NoSuchConformancePackException(inner)
1522 }
1523 crate::operation::describe_conformance_packs::DescribeConformancePacksError::Unhandled(inner) => Error::Unhandled(inner),
1524 }
1525 }
1526}
1527impl<R>
1528 From<
1529 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_conformance_pack_status::DescribeConformancePackStatusError, R>,
1530 > for Error
1531where
1532 R: Send + Sync + std::fmt::Debug + 'static,
1533{
1534 fn from(
1535 err: ::aws_smithy_runtime_api::client::result::SdkError<
1536 crate::operation::describe_conformance_pack_status::DescribeConformancePackStatusError,
1537 R,
1538 >,
1539 ) -> Self {
1540 match err {
1541 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1542 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1543 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1544 source: err.into(),
1545 }),
1546 }
1547 }
1548}
1549impl From<crate::operation::describe_conformance_pack_status::DescribeConformancePackStatusError> for Error {
1550 fn from(err: crate::operation::describe_conformance_pack_status::DescribeConformancePackStatusError) -> Self {
1551 match err {
1552 crate::operation::describe_conformance_pack_status::DescribeConformancePackStatusError::InvalidLimitException(inner) => {
1553 Error::InvalidLimitException(inner)
1554 }
1555 crate::operation::describe_conformance_pack_status::DescribeConformancePackStatusError::InvalidNextTokenException(inner) => {
1556 Error::InvalidNextTokenException(inner)
1557 }
1558 crate::operation::describe_conformance_pack_status::DescribeConformancePackStatusError::InvalidParameterValueException(inner) => {
1559 Error::InvalidParameterValueException(inner)
1560 }
1561 crate::operation::describe_conformance_pack_status::DescribeConformancePackStatusError::Unhandled(inner) => Error::Unhandled(inner),
1562 }
1563 }
1564}
1565impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_delivery_channels::DescribeDeliveryChannelsError, R>>
1566 for Error
1567where
1568 R: Send + Sync + std::fmt::Debug + 'static,
1569{
1570 fn from(
1571 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_delivery_channels::DescribeDeliveryChannelsError, R>,
1572 ) -> Self {
1573 match err {
1574 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1575 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1576 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1577 source: err.into(),
1578 }),
1579 }
1580 }
1581}
1582impl From<crate::operation::describe_delivery_channels::DescribeDeliveryChannelsError> for Error {
1583 fn from(err: crate::operation::describe_delivery_channels::DescribeDeliveryChannelsError) -> Self {
1584 match err {
1585 crate::operation::describe_delivery_channels::DescribeDeliveryChannelsError::NoSuchDeliveryChannelException(inner) => {
1586 Error::NoSuchDeliveryChannelException(inner)
1587 }
1588 crate::operation::describe_delivery_channels::DescribeDeliveryChannelsError::Unhandled(inner) => Error::Unhandled(inner),
1589 }
1590 }
1591}
1592impl<R>
1593 From<
1594 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_delivery_channel_status::DescribeDeliveryChannelStatusError, R>,
1595 > for Error
1596where
1597 R: Send + Sync + std::fmt::Debug + 'static,
1598{
1599 fn from(
1600 err: ::aws_smithy_runtime_api::client::result::SdkError<
1601 crate::operation::describe_delivery_channel_status::DescribeDeliveryChannelStatusError,
1602 R,
1603 >,
1604 ) -> Self {
1605 match err {
1606 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1607 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1608 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1609 source: err.into(),
1610 }),
1611 }
1612 }
1613}
1614impl From<crate::operation::describe_delivery_channel_status::DescribeDeliveryChannelStatusError> for Error {
1615 fn from(err: crate::operation::describe_delivery_channel_status::DescribeDeliveryChannelStatusError) -> Self {
1616 match err {
1617 crate::operation::describe_delivery_channel_status::DescribeDeliveryChannelStatusError::NoSuchDeliveryChannelException(inner) => {
1618 Error::NoSuchDeliveryChannelException(inner)
1619 }
1620 crate::operation::describe_delivery_channel_status::DescribeDeliveryChannelStatusError::Unhandled(inner) => Error::Unhandled(inner),
1621 }
1622 }
1623}
1624impl<R>
1625 From<
1626 ::aws_smithy_runtime_api::client::result::SdkError<
1627 crate::operation::describe_organization_config_rules::DescribeOrganizationConfigRulesError,
1628 R,
1629 >,
1630 > for Error
1631where
1632 R: Send + Sync + std::fmt::Debug + 'static,
1633{
1634 fn from(
1635 err: ::aws_smithy_runtime_api::client::result::SdkError<
1636 crate::operation::describe_organization_config_rules::DescribeOrganizationConfigRulesError,
1637 R,
1638 >,
1639 ) -> Self {
1640 match err {
1641 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1642 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1643 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1644 source: err.into(),
1645 }),
1646 }
1647 }
1648}
1649impl From<crate::operation::describe_organization_config_rules::DescribeOrganizationConfigRulesError> for Error {
1650 fn from(err: crate::operation::describe_organization_config_rules::DescribeOrganizationConfigRulesError) -> Self {
1651 match err {
1652 crate::operation::describe_organization_config_rules::DescribeOrganizationConfigRulesError::InvalidLimitException(inner) => {
1653 Error::InvalidLimitException(inner)
1654 }
1655 crate::operation::describe_organization_config_rules::DescribeOrganizationConfigRulesError::InvalidNextTokenException(inner) => {
1656 Error::InvalidNextTokenException(inner)
1657 }
1658 crate::operation::describe_organization_config_rules::DescribeOrganizationConfigRulesError::NoSuchOrganizationConfigRuleException(
1659 inner,
1660 ) => Error::NoSuchOrganizationConfigRuleException(inner),
1661 crate::operation::describe_organization_config_rules::DescribeOrganizationConfigRulesError::OrganizationAccessDeniedException(inner) => {
1662 Error::OrganizationAccessDeniedException(inner)
1663 }
1664 crate::operation::describe_organization_config_rules::DescribeOrganizationConfigRulesError::Unhandled(inner) => Error::Unhandled(inner),
1665 }
1666 }
1667}
1668impl<R>
1669 From<
1670 ::aws_smithy_runtime_api::client::result::SdkError<
1671 crate::operation::describe_organization_config_rule_statuses::DescribeOrganizationConfigRuleStatusesError,
1672 R,
1673 >,
1674 > for Error
1675where
1676 R: Send + Sync + std::fmt::Debug + 'static,
1677{
1678 fn from(
1679 err: ::aws_smithy_runtime_api::client::result::SdkError<
1680 crate::operation::describe_organization_config_rule_statuses::DescribeOrganizationConfigRuleStatusesError,
1681 R,
1682 >,
1683 ) -> Self {
1684 match err {
1685 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1686 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1687 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1688 source: err.into(),
1689 }),
1690 }
1691 }
1692}
1693impl From<crate::operation::describe_organization_config_rule_statuses::DescribeOrganizationConfigRuleStatusesError> for Error {
1694 fn from(err: crate::operation::describe_organization_config_rule_statuses::DescribeOrganizationConfigRuleStatusesError) -> Self {
1695 match err {
1696 crate::operation::describe_organization_config_rule_statuses::DescribeOrganizationConfigRuleStatusesError::InvalidLimitException(inner) => Error::InvalidLimitException(inner),
1697 crate::operation::describe_organization_config_rule_statuses::DescribeOrganizationConfigRuleStatusesError::InvalidNextTokenException(inner) => Error::InvalidNextTokenException(inner),
1698 crate::operation::describe_organization_config_rule_statuses::DescribeOrganizationConfigRuleStatusesError::NoSuchOrganizationConfigRuleException(inner) => Error::NoSuchOrganizationConfigRuleException(inner),
1699 crate::operation::describe_organization_config_rule_statuses::DescribeOrganizationConfigRuleStatusesError::OrganizationAccessDeniedException(inner) => Error::OrganizationAccessDeniedException(inner),
1700 crate::operation::describe_organization_config_rule_statuses::DescribeOrganizationConfigRuleStatusesError::Unhandled(inner) => Error::Unhandled(inner),
1701 }
1702 }
1703}
1704impl<R>
1705 From<
1706 ::aws_smithy_runtime_api::client::result::SdkError<
1707 crate::operation::describe_organization_conformance_packs::DescribeOrganizationConformancePacksError,
1708 R,
1709 >,
1710 > for Error
1711where
1712 R: Send + Sync + std::fmt::Debug + 'static,
1713{
1714 fn from(
1715 err: ::aws_smithy_runtime_api::client::result::SdkError<
1716 crate::operation::describe_organization_conformance_packs::DescribeOrganizationConformancePacksError,
1717 R,
1718 >,
1719 ) -> Self {
1720 match err {
1721 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1722 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1723 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1724 source: err.into(),
1725 }),
1726 }
1727 }
1728}
1729impl From<crate::operation::describe_organization_conformance_packs::DescribeOrganizationConformancePacksError> for Error {
1730 fn from(err: crate::operation::describe_organization_conformance_packs::DescribeOrganizationConformancePacksError) -> Self {
1731 match err {
1732 crate::operation::describe_organization_conformance_packs::DescribeOrganizationConformancePacksError::InvalidLimitException(inner) => Error::InvalidLimitException(inner),
1733 crate::operation::describe_organization_conformance_packs::DescribeOrganizationConformancePacksError::InvalidNextTokenException(inner) => Error::InvalidNextTokenException(inner),
1734 crate::operation::describe_organization_conformance_packs::DescribeOrganizationConformancePacksError::NoSuchOrganizationConformancePackException(inner) => Error::NoSuchOrganizationConformancePackException(inner),
1735 crate::operation::describe_organization_conformance_packs::DescribeOrganizationConformancePacksError::OrganizationAccessDeniedException(inner) => Error::OrganizationAccessDeniedException(inner),
1736 crate::operation::describe_organization_conformance_packs::DescribeOrganizationConformancePacksError::Unhandled(inner) => Error::Unhandled(inner),
1737 }
1738 }
1739}
1740impl<R>
1741 From<
1742 ::aws_smithy_runtime_api::client::result::SdkError<
1743 crate::operation::describe_organization_conformance_pack_statuses::DescribeOrganizationConformancePackStatusesError,
1744 R,
1745 >,
1746 > for Error
1747where
1748 R: Send + Sync + std::fmt::Debug + 'static,
1749{
1750 fn from(
1751 err: ::aws_smithy_runtime_api::client::result::SdkError<
1752 crate::operation::describe_organization_conformance_pack_statuses::DescribeOrganizationConformancePackStatusesError,
1753 R,
1754 >,
1755 ) -> Self {
1756 match err {
1757 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1758 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1759 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1760 source: err.into(),
1761 }),
1762 }
1763 }
1764}
1765impl From<crate::operation::describe_organization_conformance_pack_statuses::DescribeOrganizationConformancePackStatusesError> for Error {
1766 fn from(err: crate::operation::describe_organization_conformance_pack_statuses::DescribeOrganizationConformancePackStatusesError) -> Self {
1767 match err {
1768 crate::operation::describe_organization_conformance_pack_statuses::DescribeOrganizationConformancePackStatusesError::InvalidLimitException(inner) => Error::InvalidLimitException(inner),
1769 crate::operation::describe_organization_conformance_pack_statuses::DescribeOrganizationConformancePackStatusesError::InvalidNextTokenException(inner) => Error::InvalidNextTokenException(inner),
1770 crate::operation::describe_organization_conformance_pack_statuses::DescribeOrganizationConformancePackStatusesError::NoSuchOrganizationConformancePackException(inner) => Error::NoSuchOrganizationConformancePackException(inner),
1771 crate::operation::describe_organization_conformance_pack_statuses::DescribeOrganizationConformancePackStatusesError::OrganizationAccessDeniedException(inner) => Error::OrganizationAccessDeniedException(inner),
1772 crate::operation::describe_organization_conformance_pack_statuses::DescribeOrganizationConformancePackStatusesError::Unhandled(inner) => Error::Unhandled(inner),
1773 }
1774 }
1775}
1776impl<R>
1777 From<
1778 ::aws_smithy_runtime_api::client::result::SdkError<
1779 crate::operation::describe_pending_aggregation_requests::DescribePendingAggregationRequestsError,
1780 R,
1781 >,
1782 > for Error
1783where
1784 R: Send + Sync + std::fmt::Debug + 'static,
1785{
1786 fn from(
1787 err: ::aws_smithy_runtime_api::client::result::SdkError<
1788 crate::operation::describe_pending_aggregation_requests::DescribePendingAggregationRequestsError,
1789 R,
1790 >,
1791 ) -> Self {
1792 match err {
1793 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1794 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1795 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1796 source: err.into(),
1797 }),
1798 }
1799 }
1800}
1801impl From<crate::operation::describe_pending_aggregation_requests::DescribePendingAggregationRequestsError> for Error {
1802 fn from(err: crate::operation::describe_pending_aggregation_requests::DescribePendingAggregationRequestsError) -> Self {
1803 match err {
1804 crate::operation::describe_pending_aggregation_requests::DescribePendingAggregationRequestsError::InvalidLimitException(inner) => {
1805 Error::InvalidLimitException(inner)
1806 }
1807 crate::operation::describe_pending_aggregation_requests::DescribePendingAggregationRequestsError::InvalidNextTokenException(inner) => {
1808 Error::InvalidNextTokenException(inner)
1809 }
1810 crate::operation::describe_pending_aggregation_requests::DescribePendingAggregationRequestsError::InvalidParameterValueException(
1811 inner,
1812 ) => Error::InvalidParameterValueException(inner),
1813 crate::operation::describe_pending_aggregation_requests::DescribePendingAggregationRequestsError::Unhandled(inner) => {
1814 Error::Unhandled(inner)
1815 }
1816 }
1817 }
1818}
1819impl<R>
1820 From<
1821 ::aws_smithy_runtime_api::client::result::SdkError<
1822 crate::operation::describe_remediation_configurations::DescribeRemediationConfigurationsError,
1823 R,
1824 >,
1825 > for Error
1826where
1827 R: Send + Sync + std::fmt::Debug + 'static,
1828{
1829 fn from(
1830 err: ::aws_smithy_runtime_api::client::result::SdkError<
1831 crate::operation::describe_remediation_configurations::DescribeRemediationConfigurationsError,
1832 R,
1833 >,
1834 ) -> Self {
1835 match err {
1836 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1837 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1838 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1839 source: err.into(),
1840 }),
1841 }
1842 }
1843}
1844impl From<crate::operation::describe_remediation_configurations::DescribeRemediationConfigurationsError> for Error {
1845 fn from(err: crate::operation::describe_remediation_configurations::DescribeRemediationConfigurationsError) -> Self {
1846 match err {
1847 crate::operation::describe_remediation_configurations::DescribeRemediationConfigurationsError::Unhandled(inner) => {
1848 Error::Unhandled(inner)
1849 }
1850 }
1851 }
1852}
1853impl<R>
1854 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_remediation_exceptions::DescribeRemediationExceptionsError, R>>
1855 for Error
1856where
1857 R: Send + Sync + std::fmt::Debug + 'static,
1858{
1859 fn from(
1860 err: ::aws_smithy_runtime_api::client::result::SdkError<
1861 crate::operation::describe_remediation_exceptions::DescribeRemediationExceptionsError,
1862 R,
1863 >,
1864 ) -> Self {
1865 match err {
1866 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1867 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1868 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1869 source: err.into(),
1870 }),
1871 }
1872 }
1873}
1874impl From<crate::operation::describe_remediation_exceptions::DescribeRemediationExceptionsError> for Error {
1875 fn from(err: crate::operation::describe_remediation_exceptions::DescribeRemediationExceptionsError) -> Self {
1876 match err {
1877 crate::operation::describe_remediation_exceptions::DescribeRemediationExceptionsError::InvalidNextTokenException(inner) => {
1878 Error::InvalidNextTokenException(inner)
1879 }
1880 crate::operation::describe_remediation_exceptions::DescribeRemediationExceptionsError::InvalidParameterValueException(inner) => {
1881 Error::InvalidParameterValueException(inner)
1882 }
1883 crate::operation::describe_remediation_exceptions::DescribeRemediationExceptionsError::Unhandled(inner) => Error::Unhandled(inner),
1884 }
1885 }
1886}
1887impl<R>
1888 From<
1889 ::aws_smithy_runtime_api::client::result::SdkError<
1890 crate::operation::describe_remediation_execution_status::DescribeRemediationExecutionStatusError,
1891 R,
1892 >,
1893 > for Error
1894where
1895 R: Send + Sync + std::fmt::Debug + 'static,
1896{
1897 fn from(
1898 err: ::aws_smithy_runtime_api::client::result::SdkError<
1899 crate::operation::describe_remediation_execution_status::DescribeRemediationExecutionStatusError,
1900 R,
1901 >,
1902 ) -> Self {
1903 match err {
1904 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1905 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1906 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1907 source: err.into(),
1908 }),
1909 }
1910 }
1911}
1912impl From<crate::operation::describe_remediation_execution_status::DescribeRemediationExecutionStatusError> for Error {
1913 fn from(err: crate::operation::describe_remediation_execution_status::DescribeRemediationExecutionStatusError) -> Self {
1914 match err {
1915 crate::operation::describe_remediation_execution_status::DescribeRemediationExecutionStatusError::InvalidNextTokenException(inner) => Error::InvalidNextTokenException(inner),
1916 crate::operation::describe_remediation_execution_status::DescribeRemediationExecutionStatusError::InvalidParameterValueException(inner) => Error::InvalidParameterValueException(inner),
1917 crate::operation::describe_remediation_execution_status::DescribeRemediationExecutionStatusError::NoSuchRemediationConfigurationException(inner) => Error::NoSuchRemediationConfigurationException(inner),
1918 crate::operation::describe_remediation_execution_status::DescribeRemediationExecutionStatusError::Unhandled(inner) => Error::Unhandled(inner),
1919 }
1920 }
1921}
1922impl<R>
1923 From<
1924 ::aws_smithy_runtime_api::client::result::SdkError<
1925 crate::operation::describe_retention_configurations::DescribeRetentionConfigurationsError,
1926 R,
1927 >,
1928 > for Error
1929where
1930 R: Send + Sync + std::fmt::Debug + 'static,
1931{
1932 fn from(
1933 err: ::aws_smithy_runtime_api::client::result::SdkError<
1934 crate::operation::describe_retention_configurations::DescribeRetentionConfigurationsError,
1935 R,
1936 >,
1937 ) -> Self {
1938 match err {
1939 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1940 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1941 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1942 source: err.into(),
1943 }),
1944 }
1945 }
1946}
1947impl From<crate::operation::describe_retention_configurations::DescribeRetentionConfigurationsError> for Error {
1948 fn from(err: crate::operation::describe_retention_configurations::DescribeRetentionConfigurationsError) -> Self {
1949 match err {
1950 crate::operation::describe_retention_configurations::DescribeRetentionConfigurationsError::InvalidNextTokenException(inner) => {
1951 Error::InvalidNextTokenException(inner)
1952 }
1953 crate::operation::describe_retention_configurations::DescribeRetentionConfigurationsError::InvalidParameterValueException(inner) => {
1954 Error::InvalidParameterValueException(inner)
1955 }
1956 crate::operation::describe_retention_configurations::DescribeRetentionConfigurationsError::NoSuchRetentionConfigurationException(
1957 inner,
1958 ) => Error::NoSuchRetentionConfigurationException(inner),
1959 crate::operation::describe_retention_configurations::DescribeRetentionConfigurationsError::Unhandled(inner) => Error::Unhandled(inner),
1960 }
1961 }
1962}
1963impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_resource_types::DisassociateResourceTypesError, R>>
1964 for Error
1965where
1966 R: Send + Sync + std::fmt::Debug + 'static,
1967{
1968 fn from(
1969 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_resource_types::DisassociateResourceTypesError, R>,
1970 ) -> Self {
1971 match err {
1972 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1973 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1974 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1975 source: err.into(),
1976 }),
1977 }
1978 }
1979}
1980impl From<crate::operation::disassociate_resource_types::DisassociateResourceTypesError> for Error {
1981 fn from(err: crate::operation::disassociate_resource_types::DisassociateResourceTypesError) -> Self {
1982 match err {
1983 crate::operation::disassociate_resource_types::DisassociateResourceTypesError::ConflictException(inner) => {
1984 Error::ConflictException(inner)
1985 }
1986 crate::operation::disassociate_resource_types::DisassociateResourceTypesError::NoSuchConfigurationRecorderException(inner) => {
1987 Error::NoSuchConfigurationRecorderException(inner)
1988 }
1989 crate::operation::disassociate_resource_types::DisassociateResourceTypesError::ValidationException(inner) => {
1990 Error::ValidationException(inner)
1991 }
1992 crate::operation::disassociate_resource_types::DisassociateResourceTypesError::Unhandled(inner) => Error::Unhandled(inner),
1993 }
1994 }
1995}
1996impl<R>
1997 From<
1998 ::aws_smithy_runtime_api::client::result::SdkError<
1999 crate::operation::get_aggregate_compliance_details_by_config_rule::GetAggregateComplianceDetailsByConfigRuleError,
2000 R,
2001 >,
2002 > for Error
2003where
2004 R: Send + Sync + std::fmt::Debug + 'static,
2005{
2006 fn from(
2007 err: ::aws_smithy_runtime_api::client::result::SdkError<
2008 crate::operation::get_aggregate_compliance_details_by_config_rule::GetAggregateComplianceDetailsByConfigRuleError,
2009 R,
2010 >,
2011 ) -> Self {
2012 match err {
2013 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2014 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2015 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2016 source: err.into(),
2017 }),
2018 }
2019 }
2020}
2021impl From<crate::operation::get_aggregate_compliance_details_by_config_rule::GetAggregateComplianceDetailsByConfigRuleError> for Error {
2022 fn from(err: crate::operation::get_aggregate_compliance_details_by_config_rule::GetAggregateComplianceDetailsByConfigRuleError) -> Self {
2023 match err {
2024 crate::operation::get_aggregate_compliance_details_by_config_rule::GetAggregateComplianceDetailsByConfigRuleError::InvalidLimitException(inner) => Error::InvalidLimitException(inner),
2025 crate::operation::get_aggregate_compliance_details_by_config_rule::GetAggregateComplianceDetailsByConfigRuleError::InvalidNextTokenException(inner) => Error::InvalidNextTokenException(inner),
2026 crate::operation::get_aggregate_compliance_details_by_config_rule::GetAggregateComplianceDetailsByConfigRuleError::NoSuchConfigurationAggregatorException(inner) => Error::NoSuchConfigurationAggregatorException(inner),
2027 crate::operation::get_aggregate_compliance_details_by_config_rule::GetAggregateComplianceDetailsByConfigRuleError::ValidationException(inner) => Error::ValidationException(inner),
2028 crate::operation::get_aggregate_compliance_details_by_config_rule::GetAggregateComplianceDetailsByConfigRuleError::Unhandled(inner) => Error::Unhandled(inner),
2029 }
2030 }
2031}
2032impl<R>
2033 From<
2034 ::aws_smithy_runtime_api::client::result::SdkError<
2035 crate::operation::get_aggregate_config_rule_compliance_summary::GetAggregateConfigRuleComplianceSummaryError,
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::get_aggregate_config_rule_compliance_summary::GetAggregateConfigRuleComplianceSummaryError,
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::get_aggregate_config_rule_compliance_summary::GetAggregateConfigRuleComplianceSummaryError> for Error {
2058 fn from(err: crate::operation::get_aggregate_config_rule_compliance_summary::GetAggregateConfigRuleComplianceSummaryError) -> Self {
2059 match err {
2060 crate::operation::get_aggregate_config_rule_compliance_summary::GetAggregateConfigRuleComplianceSummaryError::InvalidLimitException(inner) => Error::InvalidLimitException(inner),
2061 crate::operation::get_aggregate_config_rule_compliance_summary::GetAggregateConfigRuleComplianceSummaryError::InvalidNextTokenException(inner) => Error::InvalidNextTokenException(inner),
2062 crate::operation::get_aggregate_config_rule_compliance_summary::GetAggregateConfigRuleComplianceSummaryError::NoSuchConfigurationAggregatorException(inner) => Error::NoSuchConfigurationAggregatorException(inner),
2063 crate::operation::get_aggregate_config_rule_compliance_summary::GetAggregateConfigRuleComplianceSummaryError::ValidationException(inner) => Error::ValidationException(inner),
2064 crate::operation::get_aggregate_config_rule_compliance_summary::GetAggregateConfigRuleComplianceSummaryError::Unhandled(inner) => Error::Unhandled(inner),
2065 }
2066 }
2067}
2068impl<R>
2069 From<
2070 ::aws_smithy_runtime_api::client::result::SdkError<
2071 crate::operation::get_aggregate_conformance_pack_compliance_summary::GetAggregateConformancePackComplianceSummaryError,
2072 R,
2073 >,
2074 > for Error
2075where
2076 R: Send + Sync + std::fmt::Debug + 'static,
2077{
2078 fn from(
2079 err: ::aws_smithy_runtime_api::client::result::SdkError<
2080 crate::operation::get_aggregate_conformance_pack_compliance_summary::GetAggregateConformancePackComplianceSummaryError,
2081 R,
2082 >,
2083 ) -> Self {
2084 match err {
2085 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2086 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2087 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2088 source: err.into(),
2089 }),
2090 }
2091 }
2092}
2093impl From<crate::operation::get_aggregate_conformance_pack_compliance_summary::GetAggregateConformancePackComplianceSummaryError> for Error {
2094 fn from(err: crate::operation::get_aggregate_conformance_pack_compliance_summary::GetAggregateConformancePackComplianceSummaryError) -> Self {
2095 match err {
2096 crate::operation::get_aggregate_conformance_pack_compliance_summary::GetAggregateConformancePackComplianceSummaryError::InvalidLimitException(inner) => Error::InvalidLimitException(inner),
2097 crate::operation::get_aggregate_conformance_pack_compliance_summary::GetAggregateConformancePackComplianceSummaryError::InvalidNextTokenException(inner) => Error::InvalidNextTokenException(inner),
2098 crate::operation::get_aggregate_conformance_pack_compliance_summary::GetAggregateConformancePackComplianceSummaryError::NoSuchConfigurationAggregatorException(inner) => Error::NoSuchConfigurationAggregatorException(inner),
2099 crate::operation::get_aggregate_conformance_pack_compliance_summary::GetAggregateConformancePackComplianceSummaryError::ValidationException(inner) => Error::ValidationException(inner),
2100 crate::operation::get_aggregate_conformance_pack_compliance_summary::GetAggregateConformancePackComplianceSummaryError::Unhandled(inner) => Error::Unhandled(inner),
2101 }
2102 }
2103}
2104impl<R>
2105 From<
2106 ::aws_smithy_runtime_api::client::result::SdkError<
2107 crate::operation::get_aggregate_discovered_resource_counts::GetAggregateDiscoveredResourceCountsError,
2108 R,
2109 >,
2110 > for Error
2111where
2112 R: Send + Sync + std::fmt::Debug + 'static,
2113{
2114 fn from(
2115 err: ::aws_smithy_runtime_api::client::result::SdkError<
2116 crate::operation::get_aggregate_discovered_resource_counts::GetAggregateDiscoveredResourceCountsError,
2117 R,
2118 >,
2119 ) -> Self {
2120 match err {
2121 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2122 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2123 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2124 source: err.into(),
2125 }),
2126 }
2127 }
2128}
2129impl From<crate::operation::get_aggregate_discovered_resource_counts::GetAggregateDiscoveredResourceCountsError> for Error {
2130 fn from(err: crate::operation::get_aggregate_discovered_resource_counts::GetAggregateDiscoveredResourceCountsError) -> Self {
2131 match err {
2132 crate::operation::get_aggregate_discovered_resource_counts::GetAggregateDiscoveredResourceCountsError::InvalidLimitException(inner) => Error::InvalidLimitException(inner),
2133 crate::operation::get_aggregate_discovered_resource_counts::GetAggregateDiscoveredResourceCountsError::InvalidNextTokenException(inner) => Error::InvalidNextTokenException(inner),
2134 crate::operation::get_aggregate_discovered_resource_counts::GetAggregateDiscoveredResourceCountsError::NoSuchConfigurationAggregatorException(inner) => Error::NoSuchConfigurationAggregatorException(inner),
2135 crate::operation::get_aggregate_discovered_resource_counts::GetAggregateDiscoveredResourceCountsError::ValidationException(inner) => Error::ValidationException(inner),
2136 crate::operation::get_aggregate_discovered_resource_counts::GetAggregateDiscoveredResourceCountsError::Unhandled(inner) => Error::Unhandled(inner),
2137 }
2138 }
2139}
2140impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_aggregate_resource_config::GetAggregateResourceConfigError, R>>
2141 for Error
2142where
2143 R: Send + Sync + std::fmt::Debug + 'static,
2144{
2145 fn from(
2146 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_aggregate_resource_config::GetAggregateResourceConfigError, R>,
2147 ) -> Self {
2148 match err {
2149 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2150 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2151 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2152 source: err.into(),
2153 }),
2154 }
2155 }
2156}
2157impl From<crate::operation::get_aggregate_resource_config::GetAggregateResourceConfigError> for Error {
2158 fn from(err: crate::operation::get_aggregate_resource_config::GetAggregateResourceConfigError) -> Self {
2159 match err {
2160 crate::operation::get_aggregate_resource_config::GetAggregateResourceConfigError::NoSuchConfigurationAggregatorException(inner) => {
2161 Error::NoSuchConfigurationAggregatorException(inner)
2162 }
2163 crate::operation::get_aggregate_resource_config::GetAggregateResourceConfigError::OversizedConfigurationItemException(inner) => {
2164 Error::OversizedConfigurationItemException(inner)
2165 }
2166 crate::operation::get_aggregate_resource_config::GetAggregateResourceConfigError::ResourceNotDiscoveredException(inner) => {
2167 Error::ResourceNotDiscoveredException(inner)
2168 }
2169 crate::operation::get_aggregate_resource_config::GetAggregateResourceConfigError::ValidationException(inner) => {
2170 Error::ValidationException(inner)
2171 }
2172 crate::operation::get_aggregate_resource_config::GetAggregateResourceConfigError::Unhandled(inner) => Error::Unhandled(inner),
2173 }
2174 }
2175}
2176impl<R>
2177 From<
2178 ::aws_smithy_runtime_api::client::result::SdkError<
2179 crate::operation::get_compliance_details_by_config_rule::GetComplianceDetailsByConfigRuleError,
2180 R,
2181 >,
2182 > for Error
2183where
2184 R: Send + Sync + std::fmt::Debug + 'static,
2185{
2186 fn from(
2187 err: ::aws_smithy_runtime_api::client::result::SdkError<
2188 crate::operation::get_compliance_details_by_config_rule::GetComplianceDetailsByConfigRuleError,
2189 R,
2190 >,
2191 ) -> 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::get_compliance_details_by_config_rule::GetComplianceDetailsByConfigRuleError> for Error {
2202 fn from(err: crate::operation::get_compliance_details_by_config_rule::GetComplianceDetailsByConfigRuleError) -> Self {
2203 match err {
2204 crate::operation::get_compliance_details_by_config_rule::GetComplianceDetailsByConfigRuleError::InvalidNextTokenException(inner) => {
2205 Error::InvalidNextTokenException(inner)
2206 }
2207 crate::operation::get_compliance_details_by_config_rule::GetComplianceDetailsByConfigRuleError::InvalidParameterValueException(inner) => {
2208 Error::InvalidParameterValueException(inner)
2209 }
2210 crate::operation::get_compliance_details_by_config_rule::GetComplianceDetailsByConfigRuleError::NoSuchConfigRuleException(inner) => {
2211 Error::NoSuchConfigRuleException(inner)
2212 }
2213 crate::operation::get_compliance_details_by_config_rule::GetComplianceDetailsByConfigRuleError::Unhandled(inner) => {
2214 Error::Unhandled(inner)
2215 }
2216 }
2217 }
2218}
2219impl<R>
2220 From<
2221 ::aws_smithy_runtime_api::client::result::SdkError<
2222 crate::operation::get_compliance_details_by_resource::GetComplianceDetailsByResourceError,
2223 R,
2224 >,
2225 > for Error
2226where
2227 R: Send + Sync + std::fmt::Debug + 'static,
2228{
2229 fn from(
2230 err: ::aws_smithy_runtime_api::client::result::SdkError<
2231 crate::operation::get_compliance_details_by_resource::GetComplianceDetailsByResourceError,
2232 R,
2233 >,
2234 ) -> Self {
2235 match err {
2236 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2237 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2238 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2239 source: err.into(),
2240 }),
2241 }
2242 }
2243}
2244impl From<crate::operation::get_compliance_details_by_resource::GetComplianceDetailsByResourceError> for Error {
2245 fn from(err: crate::operation::get_compliance_details_by_resource::GetComplianceDetailsByResourceError) -> Self {
2246 match err {
2247 crate::operation::get_compliance_details_by_resource::GetComplianceDetailsByResourceError::InvalidParameterValueException(inner) => {
2248 Error::InvalidParameterValueException(inner)
2249 }
2250 crate::operation::get_compliance_details_by_resource::GetComplianceDetailsByResourceError::Unhandled(inner) => Error::Unhandled(inner),
2251 }
2252 }
2253}
2254impl<R>
2255 From<
2256 ::aws_smithy_runtime_api::client::result::SdkError<
2257 crate::operation::get_compliance_summary_by_config_rule::GetComplianceSummaryByConfigRuleError,
2258 R,
2259 >,
2260 > for Error
2261where
2262 R: Send + Sync + std::fmt::Debug + 'static,
2263{
2264 fn from(
2265 err: ::aws_smithy_runtime_api::client::result::SdkError<
2266 crate::operation::get_compliance_summary_by_config_rule::GetComplianceSummaryByConfigRuleError,
2267 R,
2268 >,
2269 ) -> Self {
2270 match err {
2271 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2272 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2273 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2274 source: err.into(),
2275 }),
2276 }
2277 }
2278}
2279impl From<crate::operation::get_compliance_summary_by_config_rule::GetComplianceSummaryByConfigRuleError> for Error {
2280 fn from(err: crate::operation::get_compliance_summary_by_config_rule::GetComplianceSummaryByConfigRuleError) -> Self {
2281 match err {
2282 crate::operation::get_compliance_summary_by_config_rule::GetComplianceSummaryByConfigRuleError::Unhandled(inner) => {
2283 Error::Unhandled(inner)
2284 }
2285 }
2286 }
2287}
2288impl<R>
2289 From<
2290 ::aws_smithy_runtime_api::client::result::SdkError<
2291 crate::operation::get_compliance_summary_by_resource_type::GetComplianceSummaryByResourceTypeError,
2292 R,
2293 >,
2294 > for Error
2295where
2296 R: Send + Sync + std::fmt::Debug + 'static,
2297{
2298 fn from(
2299 err: ::aws_smithy_runtime_api::client::result::SdkError<
2300 crate::operation::get_compliance_summary_by_resource_type::GetComplianceSummaryByResourceTypeError,
2301 R,
2302 >,
2303 ) -> Self {
2304 match err {
2305 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2306 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2307 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2308 source: err.into(),
2309 }),
2310 }
2311 }
2312}
2313impl From<crate::operation::get_compliance_summary_by_resource_type::GetComplianceSummaryByResourceTypeError> for Error {
2314 fn from(err: crate::operation::get_compliance_summary_by_resource_type::GetComplianceSummaryByResourceTypeError) -> Self {
2315 match err {
2316 crate::operation::get_compliance_summary_by_resource_type::GetComplianceSummaryByResourceTypeError::InvalidParameterValueException(
2317 inner,
2318 ) => Error::InvalidParameterValueException(inner),
2319 crate::operation::get_compliance_summary_by_resource_type::GetComplianceSummaryByResourceTypeError::Unhandled(inner) => {
2320 Error::Unhandled(inner)
2321 }
2322 }
2323 }
2324}
2325impl<R>
2326 From<
2327 ::aws_smithy_runtime_api::client::result::SdkError<
2328 crate::operation::get_conformance_pack_compliance_details::GetConformancePackComplianceDetailsError,
2329 R,
2330 >,
2331 > for Error
2332where
2333 R: Send + Sync + std::fmt::Debug + 'static,
2334{
2335 fn from(
2336 err: ::aws_smithy_runtime_api::client::result::SdkError<
2337 crate::operation::get_conformance_pack_compliance_details::GetConformancePackComplianceDetailsError,
2338 R,
2339 >,
2340 ) -> Self {
2341 match err {
2342 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2343 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2344 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2345 source: err.into(),
2346 }),
2347 }
2348 }
2349}
2350impl From<crate::operation::get_conformance_pack_compliance_details::GetConformancePackComplianceDetailsError> for Error {
2351 fn from(err: crate::operation::get_conformance_pack_compliance_details::GetConformancePackComplianceDetailsError) -> Self {
2352 match err {
2353 crate::operation::get_conformance_pack_compliance_details::GetConformancePackComplianceDetailsError::InvalidLimitException(inner) => Error::InvalidLimitException(inner),
2354 crate::operation::get_conformance_pack_compliance_details::GetConformancePackComplianceDetailsError::InvalidNextTokenException(inner) => Error::InvalidNextTokenException(inner),
2355 crate::operation::get_conformance_pack_compliance_details::GetConformancePackComplianceDetailsError::InvalidParameterValueException(inner) => Error::InvalidParameterValueException(inner),
2356 crate::operation::get_conformance_pack_compliance_details::GetConformancePackComplianceDetailsError::NoSuchConfigRuleInConformancePackException(inner) => Error::NoSuchConfigRuleInConformancePackException(inner),
2357 crate::operation::get_conformance_pack_compliance_details::GetConformancePackComplianceDetailsError::NoSuchConformancePackException(inner) => Error::NoSuchConformancePackException(inner),
2358 crate::operation::get_conformance_pack_compliance_details::GetConformancePackComplianceDetailsError::Unhandled(inner) => Error::Unhandled(inner),
2359 }
2360 }
2361}
2362impl<R>
2363 From<
2364 ::aws_smithy_runtime_api::client::result::SdkError<
2365 crate::operation::get_conformance_pack_compliance_summary::GetConformancePackComplianceSummaryError,
2366 R,
2367 >,
2368 > for Error
2369where
2370 R: Send + Sync + std::fmt::Debug + 'static,
2371{
2372 fn from(
2373 err: ::aws_smithy_runtime_api::client::result::SdkError<
2374 crate::operation::get_conformance_pack_compliance_summary::GetConformancePackComplianceSummaryError,
2375 R,
2376 >,
2377 ) -> Self {
2378 match err {
2379 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2380 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2381 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2382 source: err.into(),
2383 }),
2384 }
2385 }
2386}
2387impl From<crate::operation::get_conformance_pack_compliance_summary::GetConformancePackComplianceSummaryError> for Error {
2388 fn from(err: crate::operation::get_conformance_pack_compliance_summary::GetConformancePackComplianceSummaryError) -> Self {
2389 match err {
2390 crate::operation::get_conformance_pack_compliance_summary::GetConformancePackComplianceSummaryError::InvalidLimitException(inner) => {
2391 Error::InvalidLimitException(inner)
2392 }
2393 crate::operation::get_conformance_pack_compliance_summary::GetConformancePackComplianceSummaryError::InvalidNextTokenException(inner) => {
2394 Error::InvalidNextTokenException(inner)
2395 }
2396 crate::operation::get_conformance_pack_compliance_summary::GetConformancePackComplianceSummaryError::NoSuchConformancePackException(
2397 inner,
2398 ) => Error::NoSuchConformancePackException(inner),
2399 crate::operation::get_conformance_pack_compliance_summary::GetConformancePackComplianceSummaryError::Unhandled(inner) => {
2400 Error::Unhandled(inner)
2401 }
2402 }
2403 }
2404}
2405impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_connector::GetConnectorError, R>> for Error
2406where
2407 R: Send + Sync + std::fmt::Debug + 'static,
2408{
2409 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_connector::GetConnectorError, R>) -> Self {
2410 match err {
2411 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2412 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2413 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2414 source: err.into(),
2415 }),
2416 }
2417 }
2418}
2419impl From<crate::operation::get_connector::GetConnectorError> for Error {
2420 fn from(err: crate::operation::get_connector::GetConnectorError) -> Self {
2421 match err {
2422 crate::operation::get_connector::GetConnectorError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2423 crate::operation::get_connector::GetConnectorError::ValidationException(inner) => Error::ValidationException(inner),
2424 crate::operation::get_connector::GetConnectorError::Unhandled(inner) => Error::Unhandled(inner),
2425 }
2426 }
2427}
2428impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_custom_rule_policy::GetCustomRulePolicyError, R>> for Error
2429where
2430 R: Send + Sync + std::fmt::Debug + 'static,
2431{
2432 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_custom_rule_policy::GetCustomRulePolicyError, R>) -> Self {
2433 match err {
2434 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2435 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2436 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2437 source: err.into(),
2438 }),
2439 }
2440 }
2441}
2442impl From<crate::operation::get_custom_rule_policy::GetCustomRulePolicyError> for Error {
2443 fn from(err: crate::operation::get_custom_rule_policy::GetCustomRulePolicyError) -> Self {
2444 match err {
2445 crate::operation::get_custom_rule_policy::GetCustomRulePolicyError::NoSuchConfigRuleException(inner) => {
2446 Error::NoSuchConfigRuleException(inner)
2447 }
2448 crate::operation::get_custom_rule_policy::GetCustomRulePolicyError::Unhandled(inner) => Error::Unhandled(inner),
2449 }
2450 }
2451}
2452impl<R>
2453 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_discovered_resource_counts::GetDiscoveredResourceCountsError, R>>
2454 for Error
2455where
2456 R: Send + Sync + std::fmt::Debug + 'static,
2457{
2458 fn from(
2459 err: ::aws_smithy_runtime_api::client::result::SdkError<
2460 crate::operation::get_discovered_resource_counts::GetDiscoveredResourceCountsError,
2461 R,
2462 >,
2463 ) -> Self {
2464 match err {
2465 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2466 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2467 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2468 source: err.into(),
2469 }),
2470 }
2471 }
2472}
2473impl From<crate::operation::get_discovered_resource_counts::GetDiscoveredResourceCountsError> for Error {
2474 fn from(err: crate::operation::get_discovered_resource_counts::GetDiscoveredResourceCountsError) -> Self {
2475 match err {
2476 crate::operation::get_discovered_resource_counts::GetDiscoveredResourceCountsError::InvalidLimitException(inner) => {
2477 Error::InvalidLimitException(inner)
2478 }
2479 crate::operation::get_discovered_resource_counts::GetDiscoveredResourceCountsError::InvalidNextTokenException(inner) => {
2480 Error::InvalidNextTokenException(inner)
2481 }
2482 crate::operation::get_discovered_resource_counts::GetDiscoveredResourceCountsError::ValidationException(inner) => {
2483 Error::ValidationException(inner)
2484 }
2485 crate::operation::get_discovered_resource_counts::GetDiscoveredResourceCountsError::Unhandled(inner) => Error::Unhandled(inner),
2486 }
2487 }
2488}
2489impl<R>
2490 From<
2491 ::aws_smithy_runtime_api::client::result::SdkError<
2492 crate::operation::get_organization_config_rule_detailed_status::GetOrganizationConfigRuleDetailedStatusError,
2493 R,
2494 >,
2495 > for Error
2496where
2497 R: Send + Sync + std::fmt::Debug + 'static,
2498{
2499 fn from(
2500 err: ::aws_smithy_runtime_api::client::result::SdkError<
2501 crate::operation::get_organization_config_rule_detailed_status::GetOrganizationConfigRuleDetailedStatusError,
2502 R,
2503 >,
2504 ) -> Self {
2505 match err {
2506 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2507 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2508 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2509 source: err.into(),
2510 }),
2511 }
2512 }
2513}
2514impl From<crate::operation::get_organization_config_rule_detailed_status::GetOrganizationConfigRuleDetailedStatusError> for Error {
2515 fn from(err: crate::operation::get_organization_config_rule_detailed_status::GetOrganizationConfigRuleDetailedStatusError) -> Self {
2516 match err {
2517 crate::operation::get_organization_config_rule_detailed_status::GetOrganizationConfigRuleDetailedStatusError::InvalidLimitException(inner) => Error::InvalidLimitException(inner),
2518 crate::operation::get_organization_config_rule_detailed_status::GetOrganizationConfigRuleDetailedStatusError::InvalidNextTokenException(inner) => Error::InvalidNextTokenException(inner),
2519 crate::operation::get_organization_config_rule_detailed_status::GetOrganizationConfigRuleDetailedStatusError::NoSuchOrganizationConfigRuleException(inner) => Error::NoSuchOrganizationConfigRuleException(inner),
2520 crate::operation::get_organization_config_rule_detailed_status::GetOrganizationConfigRuleDetailedStatusError::OrganizationAccessDeniedException(inner) => Error::OrganizationAccessDeniedException(inner),
2521 crate::operation::get_organization_config_rule_detailed_status::GetOrganizationConfigRuleDetailedStatusError::Unhandled(inner) => Error::Unhandled(inner),
2522 }
2523 }
2524}
2525impl<R>
2526 From<
2527 ::aws_smithy_runtime_api::client::result::SdkError<
2528 crate::operation::get_organization_conformance_pack_detailed_status::GetOrganizationConformancePackDetailedStatusError,
2529 R,
2530 >,
2531 > for Error
2532where
2533 R: Send + Sync + std::fmt::Debug + 'static,
2534{
2535 fn from(
2536 err: ::aws_smithy_runtime_api::client::result::SdkError<
2537 crate::operation::get_organization_conformance_pack_detailed_status::GetOrganizationConformancePackDetailedStatusError,
2538 R,
2539 >,
2540 ) -> Self {
2541 match err {
2542 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2543 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2544 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2545 source: err.into(),
2546 }),
2547 }
2548 }
2549}
2550impl From<crate::operation::get_organization_conformance_pack_detailed_status::GetOrganizationConformancePackDetailedStatusError> for Error {
2551 fn from(err: crate::operation::get_organization_conformance_pack_detailed_status::GetOrganizationConformancePackDetailedStatusError) -> Self {
2552 match err {
2553 crate::operation::get_organization_conformance_pack_detailed_status::GetOrganizationConformancePackDetailedStatusError::InvalidLimitException(inner) => Error::InvalidLimitException(inner),
2554 crate::operation::get_organization_conformance_pack_detailed_status::GetOrganizationConformancePackDetailedStatusError::InvalidNextTokenException(inner) => Error::InvalidNextTokenException(inner),
2555 crate::operation::get_organization_conformance_pack_detailed_status::GetOrganizationConformancePackDetailedStatusError::NoSuchOrganizationConformancePackException(inner) => Error::NoSuchOrganizationConformancePackException(inner),
2556 crate::operation::get_organization_conformance_pack_detailed_status::GetOrganizationConformancePackDetailedStatusError::OrganizationAccessDeniedException(inner) => Error::OrganizationAccessDeniedException(inner),
2557 crate::operation::get_organization_conformance_pack_detailed_status::GetOrganizationConformancePackDetailedStatusError::Unhandled(inner) => Error::Unhandled(inner),
2558 }
2559 }
2560}
2561impl<R>
2562 From<
2563 ::aws_smithy_runtime_api::client::result::SdkError<
2564 crate::operation::get_organization_custom_rule_policy::GetOrganizationCustomRulePolicyError,
2565 R,
2566 >,
2567 > for Error
2568where
2569 R: Send + Sync + std::fmt::Debug + 'static,
2570{
2571 fn from(
2572 err: ::aws_smithy_runtime_api::client::result::SdkError<
2573 crate::operation::get_organization_custom_rule_policy::GetOrganizationCustomRulePolicyError,
2574 R,
2575 >,
2576 ) -> Self {
2577 match err {
2578 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2579 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2580 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2581 source: err.into(),
2582 }),
2583 }
2584 }
2585}
2586impl From<crate::operation::get_organization_custom_rule_policy::GetOrganizationCustomRulePolicyError> for Error {
2587 fn from(err: crate::operation::get_organization_custom_rule_policy::GetOrganizationCustomRulePolicyError) -> Self {
2588 match err {
2589 crate::operation::get_organization_custom_rule_policy::GetOrganizationCustomRulePolicyError::NoSuchOrganizationConfigRuleException(
2590 inner,
2591 ) => Error::NoSuchOrganizationConfigRuleException(inner),
2592 crate::operation::get_organization_custom_rule_policy::GetOrganizationCustomRulePolicyError::OrganizationAccessDeniedException(inner) => {
2593 Error::OrganizationAccessDeniedException(inner)
2594 }
2595 crate::operation::get_organization_custom_rule_policy::GetOrganizationCustomRulePolicyError::Unhandled(inner) => Error::Unhandled(inner),
2596 }
2597 }
2598}
2599impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_config_history::GetResourceConfigHistoryError, R>>
2600 for Error
2601where
2602 R: Send + Sync + std::fmt::Debug + 'static,
2603{
2604 fn from(
2605 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_config_history::GetResourceConfigHistoryError, R>,
2606 ) -> Self {
2607 match err {
2608 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2609 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2610 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2611 source: err.into(),
2612 }),
2613 }
2614 }
2615}
2616impl From<crate::operation::get_resource_config_history::GetResourceConfigHistoryError> for Error {
2617 fn from(err: crate::operation::get_resource_config_history::GetResourceConfigHistoryError) -> Self {
2618 match err {
2619 crate::operation::get_resource_config_history::GetResourceConfigHistoryError::InvalidLimitException(inner) => {
2620 Error::InvalidLimitException(inner)
2621 }
2622 crate::operation::get_resource_config_history::GetResourceConfigHistoryError::InvalidNextTokenException(inner) => {
2623 Error::InvalidNextTokenException(inner)
2624 }
2625 crate::operation::get_resource_config_history::GetResourceConfigHistoryError::InvalidTimeRangeException(inner) => {
2626 Error::InvalidTimeRangeException(inner)
2627 }
2628 crate::operation::get_resource_config_history::GetResourceConfigHistoryError::NoAvailableConfigurationRecorderException(inner) => {
2629 Error::NoAvailableConfigurationRecorderException(inner)
2630 }
2631 crate::operation::get_resource_config_history::GetResourceConfigHistoryError::ResourceNotDiscoveredException(inner) => {
2632 Error::ResourceNotDiscoveredException(inner)
2633 }
2634 crate::operation::get_resource_config_history::GetResourceConfigHistoryError::ValidationException(inner) => {
2635 Error::ValidationException(inner)
2636 }
2637 crate::operation::get_resource_config_history::GetResourceConfigHistoryError::Unhandled(inner) => Error::Unhandled(inner),
2638 }
2639 }
2640}
2641impl<R>
2642 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_evaluation_summary::GetResourceEvaluationSummaryError, R>>
2643 for Error
2644where
2645 R: Send + Sync + std::fmt::Debug + 'static,
2646{
2647 fn from(
2648 err: ::aws_smithy_runtime_api::client::result::SdkError<
2649 crate::operation::get_resource_evaluation_summary::GetResourceEvaluationSummaryError,
2650 R,
2651 >,
2652 ) -> Self {
2653 match err {
2654 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2655 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2656 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2657 source: err.into(),
2658 }),
2659 }
2660 }
2661}
2662impl From<crate::operation::get_resource_evaluation_summary::GetResourceEvaluationSummaryError> for Error {
2663 fn from(err: crate::operation::get_resource_evaluation_summary::GetResourceEvaluationSummaryError) -> Self {
2664 match err {
2665 crate::operation::get_resource_evaluation_summary::GetResourceEvaluationSummaryError::ResourceNotFoundException(inner) => {
2666 Error::ResourceNotFoundException(inner)
2667 }
2668 crate::operation::get_resource_evaluation_summary::GetResourceEvaluationSummaryError::Unhandled(inner) => Error::Unhandled(inner),
2669 }
2670 }
2671}
2672impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_stored_query::GetStoredQueryError, R>> for Error
2673where
2674 R: Send + Sync + std::fmt::Debug + 'static,
2675{
2676 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_stored_query::GetStoredQueryError, R>) -> Self {
2677 match err {
2678 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2679 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2680 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2681 source: err.into(),
2682 }),
2683 }
2684 }
2685}
2686impl From<crate::operation::get_stored_query::GetStoredQueryError> for Error {
2687 fn from(err: crate::operation::get_stored_query::GetStoredQueryError) -> Self {
2688 match err {
2689 crate::operation::get_stored_query::GetStoredQueryError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2690 crate::operation::get_stored_query::GetStoredQueryError::ValidationException(inner) => Error::ValidationException(inner),
2691 crate::operation::get_stored_query::GetStoredQueryError::Unhandled(inner) => Error::Unhandled(inner),
2692 }
2693 }
2694}
2695impl<R>
2696 From<
2697 ::aws_smithy_runtime_api::client::result::SdkError<
2698 crate::operation::list_aggregate_discovered_resources::ListAggregateDiscoveredResourcesError,
2699 R,
2700 >,
2701 > for Error
2702where
2703 R: Send + Sync + std::fmt::Debug + 'static,
2704{
2705 fn from(
2706 err: ::aws_smithy_runtime_api::client::result::SdkError<
2707 crate::operation::list_aggregate_discovered_resources::ListAggregateDiscoveredResourcesError,
2708 R,
2709 >,
2710 ) -> Self {
2711 match err {
2712 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2713 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2714 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2715 source: err.into(),
2716 }),
2717 }
2718 }
2719}
2720impl From<crate::operation::list_aggregate_discovered_resources::ListAggregateDiscoveredResourcesError> for Error {
2721 fn from(err: crate::operation::list_aggregate_discovered_resources::ListAggregateDiscoveredResourcesError) -> Self {
2722 match err {
2723 crate::operation::list_aggregate_discovered_resources::ListAggregateDiscoveredResourcesError::InvalidLimitException(inner) => {
2724 Error::InvalidLimitException(inner)
2725 }
2726 crate::operation::list_aggregate_discovered_resources::ListAggregateDiscoveredResourcesError::InvalidNextTokenException(inner) => {
2727 Error::InvalidNextTokenException(inner)
2728 }
2729 crate::operation::list_aggregate_discovered_resources::ListAggregateDiscoveredResourcesError::NoSuchConfigurationAggregatorException(
2730 inner,
2731 ) => Error::NoSuchConfigurationAggregatorException(inner),
2732 crate::operation::list_aggregate_discovered_resources::ListAggregateDiscoveredResourcesError::ValidationException(inner) => {
2733 Error::ValidationException(inner)
2734 }
2735 crate::operation::list_aggregate_discovered_resources::ListAggregateDiscoveredResourcesError::Unhandled(inner) => Error::Unhandled(inner),
2736 }
2737 }
2738}
2739impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_configuration_recorders::ListConfigurationRecordersError, R>>
2740 for Error
2741where
2742 R: Send + Sync + std::fmt::Debug + 'static,
2743{
2744 fn from(
2745 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_configuration_recorders::ListConfigurationRecordersError, R>,
2746 ) -> Self {
2747 match err {
2748 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2749 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2750 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2751 source: err.into(),
2752 }),
2753 }
2754 }
2755}
2756impl From<crate::operation::list_configuration_recorders::ListConfigurationRecordersError> for Error {
2757 fn from(err: crate::operation::list_configuration_recorders::ListConfigurationRecordersError) -> Self {
2758 match err {
2759 crate::operation::list_configuration_recorders::ListConfigurationRecordersError::ValidationException(inner) => {
2760 Error::ValidationException(inner)
2761 }
2762 crate::operation::list_configuration_recorders::ListConfigurationRecordersError::Unhandled(inner) => Error::Unhandled(inner),
2763 }
2764 }
2765}
2766impl<R>
2767 From<
2768 ::aws_smithy_runtime_api::client::result::SdkError<
2769 crate::operation::list_conformance_pack_compliance_scores::ListConformancePackComplianceScoresError,
2770 R,
2771 >,
2772 > for Error
2773where
2774 R: Send + Sync + std::fmt::Debug + 'static,
2775{
2776 fn from(
2777 err: ::aws_smithy_runtime_api::client::result::SdkError<
2778 crate::operation::list_conformance_pack_compliance_scores::ListConformancePackComplianceScoresError,
2779 R,
2780 >,
2781 ) -> Self {
2782 match err {
2783 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2784 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2785 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2786 source: err.into(),
2787 }),
2788 }
2789 }
2790}
2791impl From<crate::operation::list_conformance_pack_compliance_scores::ListConformancePackComplianceScoresError> for Error {
2792 fn from(err: crate::operation::list_conformance_pack_compliance_scores::ListConformancePackComplianceScoresError) -> Self {
2793 match err {
2794 crate::operation::list_conformance_pack_compliance_scores::ListConformancePackComplianceScoresError::InvalidLimitException(inner) => {
2795 Error::InvalidLimitException(inner)
2796 }
2797 crate::operation::list_conformance_pack_compliance_scores::ListConformancePackComplianceScoresError::InvalidNextTokenException(inner) => {
2798 Error::InvalidNextTokenException(inner)
2799 }
2800 crate::operation::list_conformance_pack_compliance_scores::ListConformancePackComplianceScoresError::InvalidParameterValueException(
2801 inner,
2802 ) => Error::InvalidParameterValueException(inner),
2803 crate::operation::list_conformance_pack_compliance_scores::ListConformancePackComplianceScoresError::Unhandled(inner) => {
2804 Error::Unhandled(inner)
2805 }
2806 }
2807 }
2808}
2809impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_connectors::ListConnectorsError, R>> for Error
2810where
2811 R: Send + Sync + std::fmt::Debug + 'static,
2812{
2813 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_connectors::ListConnectorsError, R>) -> Self {
2814 match err {
2815 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2816 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2817 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2818 source: err.into(),
2819 }),
2820 }
2821 }
2822}
2823impl From<crate::operation::list_connectors::ListConnectorsError> for Error {
2824 fn from(err: crate::operation::list_connectors::ListConnectorsError) -> Self {
2825 match err {
2826 crate::operation::list_connectors::ListConnectorsError::ValidationException(inner) => Error::ValidationException(inner),
2827 crate::operation::list_connectors::ListConnectorsError::Unhandled(inner) => Error::Unhandled(inner),
2828 }
2829 }
2830}
2831impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_discovered_resources::ListDiscoveredResourcesError, R>>
2832 for Error
2833where
2834 R: Send + Sync + std::fmt::Debug + 'static,
2835{
2836 fn from(
2837 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_discovered_resources::ListDiscoveredResourcesError, R>,
2838 ) -> Self {
2839 match err {
2840 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2841 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2842 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2843 source: err.into(),
2844 }),
2845 }
2846 }
2847}
2848impl From<crate::operation::list_discovered_resources::ListDiscoveredResourcesError> for Error {
2849 fn from(err: crate::operation::list_discovered_resources::ListDiscoveredResourcesError) -> Self {
2850 match err {
2851 crate::operation::list_discovered_resources::ListDiscoveredResourcesError::InvalidLimitException(inner) => {
2852 Error::InvalidLimitException(inner)
2853 }
2854 crate::operation::list_discovered_resources::ListDiscoveredResourcesError::InvalidNextTokenException(inner) => {
2855 Error::InvalidNextTokenException(inner)
2856 }
2857 crate::operation::list_discovered_resources::ListDiscoveredResourcesError::NoAvailableConfigurationRecorderException(inner) => {
2858 Error::NoAvailableConfigurationRecorderException(inner)
2859 }
2860 crate::operation::list_discovered_resources::ListDiscoveredResourcesError::ValidationException(inner) => {
2861 Error::ValidationException(inner)
2862 }
2863 crate::operation::list_discovered_resources::ListDiscoveredResourcesError::Unhandled(inner) => Error::Unhandled(inner),
2864 }
2865 }
2866}
2867impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_resource_evaluations::ListResourceEvaluationsError, R>>
2868 for Error
2869where
2870 R: Send + Sync + std::fmt::Debug + 'static,
2871{
2872 fn from(
2873 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_resource_evaluations::ListResourceEvaluationsError, R>,
2874 ) -> Self {
2875 match err {
2876 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2877 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2878 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2879 source: err.into(),
2880 }),
2881 }
2882 }
2883}
2884impl From<crate::operation::list_resource_evaluations::ListResourceEvaluationsError> for Error {
2885 fn from(err: crate::operation::list_resource_evaluations::ListResourceEvaluationsError) -> Self {
2886 match err {
2887 crate::operation::list_resource_evaluations::ListResourceEvaluationsError::InvalidNextTokenException(inner) => {
2888 Error::InvalidNextTokenException(inner)
2889 }
2890 crate::operation::list_resource_evaluations::ListResourceEvaluationsError::InvalidParameterValueException(inner) => {
2891 Error::InvalidParameterValueException(inner)
2892 }
2893 crate::operation::list_resource_evaluations::ListResourceEvaluationsError::InvalidTimeRangeException(inner) => {
2894 Error::InvalidTimeRangeException(inner)
2895 }
2896 crate::operation::list_resource_evaluations::ListResourceEvaluationsError::Unhandled(inner) => Error::Unhandled(inner),
2897 }
2898 }
2899}
2900impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_stored_queries::ListStoredQueriesError, R>> for Error
2901where
2902 R: Send + Sync + std::fmt::Debug + 'static,
2903{
2904 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_stored_queries::ListStoredQueriesError, R>) -> Self {
2905 match err {
2906 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2907 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2908 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2909 source: err.into(),
2910 }),
2911 }
2912 }
2913}
2914impl From<crate::operation::list_stored_queries::ListStoredQueriesError> for Error {
2915 fn from(err: crate::operation::list_stored_queries::ListStoredQueriesError) -> Self {
2916 match err {
2917 crate::operation::list_stored_queries::ListStoredQueriesError::InvalidNextTokenException(inner) => {
2918 Error::InvalidNextTokenException(inner)
2919 }
2920 crate::operation::list_stored_queries::ListStoredQueriesError::ValidationException(inner) => Error::ValidationException(inner),
2921 crate::operation::list_stored_queries::ListStoredQueriesError::Unhandled(inner) => Error::Unhandled(inner),
2922 }
2923 }
2924}
2925impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
2926where
2927 R: Send + Sync + std::fmt::Debug + 'static,
2928{
2929 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
2930 match err {
2931 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2932 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2933 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2934 source: err.into(),
2935 }),
2936 }
2937 }
2938}
2939impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
2940 fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
2941 match err {
2942 crate::operation::list_tags_for_resource::ListTagsForResourceError::InvalidLimitException(inner) => Error::InvalidLimitException(inner),
2943 crate::operation::list_tags_for_resource::ListTagsForResourceError::InvalidNextTokenException(inner) => {
2944 Error::InvalidNextTokenException(inner)
2945 }
2946 crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
2947 Error::ResourceNotFoundException(inner)
2948 }
2949 crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
2950 crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
2951 }
2952 }
2953}
2954impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_aggregation_authorization::PutAggregationAuthorizationError, R>>
2955 for Error
2956where
2957 R: Send + Sync + std::fmt::Debug + 'static,
2958{
2959 fn from(
2960 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_aggregation_authorization::PutAggregationAuthorizationError, R>,
2961 ) -> Self {
2962 match err {
2963 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2964 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2965 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2966 source: err.into(),
2967 }),
2968 }
2969 }
2970}
2971impl From<crate::operation::put_aggregation_authorization::PutAggregationAuthorizationError> for Error {
2972 fn from(err: crate::operation::put_aggregation_authorization::PutAggregationAuthorizationError) -> Self {
2973 match err {
2974 crate::operation::put_aggregation_authorization::PutAggregationAuthorizationError::InvalidParameterValueException(inner) => {
2975 Error::InvalidParameterValueException(inner)
2976 }
2977 crate::operation::put_aggregation_authorization::PutAggregationAuthorizationError::Unhandled(inner) => Error::Unhandled(inner),
2978 }
2979 }
2980}
2981impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_config_rule::PutConfigRuleError, R>> for Error
2982where
2983 R: Send + Sync + std::fmt::Debug + 'static,
2984{
2985 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_config_rule::PutConfigRuleError, R>) -> Self {
2986 match err {
2987 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2988 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2989 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2990 source: err.into(),
2991 }),
2992 }
2993 }
2994}
2995impl From<crate::operation::put_config_rule::PutConfigRuleError> for Error {
2996 fn from(err: crate::operation::put_config_rule::PutConfigRuleError) -> Self {
2997 match err {
2998 crate::operation::put_config_rule::PutConfigRuleError::InsufficientPermissionsException(inner) => {
2999 Error::InsufficientPermissionsException(inner)
3000 }
3001 crate::operation::put_config_rule::PutConfigRuleError::InvalidParameterValueException(inner) => {
3002 Error::InvalidParameterValueException(inner)
3003 }
3004 crate::operation::put_config_rule::PutConfigRuleError::MaxNumberOfConfigRulesExceededException(inner) => {
3005 Error::MaxNumberOfConfigRulesExceededException(inner)
3006 }
3007 crate::operation::put_config_rule::PutConfigRuleError::NoAvailableConfigurationRecorderException(inner) => {
3008 Error::NoAvailableConfigurationRecorderException(inner)
3009 }
3010 crate::operation::put_config_rule::PutConfigRuleError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
3011 crate::operation::put_config_rule::PutConfigRuleError::Unhandled(inner) => Error::Unhandled(inner),
3012 }
3013 }
3014}
3015impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_configuration_aggregator::PutConfigurationAggregatorError, R>>
3016 for Error
3017where
3018 R: Send + Sync + std::fmt::Debug + 'static,
3019{
3020 fn from(
3021 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_configuration_aggregator::PutConfigurationAggregatorError, R>,
3022 ) -> Self {
3023 match err {
3024 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3025 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3026 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3027 source: err.into(),
3028 }),
3029 }
3030 }
3031}
3032impl From<crate::operation::put_configuration_aggregator::PutConfigurationAggregatorError> for Error {
3033 fn from(err: crate::operation::put_configuration_aggregator::PutConfigurationAggregatorError) -> Self {
3034 match err {
3035 crate::operation::put_configuration_aggregator::PutConfigurationAggregatorError::InvalidParameterValueException(inner) => {
3036 Error::InvalidParameterValueException(inner)
3037 }
3038 crate::operation::put_configuration_aggregator::PutConfigurationAggregatorError::InvalidRoleException(inner) => {
3039 Error::InvalidRoleException(inner)
3040 }
3041 crate::operation::put_configuration_aggregator::PutConfigurationAggregatorError::LimitExceededException(inner) => {
3042 Error::LimitExceededException(inner)
3043 }
3044 crate::operation::put_configuration_aggregator::PutConfigurationAggregatorError::NoAvailableOrganizationException(inner) => {
3045 Error::NoAvailableOrganizationException(inner)
3046 }
3047 crate::operation::put_configuration_aggregator::PutConfigurationAggregatorError::OrganizationAccessDeniedException(inner) => {
3048 Error::OrganizationAccessDeniedException(inner)
3049 }
3050 crate::operation::put_configuration_aggregator::PutConfigurationAggregatorError::OrganizationAllFeaturesNotEnabledException(inner) => {
3051 Error::OrganizationAllFeaturesNotEnabledException(inner)
3052 }
3053 crate::operation::put_configuration_aggregator::PutConfigurationAggregatorError::Unhandled(inner) => Error::Unhandled(inner),
3054 }
3055 }
3056}
3057impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_configuration_recorder::PutConfigurationRecorderError, R>>
3058 for Error
3059where
3060 R: Send + Sync + std::fmt::Debug + 'static,
3061{
3062 fn from(
3063 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_configuration_recorder::PutConfigurationRecorderError, R>,
3064 ) -> Self {
3065 match err {
3066 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3067 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3068 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3069 source: err.into(),
3070 }),
3071 }
3072 }
3073}
3074impl From<crate::operation::put_configuration_recorder::PutConfigurationRecorderError> for Error {
3075 fn from(err: crate::operation::put_configuration_recorder::PutConfigurationRecorderError) -> Self {
3076 match err {
3077 crate::operation::put_configuration_recorder::PutConfigurationRecorderError::InvalidConfigurationRecorderNameException(inner) => {
3078 Error::InvalidConfigurationRecorderNameException(inner)
3079 }
3080 crate::operation::put_configuration_recorder::PutConfigurationRecorderError::InvalidRecordingGroupException(inner) => {
3081 Error::InvalidRecordingGroupException(inner)
3082 }
3083 crate::operation::put_configuration_recorder::PutConfigurationRecorderError::InvalidRoleException(inner) => {
3084 Error::InvalidRoleException(inner)
3085 }
3086 crate::operation::put_configuration_recorder::PutConfigurationRecorderError::MaxNumberOfConfigurationRecordersExceededException(
3087 inner,
3088 ) => Error::MaxNumberOfConfigurationRecordersExceededException(inner),
3089 crate::operation::put_configuration_recorder::PutConfigurationRecorderError::UnmodifiableEntityException(inner) => {
3090 Error::UnmodifiableEntityException(inner)
3091 }
3092 crate::operation::put_configuration_recorder::PutConfigurationRecorderError::ValidationException(inner) => {
3093 Error::ValidationException(inner)
3094 }
3095 crate::operation::put_configuration_recorder::PutConfigurationRecorderError::Unhandled(inner) => Error::Unhandled(inner),
3096 }
3097 }
3098}
3099impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_conformance_pack::PutConformancePackError, R>> for Error
3100where
3101 R: Send + Sync + std::fmt::Debug + 'static,
3102{
3103 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_conformance_pack::PutConformancePackError, R>) -> Self {
3104 match err {
3105 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3106 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3107 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3108 source: err.into(),
3109 }),
3110 }
3111 }
3112}
3113impl From<crate::operation::put_conformance_pack::PutConformancePackError> for Error {
3114 fn from(err: crate::operation::put_conformance_pack::PutConformancePackError) -> Self {
3115 match err {
3116 crate::operation::put_conformance_pack::PutConformancePackError::ConformancePackTemplateValidationException(inner) => {
3117 Error::ConformancePackTemplateValidationException(inner)
3118 }
3119 crate::operation::put_conformance_pack::PutConformancePackError::InsufficientPermissionsException(inner) => {
3120 Error::InsufficientPermissionsException(inner)
3121 }
3122 crate::operation::put_conformance_pack::PutConformancePackError::InvalidParameterValueException(inner) => {
3123 Error::InvalidParameterValueException(inner)
3124 }
3125 crate::operation::put_conformance_pack::PutConformancePackError::MaxNumberOfConformancePacksExceededException(inner) => {
3126 Error::MaxNumberOfConformancePacksExceededException(inner)
3127 }
3128 crate::operation::put_conformance_pack::PutConformancePackError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
3129 crate::operation::put_conformance_pack::PutConformancePackError::Unhandled(inner) => Error::Unhandled(inner),
3130 }
3131 }
3132}
3133impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_connector::PutConnectorError, R>> for Error
3134where
3135 R: Send + Sync + std::fmt::Debug + 'static,
3136{
3137 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_connector::PutConnectorError, R>) -> Self {
3138 match err {
3139 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3140 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3141 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3142 source: err.into(),
3143 }),
3144 }
3145 }
3146}
3147impl From<crate::operation::put_connector::PutConnectorError> for Error {
3148 fn from(err: crate::operation::put_connector::PutConnectorError) -> Self {
3149 match err {
3150 crate::operation::put_connector::PutConnectorError::ConflictException(inner) => Error::ConflictException(inner),
3151 crate::operation::put_connector::PutConnectorError::InsufficientPermissionsException(inner) => {
3152 Error::InsufficientPermissionsException(inner)
3153 }
3154 crate::operation::put_connector::PutConnectorError::MaxNumberOfConnectorsExceededException(inner) => {
3155 Error::MaxNumberOfConnectorsExceededException(inner)
3156 }
3157 crate::operation::put_connector::PutConnectorError::ValidationException(inner) => Error::ValidationException(inner),
3158 crate::operation::put_connector::PutConnectorError::Unhandled(inner) => Error::Unhandled(inner),
3159 }
3160 }
3161}
3162impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_delivery_channel::PutDeliveryChannelError, R>> for Error
3163where
3164 R: Send + Sync + std::fmt::Debug + 'static,
3165{
3166 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_delivery_channel::PutDeliveryChannelError, R>) -> Self {
3167 match err {
3168 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3169 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3170 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3171 source: err.into(),
3172 }),
3173 }
3174 }
3175}
3176impl From<crate::operation::put_delivery_channel::PutDeliveryChannelError> for Error {
3177 fn from(err: crate::operation::put_delivery_channel::PutDeliveryChannelError) -> Self {
3178 match err {
3179 crate::operation::put_delivery_channel::PutDeliveryChannelError::InsufficientDeliveryPolicyException(inner) => {
3180 Error::InsufficientDeliveryPolicyException(inner)
3181 }
3182 crate::operation::put_delivery_channel::PutDeliveryChannelError::InvalidDeliveryChannelNameException(inner) => {
3183 Error::InvalidDeliveryChannelNameException(inner)
3184 }
3185 crate::operation::put_delivery_channel::PutDeliveryChannelError::InvalidS3KeyPrefixException(inner) => {
3186 Error::InvalidS3KeyPrefixException(inner)
3187 }
3188 crate::operation::put_delivery_channel::PutDeliveryChannelError::InvalidS3KmsKeyArnException(inner) => {
3189 Error::InvalidS3KmsKeyArnException(inner)
3190 }
3191 crate::operation::put_delivery_channel::PutDeliveryChannelError::InvalidSnsTopicArnException(inner) => {
3192 Error::InvalidSnsTopicArnException(inner)
3193 }
3194 crate::operation::put_delivery_channel::PutDeliveryChannelError::MaxNumberOfDeliveryChannelsExceededException(inner) => {
3195 Error::MaxNumberOfDeliveryChannelsExceededException(inner)
3196 }
3197 crate::operation::put_delivery_channel::PutDeliveryChannelError::NoAvailableConfigurationRecorderException(inner) => {
3198 Error::NoAvailableConfigurationRecorderException(inner)
3199 }
3200 crate::operation::put_delivery_channel::PutDeliveryChannelError::NoSuchBucketException(inner) => Error::NoSuchBucketException(inner),
3201 crate::operation::put_delivery_channel::PutDeliveryChannelError::Unhandled(inner) => Error::Unhandled(inner),
3202 }
3203 }
3204}
3205impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_evaluations::PutEvaluationsError, R>> for Error
3206where
3207 R: Send + Sync + std::fmt::Debug + 'static,
3208{
3209 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_evaluations::PutEvaluationsError, R>) -> Self {
3210 match err {
3211 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3212 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3213 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3214 source: err.into(),
3215 }),
3216 }
3217 }
3218}
3219impl From<crate::operation::put_evaluations::PutEvaluationsError> for Error {
3220 fn from(err: crate::operation::put_evaluations::PutEvaluationsError) -> Self {
3221 match err {
3222 crate::operation::put_evaluations::PutEvaluationsError::InvalidParameterValueException(inner) => {
3223 Error::InvalidParameterValueException(inner)
3224 }
3225 crate::operation::put_evaluations::PutEvaluationsError::InvalidResultTokenException(inner) => Error::InvalidResultTokenException(inner),
3226 crate::operation::put_evaluations::PutEvaluationsError::NoSuchConfigRuleException(inner) => Error::NoSuchConfigRuleException(inner),
3227 crate::operation::put_evaluations::PutEvaluationsError::Unhandled(inner) => Error::Unhandled(inner),
3228 }
3229 }
3230}
3231impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_external_evaluation::PutExternalEvaluationError, R>> for Error
3232where
3233 R: Send + Sync + std::fmt::Debug + 'static,
3234{
3235 fn from(
3236 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_external_evaluation::PutExternalEvaluationError, R>,
3237 ) -> Self {
3238 match err {
3239 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3240 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3241 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3242 source: err.into(),
3243 }),
3244 }
3245 }
3246}
3247impl From<crate::operation::put_external_evaluation::PutExternalEvaluationError> for Error {
3248 fn from(err: crate::operation::put_external_evaluation::PutExternalEvaluationError) -> Self {
3249 match err {
3250 crate::operation::put_external_evaluation::PutExternalEvaluationError::InvalidParameterValueException(inner) => {
3251 Error::InvalidParameterValueException(inner)
3252 }
3253 crate::operation::put_external_evaluation::PutExternalEvaluationError::NoSuchConfigRuleException(inner) => {
3254 Error::NoSuchConfigRuleException(inner)
3255 }
3256 crate::operation::put_external_evaluation::PutExternalEvaluationError::Unhandled(inner) => Error::Unhandled(inner),
3257 }
3258 }
3259}
3260impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_organization_config_rule::PutOrganizationConfigRuleError, R>>
3261 for Error
3262where
3263 R: Send + Sync + std::fmt::Debug + 'static,
3264{
3265 fn from(
3266 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_organization_config_rule::PutOrganizationConfigRuleError, R>,
3267 ) -> Self {
3268 match err {
3269 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3270 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3271 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3272 source: err.into(),
3273 }),
3274 }
3275 }
3276}
3277impl From<crate::operation::put_organization_config_rule::PutOrganizationConfigRuleError> for Error {
3278 fn from(err: crate::operation::put_organization_config_rule::PutOrganizationConfigRuleError) -> Self {
3279 match err {
3280 crate::operation::put_organization_config_rule::PutOrganizationConfigRuleError::InsufficientPermissionsException(inner) => {
3281 Error::InsufficientPermissionsException(inner)
3282 }
3283 crate::operation::put_organization_config_rule::PutOrganizationConfigRuleError::InvalidParameterValueException(inner) => {
3284 Error::InvalidParameterValueException(inner)
3285 }
3286 crate::operation::put_organization_config_rule::PutOrganizationConfigRuleError::MaxNumberOfOrganizationConfigRulesExceededException(
3287 inner,
3288 ) => Error::MaxNumberOfOrganizationConfigRulesExceededException(inner),
3289 crate::operation::put_organization_config_rule::PutOrganizationConfigRuleError::NoAvailableOrganizationException(inner) => {
3290 Error::NoAvailableOrganizationException(inner)
3291 }
3292 crate::operation::put_organization_config_rule::PutOrganizationConfigRuleError::OrganizationAccessDeniedException(inner) => {
3293 Error::OrganizationAccessDeniedException(inner)
3294 }
3295 crate::operation::put_organization_config_rule::PutOrganizationConfigRuleError::OrganizationAllFeaturesNotEnabledException(inner) => {
3296 Error::OrganizationAllFeaturesNotEnabledException(inner)
3297 }
3298 crate::operation::put_organization_config_rule::PutOrganizationConfigRuleError::ResourceInUseException(inner) => {
3299 Error::ResourceInUseException(inner)
3300 }
3301 crate::operation::put_organization_config_rule::PutOrganizationConfigRuleError::ValidationException(inner) => {
3302 Error::ValidationException(inner)
3303 }
3304 crate::operation::put_organization_config_rule::PutOrganizationConfigRuleError::Unhandled(inner) => Error::Unhandled(inner),
3305 }
3306 }
3307}
3308impl<R>
3309 From<
3310 ::aws_smithy_runtime_api::client::result::SdkError<
3311 crate::operation::put_organization_conformance_pack::PutOrganizationConformancePackError,
3312 R,
3313 >,
3314 > for Error
3315where
3316 R: Send + Sync + std::fmt::Debug + 'static,
3317{
3318 fn from(
3319 err: ::aws_smithy_runtime_api::client::result::SdkError<
3320 crate::operation::put_organization_conformance_pack::PutOrganizationConformancePackError,
3321 R,
3322 >,
3323 ) -> Self {
3324 match err {
3325 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3326 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3327 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3328 source: err.into(),
3329 }),
3330 }
3331 }
3332}
3333impl From<crate::operation::put_organization_conformance_pack::PutOrganizationConformancePackError> for Error {
3334 fn from(err: crate::operation::put_organization_conformance_pack::PutOrganizationConformancePackError) -> Self {
3335 match err {
3336 crate::operation::put_organization_conformance_pack::PutOrganizationConformancePackError::InsufficientPermissionsException(inner) => Error::InsufficientPermissionsException(inner),
3337 crate::operation::put_organization_conformance_pack::PutOrganizationConformancePackError::MaxNumberOfOrganizationConformancePacksExceededException(inner) => Error::MaxNumberOfOrganizationConformancePacksExceededException(inner),
3338 crate::operation::put_organization_conformance_pack::PutOrganizationConformancePackError::NoAvailableOrganizationException(inner) => Error::NoAvailableOrganizationException(inner),
3339 crate::operation::put_organization_conformance_pack::PutOrganizationConformancePackError::OrganizationAccessDeniedException(inner) => Error::OrganizationAccessDeniedException(inner),
3340 crate::operation::put_organization_conformance_pack::PutOrganizationConformancePackError::OrganizationAllFeaturesNotEnabledException(inner) => Error::OrganizationAllFeaturesNotEnabledException(inner),
3341 crate::operation::put_organization_conformance_pack::PutOrganizationConformancePackError::OrganizationConformancePackTemplateValidationException(inner) => Error::OrganizationConformancePackTemplateValidationException(inner),
3342 crate::operation::put_organization_conformance_pack::PutOrganizationConformancePackError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
3343 crate::operation::put_organization_conformance_pack::PutOrganizationConformancePackError::ValidationException(inner) => Error::ValidationException(inner),
3344 crate::operation::put_organization_conformance_pack::PutOrganizationConformancePackError::Unhandled(inner) => Error::Unhandled(inner),
3345 }
3346 }
3347}
3348impl<R>
3349 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_remediation_configurations::PutRemediationConfigurationsError, R>>
3350 for Error
3351where
3352 R: Send + Sync + std::fmt::Debug + 'static,
3353{
3354 fn from(
3355 err: ::aws_smithy_runtime_api::client::result::SdkError<
3356 crate::operation::put_remediation_configurations::PutRemediationConfigurationsError,
3357 R,
3358 >,
3359 ) -> Self {
3360 match err {
3361 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3362 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3363 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3364 source: err.into(),
3365 }),
3366 }
3367 }
3368}
3369impl From<crate::operation::put_remediation_configurations::PutRemediationConfigurationsError> for Error {
3370 fn from(err: crate::operation::put_remediation_configurations::PutRemediationConfigurationsError) -> Self {
3371 match err {
3372 crate::operation::put_remediation_configurations::PutRemediationConfigurationsError::InsufficientPermissionsException(inner) => {
3373 Error::InsufficientPermissionsException(inner)
3374 }
3375 crate::operation::put_remediation_configurations::PutRemediationConfigurationsError::InvalidParameterValueException(inner) => {
3376 Error::InvalidParameterValueException(inner)
3377 }
3378 crate::operation::put_remediation_configurations::PutRemediationConfigurationsError::Unhandled(inner) => Error::Unhandled(inner),
3379 }
3380 }
3381}
3382impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_remediation_exceptions::PutRemediationExceptionsError, R>>
3383 for Error
3384where
3385 R: Send + Sync + std::fmt::Debug + 'static,
3386{
3387 fn from(
3388 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_remediation_exceptions::PutRemediationExceptionsError, R>,
3389 ) -> Self {
3390 match err {
3391 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3392 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3393 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3394 source: err.into(),
3395 }),
3396 }
3397 }
3398}
3399impl From<crate::operation::put_remediation_exceptions::PutRemediationExceptionsError> for Error {
3400 fn from(err: crate::operation::put_remediation_exceptions::PutRemediationExceptionsError) -> Self {
3401 match err {
3402 crate::operation::put_remediation_exceptions::PutRemediationExceptionsError::InsufficientPermissionsException(inner) => {
3403 Error::InsufficientPermissionsException(inner)
3404 }
3405 crate::operation::put_remediation_exceptions::PutRemediationExceptionsError::InvalidParameterValueException(inner) => {
3406 Error::InvalidParameterValueException(inner)
3407 }
3408 crate::operation::put_remediation_exceptions::PutRemediationExceptionsError::Unhandled(inner) => Error::Unhandled(inner),
3409 }
3410 }
3411}
3412impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_resource_config::PutResourceConfigError, R>> for Error
3413where
3414 R: Send + Sync + std::fmt::Debug + 'static,
3415{
3416 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_resource_config::PutResourceConfigError, R>) -> Self {
3417 match err {
3418 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3419 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3420 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3421 source: err.into(),
3422 }),
3423 }
3424 }
3425}
3426impl From<crate::operation::put_resource_config::PutResourceConfigError> for Error {
3427 fn from(err: crate::operation::put_resource_config::PutResourceConfigError) -> Self {
3428 match err {
3429 crate::operation::put_resource_config::PutResourceConfigError::InsufficientPermissionsException(inner) => {
3430 Error::InsufficientPermissionsException(inner)
3431 }
3432 crate::operation::put_resource_config::PutResourceConfigError::MaxActiveResourcesExceededException(inner) => {
3433 Error::MaxActiveResourcesExceededException(inner)
3434 }
3435 crate::operation::put_resource_config::PutResourceConfigError::NoRunningConfigurationRecorderException(inner) => {
3436 Error::NoRunningConfigurationRecorderException(inner)
3437 }
3438 crate::operation::put_resource_config::PutResourceConfigError::ValidationException(inner) => Error::ValidationException(inner),
3439 crate::operation::put_resource_config::PutResourceConfigError::Unhandled(inner) => Error::Unhandled(inner),
3440 }
3441 }
3442}
3443impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_retention_configuration::PutRetentionConfigurationError, R>>
3444 for Error
3445where
3446 R: Send + Sync + std::fmt::Debug + 'static,
3447{
3448 fn from(
3449 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_retention_configuration::PutRetentionConfigurationError, R>,
3450 ) -> Self {
3451 match err {
3452 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3453 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3454 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3455 source: err.into(),
3456 }),
3457 }
3458 }
3459}
3460impl From<crate::operation::put_retention_configuration::PutRetentionConfigurationError> for Error {
3461 fn from(err: crate::operation::put_retention_configuration::PutRetentionConfigurationError) -> Self {
3462 match err {
3463 crate::operation::put_retention_configuration::PutRetentionConfigurationError::InvalidParameterValueException(inner) => {
3464 Error::InvalidParameterValueException(inner)
3465 }
3466 crate::operation::put_retention_configuration::PutRetentionConfigurationError::MaxNumberOfRetentionConfigurationsExceededException(
3467 inner,
3468 ) => Error::MaxNumberOfRetentionConfigurationsExceededException(inner),
3469 crate::operation::put_retention_configuration::PutRetentionConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
3470 }
3471 }
3472}
3473impl<R>
3474 From<
3475 ::aws_smithy_runtime_api::client::result::SdkError<
3476 crate::operation::put_service_linked_configuration_recorder::PutServiceLinkedConfigurationRecorderError,
3477 R,
3478 >,
3479 > for Error
3480where
3481 R: Send + Sync + std::fmt::Debug + 'static,
3482{
3483 fn from(
3484 err: ::aws_smithy_runtime_api::client::result::SdkError<
3485 crate::operation::put_service_linked_configuration_recorder::PutServiceLinkedConfigurationRecorderError,
3486 R,
3487 >,
3488 ) -> Self {
3489 match err {
3490 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3491 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3492 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3493 source: err.into(),
3494 }),
3495 }
3496 }
3497}
3498impl From<crate::operation::put_service_linked_configuration_recorder::PutServiceLinkedConfigurationRecorderError> for Error {
3499 fn from(err: crate::operation::put_service_linked_configuration_recorder::PutServiceLinkedConfigurationRecorderError) -> Self {
3500 match err {
3501 crate::operation::put_service_linked_configuration_recorder::PutServiceLinkedConfigurationRecorderError::ConflictException(inner) => Error::ConflictException(inner),
3502 crate::operation::put_service_linked_configuration_recorder::PutServiceLinkedConfigurationRecorderError::InsufficientPermissionsException(inner) => Error::InsufficientPermissionsException(inner),
3503 crate::operation::put_service_linked_configuration_recorder::PutServiceLinkedConfigurationRecorderError::LimitExceededException(inner) => Error::LimitExceededException(inner),
3504 crate::operation::put_service_linked_configuration_recorder::PutServiceLinkedConfigurationRecorderError::ValidationException(inner) => Error::ValidationException(inner),
3505 crate::operation::put_service_linked_configuration_recorder::PutServiceLinkedConfigurationRecorderError::Unhandled(inner) => Error::Unhandled(inner),
3506 }
3507 }
3508}
3509impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_stored_query::PutStoredQueryError, R>> for Error
3510where
3511 R: Send + Sync + std::fmt::Debug + 'static,
3512{
3513 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_stored_query::PutStoredQueryError, R>) -> Self {
3514 match err {
3515 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3516 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3517 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3518 source: err.into(),
3519 }),
3520 }
3521 }
3522}
3523impl From<crate::operation::put_stored_query::PutStoredQueryError> for Error {
3524 fn from(err: crate::operation::put_stored_query::PutStoredQueryError) -> Self {
3525 match err {
3526 crate::operation::put_stored_query::PutStoredQueryError::ResourceConcurrentModificationException(inner) => {
3527 Error::ResourceConcurrentModificationException(inner)
3528 }
3529 crate::operation::put_stored_query::PutStoredQueryError::TooManyTagsException(inner) => Error::TooManyTagsException(inner),
3530 crate::operation::put_stored_query::PutStoredQueryError::ValidationException(inner) => Error::ValidationException(inner),
3531 crate::operation::put_stored_query::PutStoredQueryError::Unhandled(inner) => Error::Unhandled(inner),
3532 }
3533 }
3534}
3535impl<R>
3536 From<
3537 ::aws_smithy_runtime_api::client::result::SdkError<
3538 crate::operation::put_third_party_service_linked_configuration_recorder::PutThirdPartyServiceLinkedConfigurationRecorderError,
3539 R,
3540 >,
3541 > for Error
3542where
3543 R: Send + Sync + std::fmt::Debug + 'static,
3544{
3545 fn from(
3546 err: ::aws_smithy_runtime_api::client::result::SdkError<
3547 crate::operation::put_third_party_service_linked_configuration_recorder::PutThirdPartyServiceLinkedConfigurationRecorderError,
3548 R,
3549 >,
3550 ) -> Self {
3551 match err {
3552 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3553 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3554 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3555 source: err.into(),
3556 }),
3557 }
3558 }
3559}
3560impl From<crate::operation::put_third_party_service_linked_configuration_recorder::PutThirdPartyServiceLinkedConfigurationRecorderError> for Error {
3561 fn from(
3562 err: crate::operation::put_third_party_service_linked_configuration_recorder::PutThirdPartyServiceLinkedConfigurationRecorderError,
3563 ) -> Self {
3564 match err {
3565 crate::operation::put_third_party_service_linked_configuration_recorder::PutThirdPartyServiceLinkedConfigurationRecorderError::ConflictException(inner) => Error::ConflictException(inner),
3566 crate::operation::put_third_party_service_linked_configuration_recorder::PutThirdPartyServiceLinkedConfigurationRecorderError::InsufficientPermissionsException(inner) => Error::InsufficientPermissionsException(inner),
3567 crate::operation::put_third_party_service_linked_configuration_recorder::PutThirdPartyServiceLinkedConfigurationRecorderError::ValidationException(inner) => Error::ValidationException(inner),
3568 crate::operation::put_third_party_service_linked_configuration_recorder::PutThirdPartyServiceLinkedConfigurationRecorderError::Unhandled(inner) => Error::Unhandled(inner),
3569 }
3570 }
3571}
3572impl<R>
3573 From<
3574 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::select_aggregate_resource_config::SelectAggregateResourceConfigError, R>,
3575 > for Error
3576where
3577 R: Send + Sync + std::fmt::Debug + 'static,
3578{
3579 fn from(
3580 err: ::aws_smithy_runtime_api::client::result::SdkError<
3581 crate::operation::select_aggregate_resource_config::SelectAggregateResourceConfigError,
3582 R,
3583 >,
3584 ) -> Self {
3585 match err {
3586 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3587 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3588 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3589 source: err.into(),
3590 }),
3591 }
3592 }
3593}
3594impl From<crate::operation::select_aggregate_resource_config::SelectAggregateResourceConfigError> for Error {
3595 fn from(err: crate::operation::select_aggregate_resource_config::SelectAggregateResourceConfigError) -> Self {
3596 match err {
3597 crate::operation::select_aggregate_resource_config::SelectAggregateResourceConfigError::InvalidExpressionException(inner) => {
3598 Error::InvalidExpressionException(inner)
3599 }
3600 crate::operation::select_aggregate_resource_config::SelectAggregateResourceConfigError::InvalidLimitException(inner) => {
3601 Error::InvalidLimitException(inner)
3602 }
3603 crate::operation::select_aggregate_resource_config::SelectAggregateResourceConfigError::InvalidNextTokenException(inner) => {
3604 Error::InvalidNextTokenException(inner)
3605 }
3606 crate::operation::select_aggregate_resource_config::SelectAggregateResourceConfigError::NoSuchConfigurationAggregatorException(inner) => {
3607 Error::NoSuchConfigurationAggregatorException(inner)
3608 }
3609 crate::operation::select_aggregate_resource_config::SelectAggregateResourceConfigError::Unhandled(inner) => Error::Unhandled(inner),
3610 }
3611 }
3612}
3613impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::select_resource_config::SelectResourceConfigError, R>> for Error
3614where
3615 R: Send + Sync + std::fmt::Debug + 'static,
3616{
3617 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::select_resource_config::SelectResourceConfigError, R>) -> Self {
3618 match err {
3619 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3620 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3621 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3622 source: err.into(),
3623 }),
3624 }
3625 }
3626}
3627impl From<crate::operation::select_resource_config::SelectResourceConfigError> for Error {
3628 fn from(err: crate::operation::select_resource_config::SelectResourceConfigError) -> Self {
3629 match err {
3630 crate::operation::select_resource_config::SelectResourceConfigError::InvalidExpressionException(inner) => {
3631 Error::InvalidExpressionException(inner)
3632 }
3633 crate::operation::select_resource_config::SelectResourceConfigError::InvalidLimitException(inner) => Error::InvalidLimitException(inner),
3634 crate::operation::select_resource_config::SelectResourceConfigError::InvalidNextTokenException(inner) => {
3635 Error::InvalidNextTokenException(inner)
3636 }
3637 crate::operation::select_resource_config::SelectResourceConfigError::Unhandled(inner) => Error::Unhandled(inner),
3638 }
3639 }
3640}
3641impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_config_rules_evaluation::StartConfigRulesEvaluationError, R>>
3642 for Error
3643where
3644 R: Send + Sync + std::fmt::Debug + 'static,
3645{
3646 fn from(
3647 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_config_rules_evaluation::StartConfigRulesEvaluationError, R>,
3648 ) -> Self {
3649 match err {
3650 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3651 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3652 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3653 source: err.into(),
3654 }),
3655 }
3656 }
3657}
3658impl From<crate::operation::start_config_rules_evaluation::StartConfigRulesEvaluationError> for Error {
3659 fn from(err: crate::operation::start_config_rules_evaluation::StartConfigRulesEvaluationError) -> Self {
3660 match err {
3661 crate::operation::start_config_rules_evaluation::StartConfigRulesEvaluationError::InvalidParameterValueException(inner) => {
3662 Error::InvalidParameterValueException(inner)
3663 }
3664 crate::operation::start_config_rules_evaluation::StartConfigRulesEvaluationError::LimitExceededException(inner) => {
3665 Error::LimitExceededException(inner)
3666 }
3667 crate::operation::start_config_rules_evaluation::StartConfigRulesEvaluationError::NoSuchConfigRuleException(inner) => {
3668 Error::NoSuchConfigRuleException(inner)
3669 }
3670 crate::operation::start_config_rules_evaluation::StartConfigRulesEvaluationError::ResourceInUseException(inner) => {
3671 Error::ResourceInUseException(inner)
3672 }
3673 crate::operation::start_config_rules_evaluation::StartConfigRulesEvaluationError::Unhandled(inner) => Error::Unhandled(inner),
3674 }
3675 }
3676}
3677impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_configuration_recorder::StartConfigurationRecorderError, R>>
3678 for Error
3679where
3680 R: Send + Sync + std::fmt::Debug + 'static,
3681{
3682 fn from(
3683 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_configuration_recorder::StartConfigurationRecorderError, R>,
3684 ) -> Self {
3685 match err {
3686 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3687 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3688 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3689 source: err.into(),
3690 }),
3691 }
3692 }
3693}
3694impl From<crate::operation::start_configuration_recorder::StartConfigurationRecorderError> for Error {
3695 fn from(err: crate::operation::start_configuration_recorder::StartConfigurationRecorderError) -> Self {
3696 match err {
3697 crate::operation::start_configuration_recorder::StartConfigurationRecorderError::NoAvailableDeliveryChannelException(inner) => {
3698 Error::NoAvailableDeliveryChannelException(inner)
3699 }
3700 crate::operation::start_configuration_recorder::StartConfigurationRecorderError::NoSuchConfigurationRecorderException(inner) => {
3701 Error::NoSuchConfigurationRecorderException(inner)
3702 }
3703 crate::operation::start_configuration_recorder::StartConfigurationRecorderError::UnmodifiableEntityException(inner) => {
3704 Error::UnmodifiableEntityException(inner)
3705 }
3706 crate::operation::start_configuration_recorder::StartConfigurationRecorderError::Unhandled(inner) => Error::Unhandled(inner),
3707 }
3708 }
3709}
3710impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_remediation_execution::StartRemediationExecutionError, R>>
3711 for Error
3712where
3713 R: Send + Sync + std::fmt::Debug + 'static,
3714{
3715 fn from(
3716 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_remediation_execution::StartRemediationExecutionError, R>,
3717 ) -> Self {
3718 match err {
3719 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3720 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3721 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3722 source: err.into(),
3723 }),
3724 }
3725 }
3726}
3727impl From<crate::operation::start_remediation_execution::StartRemediationExecutionError> for Error {
3728 fn from(err: crate::operation::start_remediation_execution::StartRemediationExecutionError) -> Self {
3729 match err {
3730 crate::operation::start_remediation_execution::StartRemediationExecutionError::InsufficientPermissionsException(inner) => {
3731 Error::InsufficientPermissionsException(inner)
3732 }
3733 crate::operation::start_remediation_execution::StartRemediationExecutionError::InvalidParameterValueException(inner) => {
3734 Error::InvalidParameterValueException(inner)
3735 }
3736 crate::operation::start_remediation_execution::StartRemediationExecutionError::NoSuchRemediationConfigurationException(inner) => {
3737 Error::NoSuchRemediationConfigurationException(inner)
3738 }
3739 crate::operation::start_remediation_execution::StartRemediationExecutionError::Unhandled(inner) => Error::Unhandled(inner),
3740 }
3741 }
3742}
3743impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_resource_evaluation::StartResourceEvaluationError, R>>
3744 for Error
3745where
3746 R: Send + Sync + std::fmt::Debug + 'static,
3747{
3748 fn from(
3749 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_resource_evaluation::StartResourceEvaluationError, R>,
3750 ) -> Self {
3751 match err {
3752 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3753 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3754 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3755 source: err.into(),
3756 }),
3757 }
3758 }
3759}
3760impl From<crate::operation::start_resource_evaluation::StartResourceEvaluationError> for Error {
3761 fn from(err: crate::operation::start_resource_evaluation::StartResourceEvaluationError) -> Self {
3762 match err {
3763 crate::operation::start_resource_evaluation::StartResourceEvaluationError::IdempotentParameterMismatch(inner) => {
3764 Error::IdempotentParameterMismatch(inner)
3765 }
3766 crate::operation::start_resource_evaluation::StartResourceEvaluationError::InvalidParameterValueException(inner) => {
3767 Error::InvalidParameterValueException(inner)
3768 }
3769 crate::operation::start_resource_evaluation::StartResourceEvaluationError::Unhandled(inner) => Error::Unhandled(inner),
3770 }
3771 }
3772}
3773impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_configuration_recorder::StopConfigurationRecorderError, R>>
3774 for Error
3775where
3776 R: Send + Sync + std::fmt::Debug + 'static,
3777{
3778 fn from(
3779 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_configuration_recorder::StopConfigurationRecorderError, R>,
3780 ) -> Self {
3781 match err {
3782 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3783 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3784 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3785 source: err.into(),
3786 }),
3787 }
3788 }
3789}
3790impl From<crate::operation::stop_configuration_recorder::StopConfigurationRecorderError> for Error {
3791 fn from(err: crate::operation::stop_configuration_recorder::StopConfigurationRecorderError) -> Self {
3792 match err {
3793 crate::operation::stop_configuration_recorder::StopConfigurationRecorderError::NoSuchConfigurationRecorderException(inner) => {
3794 Error::NoSuchConfigurationRecorderException(inner)
3795 }
3796 crate::operation::stop_configuration_recorder::StopConfigurationRecorderError::UnmodifiableEntityException(inner) => {
3797 Error::UnmodifiableEntityException(inner)
3798 }
3799 crate::operation::stop_configuration_recorder::StopConfigurationRecorderError::Unhandled(inner) => Error::Unhandled(inner),
3800 }
3801 }
3802}
3803impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
3804where
3805 R: Send + Sync + std::fmt::Debug + 'static,
3806{
3807 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
3808 match err {
3809 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3810 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3811 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3812 source: err.into(),
3813 }),
3814 }
3815 }
3816}
3817impl From<crate::operation::tag_resource::TagResourceError> for Error {
3818 fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
3819 match err {
3820 crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3821 crate::operation::tag_resource::TagResourceError::TooManyTagsException(inner) => Error::TooManyTagsException(inner),
3822 crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
3823 crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
3824 }
3825 }
3826}
3827impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
3828where
3829 R: Send + Sync + std::fmt::Debug + 'static,
3830{
3831 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
3832 match err {
3833 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3834 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3835 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3836 source: err.into(),
3837 }),
3838 }
3839 }
3840}
3841impl From<crate::operation::untag_resource::UntagResourceError> for Error {
3842 fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
3843 match err {
3844 crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3845 crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
3846 crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
3847 }
3848 }
3849}
3850impl ::std::error::Error for Error {
3851 fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
3852 match self {
3853 Error::ConflictException(inner) => inner.source(),
3854 Error::ConformancePackTemplateValidationException(inner) => inner.source(),
3855 Error::IdempotentParameterMismatch(inner) => inner.source(),
3856 Error::InsufficientDeliveryPolicyException(inner) => inner.source(),
3857 Error::InsufficientPermissionsException(inner) => inner.source(),
3858 Error::InvalidConfigurationRecorderNameException(inner) => inner.source(),
3859 Error::InvalidDeliveryChannelNameException(inner) => inner.source(),
3860 Error::InvalidExpressionException(inner) => inner.source(),
3861 Error::InvalidLimitException(inner) => inner.source(),
3862 Error::InvalidNextTokenException(inner) => inner.source(),
3863 Error::InvalidParameterValueException(inner) => inner.source(),
3864 Error::InvalidRecordingGroupException(inner) => inner.source(),
3865 Error::InvalidResultTokenException(inner) => inner.source(),
3866 Error::InvalidRoleException(inner) => inner.source(),
3867 Error::InvalidS3KeyPrefixException(inner) => inner.source(),
3868 Error::InvalidS3KmsKeyArnException(inner) => inner.source(),
3869 Error::InvalidSnsTopicArnException(inner) => inner.source(),
3870 Error::InvalidTimeRangeException(inner) => inner.source(),
3871 Error::LastDeliveryChannelDeleteFailedException(inner) => inner.source(),
3872 Error::LimitExceededException(inner) => inner.source(),
3873 Error::MaxActiveResourcesExceededException(inner) => inner.source(),
3874 Error::MaxNumberOfConfigRulesExceededException(inner) => inner.source(),
3875 Error::MaxNumberOfConfigurationRecordersExceededException(inner) => inner.source(),
3876 Error::MaxNumberOfConformancePacksExceededException(inner) => inner.source(),
3877 Error::MaxNumberOfConnectorsExceededException(inner) => inner.source(),
3878 Error::MaxNumberOfDeliveryChannelsExceededException(inner) => inner.source(),
3879 Error::MaxNumberOfOrganizationConfigRulesExceededException(inner) => inner.source(),
3880 Error::MaxNumberOfOrganizationConformancePacksExceededException(inner) => inner.source(),
3881 Error::MaxNumberOfRetentionConfigurationsExceededException(inner) => inner.source(),
3882 Error::NoAvailableConfigurationRecorderException(inner) => inner.source(),
3883 Error::NoAvailableDeliveryChannelException(inner) => inner.source(),
3884 Error::NoAvailableOrganizationException(inner) => inner.source(),
3885 Error::NoRunningConfigurationRecorderException(inner) => inner.source(),
3886 Error::NoSuchBucketException(inner) => inner.source(),
3887 Error::NoSuchConfigRuleException(inner) => inner.source(),
3888 Error::NoSuchConfigRuleInConformancePackException(inner) => inner.source(),
3889 Error::NoSuchConfigurationAggregatorException(inner) => inner.source(),
3890 Error::NoSuchConfigurationRecorderException(inner) => inner.source(),
3891 Error::NoSuchConformancePackException(inner) => inner.source(),
3892 Error::NoSuchDeliveryChannelException(inner) => inner.source(),
3893 Error::NoSuchOrganizationConfigRuleException(inner) => inner.source(),
3894 Error::NoSuchOrganizationConformancePackException(inner) => inner.source(),
3895 Error::NoSuchRemediationConfigurationException(inner) => inner.source(),
3896 Error::NoSuchRemediationExceptionException(inner) => inner.source(),
3897 Error::NoSuchRetentionConfigurationException(inner) => inner.source(),
3898 Error::OrganizationAccessDeniedException(inner) => inner.source(),
3899 Error::OrganizationAllFeaturesNotEnabledException(inner) => inner.source(),
3900 Error::OrganizationConformancePackTemplateValidationException(inner) => inner.source(),
3901 Error::OversizedConfigurationItemException(inner) => inner.source(),
3902 Error::RemediationInProgressException(inner) => inner.source(),
3903 Error::ResourceConcurrentModificationException(inner) => inner.source(),
3904 Error::ResourceInUseException(inner) => inner.source(),
3905 Error::ResourceNotDiscoveredException(inner) => inner.source(),
3906 Error::ResourceNotFoundException(inner) => inner.source(),
3907 Error::TooManyTagsException(inner) => inner.source(),
3908 Error::UnmodifiableEntityException(inner) => inner.source(),
3909 Error::ValidationException(inner) => inner.source(),
3910 Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
3911 }
3912 }
3913}
3914impl ::aws_types::request_id::RequestId for Error {
3915 fn request_id(&self) -> Option<&str> {
3916 match self {
3917 Self::ConflictException(e) => e.request_id(),
3918 Self::ConformancePackTemplateValidationException(e) => e.request_id(),
3919 Self::IdempotentParameterMismatch(e) => e.request_id(),
3920 Self::InsufficientDeliveryPolicyException(e) => e.request_id(),
3921 Self::InsufficientPermissionsException(e) => e.request_id(),
3922 Self::InvalidConfigurationRecorderNameException(e) => e.request_id(),
3923 Self::InvalidDeliveryChannelNameException(e) => e.request_id(),
3924 Self::InvalidExpressionException(e) => e.request_id(),
3925 Self::InvalidLimitException(e) => e.request_id(),
3926 Self::InvalidNextTokenException(e) => e.request_id(),
3927 Self::InvalidParameterValueException(e) => e.request_id(),
3928 Self::InvalidRecordingGroupException(e) => e.request_id(),
3929 Self::InvalidResultTokenException(e) => e.request_id(),
3930 Self::InvalidRoleException(e) => e.request_id(),
3931 Self::InvalidS3KeyPrefixException(e) => e.request_id(),
3932 Self::InvalidS3KmsKeyArnException(e) => e.request_id(),
3933 Self::InvalidSnsTopicArnException(e) => e.request_id(),
3934 Self::InvalidTimeRangeException(e) => e.request_id(),
3935 Self::LastDeliveryChannelDeleteFailedException(e) => e.request_id(),
3936 Self::LimitExceededException(e) => e.request_id(),
3937 Self::MaxActiveResourcesExceededException(e) => e.request_id(),
3938 Self::MaxNumberOfConfigRulesExceededException(e) => e.request_id(),
3939 Self::MaxNumberOfConfigurationRecordersExceededException(e) => e.request_id(),
3940 Self::MaxNumberOfConformancePacksExceededException(e) => e.request_id(),
3941 Self::MaxNumberOfConnectorsExceededException(e) => e.request_id(),
3942 Self::MaxNumberOfDeliveryChannelsExceededException(e) => e.request_id(),
3943 Self::MaxNumberOfOrganizationConfigRulesExceededException(e) => e.request_id(),
3944 Self::MaxNumberOfOrganizationConformancePacksExceededException(e) => e.request_id(),
3945 Self::MaxNumberOfRetentionConfigurationsExceededException(e) => e.request_id(),
3946 Self::NoAvailableConfigurationRecorderException(e) => e.request_id(),
3947 Self::NoAvailableDeliveryChannelException(e) => e.request_id(),
3948 Self::NoAvailableOrganizationException(e) => e.request_id(),
3949 Self::NoRunningConfigurationRecorderException(e) => e.request_id(),
3950 Self::NoSuchBucketException(e) => e.request_id(),
3951 Self::NoSuchConfigRuleException(e) => e.request_id(),
3952 Self::NoSuchConfigRuleInConformancePackException(e) => e.request_id(),
3953 Self::NoSuchConfigurationAggregatorException(e) => e.request_id(),
3954 Self::NoSuchConfigurationRecorderException(e) => e.request_id(),
3955 Self::NoSuchConformancePackException(e) => e.request_id(),
3956 Self::NoSuchDeliveryChannelException(e) => e.request_id(),
3957 Self::NoSuchOrganizationConfigRuleException(e) => e.request_id(),
3958 Self::NoSuchOrganizationConformancePackException(e) => e.request_id(),
3959 Self::NoSuchRemediationConfigurationException(e) => e.request_id(),
3960 Self::NoSuchRemediationExceptionException(e) => e.request_id(),
3961 Self::NoSuchRetentionConfigurationException(e) => e.request_id(),
3962 Self::OrganizationAccessDeniedException(e) => e.request_id(),
3963 Self::OrganizationAllFeaturesNotEnabledException(e) => e.request_id(),
3964 Self::OrganizationConformancePackTemplateValidationException(e) => e.request_id(),
3965 Self::OversizedConfigurationItemException(e) => e.request_id(),
3966 Self::RemediationInProgressException(e) => e.request_id(),
3967 Self::ResourceConcurrentModificationException(e) => e.request_id(),
3968 Self::ResourceInUseException(e) => e.request_id(),
3969 Self::ResourceNotDiscoveredException(e) => e.request_id(),
3970 Self::ResourceNotFoundException(e) => e.request_id(),
3971 Self::TooManyTagsException(e) => e.request_id(),
3972 Self::UnmodifiableEntityException(e) => e.request_id(),
3973 Self::ValidationException(e) => e.request_id(),
3974 Self::Unhandled(e) => e.meta.request_id(),
3975 }
3976 }
3977}