#[non_exhaustive]
#[derive(::std::fmt::Debug)]
pub enum Error {
AccessDeniedException(crate::types::error::AccessDeniedException),
ConditionalOperationFailedException(crate::types::error::ConditionalOperationFailedException),
ConflictException(crate::types::error::ConflictException),
ContactFlowNotPublishedException(crate::types::error::ContactFlowNotPublishedException),
ContactNotFoundException(crate::types::error::ContactNotFoundException),
DestinationNotAllowedException(crate::types::error::DestinationNotAllowedException),
DuplicateResourceException(crate::types::error::DuplicateResourceException),
IdempotencyException(crate::types::error::IdempotencyException),
InternalServiceException(crate::types::error::InternalServiceException),
InvalidContactFlowException(crate::types::error::InvalidContactFlowException),
InvalidContactFlowModuleException(crate::types::error::InvalidContactFlowModuleException),
InvalidParameterException(crate::types::error::InvalidParameterException),
InvalidRequestException(crate::types::error::InvalidRequestException),
LimitExceededException(crate::types::error::LimitExceededException),
MaximumResultReturnedException(crate::types::error::MaximumResultReturnedException),
OutboundContactNotPermittedException(crate::types::error::OutboundContactNotPermittedException),
OutputTypeNotFoundException(crate::types::error::OutputTypeNotFoundException),
PropertyValidationException(crate::types::error::PropertyValidationException),
ResourceConflictException(crate::types::error::ResourceConflictException),
ResourceInUseException(crate::types::error::ResourceInUseException),
ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
ResourceNotReadyException(crate::types::error::ResourceNotReadyException),
ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
ThrottlingException(crate::types::error::ThrottlingException),
TooManyRequestsException(crate::types::error::TooManyRequestsException),
UserNotFoundException(crate::types::error::UserNotFoundException),
#[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
variable wildcard pattern and check `.code()`:
\
`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
\
See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
Unhandled(crate::error::sealed_unhandled::Unhandled),
}
impl ::std::fmt::Display for Error {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
Error::AccessDeniedException(inner) => inner.fmt(f),
Error::ConditionalOperationFailedException(inner) => inner.fmt(f),
Error::ConflictException(inner) => inner.fmt(f),
Error::ContactFlowNotPublishedException(inner) => inner.fmt(f),
Error::ContactNotFoundException(inner) => inner.fmt(f),
Error::DestinationNotAllowedException(inner) => inner.fmt(f),
Error::DuplicateResourceException(inner) => inner.fmt(f),
Error::IdempotencyException(inner) => inner.fmt(f),
Error::InternalServiceException(inner) => inner.fmt(f),
Error::InvalidContactFlowException(inner) => inner.fmt(f),
Error::InvalidContactFlowModuleException(inner) => inner.fmt(f),
Error::InvalidParameterException(inner) => inner.fmt(f),
Error::InvalidRequestException(inner) => inner.fmt(f),
Error::LimitExceededException(inner) => inner.fmt(f),
Error::MaximumResultReturnedException(inner) => inner.fmt(f),
Error::OutboundContactNotPermittedException(inner) => inner.fmt(f),
Error::OutputTypeNotFoundException(inner) => inner.fmt(f),
Error::PropertyValidationException(inner) => inner.fmt(f),
Error::ResourceConflictException(inner) => inner.fmt(f),
Error::ResourceInUseException(inner) => inner.fmt(f),
Error::ResourceNotFoundException(inner) => inner.fmt(f),
Error::ResourceNotReadyException(inner) => inner.fmt(f),
Error::ServiceQuotaExceededException(inner) => inner.fmt(f),
Error::ThrottlingException(inner) => inner.fmt(f),
Error::TooManyRequestsException(inner) => inner.fmt(f),
Error::UserNotFoundException(inner) => inner.fmt(f),
Error::Unhandled(_) => {
if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
write!(f, "unhandled error ({code})")
} else {
f.write_str("unhandled error")
}
}
}
}
}
impl From<::aws_smithy_types::error::operation::BuildError> for Error {
fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
source: value.into(),
meta: ::std::default::Default::default(),
})
}
}
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
match self {
Self::AccessDeniedException(inner) => inner.meta(),
Self::ConditionalOperationFailedException(inner) => inner.meta(),
Self::ConflictException(inner) => inner.meta(),
Self::ContactFlowNotPublishedException(inner) => inner.meta(),
Self::ContactNotFoundException(inner) => inner.meta(),
Self::DestinationNotAllowedException(inner) => inner.meta(),
Self::DuplicateResourceException(inner) => inner.meta(),
Self::IdempotencyException(inner) => inner.meta(),
Self::InternalServiceException(inner) => inner.meta(),
Self::InvalidContactFlowException(inner) => inner.meta(),
Self::InvalidContactFlowModuleException(inner) => inner.meta(),
Self::InvalidParameterException(inner) => inner.meta(),
Self::InvalidRequestException(inner) => inner.meta(),
Self::LimitExceededException(inner) => inner.meta(),
Self::MaximumResultReturnedException(inner) => inner.meta(),
Self::OutboundContactNotPermittedException(inner) => inner.meta(),
Self::OutputTypeNotFoundException(inner) => inner.meta(),
Self::PropertyValidationException(inner) => inner.meta(),
Self::ResourceConflictException(inner) => inner.meta(),
Self::ResourceInUseException(inner) => inner.meta(),
Self::ResourceNotFoundException(inner) => inner.meta(),
Self::ResourceNotReadyException(inner) => inner.meta(),
Self::ServiceQuotaExceededException(inner) => inner.meta(),
Self::ThrottlingException(inner) => inner.meta(),
Self::TooManyRequestsException(inner) => inner.meta(),
Self::UserNotFoundException(inner) => inner.meta(),
Self::Unhandled(inner) => &inner.meta,
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::activate_evaluation_form::ActivateEvaluationFormError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::activate_evaluation_form::ActivateEvaluationFormError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::activate_evaluation_form::ActivateEvaluationFormError> for Error {
fn from(err: crate::operation::activate_evaluation_form::ActivateEvaluationFormError) -> Self {
match err {
crate::operation::activate_evaluation_form::ActivateEvaluationFormError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::activate_evaluation_form::ActivateEvaluationFormError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::activate_evaluation_form::ActivateEvaluationFormError::ResourceConflictException(inner) => {
Error::ResourceConflictException(inner)
}
crate::operation::activate_evaluation_form::ActivateEvaluationFormError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::activate_evaluation_form::ActivateEvaluationFormError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::activate_evaluation_form::ActivateEvaluationFormError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_analytics_data_set::AssociateAnalyticsDataSetError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_analytics_data_set::AssociateAnalyticsDataSetError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::associate_analytics_data_set::AssociateAnalyticsDataSetError> for Error {
fn from(err: crate::operation::associate_analytics_data_set::AssociateAnalyticsDataSetError) -> Self {
match err {
crate::operation::associate_analytics_data_set::AssociateAnalyticsDataSetError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::associate_analytics_data_set::AssociateAnalyticsDataSetError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::associate_analytics_data_set::AssociateAnalyticsDataSetError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::associate_analytics_data_set::AssociateAnalyticsDataSetError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::associate_analytics_data_set::AssociateAnalyticsDataSetError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::associate_analytics_data_set::AssociateAnalyticsDataSetError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_approved_origin::AssociateApprovedOriginError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_approved_origin::AssociateApprovedOriginError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::associate_approved_origin::AssociateApprovedOriginError> for Error {
fn from(err: crate::operation::associate_approved_origin::AssociateApprovedOriginError) -> Self {
match err {
crate::operation::associate_approved_origin::AssociateApprovedOriginError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::associate_approved_origin::AssociateApprovedOriginError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::associate_approved_origin::AssociateApprovedOriginError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::associate_approved_origin::AssociateApprovedOriginError::ResourceConflictException(inner) => {
Error::ResourceConflictException(inner)
}
crate::operation::associate_approved_origin::AssociateApprovedOriginError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::associate_approved_origin::AssociateApprovedOriginError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::associate_approved_origin::AssociateApprovedOriginError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::associate_approved_origin::AssociateApprovedOriginError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_bot::AssociateBotError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_bot::AssociateBotError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::associate_bot::AssociateBotError> for Error {
fn from(err: crate::operation::associate_bot::AssociateBotError) -> Self {
match err {
crate::operation::associate_bot::AssociateBotError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::associate_bot::AssociateBotError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::associate_bot::AssociateBotError::LimitExceededException(inner) => Error::LimitExceededException(inner),
crate::operation::associate_bot::AssociateBotError::ResourceConflictException(inner) => Error::ResourceConflictException(inner),
crate::operation::associate_bot::AssociateBotError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::associate_bot::AssociateBotError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::associate_bot::AssociateBotError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::associate_bot::AssociateBotError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_default_vocabulary::AssociateDefaultVocabularyError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_default_vocabulary::AssociateDefaultVocabularyError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::associate_default_vocabulary::AssociateDefaultVocabularyError> for Error {
fn from(err: crate::operation::associate_default_vocabulary::AssociateDefaultVocabularyError) -> Self {
match err {
crate::operation::associate_default_vocabulary::AssociateDefaultVocabularyError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::associate_default_vocabulary::AssociateDefaultVocabularyError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::associate_default_vocabulary::AssociateDefaultVocabularyError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::associate_default_vocabulary::AssociateDefaultVocabularyError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::associate_default_vocabulary::AssociateDefaultVocabularyError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::associate_default_vocabulary::AssociateDefaultVocabularyError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_flow::AssociateFlowError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_flow::AssociateFlowError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::associate_flow::AssociateFlowError> for Error {
fn from(err: crate::operation::associate_flow::AssociateFlowError) -> Self {
match err {
crate::operation::associate_flow::AssociateFlowError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::associate_flow::AssociateFlowError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::associate_flow::AssociateFlowError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::associate_flow::AssociateFlowError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::associate_flow::AssociateFlowError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::associate_flow::AssociateFlowError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::associate_flow::AssociateFlowError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::associate_instance_storage_config::AssociateInstanceStorageConfigError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::associate_instance_storage_config::AssociateInstanceStorageConfigError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::associate_instance_storage_config::AssociateInstanceStorageConfigError> for Error {
fn from(err: crate::operation::associate_instance_storage_config::AssociateInstanceStorageConfigError) -> Self {
match err {
crate::operation::associate_instance_storage_config::AssociateInstanceStorageConfigError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::associate_instance_storage_config::AssociateInstanceStorageConfigError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::associate_instance_storage_config::AssociateInstanceStorageConfigError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::associate_instance_storage_config::AssociateInstanceStorageConfigError::ResourceConflictException(inner) => {
Error::ResourceConflictException(inner)
}
crate::operation::associate_instance_storage_config::AssociateInstanceStorageConfigError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::associate_instance_storage_config::AssociateInstanceStorageConfigError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::associate_instance_storage_config::AssociateInstanceStorageConfigError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_lambda_function::AssociateLambdaFunctionError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_lambda_function::AssociateLambdaFunctionError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::associate_lambda_function::AssociateLambdaFunctionError> for Error {
fn from(err: crate::operation::associate_lambda_function::AssociateLambdaFunctionError) -> Self {
match err {
crate::operation::associate_lambda_function::AssociateLambdaFunctionError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::associate_lambda_function::AssociateLambdaFunctionError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::associate_lambda_function::AssociateLambdaFunctionError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::associate_lambda_function::AssociateLambdaFunctionError::ResourceConflictException(inner) => {
Error::ResourceConflictException(inner)
}
crate::operation::associate_lambda_function::AssociateLambdaFunctionError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::associate_lambda_function::AssociateLambdaFunctionError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::associate_lambda_function::AssociateLambdaFunctionError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::associate_lambda_function::AssociateLambdaFunctionError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_lex_bot::AssociateLexBotError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_lex_bot::AssociateLexBotError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::associate_lex_bot::AssociateLexBotError> for Error {
fn from(err: crate::operation::associate_lex_bot::AssociateLexBotError) -> Self {
match err {
crate::operation::associate_lex_bot::AssociateLexBotError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::associate_lex_bot::AssociateLexBotError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::associate_lex_bot::AssociateLexBotError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::associate_lex_bot::AssociateLexBotError::ResourceConflictException(inner) => Error::ResourceConflictException(inner),
crate::operation::associate_lex_bot::AssociateLexBotError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::associate_lex_bot::AssociateLexBotError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::associate_lex_bot::AssociateLexBotError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::associate_lex_bot::AssociateLexBotError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::associate_phone_number_contact_flow::AssociatePhoneNumberContactFlowError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::associate_phone_number_contact_flow::AssociatePhoneNumberContactFlowError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::associate_phone_number_contact_flow::AssociatePhoneNumberContactFlowError> for Error {
fn from(err: crate::operation::associate_phone_number_contact_flow::AssociatePhoneNumberContactFlowError) -> Self {
match err {
crate::operation::associate_phone_number_contact_flow::AssociatePhoneNumberContactFlowError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::associate_phone_number_contact_flow::AssociatePhoneNumberContactFlowError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::associate_phone_number_contact_flow::AssociatePhoneNumberContactFlowError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::associate_phone_number_contact_flow::AssociatePhoneNumberContactFlowError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::associate_phone_number_contact_flow::AssociatePhoneNumberContactFlowError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::associate_phone_number_contact_flow::AssociatePhoneNumberContactFlowError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_queue_quick_connects::AssociateQueueQuickConnectsError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::associate_queue_quick_connects::AssociateQueueQuickConnectsError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::associate_queue_quick_connects::AssociateQueueQuickConnectsError> for Error {
fn from(err: crate::operation::associate_queue_quick_connects::AssociateQueueQuickConnectsError) -> Self {
match err {
crate::operation::associate_queue_quick_connects::AssociateQueueQuickConnectsError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::associate_queue_quick_connects::AssociateQueueQuickConnectsError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::associate_queue_quick_connects::AssociateQueueQuickConnectsError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::associate_queue_quick_connects::AssociateQueueQuickConnectsError::LimitExceededException(inner) => {
Error::LimitExceededException(inner)
}
crate::operation::associate_queue_quick_connects::AssociateQueueQuickConnectsError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::associate_queue_quick_connects::AssociateQueueQuickConnectsError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::associate_queue_quick_connects::AssociateQueueQuickConnectsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_routing_profile_queues::AssociateRoutingProfileQueuesError, R>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::associate_routing_profile_queues::AssociateRoutingProfileQueuesError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::associate_routing_profile_queues::AssociateRoutingProfileQueuesError> for Error {
fn from(err: crate::operation::associate_routing_profile_queues::AssociateRoutingProfileQueuesError) -> Self {
match err {
crate::operation::associate_routing_profile_queues::AssociateRoutingProfileQueuesError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::associate_routing_profile_queues::AssociateRoutingProfileQueuesError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::associate_routing_profile_queues::AssociateRoutingProfileQueuesError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::associate_routing_profile_queues::AssociateRoutingProfileQueuesError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::associate_routing_profile_queues::AssociateRoutingProfileQueuesError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::associate_routing_profile_queues::AssociateRoutingProfileQueuesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_security_key::AssociateSecurityKeyError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_security_key::AssociateSecurityKeyError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::associate_security_key::AssociateSecurityKeyError> for Error {
fn from(err: crate::operation::associate_security_key::AssociateSecurityKeyError) -> Self {
match err {
crate::operation::associate_security_key::AssociateSecurityKeyError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::associate_security_key::AssociateSecurityKeyError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::associate_security_key::AssociateSecurityKeyError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::associate_security_key::AssociateSecurityKeyError::ResourceConflictException(inner) => {
Error::ResourceConflictException(inner)
}
crate::operation::associate_security_key::AssociateSecurityKeyError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::associate_security_key::AssociateSecurityKeyError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::associate_security_key::AssociateSecurityKeyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::associate_security_key::AssociateSecurityKeyError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::associate_traffic_distribution_group_user::AssociateTrafficDistributionGroupUserError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::associate_traffic_distribution_group_user::AssociateTrafficDistributionGroupUserError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::associate_traffic_distribution_group_user::AssociateTrafficDistributionGroupUserError> for Error {
fn from(err: crate::operation::associate_traffic_distribution_group_user::AssociateTrafficDistributionGroupUserError) -> Self {
match err {
crate::operation::associate_traffic_distribution_group_user::AssociateTrafficDistributionGroupUserError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::associate_traffic_distribution_group_user::AssociateTrafficDistributionGroupUserError::InternalServiceException(
inner,
) => Error::InternalServiceException(inner),
crate::operation::associate_traffic_distribution_group_user::AssociateTrafficDistributionGroupUserError::InvalidRequestException(
inner,
) => Error::InvalidRequestException(inner),
crate::operation::associate_traffic_distribution_group_user::AssociateTrafficDistributionGroupUserError::ResourceConflictException(
inner,
) => Error::ResourceConflictException(inner),
crate::operation::associate_traffic_distribution_group_user::AssociateTrafficDistributionGroupUserError::ResourceNotFoundException(
inner,
) => Error::ResourceNotFoundException(inner),
crate::operation::associate_traffic_distribution_group_user::AssociateTrafficDistributionGroupUserError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::associate_traffic_distribution_group_user::AssociateTrafficDistributionGroupUserError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_user_proficiencies::AssociateUserProficienciesError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_user_proficiencies::AssociateUserProficienciesError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::associate_user_proficiencies::AssociateUserProficienciesError> for Error {
fn from(err: crate::operation::associate_user_proficiencies::AssociateUserProficienciesError) -> Self {
match err {
crate::operation::associate_user_proficiencies::AssociateUserProficienciesError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::associate_user_proficiencies::AssociateUserProficienciesError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::associate_user_proficiencies::AssociateUserProficienciesError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::associate_user_proficiencies::AssociateUserProficienciesError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::associate_user_proficiencies::AssociateUserProficienciesError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::associate_user_proficiencies::AssociateUserProficienciesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::batch_associate_analytics_data_set::BatchAssociateAnalyticsDataSetError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::batch_associate_analytics_data_set::BatchAssociateAnalyticsDataSetError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::batch_associate_analytics_data_set::BatchAssociateAnalyticsDataSetError> for Error {
fn from(err: crate::operation::batch_associate_analytics_data_set::BatchAssociateAnalyticsDataSetError) -> Self {
match err {
crate::operation::batch_associate_analytics_data_set::BatchAssociateAnalyticsDataSetError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::batch_associate_analytics_data_set::BatchAssociateAnalyticsDataSetError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::batch_associate_analytics_data_set::BatchAssociateAnalyticsDataSetError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::batch_associate_analytics_data_set::BatchAssociateAnalyticsDataSetError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::batch_associate_analytics_data_set::BatchAssociateAnalyticsDataSetError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::batch_associate_analytics_data_set::BatchAssociateAnalyticsDataSetError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::batch_disassociate_analytics_data_set::BatchDisassociateAnalyticsDataSetError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::batch_disassociate_analytics_data_set::BatchDisassociateAnalyticsDataSetError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::batch_disassociate_analytics_data_set::BatchDisassociateAnalyticsDataSetError> for Error {
fn from(err: crate::operation::batch_disassociate_analytics_data_set::BatchDisassociateAnalyticsDataSetError) -> Self {
match err {
crate::operation::batch_disassociate_analytics_data_set::BatchDisassociateAnalyticsDataSetError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::batch_disassociate_analytics_data_set::BatchDisassociateAnalyticsDataSetError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::batch_disassociate_analytics_data_set::BatchDisassociateAnalyticsDataSetError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::batch_disassociate_analytics_data_set::BatchDisassociateAnalyticsDataSetError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::batch_disassociate_analytics_data_set::BatchDisassociateAnalyticsDataSetError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::batch_disassociate_analytics_data_set::BatchDisassociateAnalyticsDataSetError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R>
From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_attached_file_metadata::BatchGetAttachedFileMetadataError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::batch_get_attached_file_metadata::BatchGetAttachedFileMetadataError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::batch_get_attached_file_metadata::BatchGetAttachedFileMetadataError> for Error {
fn from(err: crate::operation::batch_get_attached_file_metadata::BatchGetAttachedFileMetadataError) -> Self {
match err {
crate::operation::batch_get_attached_file_metadata::BatchGetAttachedFileMetadataError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::batch_get_attached_file_metadata::BatchGetAttachedFileMetadataError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::batch_get_attached_file_metadata::BatchGetAttachedFileMetadataError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::batch_get_attached_file_metadata::BatchGetAttachedFileMetadataError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::batch_get_attached_file_metadata::BatchGetAttachedFileMetadataError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::batch_get_attached_file_metadata::BatchGetAttachedFileMetadataError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_flow_association::BatchGetFlowAssociationError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_flow_association::BatchGetFlowAssociationError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::batch_get_flow_association::BatchGetFlowAssociationError> for Error {
fn from(err: crate::operation::batch_get_flow_association::BatchGetFlowAssociationError) -> Self {
match err {
crate::operation::batch_get_flow_association::BatchGetFlowAssociationError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::batch_get_flow_association::BatchGetFlowAssociationError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::batch_get_flow_association::BatchGetFlowAssociationError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::batch_get_flow_association::BatchGetFlowAssociationError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::batch_get_flow_association::BatchGetFlowAssociationError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::batch_get_flow_association::BatchGetFlowAssociationError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::batch_get_flow_association::BatchGetFlowAssociationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_put_contact::BatchPutContactError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_put_contact::BatchPutContactError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::batch_put_contact::BatchPutContactError> for Error {
fn from(err: crate::operation::batch_put_contact::BatchPutContactError) -> Self {
match err {
crate::operation::batch_put_contact::BatchPutContactError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::batch_put_contact::BatchPutContactError::IdempotencyException(inner) => Error::IdempotencyException(inner),
crate::operation::batch_put_contact::BatchPutContactError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::batch_put_contact::BatchPutContactError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::batch_put_contact::BatchPutContactError::LimitExceededException(inner) => Error::LimitExceededException(inner),
crate::operation::batch_put_contact::BatchPutContactError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::batch_put_contact::BatchPutContactError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::claim_phone_number::ClaimPhoneNumberError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::claim_phone_number::ClaimPhoneNumberError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::claim_phone_number::ClaimPhoneNumberError> for Error {
fn from(err: crate::operation::claim_phone_number::ClaimPhoneNumberError) -> Self {
match err {
crate::operation::claim_phone_number::ClaimPhoneNumberError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::claim_phone_number::ClaimPhoneNumberError::IdempotencyException(inner) => Error::IdempotencyException(inner),
crate::operation::claim_phone_number::ClaimPhoneNumberError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::claim_phone_number::ClaimPhoneNumberError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::claim_phone_number::ClaimPhoneNumberError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::claim_phone_number::ClaimPhoneNumberError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::claim_phone_number::ClaimPhoneNumberError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::complete_attached_file_upload::CompleteAttachedFileUploadError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::complete_attached_file_upload::CompleteAttachedFileUploadError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::complete_attached_file_upload::CompleteAttachedFileUploadError> for Error {
fn from(err: crate::operation::complete_attached_file_upload::CompleteAttachedFileUploadError) -> Self {
match err {
crate::operation::complete_attached_file_upload::CompleteAttachedFileUploadError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::complete_attached_file_upload::CompleteAttachedFileUploadError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::complete_attached_file_upload::CompleteAttachedFileUploadError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::complete_attached_file_upload::CompleteAttachedFileUploadError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::complete_attached_file_upload::CompleteAttachedFileUploadError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::complete_attached_file_upload::CompleteAttachedFileUploadError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_agent_status::CreateAgentStatusError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_agent_status::CreateAgentStatusError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_agent_status::CreateAgentStatusError> for Error {
fn from(err: crate::operation::create_agent_status::CreateAgentStatusError) -> Self {
match err {
crate::operation::create_agent_status::CreateAgentStatusError::DuplicateResourceException(inner) => {
Error::DuplicateResourceException(inner)
}
crate::operation::create_agent_status::CreateAgentStatusError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::create_agent_status::CreateAgentStatusError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::create_agent_status::CreateAgentStatusError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::create_agent_status::CreateAgentStatusError::LimitExceededException(inner) => Error::LimitExceededException(inner),
crate::operation::create_agent_status::CreateAgentStatusError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::create_agent_status::CreateAgentStatusError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::create_agent_status::CreateAgentStatusError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_contact::CreateContactError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_contact::CreateContactError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_contact::CreateContactError> for Error {
fn from(err: crate::operation::create_contact::CreateContactError) -> Self {
match err {
crate::operation::create_contact::CreateContactError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::create_contact::CreateContactError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::create_contact::CreateContactError::IdempotencyException(inner) => Error::IdempotencyException(inner),
crate::operation::create_contact::CreateContactError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::create_contact::CreateContactError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::create_contact::CreateContactError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::create_contact::CreateContactError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::create_contact::CreateContactError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::create_contact::CreateContactError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::create_contact::CreateContactError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_contact_flow::CreateContactFlowError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_contact_flow::CreateContactFlowError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_contact_flow::CreateContactFlowError> for Error {
fn from(err: crate::operation::create_contact_flow::CreateContactFlowError) -> Self {
match err {
crate::operation::create_contact_flow::CreateContactFlowError::DuplicateResourceException(inner) => {
Error::DuplicateResourceException(inner)
}
crate::operation::create_contact_flow::CreateContactFlowError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::create_contact_flow::CreateContactFlowError::InvalidContactFlowException(inner) => {
Error::InvalidContactFlowException(inner)
}
crate::operation::create_contact_flow::CreateContactFlowError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::create_contact_flow::CreateContactFlowError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::create_contact_flow::CreateContactFlowError::LimitExceededException(inner) => Error::LimitExceededException(inner),
crate::operation::create_contact_flow::CreateContactFlowError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::create_contact_flow::CreateContactFlowError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::create_contact_flow::CreateContactFlowError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_contact_flow_module::CreateContactFlowModuleError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_contact_flow_module::CreateContactFlowModuleError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_contact_flow_module::CreateContactFlowModuleError> for Error {
fn from(err: crate::operation::create_contact_flow_module::CreateContactFlowModuleError) -> Self {
match err {
crate::operation::create_contact_flow_module::CreateContactFlowModuleError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::create_contact_flow_module::CreateContactFlowModuleError::DuplicateResourceException(inner) => {
Error::DuplicateResourceException(inner)
}
crate::operation::create_contact_flow_module::CreateContactFlowModuleError::IdempotencyException(inner) => {
Error::IdempotencyException(inner)
}
crate::operation::create_contact_flow_module::CreateContactFlowModuleError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::create_contact_flow_module::CreateContactFlowModuleError::InvalidContactFlowModuleException(inner) => {
Error::InvalidContactFlowModuleException(inner)
}
crate::operation::create_contact_flow_module::CreateContactFlowModuleError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::create_contact_flow_module::CreateContactFlowModuleError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::create_contact_flow_module::CreateContactFlowModuleError::LimitExceededException(inner) => {
Error::LimitExceededException(inner)
}
crate::operation::create_contact_flow_module::CreateContactFlowModuleError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::create_contact_flow_module::CreateContactFlowModuleError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::create_contact_flow_module::CreateContactFlowModuleError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_contact_flow_version::CreateContactFlowVersionError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_contact_flow_version::CreateContactFlowVersionError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_contact_flow_version::CreateContactFlowVersionError> for Error {
fn from(err: crate::operation::create_contact_flow_version::CreateContactFlowVersionError) -> Self {
match err {
crate::operation::create_contact_flow_version::CreateContactFlowVersionError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::create_contact_flow_version::CreateContactFlowVersionError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::create_contact_flow_version::CreateContactFlowVersionError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::create_contact_flow_version::CreateContactFlowVersionError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::create_contact_flow_version::CreateContactFlowVersionError::LimitExceededException(inner) => {
Error::LimitExceededException(inner)
}
crate::operation::create_contact_flow_version::CreateContactFlowVersionError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::create_contact_flow_version::CreateContactFlowVersionError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::create_contact_flow_version::CreateContactFlowVersionError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_email_address::CreateEmailAddressError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_email_address::CreateEmailAddressError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_email_address::CreateEmailAddressError> for Error {
fn from(err: crate::operation::create_email_address::CreateEmailAddressError) -> Self {
match err {
crate::operation::create_email_address::CreateEmailAddressError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::create_email_address::CreateEmailAddressError::DuplicateResourceException(inner) => {
Error::DuplicateResourceException(inner)
}
crate::operation::create_email_address::CreateEmailAddressError::IdempotencyException(inner) => Error::IdempotencyException(inner),
crate::operation::create_email_address::CreateEmailAddressError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::create_email_address::CreateEmailAddressError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::create_email_address::CreateEmailAddressError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::create_email_address::CreateEmailAddressError::ResourceConflictException(inner) => {
Error::ResourceConflictException(inner)
}
crate::operation::create_email_address::CreateEmailAddressError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::create_email_address::CreateEmailAddressError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::create_email_address::CreateEmailAddressError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::create_email_address::CreateEmailAddressError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_evaluation_form::CreateEvaluationFormError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_evaluation_form::CreateEvaluationFormError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_evaluation_form::CreateEvaluationFormError> for Error {
fn from(err: crate::operation::create_evaluation_form::CreateEvaluationFormError) -> Self {
match err {
crate::operation::create_evaluation_form::CreateEvaluationFormError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::create_evaluation_form::CreateEvaluationFormError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::create_evaluation_form::CreateEvaluationFormError::ResourceConflictException(inner) => {
Error::ResourceConflictException(inner)
}
crate::operation::create_evaluation_form::CreateEvaluationFormError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::create_evaluation_form::CreateEvaluationFormError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::create_evaluation_form::CreateEvaluationFormError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::create_evaluation_form::CreateEvaluationFormError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_hours_of_operation::CreateHoursOfOperationError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_hours_of_operation::CreateHoursOfOperationError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_hours_of_operation::CreateHoursOfOperationError> for Error {
fn from(err: crate::operation::create_hours_of_operation::CreateHoursOfOperationError) -> Self {
match err {
crate::operation::create_hours_of_operation::CreateHoursOfOperationError::DuplicateResourceException(inner) => {
Error::DuplicateResourceException(inner)
}
crate::operation::create_hours_of_operation::CreateHoursOfOperationError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::create_hours_of_operation::CreateHoursOfOperationError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::create_hours_of_operation::CreateHoursOfOperationError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::create_hours_of_operation::CreateHoursOfOperationError::LimitExceededException(inner) => {
Error::LimitExceededException(inner)
}
crate::operation::create_hours_of_operation::CreateHoursOfOperationError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::create_hours_of_operation::CreateHoursOfOperationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::create_hours_of_operation::CreateHoursOfOperationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_hours_of_operation_override::CreateHoursOfOperationOverrideError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_hours_of_operation_override::CreateHoursOfOperationOverrideError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_hours_of_operation_override::CreateHoursOfOperationOverrideError> for Error {
fn from(err: crate::operation::create_hours_of_operation_override::CreateHoursOfOperationOverrideError) -> Self {
match err {
crate::operation::create_hours_of_operation_override::CreateHoursOfOperationOverrideError::DuplicateResourceException(inner) => {
Error::DuplicateResourceException(inner)
}
crate::operation::create_hours_of_operation_override::CreateHoursOfOperationOverrideError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::create_hours_of_operation_override::CreateHoursOfOperationOverrideError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::create_hours_of_operation_override::CreateHoursOfOperationOverrideError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::create_hours_of_operation_override::CreateHoursOfOperationOverrideError::LimitExceededException(inner) => {
Error::LimitExceededException(inner)
}
crate::operation::create_hours_of_operation_override::CreateHoursOfOperationOverrideError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::create_hours_of_operation_override::CreateHoursOfOperationOverrideError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::create_hours_of_operation_override::CreateHoursOfOperationOverrideError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_instance::CreateInstanceError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_instance::CreateInstanceError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_instance::CreateInstanceError> for Error {
fn from(err: crate::operation::create_instance::CreateInstanceError) -> Self {
match err {
crate::operation::create_instance::CreateInstanceError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::create_instance::CreateInstanceError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::create_instance::CreateInstanceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::create_instance::CreateInstanceError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::create_instance::CreateInstanceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::create_instance::CreateInstanceError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_integration_association::CreateIntegrationAssociationError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_integration_association::CreateIntegrationAssociationError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_integration_association::CreateIntegrationAssociationError> for Error {
fn from(err: crate::operation::create_integration_association::CreateIntegrationAssociationError) -> Self {
match err {
crate::operation::create_integration_association::CreateIntegrationAssociationError::DuplicateResourceException(inner) => {
Error::DuplicateResourceException(inner)
}
crate::operation::create_integration_association::CreateIntegrationAssociationError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::create_integration_association::CreateIntegrationAssociationError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::create_integration_association::CreateIntegrationAssociationError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::create_integration_association::CreateIntegrationAssociationError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::create_integration_association::CreateIntegrationAssociationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_participant::CreateParticipantError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_participant::CreateParticipantError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_participant::CreateParticipantError> for Error {
fn from(err: crate::operation::create_participant::CreateParticipantError) -> Self {
match err {
crate::operation::create_participant::CreateParticipantError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::create_participant::CreateParticipantError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::create_participant::CreateParticipantError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::create_participant::CreateParticipantError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::create_participant::CreateParticipantError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::create_participant::CreateParticipantError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_persistent_contact_association::CreatePersistentContactAssociationError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_persistent_contact_association::CreatePersistentContactAssociationError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_persistent_contact_association::CreatePersistentContactAssociationError> for Error {
fn from(err: crate::operation::create_persistent_contact_association::CreatePersistentContactAssociationError) -> Self {
match err {
crate::operation::create_persistent_contact_association::CreatePersistentContactAssociationError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::create_persistent_contact_association::CreatePersistentContactAssociationError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::create_persistent_contact_association::CreatePersistentContactAssociationError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::create_persistent_contact_association::CreatePersistentContactAssociationError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::create_persistent_contact_association::CreatePersistentContactAssociationError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::create_persistent_contact_association::CreatePersistentContactAssociationError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::create_persistent_contact_association::CreatePersistentContactAssociationError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_predefined_attribute::CreatePredefinedAttributeError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_predefined_attribute::CreatePredefinedAttributeError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_predefined_attribute::CreatePredefinedAttributeError> for Error {
fn from(err: crate::operation::create_predefined_attribute::CreatePredefinedAttributeError) -> Self {
match err {
crate::operation::create_predefined_attribute::CreatePredefinedAttributeError::DuplicateResourceException(inner) => {
Error::DuplicateResourceException(inner)
}
crate::operation::create_predefined_attribute::CreatePredefinedAttributeError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::create_predefined_attribute::CreatePredefinedAttributeError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::create_predefined_attribute::CreatePredefinedAttributeError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::create_predefined_attribute::CreatePredefinedAttributeError::LimitExceededException(inner) => {
Error::LimitExceededException(inner)
}
crate::operation::create_predefined_attribute::CreatePredefinedAttributeError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::create_predefined_attribute::CreatePredefinedAttributeError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::create_predefined_attribute::CreatePredefinedAttributeError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_prompt::CreatePromptError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_prompt::CreatePromptError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_prompt::CreatePromptError> for Error {
fn from(err: crate::operation::create_prompt::CreatePromptError) -> Self {
match err {
crate::operation::create_prompt::CreatePromptError::DuplicateResourceException(inner) => Error::DuplicateResourceException(inner),
crate::operation::create_prompt::CreatePromptError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::create_prompt::CreatePromptError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::create_prompt::CreatePromptError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::create_prompt::CreatePromptError::LimitExceededException(inner) => Error::LimitExceededException(inner),
crate::operation::create_prompt::CreatePromptError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::create_prompt::CreatePromptError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_push_notification_registration::CreatePushNotificationRegistrationError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_push_notification_registration::CreatePushNotificationRegistrationError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_push_notification_registration::CreatePushNotificationRegistrationError> for Error {
fn from(err: crate::operation::create_push_notification_registration::CreatePushNotificationRegistrationError) -> Self {
match err {
crate::operation::create_push_notification_registration::CreatePushNotificationRegistrationError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::create_push_notification_registration::CreatePushNotificationRegistrationError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::create_push_notification_registration::CreatePushNotificationRegistrationError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::create_push_notification_registration::CreatePushNotificationRegistrationError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::create_push_notification_registration::CreatePushNotificationRegistrationError::ServiceQuotaExceededException(
inner,
) => Error::ServiceQuotaExceededException(inner),
crate::operation::create_push_notification_registration::CreatePushNotificationRegistrationError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::create_push_notification_registration::CreatePushNotificationRegistrationError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_queue::CreateQueueError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_queue::CreateQueueError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_queue::CreateQueueError> for Error {
fn from(err: crate::operation::create_queue::CreateQueueError) -> Self {
match err {
crate::operation::create_queue::CreateQueueError::DuplicateResourceException(inner) => Error::DuplicateResourceException(inner),
crate::operation::create_queue::CreateQueueError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::create_queue::CreateQueueError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::create_queue::CreateQueueError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::create_queue::CreateQueueError::LimitExceededException(inner) => Error::LimitExceededException(inner),
crate::operation::create_queue::CreateQueueError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::create_queue::CreateQueueError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::create_queue::CreateQueueError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_quick_connect::CreateQuickConnectError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_quick_connect::CreateQuickConnectError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_quick_connect::CreateQuickConnectError> for Error {
fn from(err: crate::operation::create_quick_connect::CreateQuickConnectError) -> Self {
match err {
crate::operation::create_quick_connect::CreateQuickConnectError::DuplicateResourceException(inner) => {
Error::DuplicateResourceException(inner)
}
crate::operation::create_quick_connect::CreateQuickConnectError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::create_quick_connect::CreateQuickConnectError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::create_quick_connect::CreateQuickConnectError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::create_quick_connect::CreateQuickConnectError::LimitExceededException(inner) => Error::LimitExceededException(inner),
crate::operation::create_quick_connect::CreateQuickConnectError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::create_quick_connect::CreateQuickConnectError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::create_quick_connect::CreateQuickConnectError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_routing_profile::CreateRoutingProfileError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_routing_profile::CreateRoutingProfileError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_routing_profile::CreateRoutingProfileError> for Error {
fn from(err: crate::operation::create_routing_profile::CreateRoutingProfileError) -> Self {
match err {
crate::operation::create_routing_profile::CreateRoutingProfileError::DuplicateResourceException(inner) => {
Error::DuplicateResourceException(inner)
}
crate::operation::create_routing_profile::CreateRoutingProfileError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::create_routing_profile::CreateRoutingProfileError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::create_routing_profile::CreateRoutingProfileError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::create_routing_profile::CreateRoutingProfileError::LimitExceededException(inner) => {
Error::LimitExceededException(inner)
}
crate::operation::create_routing_profile::CreateRoutingProfileError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::create_routing_profile::CreateRoutingProfileError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::create_routing_profile::CreateRoutingProfileError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_rule::CreateRuleError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_rule::CreateRuleError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_rule::CreateRuleError> for Error {
fn from(err: crate::operation::create_rule::CreateRuleError) -> Self {
match err {
crate::operation::create_rule::CreateRuleError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::create_rule::CreateRuleError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::create_rule::CreateRuleError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::create_rule::CreateRuleError::ResourceConflictException(inner) => Error::ResourceConflictException(inner),
crate::operation::create_rule::CreateRuleError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::create_rule::CreateRuleError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::create_rule::CreateRuleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::create_rule::CreateRuleError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_security_profile::CreateSecurityProfileError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_security_profile::CreateSecurityProfileError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_security_profile::CreateSecurityProfileError> for Error {
fn from(err: crate::operation::create_security_profile::CreateSecurityProfileError) -> Self {
match err {
crate::operation::create_security_profile::CreateSecurityProfileError::DuplicateResourceException(inner) => {
Error::DuplicateResourceException(inner)
}
crate::operation::create_security_profile::CreateSecurityProfileError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::create_security_profile::CreateSecurityProfileError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::create_security_profile::CreateSecurityProfileError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::create_security_profile::CreateSecurityProfileError::LimitExceededException(inner) => {
Error::LimitExceededException(inner)
}
crate::operation::create_security_profile::CreateSecurityProfileError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::create_security_profile::CreateSecurityProfileError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::create_security_profile::CreateSecurityProfileError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_task_template::CreateTaskTemplateError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_task_template::CreateTaskTemplateError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_task_template::CreateTaskTemplateError> for Error {
fn from(err: crate::operation::create_task_template::CreateTaskTemplateError) -> Self {
match err {
crate::operation::create_task_template::CreateTaskTemplateError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::create_task_template::CreateTaskTemplateError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::create_task_template::CreateTaskTemplateError::PropertyValidationException(inner) => {
Error::PropertyValidationException(inner)
}
crate::operation::create_task_template::CreateTaskTemplateError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::create_task_template::CreateTaskTemplateError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::create_task_template::CreateTaskTemplateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::create_task_template::CreateTaskTemplateError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_traffic_distribution_group::CreateTrafficDistributionGroupError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_traffic_distribution_group::CreateTrafficDistributionGroupError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_traffic_distribution_group::CreateTrafficDistributionGroupError> for Error {
fn from(err: crate::operation::create_traffic_distribution_group::CreateTrafficDistributionGroupError) -> Self {
match err {
crate::operation::create_traffic_distribution_group::CreateTrafficDistributionGroupError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::create_traffic_distribution_group::CreateTrafficDistributionGroupError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::create_traffic_distribution_group::CreateTrafficDistributionGroupError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::create_traffic_distribution_group::CreateTrafficDistributionGroupError::ResourceConflictException(inner) => {
Error::ResourceConflictException(inner)
}
crate::operation::create_traffic_distribution_group::CreateTrafficDistributionGroupError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::create_traffic_distribution_group::CreateTrafficDistributionGroupError::ResourceNotReadyException(inner) => {
Error::ResourceNotReadyException(inner)
}
crate::operation::create_traffic_distribution_group::CreateTrafficDistributionGroupError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::create_traffic_distribution_group::CreateTrafficDistributionGroupError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::create_traffic_distribution_group::CreateTrafficDistributionGroupError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_use_case::CreateUseCaseError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_use_case::CreateUseCaseError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_use_case::CreateUseCaseError> for Error {
fn from(err: crate::operation::create_use_case::CreateUseCaseError) -> Self {
match err {
crate::operation::create_use_case::CreateUseCaseError::DuplicateResourceException(inner) => Error::DuplicateResourceException(inner),
crate::operation::create_use_case::CreateUseCaseError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::create_use_case::CreateUseCaseError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::create_use_case::CreateUseCaseError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::create_use_case::CreateUseCaseError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::create_use_case::CreateUseCaseError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_user::CreateUserError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_user::CreateUserError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_user::CreateUserError> for Error {
fn from(err: crate::operation::create_user::CreateUserError) -> Self {
match err {
crate::operation::create_user::CreateUserError::DuplicateResourceException(inner) => Error::DuplicateResourceException(inner),
crate::operation::create_user::CreateUserError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::create_user::CreateUserError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::create_user::CreateUserError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::create_user::CreateUserError::LimitExceededException(inner) => Error::LimitExceededException(inner),
crate::operation::create_user::CreateUserError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::create_user::CreateUserError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::create_user::CreateUserError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_user_hierarchy_group::CreateUserHierarchyGroupError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_user_hierarchy_group::CreateUserHierarchyGroupError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_user_hierarchy_group::CreateUserHierarchyGroupError> for Error {
fn from(err: crate::operation::create_user_hierarchy_group::CreateUserHierarchyGroupError) -> Self {
match err {
crate::operation::create_user_hierarchy_group::CreateUserHierarchyGroupError::DuplicateResourceException(inner) => {
Error::DuplicateResourceException(inner)
}
crate::operation::create_user_hierarchy_group::CreateUserHierarchyGroupError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::create_user_hierarchy_group::CreateUserHierarchyGroupError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::create_user_hierarchy_group::CreateUserHierarchyGroupError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::create_user_hierarchy_group::CreateUserHierarchyGroupError::LimitExceededException(inner) => {
Error::LimitExceededException(inner)
}
crate::operation::create_user_hierarchy_group::CreateUserHierarchyGroupError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::create_user_hierarchy_group::CreateUserHierarchyGroupError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::create_user_hierarchy_group::CreateUserHierarchyGroupError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_view::CreateViewError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_view::CreateViewError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_view::CreateViewError> for Error {
fn from(err: crate::operation::create_view::CreateViewError) -> Self {
match err {
crate::operation::create_view::CreateViewError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::create_view::CreateViewError::DuplicateResourceException(inner) => Error::DuplicateResourceException(inner),
crate::operation::create_view::CreateViewError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::create_view::CreateViewError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::create_view::CreateViewError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::create_view::CreateViewError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
crate::operation::create_view::CreateViewError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::create_view::CreateViewError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::create_view::CreateViewError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
crate::operation::create_view::CreateViewError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_view_version::CreateViewVersionError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_view_version::CreateViewVersionError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_view_version::CreateViewVersionError> for Error {
fn from(err: crate::operation::create_view_version::CreateViewVersionError) -> Self {
match err {
crate::operation::create_view_version::CreateViewVersionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::create_view_version::CreateViewVersionError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::create_view_version::CreateViewVersionError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::create_view_version::CreateViewVersionError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::create_view_version::CreateViewVersionError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
crate::operation::create_view_version::CreateViewVersionError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::create_view_version::CreateViewVersionError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::create_view_version::CreateViewVersionError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
crate::operation::create_view_version::CreateViewVersionError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vocabulary::CreateVocabularyError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vocabulary::CreateVocabularyError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_vocabulary::CreateVocabularyError> for Error {
fn from(err: crate::operation::create_vocabulary::CreateVocabularyError) -> Self {
match err {
crate::operation::create_vocabulary::CreateVocabularyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::create_vocabulary::CreateVocabularyError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::create_vocabulary::CreateVocabularyError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::create_vocabulary::CreateVocabularyError::ResourceConflictException(inner) => Error::ResourceConflictException(inner),
crate::operation::create_vocabulary::CreateVocabularyError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::create_vocabulary::CreateVocabularyError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::create_vocabulary::CreateVocabularyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::create_vocabulary::CreateVocabularyError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deactivate_evaluation_form::DeactivateEvaluationFormError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deactivate_evaluation_form::DeactivateEvaluationFormError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::deactivate_evaluation_form::DeactivateEvaluationFormError> for Error {
fn from(err: crate::operation::deactivate_evaluation_form::DeactivateEvaluationFormError) -> Self {
match err {
crate::operation::deactivate_evaluation_form::DeactivateEvaluationFormError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::deactivate_evaluation_form::DeactivateEvaluationFormError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::deactivate_evaluation_form::DeactivateEvaluationFormError::ResourceConflictException(inner) => {
Error::ResourceConflictException(inner)
}
crate::operation::deactivate_evaluation_form::DeactivateEvaluationFormError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::deactivate_evaluation_form::DeactivateEvaluationFormError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::deactivate_evaluation_form::DeactivateEvaluationFormError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_attached_file::DeleteAttachedFileError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_attached_file::DeleteAttachedFileError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_attached_file::DeleteAttachedFileError> for Error {
fn from(err: crate::operation::delete_attached_file::DeleteAttachedFileError) -> Self {
match err {
crate::operation::delete_attached_file::DeleteAttachedFileError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::delete_attached_file::DeleteAttachedFileError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::delete_attached_file::DeleteAttachedFileError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::delete_attached_file::DeleteAttachedFileError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::delete_attached_file::DeleteAttachedFileError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::delete_attached_file::DeleteAttachedFileError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_contact_evaluation::DeleteContactEvaluationError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_contact_evaluation::DeleteContactEvaluationError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_contact_evaluation::DeleteContactEvaluationError> for Error {
fn from(err: crate::operation::delete_contact_evaluation::DeleteContactEvaluationError) -> Self {
match err {
crate::operation::delete_contact_evaluation::DeleteContactEvaluationError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::delete_contact_evaluation::DeleteContactEvaluationError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::delete_contact_evaluation::DeleteContactEvaluationError::ResourceConflictException(inner) => {
Error::ResourceConflictException(inner)
}
crate::operation::delete_contact_evaluation::DeleteContactEvaluationError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::delete_contact_evaluation::DeleteContactEvaluationError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::delete_contact_evaluation::DeleteContactEvaluationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_contact_flow::DeleteContactFlowError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_contact_flow::DeleteContactFlowError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_contact_flow::DeleteContactFlowError> for Error {
fn from(err: crate::operation::delete_contact_flow::DeleteContactFlowError) -> Self {
match err {
crate::operation::delete_contact_flow::DeleteContactFlowError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::delete_contact_flow::DeleteContactFlowError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::delete_contact_flow::DeleteContactFlowError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::delete_contact_flow::DeleteContactFlowError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::delete_contact_flow::DeleteContactFlowError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::delete_contact_flow::DeleteContactFlowError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::delete_contact_flow::DeleteContactFlowError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_contact_flow_module::DeleteContactFlowModuleError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_contact_flow_module::DeleteContactFlowModuleError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_contact_flow_module::DeleteContactFlowModuleError> for Error {
fn from(err: crate::operation::delete_contact_flow_module::DeleteContactFlowModuleError) -> Self {
match err {
crate::operation::delete_contact_flow_module::DeleteContactFlowModuleError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::delete_contact_flow_module::DeleteContactFlowModuleError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::delete_contact_flow_module::DeleteContactFlowModuleError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::delete_contact_flow_module::DeleteContactFlowModuleError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::delete_contact_flow_module::DeleteContactFlowModuleError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::delete_contact_flow_module::DeleteContactFlowModuleError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::delete_contact_flow_module::DeleteContactFlowModuleError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_email_address::DeleteEmailAddressError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_email_address::DeleteEmailAddressError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_email_address::DeleteEmailAddressError> for Error {
fn from(err: crate::operation::delete_email_address::DeleteEmailAddressError) -> Self {
match err {
crate::operation::delete_email_address::DeleteEmailAddressError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::delete_email_address::DeleteEmailAddressError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::delete_email_address::DeleteEmailAddressError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::delete_email_address::DeleteEmailAddressError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::delete_email_address::DeleteEmailAddressError::ResourceConflictException(inner) => {
Error::ResourceConflictException(inner)
}
crate::operation::delete_email_address::DeleteEmailAddressError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::delete_email_address::DeleteEmailAddressError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::delete_email_address::DeleteEmailAddressError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_evaluation_form::DeleteEvaluationFormError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_evaluation_form::DeleteEvaluationFormError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_evaluation_form::DeleteEvaluationFormError> for Error {
fn from(err: crate::operation::delete_evaluation_form::DeleteEvaluationFormError) -> Self {
match err {
crate::operation::delete_evaluation_form::DeleteEvaluationFormError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::delete_evaluation_form::DeleteEvaluationFormError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::delete_evaluation_form::DeleteEvaluationFormError::ResourceConflictException(inner) => {
Error::ResourceConflictException(inner)
}
crate::operation::delete_evaluation_form::DeleteEvaluationFormError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::delete_evaluation_form::DeleteEvaluationFormError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::delete_evaluation_form::DeleteEvaluationFormError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_hours_of_operation::DeleteHoursOfOperationError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_hours_of_operation::DeleteHoursOfOperationError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_hours_of_operation::DeleteHoursOfOperationError> for Error {
fn from(err: crate::operation::delete_hours_of_operation::DeleteHoursOfOperationError) -> Self {
match err {
crate::operation::delete_hours_of_operation::DeleteHoursOfOperationError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::delete_hours_of_operation::DeleteHoursOfOperationError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::delete_hours_of_operation::DeleteHoursOfOperationError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::delete_hours_of_operation::DeleteHoursOfOperationError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::delete_hours_of_operation::DeleteHoursOfOperationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::delete_hours_of_operation::DeleteHoursOfOperationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::delete_hours_of_operation_override::DeleteHoursOfOperationOverrideError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::delete_hours_of_operation_override::DeleteHoursOfOperationOverrideError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_hours_of_operation_override::DeleteHoursOfOperationOverrideError> for Error {
fn from(err: crate::operation::delete_hours_of_operation_override::DeleteHoursOfOperationOverrideError) -> Self {
match err {
crate::operation::delete_hours_of_operation_override::DeleteHoursOfOperationOverrideError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::delete_hours_of_operation_override::DeleteHoursOfOperationOverrideError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::delete_hours_of_operation_override::DeleteHoursOfOperationOverrideError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::delete_hours_of_operation_override::DeleteHoursOfOperationOverrideError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::delete_hours_of_operation_override::DeleteHoursOfOperationOverrideError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::delete_hours_of_operation_override::DeleteHoursOfOperationOverrideError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_instance::DeleteInstanceError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_instance::DeleteInstanceError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_instance::DeleteInstanceError> for Error {
fn from(err: crate::operation::delete_instance::DeleteInstanceError) -> Self {
match err {
crate::operation::delete_instance::DeleteInstanceError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::delete_instance::DeleteInstanceError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::delete_instance::DeleteInstanceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::delete_instance::DeleteInstanceError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_integration_association::DeleteIntegrationAssociationError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::delete_integration_association::DeleteIntegrationAssociationError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_integration_association::DeleteIntegrationAssociationError> for Error {
fn from(err: crate::operation::delete_integration_association::DeleteIntegrationAssociationError) -> Self {
match err {
crate::operation::delete_integration_association::DeleteIntegrationAssociationError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::delete_integration_association::DeleteIntegrationAssociationError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::delete_integration_association::DeleteIntegrationAssociationError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::delete_integration_association::DeleteIntegrationAssociationError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::delete_integration_association::DeleteIntegrationAssociationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_predefined_attribute::DeletePredefinedAttributeError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_predefined_attribute::DeletePredefinedAttributeError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_predefined_attribute::DeletePredefinedAttributeError> for Error {
fn from(err: crate::operation::delete_predefined_attribute::DeletePredefinedAttributeError) -> Self {
match err {
crate::operation::delete_predefined_attribute::DeletePredefinedAttributeError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::delete_predefined_attribute::DeletePredefinedAttributeError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::delete_predefined_attribute::DeletePredefinedAttributeError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::delete_predefined_attribute::DeletePredefinedAttributeError::ResourceInUseException(inner) => {
Error::ResourceInUseException(inner)
}
crate::operation::delete_predefined_attribute::DeletePredefinedAttributeError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::delete_predefined_attribute::DeletePredefinedAttributeError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::delete_predefined_attribute::DeletePredefinedAttributeError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_prompt::DeletePromptError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_prompt::DeletePromptError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_prompt::DeletePromptError> for Error {
fn from(err: crate::operation::delete_prompt::DeletePromptError) -> Self {
match err {
crate::operation::delete_prompt::DeletePromptError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::delete_prompt::DeletePromptError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::delete_prompt::DeletePromptError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::delete_prompt::DeletePromptError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::delete_prompt::DeletePromptError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::delete_prompt::DeletePromptError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::delete_push_notification_registration::DeletePushNotificationRegistrationError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::delete_push_notification_registration::DeletePushNotificationRegistrationError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_push_notification_registration::DeletePushNotificationRegistrationError> for Error {
fn from(err: crate::operation::delete_push_notification_registration::DeletePushNotificationRegistrationError) -> Self {
match err {
crate::operation::delete_push_notification_registration::DeletePushNotificationRegistrationError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::delete_push_notification_registration::DeletePushNotificationRegistrationError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::delete_push_notification_registration::DeletePushNotificationRegistrationError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::delete_push_notification_registration::DeletePushNotificationRegistrationError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::delete_push_notification_registration::DeletePushNotificationRegistrationError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::delete_push_notification_registration::DeletePushNotificationRegistrationError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_queue::DeleteQueueError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_queue::DeleteQueueError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_queue::DeleteQueueError> for Error {
fn from(err: crate::operation::delete_queue::DeleteQueueError) -> Self {
match err {
crate::operation::delete_queue::DeleteQueueError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::delete_queue::DeleteQueueError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::delete_queue::DeleteQueueError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::delete_queue::DeleteQueueError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
crate::operation::delete_queue::DeleteQueueError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::delete_queue::DeleteQueueError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::delete_queue::DeleteQueueError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_quick_connect::DeleteQuickConnectError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_quick_connect::DeleteQuickConnectError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_quick_connect::DeleteQuickConnectError> for Error {
fn from(err: crate::operation::delete_quick_connect::DeleteQuickConnectError) -> Self {
match err {
crate::operation::delete_quick_connect::DeleteQuickConnectError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::delete_quick_connect::DeleteQuickConnectError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::delete_quick_connect::DeleteQuickConnectError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::delete_quick_connect::DeleteQuickConnectError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::delete_quick_connect::DeleteQuickConnectError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::delete_quick_connect::DeleteQuickConnectError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_routing_profile::DeleteRoutingProfileError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_routing_profile::DeleteRoutingProfileError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_routing_profile::DeleteRoutingProfileError> for Error {
fn from(err: crate::operation::delete_routing_profile::DeleteRoutingProfileError) -> Self {
match err {
crate::operation::delete_routing_profile::DeleteRoutingProfileError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::delete_routing_profile::DeleteRoutingProfileError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::delete_routing_profile::DeleteRoutingProfileError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::delete_routing_profile::DeleteRoutingProfileError::ResourceInUseException(inner) => {
Error::ResourceInUseException(inner)
}
crate::operation::delete_routing_profile::DeleteRoutingProfileError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::delete_routing_profile::DeleteRoutingProfileError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::delete_routing_profile::DeleteRoutingProfileError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_rule::DeleteRuleError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_rule::DeleteRuleError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_rule::DeleteRuleError> for Error {
fn from(err: crate::operation::delete_rule::DeleteRuleError) -> Self {
match err {
crate::operation::delete_rule::DeleteRuleError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::delete_rule::DeleteRuleError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::delete_rule::DeleteRuleError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::delete_rule::DeleteRuleError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::delete_rule::DeleteRuleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::delete_rule::DeleteRuleError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_security_profile::DeleteSecurityProfileError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_security_profile::DeleteSecurityProfileError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_security_profile::DeleteSecurityProfileError> for Error {
fn from(err: crate::operation::delete_security_profile::DeleteSecurityProfileError) -> Self {
match err {
crate::operation::delete_security_profile::DeleteSecurityProfileError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::delete_security_profile::DeleteSecurityProfileError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::delete_security_profile::DeleteSecurityProfileError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::delete_security_profile::DeleteSecurityProfileError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::delete_security_profile::DeleteSecurityProfileError::ResourceInUseException(inner) => {
Error::ResourceInUseException(inner)
}
crate::operation::delete_security_profile::DeleteSecurityProfileError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::delete_security_profile::DeleteSecurityProfileError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::delete_security_profile::DeleteSecurityProfileError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_task_template::DeleteTaskTemplateError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_task_template::DeleteTaskTemplateError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_task_template::DeleteTaskTemplateError> for Error {
fn from(err: crate::operation::delete_task_template::DeleteTaskTemplateError) -> Self {
match err {
crate::operation::delete_task_template::DeleteTaskTemplateError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::delete_task_template::DeleteTaskTemplateError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::delete_task_template::DeleteTaskTemplateError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::delete_task_template::DeleteTaskTemplateError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::delete_task_template::DeleteTaskTemplateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::delete_task_template::DeleteTaskTemplateError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::delete_traffic_distribution_group::DeleteTrafficDistributionGroupError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::delete_traffic_distribution_group::DeleteTrafficDistributionGroupError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_traffic_distribution_group::DeleteTrafficDistributionGroupError> for Error {
fn from(err: crate::operation::delete_traffic_distribution_group::DeleteTrafficDistributionGroupError) -> Self {
match err {
crate::operation::delete_traffic_distribution_group::DeleteTrafficDistributionGroupError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::delete_traffic_distribution_group::DeleteTrafficDistributionGroupError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::delete_traffic_distribution_group::DeleteTrafficDistributionGroupError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::delete_traffic_distribution_group::DeleteTrafficDistributionGroupError::ResourceInUseException(inner) => {
Error::ResourceInUseException(inner)
}
crate::operation::delete_traffic_distribution_group::DeleteTrafficDistributionGroupError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::delete_traffic_distribution_group::DeleteTrafficDistributionGroupError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_use_case::DeleteUseCaseError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_use_case::DeleteUseCaseError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_use_case::DeleteUseCaseError> for Error {
fn from(err: crate::operation::delete_use_case::DeleteUseCaseError) -> Self {
match err {
crate::operation::delete_use_case::DeleteUseCaseError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::delete_use_case::DeleteUseCaseError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::delete_use_case::DeleteUseCaseError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::delete_use_case::DeleteUseCaseError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::delete_use_case::DeleteUseCaseError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_user::DeleteUserError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_user::DeleteUserError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_user::DeleteUserError> for Error {
fn from(err: crate::operation::delete_user::DeleteUserError) -> Self {
match err {
crate::operation::delete_user::DeleteUserError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::delete_user::DeleteUserError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::delete_user::DeleteUserError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::delete_user::DeleteUserError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::delete_user::DeleteUserError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::delete_user::DeleteUserError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_user_hierarchy_group::DeleteUserHierarchyGroupError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_user_hierarchy_group::DeleteUserHierarchyGroupError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_user_hierarchy_group::DeleteUserHierarchyGroupError> for Error {
fn from(err: crate::operation::delete_user_hierarchy_group::DeleteUserHierarchyGroupError) -> Self {
match err {
crate::operation::delete_user_hierarchy_group::DeleteUserHierarchyGroupError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::delete_user_hierarchy_group::DeleteUserHierarchyGroupError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::delete_user_hierarchy_group::DeleteUserHierarchyGroupError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::delete_user_hierarchy_group::DeleteUserHierarchyGroupError::ResourceInUseException(inner) => {
Error::ResourceInUseException(inner)
}
crate::operation::delete_user_hierarchy_group::DeleteUserHierarchyGroupError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::delete_user_hierarchy_group::DeleteUserHierarchyGroupError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::delete_user_hierarchy_group::DeleteUserHierarchyGroupError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_view::DeleteViewError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_view::DeleteViewError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_view::DeleteViewError> for Error {
fn from(err: crate::operation::delete_view::DeleteViewError) -> Self {
match err {
crate::operation::delete_view::DeleteViewError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::delete_view::DeleteViewError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::delete_view::DeleteViewError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::delete_view::DeleteViewError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::delete_view::DeleteViewError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
crate::operation::delete_view::DeleteViewError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::delete_view::DeleteViewError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
crate::operation::delete_view::DeleteViewError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_view_version::DeleteViewVersionError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_view_version::DeleteViewVersionError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_view_version::DeleteViewVersionError> for Error {
fn from(err: crate::operation::delete_view_version::DeleteViewVersionError) -> Self {
match err {
crate::operation::delete_view_version::DeleteViewVersionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::delete_view_version::DeleteViewVersionError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::delete_view_version::DeleteViewVersionError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::delete_view_version::DeleteViewVersionError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::delete_view_version::DeleteViewVersionError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
crate::operation::delete_view_version::DeleteViewVersionError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::delete_view_version::DeleteViewVersionError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
crate::operation::delete_view_version::DeleteViewVersionError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vocabulary::DeleteVocabularyError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vocabulary::DeleteVocabularyError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_vocabulary::DeleteVocabularyError> for Error {
fn from(err: crate::operation::delete_vocabulary::DeleteVocabularyError) -> Self {
match err {
crate::operation::delete_vocabulary::DeleteVocabularyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::delete_vocabulary::DeleteVocabularyError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::delete_vocabulary::DeleteVocabularyError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::delete_vocabulary::DeleteVocabularyError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
crate::operation::delete_vocabulary::DeleteVocabularyError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::delete_vocabulary::DeleteVocabularyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::delete_vocabulary::DeleteVocabularyError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_agent_status::DescribeAgentStatusError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_agent_status::DescribeAgentStatusError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::describe_agent_status::DescribeAgentStatusError> for Error {
fn from(err: crate::operation::describe_agent_status::DescribeAgentStatusError) -> Self {
match err {
crate::operation::describe_agent_status::DescribeAgentStatusError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::describe_agent_status::DescribeAgentStatusError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::describe_agent_status::DescribeAgentStatusError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::describe_agent_status::DescribeAgentStatusError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::describe_agent_status::DescribeAgentStatusError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::describe_agent_status::DescribeAgentStatusError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_authentication_profile::DescribeAuthenticationProfileError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_authentication_profile::DescribeAuthenticationProfileError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::describe_authentication_profile::DescribeAuthenticationProfileError> for Error {
fn from(err: crate::operation::describe_authentication_profile::DescribeAuthenticationProfileError) -> Self {
match err {
crate::operation::describe_authentication_profile::DescribeAuthenticationProfileError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::describe_authentication_profile::DescribeAuthenticationProfileError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::describe_authentication_profile::DescribeAuthenticationProfileError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::describe_authentication_profile::DescribeAuthenticationProfileError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::describe_authentication_profile::DescribeAuthenticationProfileError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::describe_authentication_profile::DescribeAuthenticationProfileError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_contact::DescribeContactError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_contact::DescribeContactError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::describe_contact::DescribeContactError> for Error {
fn from(err: crate::operation::describe_contact::DescribeContactError) -> Self {
match err {
crate::operation::describe_contact::DescribeContactError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::describe_contact::DescribeContactError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::describe_contact::DescribeContactError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::describe_contact::DescribeContactError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::describe_contact::DescribeContactError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::describe_contact::DescribeContactError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_contact_evaluation::DescribeContactEvaluationError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_contact_evaluation::DescribeContactEvaluationError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::describe_contact_evaluation::DescribeContactEvaluationError> for Error {
fn from(err: crate::operation::describe_contact_evaluation::DescribeContactEvaluationError) -> Self {
match err {
crate::operation::describe_contact_evaluation::DescribeContactEvaluationError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::describe_contact_evaluation::DescribeContactEvaluationError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::describe_contact_evaluation::DescribeContactEvaluationError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::describe_contact_evaluation::DescribeContactEvaluationError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::describe_contact_evaluation::DescribeContactEvaluationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_contact_flow::DescribeContactFlowError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_contact_flow::DescribeContactFlowError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::describe_contact_flow::DescribeContactFlowError> for Error {
fn from(err: crate::operation::describe_contact_flow::DescribeContactFlowError) -> Self {
match err {
crate::operation::describe_contact_flow::DescribeContactFlowError::ContactFlowNotPublishedException(inner) => {
Error::ContactFlowNotPublishedException(inner)
}
crate::operation::describe_contact_flow::DescribeContactFlowError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::describe_contact_flow::DescribeContactFlowError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::describe_contact_flow::DescribeContactFlowError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::describe_contact_flow::DescribeContactFlowError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::describe_contact_flow::DescribeContactFlowError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::describe_contact_flow::DescribeContactFlowError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_contact_flow_module::DescribeContactFlowModuleError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_contact_flow_module::DescribeContactFlowModuleError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::describe_contact_flow_module::DescribeContactFlowModuleError> for Error {
fn from(err: crate::operation::describe_contact_flow_module::DescribeContactFlowModuleError) -> Self {
match err {
crate::operation::describe_contact_flow_module::DescribeContactFlowModuleError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::describe_contact_flow_module::DescribeContactFlowModuleError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::describe_contact_flow_module::DescribeContactFlowModuleError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::describe_contact_flow_module::DescribeContactFlowModuleError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::describe_contact_flow_module::DescribeContactFlowModuleError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::describe_contact_flow_module::DescribeContactFlowModuleError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::describe_contact_flow_module::DescribeContactFlowModuleError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_email_address::DescribeEmailAddressError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_email_address::DescribeEmailAddressError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::describe_email_address::DescribeEmailAddressError> for Error {
fn from(err: crate::operation::describe_email_address::DescribeEmailAddressError) -> Self {
match err {
crate::operation::describe_email_address::DescribeEmailAddressError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::describe_email_address::DescribeEmailAddressError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::describe_email_address::DescribeEmailAddressError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::describe_email_address::DescribeEmailAddressError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::describe_email_address::DescribeEmailAddressError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::describe_email_address::DescribeEmailAddressError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::describe_email_address::DescribeEmailAddressError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_evaluation_form::DescribeEvaluationFormError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_evaluation_form::DescribeEvaluationFormError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::describe_evaluation_form::DescribeEvaluationFormError> for Error {
fn from(err: crate::operation::describe_evaluation_form::DescribeEvaluationFormError) -> Self {
match err {
crate::operation::describe_evaluation_form::DescribeEvaluationFormError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::describe_evaluation_form::DescribeEvaluationFormError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::describe_evaluation_form::DescribeEvaluationFormError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::describe_evaluation_form::DescribeEvaluationFormError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::describe_evaluation_form::DescribeEvaluationFormError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_hours_of_operation::DescribeHoursOfOperationError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_hours_of_operation::DescribeHoursOfOperationError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::describe_hours_of_operation::DescribeHoursOfOperationError> for Error {
fn from(err: crate::operation::describe_hours_of_operation::DescribeHoursOfOperationError) -> Self {
match err {
crate::operation::describe_hours_of_operation::DescribeHoursOfOperationError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::describe_hours_of_operation::DescribeHoursOfOperationError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::describe_hours_of_operation::DescribeHoursOfOperationError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::describe_hours_of_operation::DescribeHoursOfOperationError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::describe_hours_of_operation::DescribeHoursOfOperationError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::describe_hours_of_operation::DescribeHoursOfOperationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_hours_of_operation_override::DescribeHoursOfOperationOverrideError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_hours_of_operation_override::DescribeHoursOfOperationOverrideError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::describe_hours_of_operation_override::DescribeHoursOfOperationOverrideError> for Error {
fn from(err: crate::operation::describe_hours_of_operation_override::DescribeHoursOfOperationOverrideError) -> Self {
match err {
crate::operation::describe_hours_of_operation_override::DescribeHoursOfOperationOverrideError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::describe_hours_of_operation_override::DescribeHoursOfOperationOverrideError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::describe_hours_of_operation_override::DescribeHoursOfOperationOverrideError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::describe_hours_of_operation_override::DescribeHoursOfOperationOverrideError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::describe_hours_of_operation_override::DescribeHoursOfOperationOverrideError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::describe_hours_of_operation_override::DescribeHoursOfOperationOverrideError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance::DescribeInstanceError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance::DescribeInstanceError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::describe_instance::DescribeInstanceError> for Error {
fn from(err: crate::operation::describe_instance::DescribeInstanceError) -> Self {
match err {
crate::operation::describe_instance::DescribeInstanceError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::describe_instance::DescribeInstanceError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::describe_instance::DescribeInstanceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::describe_instance::DescribeInstanceError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_attribute::DescribeInstanceAttributeError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_attribute::DescribeInstanceAttributeError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::describe_instance_attribute::DescribeInstanceAttributeError> for Error {
fn from(err: crate::operation::describe_instance_attribute::DescribeInstanceAttributeError) -> Self {
match err {
crate::operation::describe_instance_attribute::DescribeInstanceAttributeError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::describe_instance_attribute::DescribeInstanceAttributeError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::describe_instance_attribute::DescribeInstanceAttributeError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::describe_instance_attribute::DescribeInstanceAttributeError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::describe_instance_attribute::DescribeInstanceAttributeError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::describe_instance_attribute::DescribeInstanceAttributeError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_storage_config::DescribeInstanceStorageConfigError, R>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_instance_storage_config::DescribeInstanceStorageConfigError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::describe_instance_storage_config::DescribeInstanceStorageConfigError> for Error {
fn from(err: crate::operation::describe_instance_storage_config::DescribeInstanceStorageConfigError) -> Self {
match err {
crate::operation::describe_instance_storage_config::DescribeInstanceStorageConfigError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::describe_instance_storage_config::DescribeInstanceStorageConfigError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::describe_instance_storage_config::DescribeInstanceStorageConfigError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::describe_instance_storage_config::DescribeInstanceStorageConfigError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::describe_instance_storage_config::DescribeInstanceStorageConfigError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::describe_instance_storage_config::DescribeInstanceStorageConfigError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_phone_number::DescribePhoneNumberError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_phone_number::DescribePhoneNumberError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::describe_phone_number::DescribePhoneNumberError> for Error {
fn from(err: crate::operation::describe_phone_number::DescribePhoneNumberError) -> Self {
match err {
crate::operation::describe_phone_number::DescribePhoneNumberError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::describe_phone_number::DescribePhoneNumberError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::describe_phone_number::DescribePhoneNumberError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::describe_phone_number::DescribePhoneNumberError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::describe_phone_number::DescribePhoneNumberError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::describe_phone_number::DescribePhoneNumberError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_predefined_attribute::DescribePredefinedAttributeError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_predefined_attribute::DescribePredefinedAttributeError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::describe_predefined_attribute::DescribePredefinedAttributeError> for Error {
fn from(err: crate::operation::describe_predefined_attribute::DescribePredefinedAttributeError) -> Self {
match err {
crate::operation::describe_predefined_attribute::DescribePredefinedAttributeError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::describe_predefined_attribute::DescribePredefinedAttributeError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::describe_predefined_attribute::DescribePredefinedAttributeError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::describe_predefined_attribute::DescribePredefinedAttributeError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::describe_predefined_attribute::DescribePredefinedAttributeError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::describe_predefined_attribute::DescribePredefinedAttributeError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_prompt::DescribePromptError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_prompt::DescribePromptError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::describe_prompt::DescribePromptError> for Error {
fn from(err: crate::operation::describe_prompt::DescribePromptError) -> Self {
match err {
crate::operation::describe_prompt::DescribePromptError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::describe_prompt::DescribePromptError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::describe_prompt::DescribePromptError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::describe_prompt::DescribePromptError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::describe_prompt::DescribePromptError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::describe_prompt::DescribePromptError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_queue::DescribeQueueError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_queue::DescribeQueueError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::describe_queue::DescribeQueueError> for Error {
fn from(err: crate::operation::describe_queue::DescribeQueueError) -> Self {
match err {
crate::operation::describe_queue::DescribeQueueError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::describe_queue::DescribeQueueError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::describe_queue::DescribeQueueError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::describe_queue::DescribeQueueError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::describe_queue::DescribeQueueError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::describe_queue::DescribeQueueError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_quick_connect::DescribeQuickConnectError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_quick_connect::DescribeQuickConnectError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::describe_quick_connect::DescribeQuickConnectError> for Error {
fn from(err: crate::operation::describe_quick_connect::DescribeQuickConnectError) -> Self {
match err {
crate::operation::describe_quick_connect::DescribeQuickConnectError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::describe_quick_connect::DescribeQuickConnectError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::describe_quick_connect::DescribeQuickConnectError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::describe_quick_connect::DescribeQuickConnectError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::describe_quick_connect::DescribeQuickConnectError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::describe_quick_connect::DescribeQuickConnectError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_routing_profile::DescribeRoutingProfileError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_routing_profile::DescribeRoutingProfileError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::describe_routing_profile::DescribeRoutingProfileError> for Error {
fn from(err: crate::operation::describe_routing_profile::DescribeRoutingProfileError) -> Self {
match err {
crate::operation::describe_routing_profile::DescribeRoutingProfileError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::describe_routing_profile::DescribeRoutingProfileError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::describe_routing_profile::DescribeRoutingProfileError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::describe_routing_profile::DescribeRoutingProfileError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::describe_routing_profile::DescribeRoutingProfileError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::describe_routing_profile::DescribeRoutingProfileError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_rule::DescribeRuleError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_rule::DescribeRuleError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::describe_rule::DescribeRuleError> for Error {
fn from(err: crate::operation::describe_rule::DescribeRuleError) -> Self {
match err {
crate::operation::describe_rule::DescribeRuleError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::describe_rule::DescribeRuleError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::describe_rule::DescribeRuleError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::describe_rule::DescribeRuleError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::describe_rule::DescribeRuleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::describe_rule::DescribeRuleError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_security_profile::DescribeSecurityProfileError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_security_profile::DescribeSecurityProfileError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::describe_security_profile::DescribeSecurityProfileError> for Error {
fn from(err: crate::operation::describe_security_profile::DescribeSecurityProfileError) -> Self {
match err {
crate::operation::describe_security_profile::DescribeSecurityProfileError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::describe_security_profile::DescribeSecurityProfileError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::describe_security_profile::DescribeSecurityProfileError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::describe_security_profile::DescribeSecurityProfileError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::describe_security_profile::DescribeSecurityProfileError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::describe_security_profile::DescribeSecurityProfileError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_traffic_distribution_group::DescribeTrafficDistributionGroupError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_traffic_distribution_group::DescribeTrafficDistributionGroupError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::describe_traffic_distribution_group::DescribeTrafficDistributionGroupError> for Error {
fn from(err: crate::operation::describe_traffic_distribution_group::DescribeTrafficDistributionGroupError) -> Self {
match err {
crate::operation::describe_traffic_distribution_group::DescribeTrafficDistributionGroupError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::describe_traffic_distribution_group::DescribeTrafficDistributionGroupError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::describe_traffic_distribution_group::DescribeTrafficDistributionGroupError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::describe_traffic_distribution_group::DescribeTrafficDistributionGroupError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::describe_traffic_distribution_group::DescribeTrafficDistributionGroupError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::describe_traffic_distribution_group::DescribeTrafficDistributionGroupError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_user::DescribeUserError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_user::DescribeUserError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::describe_user::DescribeUserError> for Error {
fn from(err: crate::operation::describe_user::DescribeUserError) -> Self {
match err {
crate::operation::describe_user::DescribeUserError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::describe_user::DescribeUserError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::describe_user::DescribeUserError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::describe_user::DescribeUserError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::describe_user::DescribeUserError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::describe_user::DescribeUserError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_user_hierarchy_group::DescribeUserHierarchyGroupError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_user_hierarchy_group::DescribeUserHierarchyGroupError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::describe_user_hierarchy_group::DescribeUserHierarchyGroupError> for Error {
fn from(err: crate::operation::describe_user_hierarchy_group::DescribeUserHierarchyGroupError) -> Self {
match err {
crate::operation::describe_user_hierarchy_group::DescribeUserHierarchyGroupError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::describe_user_hierarchy_group::DescribeUserHierarchyGroupError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::describe_user_hierarchy_group::DescribeUserHierarchyGroupError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::describe_user_hierarchy_group::DescribeUserHierarchyGroupError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::describe_user_hierarchy_group::DescribeUserHierarchyGroupError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::describe_user_hierarchy_group::DescribeUserHierarchyGroupError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_user_hierarchy_structure::DescribeUserHierarchyStructureError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_user_hierarchy_structure::DescribeUserHierarchyStructureError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::describe_user_hierarchy_structure::DescribeUserHierarchyStructureError> for Error {
fn from(err: crate::operation::describe_user_hierarchy_structure::DescribeUserHierarchyStructureError) -> Self {
match err {
crate::operation::describe_user_hierarchy_structure::DescribeUserHierarchyStructureError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::describe_user_hierarchy_structure::DescribeUserHierarchyStructureError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::describe_user_hierarchy_structure::DescribeUserHierarchyStructureError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::describe_user_hierarchy_structure::DescribeUserHierarchyStructureError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::describe_user_hierarchy_structure::DescribeUserHierarchyStructureError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::describe_user_hierarchy_structure::DescribeUserHierarchyStructureError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_view::DescribeViewError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_view::DescribeViewError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::describe_view::DescribeViewError> for Error {
fn from(err: crate::operation::describe_view::DescribeViewError) -> Self {
match err {
crate::operation::describe_view::DescribeViewError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::describe_view::DescribeViewError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::describe_view::DescribeViewError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::describe_view::DescribeViewError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::describe_view::DescribeViewError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::describe_view::DescribeViewError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
crate::operation::describe_view::DescribeViewError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vocabulary::DescribeVocabularyError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vocabulary::DescribeVocabularyError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::describe_vocabulary::DescribeVocabularyError> for Error {
fn from(err: crate::operation::describe_vocabulary::DescribeVocabularyError) -> Self {
match err {
crate::operation::describe_vocabulary::DescribeVocabularyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::describe_vocabulary::DescribeVocabularyError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::describe_vocabulary::DescribeVocabularyError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::describe_vocabulary::DescribeVocabularyError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::describe_vocabulary::DescribeVocabularyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::describe_vocabulary::DescribeVocabularyError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_analytics_data_set::DisassociateAnalyticsDataSetError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::disassociate_analytics_data_set::DisassociateAnalyticsDataSetError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::disassociate_analytics_data_set::DisassociateAnalyticsDataSetError> for Error {
fn from(err: crate::operation::disassociate_analytics_data_set::DisassociateAnalyticsDataSetError) -> Self {
match err {
crate::operation::disassociate_analytics_data_set::DisassociateAnalyticsDataSetError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::disassociate_analytics_data_set::DisassociateAnalyticsDataSetError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::disassociate_analytics_data_set::DisassociateAnalyticsDataSetError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::disassociate_analytics_data_set::DisassociateAnalyticsDataSetError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::disassociate_analytics_data_set::DisassociateAnalyticsDataSetError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::disassociate_analytics_data_set::DisassociateAnalyticsDataSetError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_approved_origin::DisassociateApprovedOriginError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_approved_origin::DisassociateApprovedOriginError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::disassociate_approved_origin::DisassociateApprovedOriginError> for Error {
fn from(err: crate::operation::disassociate_approved_origin::DisassociateApprovedOriginError) -> Self {
match err {
crate::operation::disassociate_approved_origin::DisassociateApprovedOriginError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::disassociate_approved_origin::DisassociateApprovedOriginError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::disassociate_approved_origin::DisassociateApprovedOriginError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::disassociate_approved_origin::DisassociateApprovedOriginError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::disassociate_approved_origin::DisassociateApprovedOriginError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::disassociate_approved_origin::DisassociateApprovedOriginError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_bot::DisassociateBotError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_bot::DisassociateBotError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::disassociate_bot::DisassociateBotError> for Error {
fn from(err: crate::operation::disassociate_bot::DisassociateBotError) -> Self {
match err {
crate::operation::disassociate_bot::DisassociateBotError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::disassociate_bot::DisassociateBotError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::disassociate_bot::DisassociateBotError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::disassociate_bot::DisassociateBotError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::disassociate_bot::DisassociateBotError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_flow::DisassociateFlowError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_flow::DisassociateFlowError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::disassociate_flow::DisassociateFlowError> for Error {
fn from(err: crate::operation::disassociate_flow::DisassociateFlowError) -> Self {
match err {
crate::operation::disassociate_flow::DisassociateFlowError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::disassociate_flow::DisassociateFlowError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::disassociate_flow::DisassociateFlowError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::disassociate_flow::DisassociateFlowError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::disassociate_flow::DisassociateFlowError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::disassociate_flow::DisassociateFlowError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::disassociate_flow::DisassociateFlowError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::disassociate_instance_storage_config::DisassociateInstanceStorageConfigError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::disassociate_instance_storage_config::DisassociateInstanceStorageConfigError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::disassociate_instance_storage_config::DisassociateInstanceStorageConfigError> for Error {
fn from(err: crate::operation::disassociate_instance_storage_config::DisassociateInstanceStorageConfigError) -> Self {
match err {
crate::operation::disassociate_instance_storage_config::DisassociateInstanceStorageConfigError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::disassociate_instance_storage_config::DisassociateInstanceStorageConfigError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::disassociate_instance_storage_config::DisassociateInstanceStorageConfigError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::disassociate_instance_storage_config::DisassociateInstanceStorageConfigError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::disassociate_instance_storage_config::DisassociateInstanceStorageConfigError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::disassociate_instance_storage_config::DisassociateInstanceStorageConfigError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_lambda_function::DisassociateLambdaFunctionError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_lambda_function::DisassociateLambdaFunctionError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::disassociate_lambda_function::DisassociateLambdaFunctionError> for Error {
fn from(err: crate::operation::disassociate_lambda_function::DisassociateLambdaFunctionError) -> Self {
match err {
crate::operation::disassociate_lambda_function::DisassociateLambdaFunctionError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::disassociate_lambda_function::DisassociateLambdaFunctionError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::disassociate_lambda_function::DisassociateLambdaFunctionError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::disassociate_lambda_function::DisassociateLambdaFunctionError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::disassociate_lambda_function::DisassociateLambdaFunctionError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::disassociate_lambda_function::DisassociateLambdaFunctionError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_lex_bot::DisassociateLexBotError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_lex_bot::DisassociateLexBotError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::disassociate_lex_bot::DisassociateLexBotError> for Error {
fn from(err: crate::operation::disassociate_lex_bot::DisassociateLexBotError) -> Self {
match err {
crate::operation::disassociate_lex_bot::DisassociateLexBotError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::disassociate_lex_bot::DisassociateLexBotError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::disassociate_lex_bot::DisassociateLexBotError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::disassociate_lex_bot::DisassociateLexBotError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::disassociate_lex_bot::DisassociateLexBotError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::disassociate_lex_bot::DisassociateLexBotError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::disassociate_phone_number_contact_flow::DisassociatePhoneNumberContactFlowError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::disassociate_phone_number_contact_flow::DisassociatePhoneNumberContactFlowError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::disassociate_phone_number_contact_flow::DisassociatePhoneNumberContactFlowError> for Error {
fn from(err: crate::operation::disassociate_phone_number_contact_flow::DisassociatePhoneNumberContactFlowError) -> Self {
match err {
crate::operation::disassociate_phone_number_contact_flow::DisassociatePhoneNumberContactFlowError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::disassociate_phone_number_contact_flow::DisassociatePhoneNumberContactFlowError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::disassociate_phone_number_contact_flow::DisassociatePhoneNumberContactFlowError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::disassociate_phone_number_contact_flow::DisassociatePhoneNumberContactFlowError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::disassociate_phone_number_contact_flow::DisassociatePhoneNumberContactFlowError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::disassociate_phone_number_contact_flow::DisassociatePhoneNumberContactFlowError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::disassociate_queue_quick_connects::DisassociateQueueQuickConnectsError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::disassociate_queue_quick_connects::DisassociateQueueQuickConnectsError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::disassociate_queue_quick_connects::DisassociateQueueQuickConnectsError> for Error {
fn from(err: crate::operation::disassociate_queue_quick_connects::DisassociateQueueQuickConnectsError) -> Self {
match err {
crate::operation::disassociate_queue_quick_connects::DisassociateQueueQuickConnectsError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::disassociate_queue_quick_connects::DisassociateQueueQuickConnectsError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::disassociate_queue_quick_connects::DisassociateQueueQuickConnectsError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::disassociate_queue_quick_connects::DisassociateQueueQuickConnectsError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::disassociate_queue_quick_connects::DisassociateQueueQuickConnectsError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::disassociate_queue_quick_connects::DisassociateQueueQuickConnectsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::disassociate_routing_profile_queues::DisassociateRoutingProfileQueuesError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::disassociate_routing_profile_queues::DisassociateRoutingProfileQueuesError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::disassociate_routing_profile_queues::DisassociateRoutingProfileQueuesError> for Error {
fn from(err: crate::operation::disassociate_routing_profile_queues::DisassociateRoutingProfileQueuesError) -> Self {
match err {
crate::operation::disassociate_routing_profile_queues::DisassociateRoutingProfileQueuesError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::disassociate_routing_profile_queues::DisassociateRoutingProfileQueuesError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::disassociate_routing_profile_queues::DisassociateRoutingProfileQueuesError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::disassociate_routing_profile_queues::DisassociateRoutingProfileQueuesError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::disassociate_routing_profile_queues::DisassociateRoutingProfileQueuesError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::disassociate_routing_profile_queues::DisassociateRoutingProfileQueuesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_security_key::DisassociateSecurityKeyError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_security_key::DisassociateSecurityKeyError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::disassociate_security_key::DisassociateSecurityKeyError> for Error {
fn from(err: crate::operation::disassociate_security_key::DisassociateSecurityKeyError) -> Self {
match err {
crate::operation::disassociate_security_key::DisassociateSecurityKeyError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::disassociate_security_key::DisassociateSecurityKeyError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::disassociate_security_key::DisassociateSecurityKeyError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::disassociate_security_key::DisassociateSecurityKeyError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::disassociate_security_key::DisassociateSecurityKeyError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::disassociate_security_key::DisassociateSecurityKeyError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::disassociate_traffic_distribution_group_user::DisassociateTrafficDistributionGroupUserError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::disassociate_traffic_distribution_group_user::DisassociateTrafficDistributionGroupUserError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::disassociate_traffic_distribution_group_user::DisassociateTrafficDistributionGroupUserError> for Error {
fn from(err: crate::operation::disassociate_traffic_distribution_group_user::DisassociateTrafficDistributionGroupUserError) -> Self {
match err {
crate::operation::disassociate_traffic_distribution_group_user::DisassociateTrafficDistributionGroupUserError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::disassociate_traffic_distribution_group_user::DisassociateTrafficDistributionGroupUserError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::disassociate_traffic_distribution_group_user::DisassociateTrafficDistributionGroupUserError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::disassociate_traffic_distribution_group_user::DisassociateTrafficDistributionGroupUserError::ResourceConflictException(inner) => Error::ResourceConflictException(inner),
crate::operation::disassociate_traffic_distribution_group_user::DisassociateTrafficDistributionGroupUserError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::disassociate_traffic_distribution_group_user::DisassociateTrafficDistributionGroupUserError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::disassociate_traffic_distribution_group_user::DisassociateTrafficDistributionGroupUserError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_user_proficiencies::DisassociateUserProficienciesError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::disassociate_user_proficiencies::DisassociateUserProficienciesError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::disassociate_user_proficiencies::DisassociateUserProficienciesError> for Error {
fn from(err: crate::operation::disassociate_user_proficiencies::DisassociateUserProficienciesError) -> Self {
match err {
crate::operation::disassociate_user_proficiencies::DisassociateUserProficienciesError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::disassociate_user_proficiencies::DisassociateUserProficienciesError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::disassociate_user_proficiencies::DisassociateUserProficienciesError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::disassociate_user_proficiencies::DisassociateUserProficienciesError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::disassociate_user_proficiencies::DisassociateUserProficienciesError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::disassociate_user_proficiencies::DisassociateUserProficienciesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::dismiss_user_contact::DismissUserContactError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::dismiss_user_contact::DismissUserContactError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::dismiss_user_contact::DismissUserContactError> for Error {
fn from(err: crate::operation::dismiss_user_contact::DismissUserContactError) -> Self {
match err {
crate::operation::dismiss_user_contact::DismissUserContactError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::dismiss_user_contact::DismissUserContactError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::dismiss_user_contact::DismissUserContactError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::dismiss_user_contact::DismissUserContactError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::dismiss_user_contact::DismissUserContactError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::dismiss_user_contact::DismissUserContactError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::dismiss_user_contact::DismissUserContactError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_attached_file::GetAttachedFileError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_attached_file::GetAttachedFileError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::get_attached_file::GetAttachedFileError> for Error {
fn from(err: crate::operation::get_attached_file::GetAttachedFileError) -> Self {
match err {
crate::operation::get_attached_file::GetAttachedFileError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::get_attached_file::GetAttachedFileError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::get_attached_file::GetAttachedFileError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::get_attached_file::GetAttachedFileError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::get_attached_file::GetAttachedFileError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::get_attached_file::GetAttachedFileError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_contact_attributes::GetContactAttributesError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_contact_attributes::GetContactAttributesError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::get_contact_attributes::GetContactAttributesError> for Error {
fn from(err: crate::operation::get_contact_attributes::GetContactAttributesError) -> Self {
match err {
crate::operation::get_contact_attributes::GetContactAttributesError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::get_contact_attributes::GetContactAttributesError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::get_contact_attributes::GetContactAttributesError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::get_contact_attributes::GetContactAttributesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_current_metric_data::GetCurrentMetricDataError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_current_metric_data::GetCurrentMetricDataError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::get_current_metric_data::GetCurrentMetricDataError> for Error {
fn from(err: crate::operation::get_current_metric_data::GetCurrentMetricDataError) -> Self {
match err {
crate::operation::get_current_metric_data::GetCurrentMetricDataError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::get_current_metric_data::GetCurrentMetricDataError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::get_current_metric_data::GetCurrentMetricDataError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::get_current_metric_data::GetCurrentMetricDataError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::get_current_metric_data::GetCurrentMetricDataError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::get_current_metric_data::GetCurrentMetricDataError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_current_user_data::GetCurrentUserDataError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_current_user_data::GetCurrentUserDataError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::get_current_user_data::GetCurrentUserDataError> for Error {
fn from(err: crate::operation::get_current_user_data::GetCurrentUserDataError) -> Self {
match err {
crate::operation::get_current_user_data::GetCurrentUserDataError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::get_current_user_data::GetCurrentUserDataError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::get_current_user_data::GetCurrentUserDataError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::get_current_user_data::GetCurrentUserDataError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::get_current_user_data::GetCurrentUserDataError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::get_current_user_data::GetCurrentUserDataError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::get_effective_hours_of_operations::GetEffectiveHoursOfOperationsError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::get_effective_hours_of_operations::GetEffectiveHoursOfOperationsError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::get_effective_hours_of_operations::GetEffectiveHoursOfOperationsError> for Error {
fn from(err: crate::operation::get_effective_hours_of_operations::GetEffectiveHoursOfOperationsError) -> Self {
match err {
crate::operation::get_effective_hours_of_operations::GetEffectiveHoursOfOperationsError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::get_effective_hours_of_operations::GetEffectiveHoursOfOperationsError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::get_effective_hours_of_operations::GetEffectiveHoursOfOperationsError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::get_effective_hours_of_operations::GetEffectiveHoursOfOperationsError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::get_effective_hours_of_operations::GetEffectiveHoursOfOperationsError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::get_effective_hours_of_operations::GetEffectiveHoursOfOperationsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_federation_token::GetFederationTokenError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_federation_token::GetFederationTokenError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::get_federation_token::GetFederationTokenError> for Error {
fn from(err: crate::operation::get_federation_token::GetFederationTokenError) -> Self {
match err {
crate::operation::get_federation_token::GetFederationTokenError::DuplicateResourceException(inner) => {
Error::DuplicateResourceException(inner)
}
crate::operation::get_federation_token::GetFederationTokenError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::get_federation_token::GetFederationTokenError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::get_federation_token::GetFederationTokenError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::get_federation_token::GetFederationTokenError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::get_federation_token::GetFederationTokenError::UserNotFoundException(inner) => Error::UserNotFoundException(inner),
crate::operation::get_federation_token::GetFederationTokenError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_flow_association::GetFlowAssociationError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_flow_association::GetFlowAssociationError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::get_flow_association::GetFlowAssociationError> for Error {
fn from(err: crate::operation::get_flow_association::GetFlowAssociationError) -> Self {
match err {
crate::operation::get_flow_association::GetFlowAssociationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::get_flow_association::GetFlowAssociationError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::get_flow_association::GetFlowAssociationError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::get_flow_association::GetFlowAssociationError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::get_flow_association::GetFlowAssociationError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::get_flow_association::GetFlowAssociationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::get_flow_association::GetFlowAssociationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_metric_data::GetMetricDataError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_metric_data::GetMetricDataError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::get_metric_data::GetMetricDataError> for Error {
fn from(err: crate::operation::get_metric_data::GetMetricDataError) -> Self {
match err {
crate::operation::get_metric_data::GetMetricDataError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::get_metric_data::GetMetricDataError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::get_metric_data::GetMetricDataError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::get_metric_data::GetMetricDataError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::get_metric_data::GetMetricDataError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::get_metric_data::GetMetricDataError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_metric_data_v2::GetMetricDataV2Error, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_metric_data_v2::GetMetricDataV2Error, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::get_metric_data_v2::GetMetricDataV2Error> for Error {
fn from(err: crate::operation::get_metric_data_v2::GetMetricDataV2Error) -> Self {
match err {
crate::operation::get_metric_data_v2::GetMetricDataV2Error::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::get_metric_data_v2::GetMetricDataV2Error::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::get_metric_data_v2::GetMetricDataV2Error::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::get_metric_data_v2::GetMetricDataV2Error::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::get_metric_data_v2::GetMetricDataV2Error::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::get_metric_data_v2::GetMetricDataV2Error::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_prompt_file::GetPromptFileError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_prompt_file::GetPromptFileError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::get_prompt_file::GetPromptFileError> for Error {
fn from(err: crate::operation::get_prompt_file::GetPromptFileError) -> Self {
match err {
crate::operation::get_prompt_file::GetPromptFileError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::get_prompt_file::GetPromptFileError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::get_prompt_file::GetPromptFileError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::get_prompt_file::GetPromptFileError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::get_prompt_file::GetPromptFileError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::get_prompt_file::GetPromptFileError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_task_template::GetTaskTemplateError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_task_template::GetTaskTemplateError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::get_task_template::GetTaskTemplateError> for Error {
fn from(err: crate::operation::get_task_template::GetTaskTemplateError) -> Self {
match err {
crate::operation::get_task_template::GetTaskTemplateError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::get_task_template::GetTaskTemplateError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::get_task_template::GetTaskTemplateError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::get_task_template::GetTaskTemplateError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::get_task_template::GetTaskTemplateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::get_task_template::GetTaskTemplateError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_traffic_distribution::GetTrafficDistributionError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_traffic_distribution::GetTrafficDistributionError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::get_traffic_distribution::GetTrafficDistributionError> for Error {
fn from(err: crate::operation::get_traffic_distribution::GetTrafficDistributionError) -> Self {
match err {
crate::operation::get_traffic_distribution::GetTrafficDistributionError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::get_traffic_distribution::GetTrafficDistributionError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::get_traffic_distribution::GetTrafficDistributionError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::get_traffic_distribution::GetTrafficDistributionError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::get_traffic_distribution::GetTrafficDistributionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::get_traffic_distribution::GetTrafficDistributionError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_phone_number::ImportPhoneNumberError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_phone_number::ImportPhoneNumberError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::import_phone_number::ImportPhoneNumberError> for Error {
fn from(err: crate::operation::import_phone_number::ImportPhoneNumberError) -> Self {
match err {
crate::operation::import_phone_number::ImportPhoneNumberError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::import_phone_number::ImportPhoneNumberError::IdempotencyException(inner) => Error::IdempotencyException(inner),
crate::operation::import_phone_number::ImportPhoneNumberError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::import_phone_number::ImportPhoneNumberError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::import_phone_number::ImportPhoneNumberError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::import_phone_number::ImportPhoneNumberError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::import_phone_number::ImportPhoneNumberError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_agent_statuses::ListAgentStatusesError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_agent_statuses::ListAgentStatusesError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_agent_statuses::ListAgentStatusesError> for Error {
fn from(err: crate::operation::list_agent_statuses::ListAgentStatusesError) -> Self {
match err {
crate::operation::list_agent_statuses::ListAgentStatusesError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::list_agent_statuses::ListAgentStatusesError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::list_agent_statuses::ListAgentStatusesError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::list_agent_statuses::ListAgentStatusesError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::list_agent_statuses::ListAgentStatusesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_agent_statuses::ListAgentStatusesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_analytics_data_associations::ListAnalyticsDataAssociationsError, R>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::list_analytics_data_associations::ListAnalyticsDataAssociationsError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_analytics_data_associations::ListAnalyticsDataAssociationsError> for Error {
fn from(err: crate::operation::list_analytics_data_associations::ListAnalyticsDataAssociationsError) -> Self {
match err {
crate::operation::list_analytics_data_associations::ListAnalyticsDataAssociationsError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::list_analytics_data_associations::ListAnalyticsDataAssociationsError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::list_analytics_data_associations::ListAnalyticsDataAssociationsError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::list_analytics_data_associations::ListAnalyticsDataAssociationsError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::list_analytics_data_associations::ListAnalyticsDataAssociationsError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::list_analytics_data_associations::ListAnalyticsDataAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_approved_origins::ListApprovedOriginsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_approved_origins::ListApprovedOriginsError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_approved_origins::ListApprovedOriginsError> for Error {
fn from(err: crate::operation::list_approved_origins::ListApprovedOriginsError) -> Self {
match err {
crate::operation::list_approved_origins::ListApprovedOriginsError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::list_approved_origins::ListApprovedOriginsError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::list_approved_origins::ListApprovedOriginsError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::list_approved_origins::ListApprovedOriginsError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::list_approved_origins::ListApprovedOriginsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_approved_origins::ListApprovedOriginsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_associated_contacts::ListAssociatedContactsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_associated_contacts::ListAssociatedContactsError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_associated_contacts::ListAssociatedContactsError> for Error {
fn from(err: crate::operation::list_associated_contacts::ListAssociatedContactsError) -> Self {
match err {
crate::operation::list_associated_contacts::ListAssociatedContactsError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::list_associated_contacts::ListAssociatedContactsError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::list_associated_contacts::ListAssociatedContactsError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::list_associated_contacts::ListAssociatedContactsError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::list_associated_contacts::ListAssociatedContactsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_associated_contacts::ListAssociatedContactsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_authentication_profiles::ListAuthenticationProfilesError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_authentication_profiles::ListAuthenticationProfilesError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_authentication_profiles::ListAuthenticationProfilesError> for Error {
fn from(err: crate::operation::list_authentication_profiles::ListAuthenticationProfilesError) -> Self {
match err {
crate::operation::list_authentication_profiles::ListAuthenticationProfilesError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::list_authentication_profiles::ListAuthenticationProfilesError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::list_authentication_profiles::ListAuthenticationProfilesError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::list_authentication_profiles::ListAuthenticationProfilesError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::list_authentication_profiles::ListAuthenticationProfilesError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::list_authentication_profiles::ListAuthenticationProfilesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_bots::ListBotsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_bots::ListBotsError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_bots::ListBotsError> for Error {
fn from(err: crate::operation::list_bots::ListBotsError) -> Self {
match err {
crate::operation::list_bots::ListBotsError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::list_bots::ListBotsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::list_bots::ListBotsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::list_bots::ListBotsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_bots::ListBotsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_contact_evaluations::ListContactEvaluationsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_contact_evaluations::ListContactEvaluationsError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_contact_evaluations::ListContactEvaluationsError> for Error {
fn from(err: crate::operation::list_contact_evaluations::ListContactEvaluationsError) -> Self {
match err {
crate::operation::list_contact_evaluations::ListContactEvaluationsError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::list_contact_evaluations::ListContactEvaluationsError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::list_contact_evaluations::ListContactEvaluationsError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::list_contact_evaluations::ListContactEvaluationsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_contact_evaluations::ListContactEvaluationsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_contact_flow_modules::ListContactFlowModulesError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_contact_flow_modules::ListContactFlowModulesError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_contact_flow_modules::ListContactFlowModulesError> for Error {
fn from(err: crate::operation::list_contact_flow_modules::ListContactFlowModulesError) -> Self {
match err {
crate::operation::list_contact_flow_modules::ListContactFlowModulesError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::list_contact_flow_modules::ListContactFlowModulesError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::list_contact_flow_modules::ListContactFlowModulesError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::list_contact_flow_modules::ListContactFlowModulesError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::list_contact_flow_modules::ListContactFlowModulesError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::list_contact_flow_modules::ListContactFlowModulesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_contact_flow_modules::ListContactFlowModulesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_contact_flows::ListContactFlowsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_contact_flows::ListContactFlowsError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_contact_flows::ListContactFlowsError> for Error {
fn from(err: crate::operation::list_contact_flows::ListContactFlowsError) -> Self {
match err {
crate::operation::list_contact_flows::ListContactFlowsError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::list_contact_flows::ListContactFlowsError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::list_contact_flows::ListContactFlowsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::list_contact_flows::ListContactFlowsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::list_contact_flows::ListContactFlowsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_contact_flows::ListContactFlowsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_contact_flow_versions::ListContactFlowVersionsError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_contact_flow_versions::ListContactFlowVersionsError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_contact_flow_versions::ListContactFlowVersionsError> for Error {
fn from(err: crate::operation::list_contact_flow_versions::ListContactFlowVersionsError) -> Self {
match err {
crate::operation::list_contact_flow_versions::ListContactFlowVersionsError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::list_contact_flow_versions::ListContactFlowVersionsError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::list_contact_flow_versions::ListContactFlowVersionsError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::list_contact_flow_versions::ListContactFlowVersionsError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::list_contact_flow_versions::ListContactFlowVersionsError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::list_contact_flow_versions::ListContactFlowVersionsError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::list_contact_flow_versions::ListContactFlowVersionsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_contact_references::ListContactReferencesError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_contact_references::ListContactReferencesError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_contact_references::ListContactReferencesError> for Error {
fn from(err: crate::operation::list_contact_references::ListContactReferencesError) -> Self {
match err {
crate::operation::list_contact_references::ListContactReferencesError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::list_contact_references::ListContactReferencesError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::list_contact_references::ListContactReferencesError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::list_contact_references::ListContactReferencesError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::list_contact_references::ListContactReferencesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_contact_references::ListContactReferencesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_default_vocabularies::ListDefaultVocabulariesError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_default_vocabularies::ListDefaultVocabulariesError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_default_vocabularies::ListDefaultVocabulariesError> for Error {
fn from(err: crate::operation::list_default_vocabularies::ListDefaultVocabulariesError) -> Self {
match err {
crate::operation::list_default_vocabularies::ListDefaultVocabulariesError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::list_default_vocabularies::ListDefaultVocabulariesError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::list_default_vocabularies::ListDefaultVocabulariesError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::list_default_vocabularies::ListDefaultVocabulariesError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::list_default_vocabularies::ListDefaultVocabulariesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_evaluation_forms::ListEvaluationFormsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_evaluation_forms::ListEvaluationFormsError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_evaluation_forms::ListEvaluationFormsError> for Error {
fn from(err: crate::operation::list_evaluation_forms::ListEvaluationFormsError) -> Self {
match err {
crate::operation::list_evaluation_forms::ListEvaluationFormsError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::list_evaluation_forms::ListEvaluationFormsError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::list_evaluation_forms::ListEvaluationFormsError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::list_evaluation_forms::ListEvaluationFormsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_evaluation_forms::ListEvaluationFormsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_evaluation_form_versions::ListEvaluationFormVersionsError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_evaluation_form_versions::ListEvaluationFormVersionsError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_evaluation_form_versions::ListEvaluationFormVersionsError> for Error {
fn from(err: crate::operation::list_evaluation_form_versions::ListEvaluationFormVersionsError) -> Self {
match err {
crate::operation::list_evaluation_form_versions::ListEvaluationFormVersionsError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::list_evaluation_form_versions::ListEvaluationFormVersionsError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::list_evaluation_form_versions::ListEvaluationFormVersionsError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::list_evaluation_form_versions::ListEvaluationFormVersionsError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::list_evaluation_form_versions::ListEvaluationFormVersionsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_flow_associations::ListFlowAssociationsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_flow_associations::ListFlowAssociationsError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_flow_associations::ListFlowAssociationsError> for Error {
fn from(err: crate::operation::list_flow_associations::ListFlowAssociationsError) -> Self {
match err {
crate::operation::list_flow_associations::ListFlowAssociationsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::list_flow_associations::ListFlowAssociationsError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::list_flow_associations::ListFlowAssociationsError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::list_flow_associations::ListFlowAssociationsError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::list_flow_associations::ListFlowAssociationsError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::list_flow_associations::ListFlowAssociationsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_flow_associations::ListFlowAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::list_hours_of_operation_overrides::ListHoursOfOperationOverridesError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::list_hours_of_operation_overrides::ListHoursOfOperationOverridesError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_hours_of_operation_overrides::ListHoursOfOperationOverridesError> for Error {
fn from(err: crate::operation::list_hours_of_operation_overrides::ListHoursOfOperationOverridesError) -> Self {
match err {
crate::operation::list_hours_of_operation_overrides::ListHoursOfOperationOverridesError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::list_hours_of_operation_overrides::ListHoursOfOperationOverridesError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::list_hours_of_operation_overrides::ListHoursOfOperationOverridesError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::list_hours_of_operation_overrides::ListHoursOfOperationOverridesError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::list_hours_of_operation_overrides::ListHoursOfOperationOverridesError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::list_hours_of_operation_overrides::ListHoursOfOperationOverridesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_hours_of_operations::ListHoursOfOperationsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_hours_of_operations::ListHoursOfOperationsError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_hours_of_operations::ListHoursOfOperationsError> for Error {
fn from(err: crate::operation::list_hours_of_operations::ListHoursOfOperationsError) -> Self {
match err {
crate::operation::list_hours_of_operations::ListHoursOfOperationsError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::list_hours_of_operations::ListHoursOfOperationsError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::list_hours_of_operations::ListHoursOfOperationsError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::list_hours_of_operations::ListHoursOfOperationsError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::list_hours_of_operations::ListHoursOfOperationsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_hours_of_operations::ListHoursOfOperationsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_instance_attributes::ListInstanceAttributesError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_instance_attributes::ListInstanceAttributesError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_instance_attributes::ListInstanceAttributesError> for Error {
fn from(err: crate::operation::list_instance_attributes::ListInstanceAttributesError) -> Self {
match err {
crate::operation::list_instance_attributes::ListInstanceAttributesError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::list_instance_attributes::ListInstanceAttributesError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::list_instance_attributes::ListInstanceAttributesError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::list_instance_attributes::ListInstanceAttributesError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::list_instance_attributes::ListInstanceAttributesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_instance_attributes::ListInstanceAttributesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_instances::ListInstancesError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_instances::ListInstancesError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_instances::ListInstancesError> for Error {
fn from(err: crate::operation::list_instances::ListInstancesError) -> Self {
match err {
crate::operation::list_instances::ListInstancesError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::list_instances::ListInstancesError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::list_instances::ListInstancesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_instance_storage_configs::ListInstanceStorageConfigsError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_instance_storage_configs::ListInstanceStorageConfigsError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_instance_storage_configs::ListInstanceStorageConfigsError> for Error {
fn from(err: crate::operation::list_instance_storage_configs::ListInstanceStorageConfigsError) -> Self {
match err {
crate::operation::list_instance_storage_configs::ListInstanceStorageConfigsError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::list_instance_storage_configs::ListInstanceStorageConfigsError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::list_instance_storage_configs::ListInstanceStorageConfigsError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::list_instance_storage_configs::ListInstanceStorageConfigsError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::list_instance_storage_configs::ListInstanceStorageConfigsError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::list_instance_storage_configs::ListInstanceStorageConfigsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_integration_associations::ListIntegrationAssociationsError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_integration_associations::ListIntegrationAssociationsError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_integration_associations::ListIntegrationAssociationsError> for Error {
fn from(err: crate::operation::list_integration_associations::ListIntegrationAssociationsError) -> Self {
match err {
crate::operation::list_integration_associations::ListIntegrationAssociationsError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::list_integration_associations::ListIntegrationAssociationsError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::list_integration_associations::ListIntegrationAssociationsError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::list_integration_associations::ListIntegrationAssociationsError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::list_integration_associations::ListIntegrationAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_lambda_functions::ListLambdaFunctionsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_lambda_functions::ListLambdaFunctionsError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_lambda_functions::ListLambdaFunctionsError> for Error {
fn from(err: crate::operation::list_lambda_functions::ListLambdaFunctionsError) -> Self {
match err {
crate::operation::list_lambda_functions::ListLambdaFunctionsError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::list_lambda_functions::ListLambdaFunctionsError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::list_lambda_functions::ListLambdaFunctionsError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::list_lambda_functions::ListLambdaFunctionsError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::list_lambda_functions::ListLambdaFunctionsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_lambda_functions::ListLambdaFunctionsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_lex_bots::ListLexBotsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_lex_bots::ListLexBotsError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_lex_bots::ListLexBotsError> for Error {
fn from(err: crate::operation::list_lex_bots::ListLexBotsError) -> Self {
match err {
crate::operation::list_lex_bots::ListLexBotsError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::list_lex_bots::ListLexBotsError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::list_lex_bots::ListLexBotsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::list_lex_bots::ListLexBotsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::list_lex_bots::ListLexBotsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_lex_bots::ListLexBotsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_phone_numbers::ListPhoneNumbersError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_phone_numbers::ListPhoneNumbersError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_phone_numbers::ListPhoneNumbersError> for Error {
fn from(err: crate::operation::list_phone_numbers::ListPhoneNumbersError) -> Self {
match err {
crate::operation::list_phone_numbers::ListPhoneNumbersError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::list_phone_numbers::ListPhoneNumbersError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::list_phone_numbers::ListPhoneNumbersError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::list_phone_numbers::ListPhoneNumbersError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::list_phone_numbers::ListPhoneNumbersError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_phone_numbers::ListPhoneNumbersError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_phone_numbers_v2::ListPhoneNumbersV2Error, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_phone_numbers_v2::ListPhoneNumbersV2Error, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_phone_numbers_v2::ListPhoneNumbersV2Error> for Error {
fn from(err: crate::operation::list_phone_numbers_v2::ListPhoneNumbersV2Error) -> Self {
match err {
crate::operation::list_phone_numbers_v2::ListPhoneNumbersV2Error::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::list_phone_numbers_v2::ListPhoneNumbersV2Error::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::list_phone_numbers_v2::ListPhoneNumbersV2Error::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::list_phone_numbers_v2::ListPhoneNumbersV2Error::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::list_phone_numbers_v2::ListPhoneNumbersV2Error::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_phone_numbers_v2::ListPhoneNumbersV2Error::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_predefined_attributes::ListPredefinedAttributesError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_predefined_attributes::ListPredefinedAttributesError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_predefined_attributes::ListPredefinedAttributesError> for Error {
fn from(err: crate::operation::list_predefined_attributes::ListPredefinedAttributesError) -> Self {
match err {
crate::operation::list_predefined_attributes::ListPredefinedAttributesError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::list_predefined_attributes::ListPredefinedAttributesError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::list_predefined_attributes::ListPredefinedAttributesError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::list_predefined_attributes::ListPredefinedAttributesError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::list_predefined_attributes::ListPredefinedAttributesError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::list_predefined_attributes::ListPredefinedAttributesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_prompts::ListPromptsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_prompts::ListPromptsError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_prompts::ListPromptsError> for Error {
fn from(err: crate::operation::list_prompts::ListPromptsError) -> Self {
match err {
crate::operation::list_prompts::ListPromptsError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::list_prompts::ListPromptsError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::list_prompts::ListPromptsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::list_prompts::ListPromptsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::list_prompts::ListPromptsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_prompts::ListPromptsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_queue_quick_connects::ListQueueQuickConnectsError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_queue_quick_connects::ListQueueQuickConnectsError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_queue_quick_connects::ListQueueQuickConnectsError> for Error {
fn from(err: crate::operation::list_queue_quick_connects::ListQueueQuickConnectsError) -> Self {
match err {
crate::operation::list_queue_quick_connects::ListQueueQuickConnectsError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::list_queue_quick_connects::ListQueueQuickConnectsError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::list_queue_quick_connects::ListQueueQuickConnectsError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::list_queue_quick_connects::ListQueueQuickConnectsError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::list_queue_quick_connects::ListQueueQuickConnectsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_queue_quick_connects::ListQueueQuickConnectsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_queues::ListQueuesError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_queues::ListQueuesError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_queues::ListQueuesError> for Error {
fn from(err: crate::operation::list_queues::ListQueuesError) -> Self {
match err {
crate::operation::list_queues::ListQueuesError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::list_queues::ListQueuesError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::list_queues::ListQueuesError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::list_queues::ListQueuesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::list_queues::ListQueuesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_queues::ListQueuesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_quick_connects::ListQuickConnectsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_quick_connects::ListQuickConnectsError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_quick_connects::ListQuickConnectsError> for Error {
fn from(err: crate::operation::list_quick_connects::ListQuickConnectsError) -> Self {
match err {
crate::operation::list_quick_connects::ListQuickConnectsError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::list_quick_connects::ListQuickConnectsError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::list_quick_connects::ListQuickConnectsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::list_quick_connects::ListQuickConnectsError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::list_quick_connects::ListQuickConnectsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_quick_connects::ListQuickConnectsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::list_realtime_contact_analysis_segments_v2::ListRealtimeContactAnalysisSegmentsV2Error,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::list_realtime_contact_analysis_segments_v2::ListRealtimeContactAnalysisSegmentsV2Error,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_realtime_contact_analysis_segments_v2::ListRealtimeContactAnalysisSegmentsV2Error> for Error {
fn from(err: crate::operation::list_realtime_contact_analysis_segments_v2::ListRealtimeContactAnalysisSegmentsV2Error) -> Self {
match err {
crate::operation::list_realtime_contact_analysis_segments_v2::ListRealtimeContactAnalysisSegmentsV2Error::AccessDeniedException(
inner,
) => Error::AccessDeniedException(inner),
crate::operation::list_realtime_contact_analysis_segments_v2::ListRealtimeContactAnalysisSegmentsV2Error::InternalServiceException(
inner,
) => Error::InternalServiceException(inner),
crate::operation::list_realtime_contact_analysis_segments_v2::ListRealtimeContactAnalysisSegmentsV2Error::InvalidRequestException(
inner,
) => Error::InvalidRequestException(inner),
crate::operation::list_realtime_contact_analysis_segments_v2::ListRealtimeContactAnalysisSegmentsV2Error::OutputTypeNotFoundException(
inner,
) => Error::OutputTypeNotFoundException(inner),
crate::operation::list_realtime_contact_analysis_segments_v2::ListRealtimeContactAnalysisSegmentsV2Error::ResourceNotFoundException(
inner,
) => Error::ResourceNotFoundException(inner),
crate::operation::list_realtime_contact_analysis_segments_v2::ListRealtimeContactAnalysisSegmentsV2Error::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::list_realtime_contact_analysis_segments_v2::ListRealtimeContactAnalysisSegmentsV2Error::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_routing_profile_queues::ListRoutingProfileQueuesError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_routing_profile_queues::ListRoutingProfileQueuesError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_routing_profile_queues::ListRoutingProfileQueuesError> for Error {
fn from(err: crate::operation::list_routing_profile_queues::ListRoutingProfileQueuesError) -> Self {
match err {
crate::operation::list_routing_profile_queues::ListRoutingProfileQueuesError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::list_routing_profile_queues::ListRoutingProfileQueuesError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::list_routing_profile_queues::ListRoutingProfileQueuesError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::list_routing_profile_queues::ListRoutingProfileQueuesError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::list_routing_profile_queues::ListRoutingProfileQueuesError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::list_routing_profile_queues::ListRoutingProfileQueuesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_routing_profiles::ListRoutingProfilesError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_routing_profiles::ListRoutingProfilesError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_routing_profiles::ListRoutingProfilesError> for Error {
fn from(err: crate::operation::list_routing_profiles::ListRoutingProfilesError) -> Self {
match err {
crate::operation::list_routing_profiles::ListRoutingProfilesError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::list_routing_profiles::ListRoutingProfilesError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::list_routing_profiles::ListRoutingProfilesError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::list_routing_profiles::ListRoutingProfilesError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::list_routing_profiles::ListRoutingProfilesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_routing_profiles::ListRoutingProfilesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_rules::ListRulesError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_rules::ListRulesError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_rules::ListRulesError> for Error {
fn from(err: crate::operation::list_rules::ListRulesError) -> Self {
match err {
crate::operation::list_rules::ListRulesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::list_rules::ListRulesError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::list_rules::ListRulesError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::list_rules::ListRulesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::list_rules::ListRulesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_rules::ListRulesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_security_keys::ListSecurityKeysError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_security_keys::ListSecurityKeysError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_security_keys::ListSecurityKeysError> for Error {
fn from(err: crate::operation::list_security_keys::ListSecurityKeysError) -> Self {
match err {
crate::operation::list_security_keys::ListSecurityKeysError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::list_security_keys::ListSecurityKeysError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::list_security_keys::ListSecurityKeysError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::list_security_keys::ListSecurityKeysError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::list_security_keys::ListSecurityKeysError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_security_keys::ListSecurityKeysError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::list_security_profile_applications::ListSecurityProfileApplicationsError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::list_security_profile_applications::ListSecurityProfileApplicationsError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_security_profile_applications::ListSecurityProfileApplicationsError> for Error {
fn from(err: crate::operation::list_security_profile_applications::ListSecurityProfileApplicationsError) -> Self {
match err {
crate::operation::list_security_profile_applications::ListSecurityProfileApplicationsError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::list_security_profile_applications::ListSecurityProfileApplicationsError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::list_security_profile_applications::ListSecurityProfileApplicationsError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::list_security_profile_applications::ListSecurityProfileApplicationsError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::list_security_profile_applications::ListSecurityProfileApplicationsError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::list_security_profile_applications::ListSecurityProfileApplicationsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::list_security_profile_permissions::ListSecurityProfilePermissionsError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::list_security_profile_permissions::ListSecurityProfilePermissionsError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_security_profile_permissions::ListSecurityProfilePermissionsError> for Error {
fn from(err: crate::operation::list_security_profile_permissions::ListSecurityProfilePermissionsError) -> Self {
match err {
crate::operation::list_security_profile_permissions::ListSecurityProfilePermissionsError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::list_security_profile_permissions::ListSecurityProfilePermissionsError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::list_security_profile_permissions::ListSecurityProfilePermissionsError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::list_security_profile_permissions::ListSecurityProfilePermissionsError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::list_security_profile_permissions::ListSecurityProfilePermissionsError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::list_security_profile_permissions::ListSecurityProfilePermissionsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_security_profiles::ListSecurityProfilesError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_security_profiles::ListSecurityProfilesError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_security_profiles::ListSecurityProfilesError> for Error {
fn from(err: crate::operation::list_security_profiles::ListSecurityProfilesError) -> Self {
match err {
crate::operation::list_security_profiles::ListSecurityProfilesError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::list_security_profiles::ListSecurityProfilesError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::list_security_profiles::ListSecurityProfilesError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::list_security_profiles::ListSecurityProfilesError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::list_security_profiles::ListSecurityProfilesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_security_profiles::ListSecurityProfilesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
match err {
crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::list_tags_for_resource::ListTagsForResourceError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::list_tags_for_resource::ListTagsForResourceError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_task_templates::ListTaskTemplatesError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_task_templates::ListTaskTemplatesError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_task_templates::ListTaskTemplatesError> for Error {
fn from(err: crate::operation::list_task_templates::ListTaskTemplatesError) -> Self {
match err {
crate::operation::list_task_templates::ListTaskTemplatesError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::list_task_templates::ListTaskTemplatesError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::list_task_templates::ListTaskTemplatesError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::list_task_templates::ListTaskTemplatesError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::list_task_templates::ListTaskTemplatesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_task_templates::ListTaskTemplatesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_traffic_distribution_groups::ListTrafficDistributionGroupsError, R>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::list_traffic_distribution_groups::ListTrafficDistributionGroupsError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_traffic_distribution_groups::ListTrafficDistributionGroupsError> for Error {
fn from(err: crate::operation::list_traffic_distribution_groups::ListTrafficDistributionGroupsError) -> Self {
match err {
crate::operation::list_traffic_distribution_groups::ListTrafficDistributionGroupsError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::list_traffic_distribution_groups::ListTrafficDistributionGroupsError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::list_traffic_distribution_groups::ListTrafficDistributionGroupsError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::list_traffic_distribution_groups::ListTrafficDistributionGroupsError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::list_traffic_distribution_groups::ListTrafficDistributionGroupsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::list_traffic_distribution_group_users::ListTrafficDistributionGroupUsersError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::list_traffic_distribution_group_users::ListTrafficDistributionGroupUsersError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_traffic_distribution_group_users::ListTrafficDistributionGroupUsersError> for Error {
fn from(err: crate::operation::list_traffic_distribution_group_users::ListTrafficDistributionGroupUsersError) -> Self {
match err {
crate::operation::list_traffic_distribution_group_users::ListTrafficDistributionGroupUsersError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::list_traffic_distribution_group_users::ListTrafficDistributionGroupUsersError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::list_traffic_distribution_group_users::ListTrafficDistributionGroupUsersError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::list_traffic_distribution_group_users::ListTrafficDistributionGroupUsersError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::list_traffic_distribution_group_users::ListTrafficDistributionGroupUsersError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::list_traffic_distribution_group_users::ListTrafficDistributionGroupUsersError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_use_cases::ListUseCasesError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_use_cases::ListUseCasesError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_use_cases::ListUseCasesError> for Error {
fn from(err: crate::operation::list_use_cases::ListUseCasesError) -> Self {
match err {
crate::operation::list_use_cases::ListUseCasesError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::list_use_cases::ListUseCasesError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::list_use_cases::ListUseCasesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::list_use_cases::ListUseCasesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_use_cases::ListUseCasesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_user_hierarchy_groups::ListUserHierarchyGroupsError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_user_hierarchy_groups::ListUserHierarchyGroupsError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_user_hierarchy_groups::ListUserHierarchyGroupsError> for Error {
fn from(err: crate::operation::list_user_hierarchy_groups::ListUserHierarchyGroupsError) -> Self {
match err {
crate::operation::list_user_hierarchy_groups::ListUserHierarchyGroupsError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::list_user_hierarchy_groups::ListUserHierarchyGroupsError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::list_user_hierarchy_groups::ListUserHierarchyGroupsError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::list_user_hierarchy_groups::ListUserHierarchyGroupsError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::list_user_hierarchy_groups::ListUserHierarchyGroupsError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::list_user_hierarchy_groups::ListUserHierarchyGroupsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_user_proficiencies::ListUserProficienciesError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_user_proficiencies::ListUserProficienciesError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_user_proficiencies::ListUserProficienciesError> for Error {
fn from(err: crate::operation::list_user_proficiencies::ListUserProficienciesError) -> Self {
match err {
crate::operation::list_user_proficiencies::ListUserProficienciesError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::list_user_proficiencies::ListUserProficienciesError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::list_user_proficiencies::ListUserProficienciesError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::list_user_proficiencies::ListUserProficienciesError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::list_user_proficiencies::ListUserProficienciesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_user_proficiencies::ListUserProficienciesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_users::ListUsersError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_users::ListUsersError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_users::ListUsersError> for Error {
fn from(err: crate::operation::list_users::ListUsersError) -> Self {
match err {
crate::operation::list_users::ListUsersError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::list_users::ListUsersError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::list_users::ListUsersError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::list_users::ListUsersError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::list_users::ListUsersError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_users::ListUsersError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_views::ListViewsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_views::ListViewsError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_views::ListViewsError> for Error {
fn from(err: crate::operation::list_views::ListViewsError) -> Self {
match err {
crate::operation::list_views::ListViewsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::list_views::ListViewsError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::list_views::ListViewsError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::list_views::ListViewsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::list_views::ListViewsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::list_views::ListViewsError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
crate::operation::list_views::ListViewsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_view_versions::ListViewVersionsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_view_versions::ListViewVersionsError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_view_versions::ListViewVersionsError> for Error {
fn from(err: crate::operation::list_view_versions::ListViewVersionsError) -> Self {
match err {
crate::operation::list_view_versions::ListViewVersionsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::list_view_versions::ListViewVersionsError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::list_view_versions::ListViewVersionsError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::list_view_versions::ListViewVersionsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::list_view_versions::ListViewVersionsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::list_view_versions::ListViewVersionsError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
crate::operation::list_view_versions::ListViewVersionsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::monitor_contact::MonitorContactError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::monitor_contact::MonitorContactError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::monitor_contact::MonitorContactError> for Error {
fn from(err: crate::operation::monitor_contact::MonitorContactError) -> Self {
match err {
crate::operation::monitor_contact::MonitorContactError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::monitor_contact::MonitorContactError::IdempotencyException(inner) => Error::IdempotencyException(inner),
crate::operation::monitor_contact::MonitorContactError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::monitor_contact::MonitorContactError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::monitor_contact::MonitorContactError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::monitor_contact::MonitorContactError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::monitor_contact::MonitorContactError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::monitor_contact::MonitorContactError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::pause_contact::PauseContactError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::pause_contact::PauseContactError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::pause_contact::PauseContactError> for Error {
fn from(err: crate::operation::pause_contact::PauseContactError) -> Self {
match err {
crate::operation::pause_contact::PauseContactError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::pause_contact::PauseContactError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::pause_contact::PauseContactError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::pause_contact::PauseContactError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::pause_contact::PauseContactError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::pause_contact::PauseContactError::LimitExceededException(inner) => Error::LimitExceededException(inner),
crate::operation::pause_contact::PauseContactError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::pause_contact::PauseContactError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::pause_contact::PauseContactError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_user_status::PutUserStatusError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_user_status::PutUserStatusError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::put_user_status::PutUserStatusError> for Error {
fn from(err: crate::operation::put_user_status::PutUserStatusError) -> Self {
match err {
crate::operation::put_user_status::PutUserStatusError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::put_user_status::PutUserStatusError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::put_user_status::PutUserStatusError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::put_user_status::PutUserStatusError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::put_user_status::PutUserStatusError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::put_user_status::PutUserStatusError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::put_user_status::PutUserStatusError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::release_phone_number::ReleasePhoneNumberError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::release_phone_number::ReleasePhoneNumberError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::release_phone_number::ReleasePhoneNumberError> for Error {
fn from(err: crate::operation::release_phone_number::ReleasePhoneNumberError) -> Self {
match err {
crate::operation::release_phone_number::ReleasePhoneNumberError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::release_phone_number::ReleasePhoneNumberError::IdempotencyException(inner) => Error::IdempotencyException(inner),
crate::operation::release_phone_number::ReleasePhoneNumberError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::release_phone_number::ReleasePhoneNumberError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::release_phone_number::ReleasePhoneNumberError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
crate::operation::release_phone_number::ReleasePhoneNumberError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::release_phone_number::ReleasePhoneNumberError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::release_phone_number::ReleasePhoneNumberError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replicate_instance::ReplicateInstanceError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replicate_instance::ReplicateInstanceError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::replicate_instance::ReplicateInstanceError> for Error {
fn from(err: crate::operation::replicate_instance::ReplicateInstanceError) -> Self {
match err {
crate::operation::replicate_instance::ReplicateInstanceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::replicate_instance::ReplicateInstanceError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::replicate_instance::ReplicateInstanceError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::replicate_instance::ReplicateInstanceError::ResourceConflictException(inner) => Error::ResourceConflictException(inner),
crate::operation::replicate_instance::ReplicateInstanceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::replicate_instance::ReplicateInstanceError::ResourceNotReadyException(inner) => Error::ResourceNotReadyException(inner),
crate::operation::replicate_instance::ReplicateInstanceError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::replicate_instance::ReplicateInstanceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::replicate_instance::ReplicateInstanceError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::resume_contact::ResumeContactError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::resume_contact::ResumeContactError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::resume_contact::ResumeContactError> for Error {
fn from(err: crate::operation::resume_contact::ResumeContactError) -> Self {
match err {
crate::operation::resume_contact::ResumeContactError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::resume_contact::ResumeContactError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::resume_contact::ResumeContactError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::resume_contact::ResumeContactError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::resume_contact::ResumeContactError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::resume_contact::ResumeContactError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::resume_contact::ResumeContactError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::resume_contact::ResumeContactError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::resume_contact_recording::ResumeContactRecordingError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::resume_contact_recording::ResumeContactRecordingError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::resume_contact_recording::ResumeContactRecordingError> for Error {
fn from(err: crate::operation::resume_contact_recording::ResumeContactRecordingError) -> Self {
match err {
crate::operation::resume_contact_recording::ResumeContactRecordingError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::resume_contact_recording::ResumeContactRecordingError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::resume_contact_recording::ResumeContactRecordingError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::resume_contact_recording::ResumeContactRecordingError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_agent_statuses::SearchAgentStatusesError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_agent_statuses::SearchAgentStatusesError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::search_agent_statuses::SearchAgentStatusesError> for Error {
fn from(err: crate::operation::search_agent_statuses::SearchAgentStatusesError) -> Self {
match err {
crate::operation::search_agent_statuses::SearchAgentStatusesError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::search_agent_statuses::SearchAgentStatusesError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::search_agent_statuses::SearchAgentStatusesError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::search_agent_statuses::SearchAgentStatusesError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::search_agent_statuses::SearchAgentStatusesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::search_agent_statuses::SearchAgentStatusesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_available_phone_numbers::SearchAvailablePhoneNumbersError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::search_available_phone_numbers::SearchAvailablePhoneNumbersError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::search_available_phone_numbers::SearchAvailablePhoneNumbersError> for Error {
fn from(err: crate::operation::search_available_phone_numbers::SearchAvailablePhoneNumbersError) -> Self {
match err {
crate::operation::search_available_phone_numbers::SearchAvailablePhoneNumbersError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::search_available_phone_numbers::SearchAvailablePhoneNumbersError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::search_available_phone_numbers::SearchAvailablePhoneNumbersError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::search_available_phone_numbers::SearchAvailablePhoneNumbersError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::search_available_phone_numbers::SearchAvailablePhoneNumbersError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_contact_flow_modules::SearchContactFlowModulesError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_contact_flow_modules::SearchContactFlowModulesError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::search_contact_flow_modules::SearchContactFlowModulesError> for Error {
fn from(err: crate::operation::search_contact_flow_modules::SearchContactFlowModulesError) -> Self {
match err {
crate::operation::search_contact_flow_modules::SearchContactFlowModulesError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::search_contact_flow_modules::SearchContactFlowModulesError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::search_contact_flow_modules::SearchContactFlowModulesError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::search_contact_flow_modules::SearchContactFlowModulesError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::search_contact_flow_modules::SearchContactFlowModulesError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::search_contact_flow_modules::SearchContactFlowModulesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_contact_flows::SearchContactFlowsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_contact_flows::SearchContactFlowsError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::search_contact_flows::SearchContactFlowsError> for Error {
fn from(err: crate::operation::search_contact_flows::SearchContactFlowsError) -> Self {
match err {
crate::operation::search_contact_flows::SearchContactFlowsError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::search_contact_flows::SearchContactFlowsError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::search_contact_flows::SearchContactFlowsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::search_contact_flows::SearchContactFlowsError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::search_contact_flows::SearchContactFlowsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::search_contact_flows::SearchContactFlowsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_contacts::SearchContactsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_contacts::SearchContactsError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::search_contacts::SearchContactsError> for Error {
fn from(err: crate::operation::search_contacts::SearchContactsError) -> Self {
match err {
crate::operation::search_contacts::SearchContactsError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::search_contacts::SearchContactsError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::search_contacts::SearchContactsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::search_contacts::SearchContactsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::search_contacts::SearchContactsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::search_contacts::SearchContactsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_email_addresses::SearchEmailAddressesError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_email_addresses::SearchEmailAddressesError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::search_email_addresses::SearchEmailAddressesError> for Error {
fn from(err: crate::operation::search_email_addresses::SearchEmailAddressesError) -> Self {
match err {
crate::operation::search_email_addresses::SearchEmailAddressesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::search_email_addresses::SearchEmailAddressesError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::search_email_addresses::SearchEmailAddressesError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::search_email_addresses::SearchEmailAddressesError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::search_email_addresses::SearchEmailAddressesError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::search_email_addresses::SearchEmailAddressesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::search_email_addresses::SearchEmailAddressesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::search_hours_of_operation_overrides::SearchHoursOfOperationOverridesError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::search_hours_of_operation_overrides::SearchHoursOfOperationOverridesError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::search_hours_of_operation_overrides::SearchHoursOfOperationOverridesError> for Error {
fn from(err: crate::operation::search_hours_of_operation_overrides::SearchHoursOfOperationOverridesError) -> Self {
match err {
crate::operation::search_hours_of_operation_overrides::SearchHoursOfOperationOverridesError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::search_hours_of_operation_overrides::SearchHoursOfOperationOverridesError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::search_hours_of_operation_overrides::SearchHoursOfOperationOverridesError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::search_hours_of_operation_overrides::SearchHoursOfOperationOverridesError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::search_hours_of_operation_overrides::SearchHoursOfOperationOverridesError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::search_hours_of_operation_overrides::SearchHoursOfOperationOverridesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_hours_of_operations::SearchHoursOfOperationsError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_hours_of_operations::SearchHoursOfOperationsError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::search_hours_of_operations::SearchHoursOfOperationsError> for Error {
fn from(err: crate::operation::search_hours_of_operations::SearchHoursOfOperationsError) -> Self {
match err {
crate::operation::search_hours_of_operations::SearchHoursOfOperationsError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::search_hours_of_operations::SearchHoursOfOperationsError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::search_hours_of_operations::SearchHoursOfOperationsError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::search_hours_of_operations::SearchHoursOfOperationsError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::search_hours_of_operations::SearchHoursOfOperationsError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::search_hours_of_operations::SearchHoursOfOperationsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_predefined_attributes::SearchPredefinedAttributesError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_predefined_attributes::SearchPredefinedAttributesError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::search_predefined_attributes::SearchPredefinedAttributesError> for Error {
fn from(err: crate::operation::search_predefined_attributes::SearchPredefinedAttributesError) -> Self {
match err {
crate::operation::search_predefined_attributes::SearchPredefinedAttributesError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::search_predefined_attributes::SearchPredefinedAttributesError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::search_predefined_attributes::SearchPredefinedAttributesError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::search_predefined_attributes::SearchPredefinedAttributesError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::search_predefined_attributes::SearchPredefinedAttributesError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::search_predefined_attributes::SearchPredefinedAttributesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_prompts::SearchPromptsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_prompts::SearchPromptsError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::search_prompts::SearchPromptsError> for Error {
fn from(err: crate::operation::search_prompts::SearchPromptsError) -> Self {
match err {
crate::operation::search_prompts::SearchPromptsError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::search_prompts::SearchPromptsError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::search_prompts::SearchPromptsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::search_prompts::SearchPromptsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::search_prompts::SearchPromptsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::search_prompts::SearchPromptsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_queues::SearchQueuesError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_queues::SearchQueuesError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::search_queues::SearchQueuesError> for Error {
fn from(err: crate::operation::search_queues::SearchQueuesError) -> Self {
match err {
crate::operation::search_queues::SearchQueuesError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::search_queues::SearchQueuesError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::search_queues::SearchQueuesError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::search_queues::SearchQueuesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::search_queues::SearchQueuesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::search_queues::SearchQueuesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_quick_connects::SearchQuickConnectsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_quick_connects::SearchQuickConnectsError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::search_quick_connects::SearchQuickConnectsError> for Error {
fn from(err: crate::operation::search_quick_connects::SearchQuickConnectsError) -> Self {
match err {
crate::operation::search_quick_connects::SearchQuickConnectsError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::search_quick_connects::SearchQuickConnectsError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::search_quick_connects::SearchQuickConnectsError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::search_quick_connects::SearchQuickConnectsError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::search_quick_connects::SearchQuickConnectsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::search_quick_connects::SearchQuickConnectsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_resource_tags::SearchResourceTagsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_resource_tags::SearchResourceTagsError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::search_resource_tags::SearchResourceTagsError> for Error {
fn from(err: crate::operation::search_resource_tags::SearchResourceTagsError) -> Self {
match err {
crate::operation::search_resource_tags::SearchResourceTagsError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::search_resource_tags::SearchResourceTagsError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::search_resource_tags::SearchResourceTagsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::search_resource_tags::SearchResourceTagsError::MaximumResultReturnedException(inner) => {
Error::MaximumResultReturnedException(inner)
}
crate::operation::search_resource_tags::SearchResourceTagsError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::search_resource_tags::SearchResourceTagsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::search_resource_tags::SearchResourceTagsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_routing_profiles::SearchRoutingProfilesError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_routing_profiles::SearchRoutingProfilesError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::search_routing_profiles::SearchRoutingProfilesError> for Error {
fn from(err: crate::operation::search_routing_profiles::SearchRoutingProfilesError) -> Self {
match err {
crate::operation::search_routing_profiles::SearchRoutingProfilesError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::search_routing_profiles::SearchRoutingProfilesError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::search_routing_profiles::SearchRoutingProfilesError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::search_routing_profiles::SearchRoutingProfilesError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::search_routing_profiles::SearchRoutingProfilesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::search_routing_profiles::SearchRoutingProfilesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_security_profiles::SearchSecurityProfilesError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_security_profiles::SearchSecurityProfilesError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::search_security_profiles::SearchSecurityProfilesError> for Error {
fn from(err: crate::operation::search_security_profiles::SearchSecurityProfilesError) -> Self {
match err {
crate::operation::search_security_profiles::SearchSecurityProfilesError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::search_security_profiles::SearchSecurityProfilesError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::search_security_profiles::SearchSecurityProfilesError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::search_security_profiles::SearchSecurityProfilesError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::search_security_profiles::SearchSecurityProfilesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::search_security_profiles::SearchSecurityProfilesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_user_hierarchy_groups::SearchUserHierarchyGroupsError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_user_hierarchy_groups::SearchUserHierarchyGroupsError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::search_user_hierarchy_groups::SearchUserHierarchyGroupsError> for Error {
fn from(err: crate::operation::search_user_hierarchy_groups::SearchUserHierarchyGroupsError) -> Self {
match err {
crate::operation::search_user_hierarchy_groups::SearchUserHierarchyGroupsError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::search_user_hierarchy_groups::SearchUserHierarchyGroupsError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::search_user_hierarchy_groups::SearchUserHierarchyGroupsError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::search_user_hierarchy_groups::SearchUserHierarchyGroupsError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::search_user_hierarchy_groups::SearchUserHierarchyGroupsError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::search_user_hierarchy_groups::SearchUserHierarchyGroupsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_users::SearchUsersError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_users::SearchUsersError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::search_users::SearchUsersError> for Error {
fn from(err: crate::operation::search_users::SearchUsersError) -> Self {
match err {
crate::operation::search_users::SearchUsersError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::search_users::SearchUsersError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::search_users::SearchUsersError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::search_users::SearchUsersError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::search_users::SearchUsersError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::search_users::SearchUsersError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_vocabularies::SearchVocabulariesError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_vocabularies::SearchVocabulariesError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::search_vocabularies::SearchVocabulariesError> for Error {
fn from(err: crate::operation::search_vocabularies::SearchVocabulariesError) -> Self {
match err {
crate::operation::search_vocabularies::SearchVocabulariesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::search_vocabularies::SearchVocabulariesError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::search_vocabularies::SearchVocabulariesError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::search_vocabularies::SearchVocabulariesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::search_vocabularies::SearchVocabulariesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_chat_integration_event::SendChatIntegrationEventError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_chat_integration_event::SendChatIntegrationEventError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::send_chat_integration_event::SendChatIntegrationEventError> for Error {
fn from(err: crate::operation::send_chat_integration_event::SendChatIntegrationEventError) -> Self {
match err {
crate::operation::send_chat_integration_event::SendChatIntegrationEventError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::send_chat_integration_event::SendChatIntegrationEventError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::send_chat_integration_event::SendChatIntegrationEventError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::send_chat_integration_event::SendChatIntegrationEventError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::send_chat_integration_event::SendChatIntegrationEventError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::send_chat_integration_event::SendChatIntegrationEventError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_outbound_email::SendOutboundEmailError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_outbound_email::SendOutboundEmailError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::send_outbound_email::SendOutboundEmailError> for Error {
fn from(err: crate::operation::send_outbound_email::SendOutboundEmailError) -> Self {
match err {
crate::operation::send_outbound_email::SendOutboundEmailError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::send_outbound_email::SendOutboundEmailError::IdempotencyException(inner) => Error::IdempotencyException(inner),
crate::operation::send_outbound_email::SendOutboundEmailError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::send_outbound_email::SendOutboundEmailError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::send_outbound_email::SendOutboundEmailError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::send_outbound_email::SendOutboundEmailError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::send_outbound_email::SendOutboundEmailError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::send_outbound_email::SendOutboundEmailError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_attached_file_upload::StartAttachedFileUploadError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_attached_file_upload::StartAttachedFileUploadError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::start_attached_file_upload::StartAttachedFileUploadError> for Error {
fn from(err: crate::operation::start_attached_file_upload::StartAttachedFileUploadError) -> Self {
match err {
crate::operation::start_attached_file_upload::StartAttachedFileUploadError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::start_attached_file_upload::StartAttachedFileUploadError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::start_attached_file_upload::StartAttachedFileUploadError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::start_attached_file_upload::StartAttachedFileUploadError::ResourceConflictException(inner) => {
Error::ResourceConflictException(inner)
}
crate::operation::start_attached_file_upload::StartAttachedFileUploadError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::start_attached_file_upload::StartAttachedFileUploadError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::start_attached_file_upload::StartAttachedFileUploadError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_chat_contact::StartChatContactError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_chat_contact::StartChatContactError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::start_chat_contact::StartChatContactError> for Error {
fn from(err: crate::operation::start_chat_contact::StartChatContactError) -> Self {
match err {
crate::operation::start_chat_contact::StartChatContactError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::start_chat_contact::StartChatContactError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::start_chat_contact::StartChatContactError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::start_chat_contact::StartChatContactError::LimitExceededException(inner) => Error::LimitExceededException(inner),
crate::operation::start_chat_contact::StartChatContactError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::start_chat_contact::StartChatContactError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_contact_evaluation::StartContactEvaluationError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_contact_evaluation::StartContactEvaluationError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::start_contact_evaluation::StartContactEvaluationError> for Error {
fn from(err: crate::operation::start_contact_evaluation::StartContactEvaluationError) -> Self {
match err {
crate::operation::start_contact_evaluation::StartContactEvaluationError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::start_contact_evaluation::StartContactEvaluationError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::start_contact_evaluation::StartContactEvaluationError::ResourceConflictException(inner) => {
Error::ResourceConflictException(inner)
}
crate::operation::start_contact_evaluation::StartContactEvaluationError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::start_contact_evaluation::StartContactEvaluationError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::start_contact_evaluation::StartContactEvaluationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::start_contact_evaluation::StartContactEvaluationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_contact_recording::StartContactRecordingError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_contact_recording::StartContactRecordingError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::start_contact_recording::StartContactRecordingError> for Error {
fn from(err: crate::operation::start_contact_recording::StartContactRecordingError) -> Self {
match err {
crate::operation::start_contact_recording::StartContactRecordingError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::start_contact_recording::StartContactRecordingError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::start_contact_recording::StartContactRecordingError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::start_contact_recording::StartContactRecordingError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::start_contact_recording::StartContactRecordingError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_contact_streaming::StartContactStreamingError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_contact_streaming::StartContactStreamingError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::start_contact_streaming::StartContactStreamingError> for Error {
fn from(err: crate::operation::start_contact_streaming::StartContactStreamingError) -> Self {
match err {
crate::operation::start_contact_streaming::StartContactStreamingError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::start_contact_streaming::StartContactStreamingError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::start_contact_streaming::StartContactStreamingError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::start_contact_streaming::StartContactStreamingError::LimitExceededException(inner) => {
Error::LimitExceededException(inner)
}
crate::operation::start_contact_streaming::StartContactStreamingError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::start_contact_streaming::StartContactStreamingError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_email_contact::StartEmailContactError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_email_contact::StartEmailContactError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::start_email_contact::StartEmailContactError> for Error {
fn from(err: crate::operation::start_email_contact::StartEmailContactError) -> Self {
match err {
crate::operation::start_email_contact::StartEmailContactError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::start_email_contact::StartEmailContactError::IdempotencyException(inner) => Error::IdempotencyException(inner),
crate::operation::start_email_contact::StartEmailContactError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::start_email_contact::StartEmailContactError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::start_email_contact::StartEmailContactError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::start_email_contact::StartEmailContactError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::start_email_contact::StartEmailContactError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::start_email_contact::StartEmailContactError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_outbound_chat_contact::StartOutboundChatContactError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_outbound_chat_contact::StartOutboundChatContactError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::start_outbound_chat_contact::StartOutboundChatContactError> for Error {
fn from(err: crate::operation::start_outbound_chat_contact::StartOutboundChatContactError) -> Self {
match err {
crate::operation::start_outbound_chat_contact::StartOutboundChatContactError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::start_outbound_chat_contact::StartOutboundChatContactError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::start_outbound_chat_contact::StartOutboundChatContactError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::start_outbound_chat_contact::StartOutboundChatContactError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::start_outbound_chat_contact::StartOutboundChatContactError::LimitExceededException(inner) => {
Error::LimitExceededException(inner)
}
crate::operation::start_outbound_chat_contact::StartOutboundChatContactError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::start_outbound_chat_contact::StartOutboundChatContactError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::start_outbound_chat_contact::StartOutboundChatContactError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_outbound_email_contact::StartOutboundEmailContactError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_outbound_email_contact::StartOutboundEmailContactError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::start_outbound_email_contact::StartOutboundEmailContactError> for Error {
fn from(err: crate::operation::start_outbound_email_contact::StartOutboundEmailContactError) -> Self {
match err {
crate::operation::start_outbound_email_contact::StartOutboundEmailContactError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::start_outbound_email_contact::StartOutboundEmailContactError::IdempotencyException(inner) => {
Error::IdempotencyException(inner)
}
crate::operation::start_outbound_email_contact::StartOutboundEmailContactError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::start_outbound_email_contact::StartOutboundEmailContactError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::start_outbound_email_contact::StartOutboundEmailContactError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::start_outbound_email_contact::StartOutboundEmailContactError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::start_outbound_email_contact::StartOutboundEmailContactError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::start_outbound_email_contact::StartOutboundEmailContactError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_outbound_voice_contact::StartOutboundVoiceContactError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_outbound_voice_contact::StartOutboundVoiceContactError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::start_outbound_voice_contact::StartOutboundVoiceContactError> for Error {
fn from(err: crate::operation::start_outbound_voice_contact::StartOutboundVoiceContactError) -> Self {
match err {
crate::operation::start_outbound_voice_contact::StartOutboundVoiceContactError::DestinationNotAllowedException(inner) => {
Error::DestinationNotAllowedException(inner)
}
crate::operation::start_outbound_voice_contact::StartOutboundVoiceContactError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::start_outbound_voice_contact::StartOutboundVoiceContactError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::start_outbound_voice_contact::StartOutboundVoiceContactError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::start_outbound_voice_contact::StartOutboundVoiceContactError::LimitExceededException(inner) => {
Error::LimitExceededException(inner)
}
crate::operation::start_outbound_voice_contact::StartOutboundVoiceContactError::OutboundContactNotPermittedException(inner) => {
Error::OutboundContactNotPermittedException(inner)
}
crate::operation::start_outbound_voice_contact::StartOutboundVoiceContactError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::start_outbound_voice_contact::StartOutboundVoiceContactError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_screen_sharing::StartScreenSharingError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_screen_sharing::StartScreenSharingError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::start_screen_sharing::StartScreenSharingError> for Error {
fn from(err: crate::operation::start_screen_sharing::StartScreenSharingError) -> Self {
match err {
crate::operation::start_screen_sharing::StartScreenSharingError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::start_screen_sharing::StartScreenSharingError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::start_screen_sharing::StartScreenSharingError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::start_screen_sharing::StartScreenSharingError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::start_screen_sharing::StartScreenSharingError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::start_screen_sharing::StartScreenSharingError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::start_screen_sharing::StartScreenSharingError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_task_contact::StartTaskContactError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_task_contact::StartTaskContactError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::start_task_contact::StartTaskContactError> for Error {
fn from(err: crate::operation::start_task_contact::StartTaskContactError) -> Self {
match err {
crate::operation::start_task_contact::StartTaskContactError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::start_task_contact::StartTaskContactError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::start_task_contact::StartTaskContactError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::start_task_contact::StartTaskContactError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::start_task_contact::StartTaskContactError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::start_task_contact::StartTaskContactError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::start_task_contact::StartTaskContactError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_web_rtc_contact::StartWebRTCContactError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_web_rtc_contact::StartWebRTCContactError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::start_web_rtc_contact::StartWebRTCContactError> for Error {
fn from(err: crate::operation::start_web_rtc_contact::StartWebRTCContactError) -> Self {
match err {
crate::operation::start_web_rtc_contact::StartWebRTCContactError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::start_web_rtc_contact::StartWebRTCContactError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::start_web_rtc_contact::StartWebRTCContactError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::start_web_rtc_contact::StartWebRTCContactError::LimitExceededException(inner) => Error::LimitExceededException(inner),
crate::operation::start_web_rtc_contact::StartWebRTCContactError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::start_web_rtc_contact::StartWebRTCContactError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_contact::StopContactError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_contact::StopContactError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::stop_contact::StopContactError> for Error {
fn from(err: crate::operation::stop_contact::StopContactError) -> Self {
match err {
crate::operation::stop_contact::StopContactError::ContactNotFoundException(inner) => Error::ContactNotFoundException(inner),
crate::operation::stop_contact::StopContactError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::stop_contact::StopContactError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::stop_contact::StopContactError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::stop_contact::StopContactError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::stop_contact::StopContactError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_contact_recording::StopContactRecordingError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_contact_recording::StopContactRecordingError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::stop_contact_recording::StopContactRecordingError> for Error {
fn from(err: crate::operation::stop_contact_recording::StopContactRecordingError) -> Self {
match err {
crate::operation::stop_contact_recording::StopContactRecordingError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::stop_contact_recording::StopContactRecordingError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::stop_contact_recording::StopContactRecordingError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::stop_contact_recording::StopContactRecordingError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_contact_streaming::StopContactStreamingError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_contact_streaming::StopContactStreamingError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::stop_contact_streaming::StopContactStreamingError> for Error {
fn from(err: crate::operation::stop_contact_streaming::StopContactStreamingError) -> Self {
match err {
crate::operation::stop_contact_streaming::StopContactStreamingError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::stop_contact_streaming::StopContactStreamingError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::stop_contact_streaming::StopContactStreamingError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::stop_contact_streaming::StopContactStreamingError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::stop_contact_streaming::StopContactStreamingError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::submit_contact_evaluation::SubmitContactEvaluationError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::submit_contact_evaluation::SubmitContactEvaluationError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::submit_contact_evaluation::SubmitContactEvaluationError> for Error {
fn from(err: crate::operation::submit_contact_evaluation::SubmitContactEvaluationError) -> Self {
match err {
crate::operation::submit_contact_evaluation::SubmitContactEvaluationError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::submit_contact_evaluation::SubmitContactEvaluationError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::submit_contact_evaluation::SubmitContactEvaluationError::ResourceConflictException(inner) => {
Error::ResourceConflictException(inner)
}
crate::operation::submit_contact_evaluation::SubmitContactEvaluationError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::submit_contact_evaluation::SubmitContactEvaluationError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::submit_contact_evaluation::SubmitContactEvaluationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::suspend_contact_recording::SuspendContactRecordingError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::suspend_contact_recording::SuspendContactRecordingError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::suspend_contact_recording::SuspendContactRecordingError> for Error {
fn from(err: crate::operation::suspend_contact_recording::SuspendContactRecordingError) -> Self {
match err {
crate::operation::suspend_contact_recording::SuspendContactRecordingError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::suspend_contact_recording::SuspendContactRecordingError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::suspend_contact_recording::SuspendContactRecordingError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::suspend_contact_recording::SuspendContactRecordingError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_contact::TagContactError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_contact::TagContactError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::tag_contact::TagContactError> for Error {
fn from(err: crate::operation::tag_contact::TagContactError) -> Self {
match err {
crate::operation::tag_contact::TagContactError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::tag_contact::TagContactError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::tag_contact::TagContactError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::tag_contact::TagContactError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::tag_contact::TagContactError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::tag_contact::TagContactError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::tag_resource::TagResourceError> for Error {
fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
match err {
crate::operation::tag_resource::TagResourceError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::tag_resource::TagResourceError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::tag_resource::TagResourceError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::transfer_contact::TransferContactError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::transfer_contact::TransferContactError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::transfer_contact::TransferContactError> for Error {
fn from(err: crate::operation::transfer_contact::TransferContactError) -> Self {
match err {
crate::operation::transfer_contact::TransferContactError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::transfer_contact::TransferContactError::IdempotencyException(inner) => Error::IdempotencyException(inner),
crate::operation::transfer_contact::TransferContactError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::transfer_contact::TransferContactError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::transfer_contact::TransferContactError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::transfer_contact::TransferContactError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::transfer_contact::TransferContactError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::transfer_contact::TransferContactError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_contact::UntagContactError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_contact::UntagContactError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::untag_contact::UntagContactError> for Error {
fn from(err: crate::operation::untag_contact::UntagContactError) -> Self {
match err {
crate::operation::untag_contact::UntagContactError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::untag_contact::UntagContactError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::untag_contact::UntagContactError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::untag_contact::UntagContactError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::untag_contact::UntagContactError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::untag_contact::UntagContactError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::untag_resource::UntagResourceError> for Error {
fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
match err {
crate::operation::untag_resource::UntagResourceError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::untag_resource::UntagResourceError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::untag_resource::UntagResourceError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_agent_status::UpdateAgentStatusError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_agent_status::UpdateAgentStatusError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_agent_status::UpdateAgentStatusError> for Error {
fn from(err: crate::operation::update_agent_status::UpdateAgentStatusError) -> Self {
match err {
crate::operation::update_agent_status::UpdateAgentStatusError::DuplicateResourceException(inner) => {
Error::DuplicateResourceException(inner)
}
crate::operation::update_agent_status::UpdateAgentStatusError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::update_agent_status::UpdateAgentStatusError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::update_agent_status::UpdateAgentStatusError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::update_agent_status::UpdateAgentStatusError::LimitExceededException(inner) => Error::LimitExceededException(inner),
crate::operation::update_agent_status::UpdateAgentStatusError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::update_agent_status::UpdateAgentStatusError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::update_agent_status::UpdateAgentStatusError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_authentication_profile::UpdateAuthenticationProfileError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_authentication_profile::UpdateAuthenticationProfileError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_authentication_profile::UpdateAuthenticationProfileError> for Error {
fn from(err: crate::operation::update_authentication_profile::UpdateAuthenticationProfileError) -> Self {
match err {
crate::operation::update_authentication_profile::UpdateAuthenticationProfileError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::update_authentication_profile::UpdateAuthenticationProfileError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::update_authentication_profile::UpdateAuthenticationProfileError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::update_authentication_profile::UpdateAuthenticationProfileError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::update_authentication_profile::UpdateAuthenticationProfileError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::update_authentication_profile::UpdateAuthenticationProfileError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_contact::UpdateContactError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_contact::UpdateContactError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_contact::UpdateContactError> for Error {
fn from(err: crate::operation::update_contact::UpdateContactError) -> Self {
match err {
crate::operation::update_contact::UpdateContactError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::update_contact::UpdateContactError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::update_contact::UpdateContactError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::update_contact::UpdateContactError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::update_contact::UpdateContactError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::update_contact::UpdateContactError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::update_contact::UpdateContactError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::update_contact::UpdateContactError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_contact_attributes::UpdateContactAttributesError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_contact_attributes::UpdateContactAttributesError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_contact_attributes::UpdateContactAttributesError> for Error {
fn from(err: crate::operation::update_contact_attributes::UpdateContactAttributesError) -> Self {
match err {
crate::operation::update_contact_attributes::UpdateContactAttributesError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::update_contact_attributes::UpdateContactAttributesError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::update_contact_attributes::UpdateContactAttributesError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::update_contact_attributes::UpdateContactAttributesError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::update_contact_attributes::UpdateContactAttributesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_contact_evaluation::UpdateContactEvaluationError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_contact_evaluation::UpdateContactEvaluationError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_contact_evaluation::UpdateContactEvaluationError> for Error {
fn from(err: crate::operation::update_contact_evaluation::UpdateContactEvaluationError) -> Self {
match err {
crate::operation::update_contact_evaluation::UpdateContactEvaluationError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::update_contact_evaluation::UpdateContactEvaluationError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::update_contact_evaluation::UpdateContactEvaluationError::ResourceConflictException(inner) => {
Error::ResourceConflictException(inner)
}
crate::operation::update_contact_evaluation::UpdateContactEvaluationError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::update_contact_evaluation::UpdateContactEvaluationError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::update_contact_evaluation::UpdateContactEvaluationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_contact_flow_content::UpdateContactFlowContentError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_contact_flow_content::UpdateContactFlowContentError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_contact_flow_content::UpdateContactFlowContentError> for Error {
fn from(err: crate::operation::update_contact_flow_content::UpdateContactFlowContentError) -> Self {
match err {
crate::operation::update_contact_flow_content::UpdateContactFlowContentError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::update_contact_flow_content::UpdateContactFlowContentError::InvalidContactFlowException(inner) => {
Error::InvalidContactFlowException(inner)
}
crate::operation::update_contact_flow_content::UpdateContactFlowContentError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::update_contact_flow_content::UpdateContactFlowContentError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::update_contact_flow_content::UpdateContactFlowContentError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::update_contact_flow_content::UpdateContactFlowContentError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::update_contact_flow_content::UpdateContactFlowContentError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_contact_flow_metadata::UpdateContactFlowMetadataError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_contact_flow_metadata::UpdateContactFlowMetadataError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_contact_flow_metadata::UpdateContactFlowMetadataError> for Error {
fn from(err: crate::operation::update_contact_flow_metadata::UpdateContactFlowMetadataError) -> Self {
match err {
crate::operation::update_contact_flow_metadata::UpdateContactFlowMetadataError::DuplicateResourceException(inner) => {
Error::DuplicateResourceException(inner)
}
crate::operation::update_contact_flow_metadata::UpdateContactFlowMetadataError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::update_contact_flow_metadata::UpdateContactFlowMetadataError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::update_contact_flow_metadata::UpdateContactFlowMetadataError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::update_contact_flow_metadata::UpdateContactFlowMetadataError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::update_contact_flow_metadata::UpdateContactFlowMetadataError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::update_contact_flow_metadata::UpdateContactFlowMetadataError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_contact_flow_module_content::UpdateContactFlowModuleContentError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_contact_flow_module_content::UpdateContactFlowModuleContentError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_contact_flow_module_content::UpdateContactFlowModuleContentError> for Error {
fn from(err: crate::operation::update_contact_flow_module_content::UpdateContactFlowModuleContentError) -> Self {
match err {
crate::operation::update_contact_flow_module_content::UpdateContactFlowModuleContentError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::update_contact_flow_module_content::UpdateContactFlowModuleContentError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::update_contact_flow_module_content::UpdateContactFlowModuleContentError::InvalidContactFlowModuleException(inner) => {
Error::InvalidContactFlowModuleException(inner)
}
crate::operation::update_contact_flow_module_content::UpdateContactFlowModuleContentError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::update_contact_flow_module_content::UpdateContactFlowModuleContentError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::update_contact_flow_module_content::UpdateContactFlowModuleContentError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::update_contact_flow_module_content::UpdateContactFlowModuleContentError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_contact_flow_module_metadata::UpdateContactFlowModuleMetadataError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_contact_flow_module_metadata::UpdateContactFlowModuleMetadataError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_contact_flow_module_metadata::UpdateContactFlowModuleMetadataError> for Error {
fn from(err: crate::operation::update_contact_flow_module_metadata::UpdateContactFlowModuleMetadataError) -> Self {
match err {
crate::operation::update_contact_flow_module_metadata::UpdateContactFlowModuleMetadataError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::update_contact_flow_module_metadata::UpdateContactFlowModuleMetadataError::DuplicateResourceException(inner) => {
Error::DuplicateResourceException(inner)
}
crate::operation::update_contact_flow_module_metadata::UpdateContactFlowModuleMetadataError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::update_contact_flow_module_metadata::UpdateContactFlowModuleMetadataError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::update_contact_flow_module_metadata::UpdateContactFlowModuleMetadataError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::update_contact_flow_module_metadata::UpdateContactFlowModuleMetadataError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::update_contact_flow_module_metadata::UpdateContactFlowModuleMetadataError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::update_contact_flow_module_metadata::UpdateContactFlowModuleMetadataError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_contact_flow_name::UpdateContactFlowNameError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_contact_flow_name::UpdateContactFlowNameError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_contact_flow_name::UpdateContactFlowNameError> for Error {
fn from(err: crate::operation::update_contact_flow_name::UpdateContactFlowNameError) -> Self {
match err {
crate::operation::update_contact_flow_name::UpdateContactFlowNameError::DuplicateResourceException(inner) => {
Error::DuplicateResourceException(inner)
}
crate::operation::update_contact_flow_name::UpdateContactFlowNameError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::update_contact_flow_name::UpdateContactFlowNameError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::update_contact_flow_name::UpdateContactFlowNameError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::update_contact_flow_name::UpdateContactFlowNameError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::update_contact_flow_name::UpdateContactFlowNameError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::update_contact_flow_name::UpdateContactFlowNameError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_contact_routing_data::UpdateContactRoutingDataError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_contact_routing_data::UpdateContactRoutingDataError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_contact_routing_data::UpdateContactRoutingDataError> for Error {
fn from(err: crate::operation::update_contact_routing_data::UpdateContactRoutingDataError) -> Self {
match err {
crate::operation::update_contact_routing_data::UpdateContactRoutingDataError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::update_contact_routing_data::UpdateContactRoutingDataError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::update_contact_routing_data::UpdateContactRoutingDataError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::update_contact_routing_data::UpdateContactRoutingDataError::ResourceConflictException(inner) => {
Error::ResourceConflictException(inner)
}
crate::operation::update_contact_routing_data::UpdateContactRoutingDataError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::update_contact_routing_data::UpdateContactRoutingDataError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::update_contact_routing_data::UpdateContactRoutingDataError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_contact_schedule::UpdateContactScheduleError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_contact_schedule::UpdateContactScheduleError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_contact_schedule::UpdateContactScheduleError> for Error {
fn from(err: crate::operation::update_contact_schedule::UpdateContactScheduleError) -> Self {
match err {
crate::operation::update_contact_schedule::UpdateContactScheduleError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::update_contact_schedule::UpdateContactScheduleError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::update_contact_schedule::UpdateContactScheduleError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::update_contact_schedule::UpdateContactScheduleError::LimitExceededException(inner) => {
Error::LimitExceededException(inner)
}
crate::operation::update_contact_schedule::UpdateContactScheduleError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::update_contact_schedule::UpdateContactScheduleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::update_contact_schedule::UpdateContactScheduleError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_email_address_metadata::UpdateEmailAddressMetadataError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_email_address_metadata::UpdateEmailAddressMetadataError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_email_address_metadata::UpdateEmailAddressMetadataError> for Error {
fn from(err: crate::operation::update_email_address_metadata::UpdateEmailAddressMetadataError) -> Self {
match err {
crate::operation::update_email_address_metadata::UpdateEmailAddressMetadataError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::update_email_address_metadata::UpdateEmailAddressMetadataError::IdempotencyException(inner) => {
Error::IdempotencyException(inner)
}
crate::operation::update_email_address_metadata::UpdateEmailAddressMetadataError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::update_email_address_metadata::UpdateEmailAddressMetadataError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::update_email_address_metadata::UpdateEmailAddressMetadataError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::update_email_address_metadata::UpdateEmailAddressMetadataError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::update_email_address_metadata::UpdateEmailAddressMetadataError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::update_email_address_metadata::UpdateEmailAddressMetadataError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_evaluation_form::UpdateEvaluationFormError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_evaluation_form::UpdateEvaluationFormError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_evaluation_form::UpdateEvaluationFormError> for Error {
fn from(err: crate::operation::update_evaluation_form::UpdateEvaluationFormError) -> Self {
match err {
crate::operation::update_evaluation_form::UpdateEvaluationFormError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::update_evaluation_form::UpdateEvaluationFormError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::update_evaluation_form::UpdateEvaluationFormError::ResourceConflictException(inner) => {
Error::ResourceConflictException(inner)
}
crate::operation::update_evaluation_form::UpdateEvaluationFormError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::update_evaluation_form::UpdateEvaluationFormError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::update_evaluation_form::UpdateEvaluationFormError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::update_evaluation_form::UpdateEvaluationFormError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_hours_of_operation::UpdateHoursOfOperationError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_hours_of_operation::UpdateHoursOfOperationError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_hours_of_operation::UpdateHoursOfOperationError> for Error {
fn from(err: crate::operation::update_hours_of_operation::UpdateHoursOfOperationError) -> Self {
match err {
crate::operation::update_hours_of_operation::UpdateHoursOfOperationError::DuplicateResourceException(inner) => {
Error::DuplicateResourceException(inner)
}
crate::operation::update_hours_of_operation::UpdateHoursOfOperationError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::update_hours_of_operation::UpdateHoursOfOperationError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::update_hours_of_operation::UpdateHoursOfOperationError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::update_hours_of_operation::UpdateHoursOfOperationError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::update_hours_of_operation::UpdateHoursOfOperationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::update_hours_of_operation::UpdateHoursOfOperationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_hours_of_operation_override::UpdateHoursOfOperationOverrideError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_hours_of_operation_override::UpdateHoursOfOperationOverrideError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_hours_of_operation_override::UpdateHoursOfOperationOverrideError> for Error {
fn from(err: crate::operation::update_hours_of_operation_override::UpdateHoursOfOperationOverrideError) -> Self {
match err {
crate::operation::update_hours_of_operation_override::UpdateHoursOfOperationOverrideError::ConditionalOperationFailedException(inner) => {
Error::ConditionalOperationFailedException(inner)
}
crate::operation::update_hours_of_operation_override::UpdateHoursOfOperationOverrideError::DuplicateResourceException(inner) => {
Error::DuplicateResourceException(inner)
}
crate::operation::update_hours_of_operation_override::UpdateHoursOfOperationOverrideError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::update_hours_of_operation_override::UpdateHoursOfOperationOverrideError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::update_hours_of_operation_override::UpdateHoursOfOperationOverrideError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::update_hours_of_operation_override::UpdateHoursOfOperationOverrideError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::update_hours_of_operation_override::UpdateHoursOfOperationOverrideError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::update_hours_of_operation_override::UpdateHoursOfOperationOverrideError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_instance_attribute::UpdateInstanceAttributeError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_instance_attribute::UpdateInstanceAttributeError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_instance_attribute::UpdateInstanceAttributeError> for Error {
fn from(err: crate::operation::update_instance_attribute::UpdateInstanceAttributeError) -> Self {
match err {
crate::operation::update_instance_attribute::UpdateInstanceAttributeError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::update_instance_attribute::UpdateInstanceAttributeError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::update_instance_attribute::UpdateInstanceAttributeError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::update_instance_attribute::UpdateInstanceAttributeError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::update_instance_attribute::UpdateInstanceAttributeError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::update_instance_attribute::UpdateInstanceAttributeError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_instance_storage_config::UpdateInstanceStorageConfigError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_instance_storage_config::UpdateInstanceStorageConfigError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_instance_storage_config::UpdateInstanceStorageConfigError> for Error {
fn from(err: crate::operation::update_instance_storage_config::UpdateInstanceStorageConfigError) -> Self {
match err {
crate::operation::update_instance_storage_config::UpdateInstanceStorageConfigError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::update_instance_storage_config::UpdateInstanceStorageConfigError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::update_instance_storage_config::UpdateInstanceStorageConfigError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::update_instance_storage_config::UpdateInstanceStorageConfigError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::update_instance_storage_config::UpdateInstanceStorageConfigError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::update_instance_storage_config::UpdateInstanceStorageConfigError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_participant_authentication::UpdateParticipantAuthenticationError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_participant_authentication::UpdateParticipantAuthenticationError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_participant_authentication::UpdateParticipantAuthenticationError> for Error {
fn from(err: crate::operation::update_participant_authentication::UpdateParticipantAuthenticationError) -> Self {
match err {
crate::operation::update_participant_authentication::UpdateParticipantAuthenticationError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::update_participant_authentication::UpdateParticipantAuthenticationError::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::operation::update_participant_authentication::UpdateParticipantAuthenticationError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::update_participant_authentication::UpdateParticipantAuthenticationError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::update_participant_authentication::UpdateParticipantAuthenticationError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::update_participant_authentication::UpdateParticipantAuthenticationError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::update_participant_authentication::UpdateParticipantAuthenticationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_participant_role_config::UpdateParticipantRoleConfigError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_participant_role_config::UpdateParticipantRoleConfigError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_participant_role_config::UpdateParticipantRoleConfigError> for Error {
fn from(err: crate::operation::update_participant_role_config::UpdateParticipantRoleConfigError) -> Self {
match err {
crate::operation::update_participant_role_config::UpdateParticipantRoleConfigError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::update_participant_role_config::UpdateParticipantRoleConfigError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::update_participant_role_config::UpdateParticipantRoleConfigError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::update_participant_role_config::UpdateParticipantRoleConfigError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::update_participant_role_config::UpdateParticipantRoleConfigError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::update_participant_role_config::UpdateParticipantRoleConfigError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::update_participant_role_config::UpdateParticipantRoleConfigError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_phone_number::UpdatePhoneNumberError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_phone_number::UpdatePhoneNumberError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_phone_number::UpdatePhoneNumberError> for Error {
fn from(err: crate::operation::update_phone_number::UpdatePhoneNumberError) -> Self {
match err {
crate::operation::update_phone_number::UpdatePhoneNumberError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::update_phone_number::UpdatePhoneNumberError::IdempotencyException(inner) => Error::IdempotencyException(inner),
crate::operation::update_phone_number::UpdatePhoneNumberError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::update_phone_number::UpdatePhoneNumberError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::update_phone_number::UpdatePhoneNumberError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
crate::operation::update_phone_number::UpdatePhoneNumberError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::update_phone_number::UpdatePhoneNumberError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::update_phone_number::UpdatePhoneNumberError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_phone_number_metadata::UpdatePhoneNumberMetadataError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_phone_number_metadata::UpdatePhoneNumberMetadataError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_phone_number_metadata::UpdatePhoneNumberMetadataError> for Error {
fn from(err: crate::operation::update_phone_number_metadata::UpdatePhoneNumberMetadataError) -> Self {
match err {
crate::operation::update_phone_number_metadata::UpdatePhoneNumberMetadataError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::update_phone_number_metadata::UpdatePhoneNumberMetadataError::IdempotencyException(inner) => {
Error::IdempotencyException(inner)
}
crate::operation::update_phone_number_metadata::UpdatePhoneNumberMetadataError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::update_phone_number_metadata::UpdatePhoneNumberMetadataError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::update_phone_number_metadata::UpdatePhoneNumberMetadataError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::update_phone_number_metadata::UpdatePhoneNumberMetadataError::ResourceInUseException(inner) => {
Error::ResourceInUseException(inner)
}
crate::operation::update_phone_number_metadata::UpdatePhoneNumberMetadataError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::update_phone_number_metadata::UpdatePhoneNumberMetadataError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::update_phone_number_metadata::UpdatePhoneNumberMetadataError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_predefined_attribute::UpdatePredefinedAttributeError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_predefined_attribute::UpdatePredefinedAttributeError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_predefined_attribute::UpdatePredefinedAttributeError> for Error {
fn from(err: crate::operation::update_predefined_attribute::UpdatePredefinedAttributeError) -> Self {
match err {
crate::operation::update_predefined_attribute::UpdatePredefinedAttributeError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::update_predefined_attribute::UpdatePredefinedAttributeError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::update_predefined_attribute::UpdatePredefinedAttributeError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::update_predefined_attribute::UpdatePredefinedAttributeError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::update_predefined_attribute::UpdatePredefinedAttributeError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::update_predefined_attribute::UpdatePredefinedAttributeError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_prompt::UpdatePromptError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_prompt::UpdatePromptError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_prompt::UpdatePromptError> for Error {
fn from(err: crate::operation::update_prompt::UpdatePromptError) -> Self {
match err {
crate::operation::update_prompt::UpdatePromptError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::update_prompt::UpdatePromptError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::update_prompt::UpdatePromptError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::update_prompt::UpdatePromptError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::update_prompt::UpdatePromptError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::update_prompt::UpdatePromptError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_queue_hours_of_operation::UpdateQueueHoursOfOperationError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_queue_hours_of_operation::UpdateQueueHoursOfOperationError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_queue_hours_of_operation::UpdateQueueHoursOfOperationError> for Error {
fn from(err: crate::operation::update_queue_hours_of_operation::UpdateQueueHoursOfOperationError) -> Self {
match err {
crate::operation::update_queue_hours_of_operation::UpdateQueueHoursOfOperationError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::update_queue_hours_of_operation::UpdateQueueHoursOfOperationError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::update_queue_hours_of_operation::UpdateQueueHoursOfOperationError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::update_queue_hours_of_operation::UpdateQueueHoursOfOperationError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::update_queue_hours_of_operation::UpdateQueueHoursOfOperationError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::update_queue_hours_of_operation::UpdateQueueHoursOfOperationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_queue_max_contacts::UpdateQueueMaxContactsError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_queue_max_contacts::UpdateQueueMaxContactsError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_queue_max_contacts::UpdateQueueMaxContactsError> for Error {
fn from(err: crate::operation::update_queue_max_contacts::UpdateQueueMaxContactsError) -> Self {
match err {
crate::operation::update_queue_max_contacts::UpdateQueueMaxContactsError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::update_queue_max_contacts::UpdateQueueMaxContactsError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::update_queue_max_contacts::UpdateQueueMaxContactsError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::update_queue_max_contacts::UpdateQueueMaxContactsError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::update_queue_max_contacts::UpdateQueueMaxContactsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::update_queue_max_contacts::UpdateQueueMaxContactsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_queue_name::UpdateQueueNameError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_queue_name::UpdateQueueNameError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_queue_name::UpdateQueueNameError> for Error {
fn from(err: crate::operation::update_queue_name::UpdateQueueNameError) -> Self {
match err {
crate::operation::update_queue_name::UpdateQueueNameError::DuplicateResourceException(inner) => Error::DuplicateResourceException(inner),
crate::operation::update_queue_name::UpdateQueueNameError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::update_queue_name::UpdateQueueNameError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::update_queue_name::UpdateQueueNameError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::update_queue_name::UpdateQueueNameError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::update_queue_name::UpdateQueueNameError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::update_queue_name::UpdateQueueNameError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_queue_outbound_caller_config::UpdateQueueOutboundCallerConfigError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_queue_outbound_caller_config::UpdateQueueOutboundCallerConfigError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_queue_outbound_caller_config::UpdateQueueOutboundCallerConfigError> for Error {
fn from(err: crate::operation::update_queue_outbound_caller_config::UpdateQueueOutboundCallerConfigError) -> Self {
match err {
crate::operation::update_queue_outbound_caller_config::UpdateQueueOutboundCallerConfigError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::update_queue_outbound_caller_config::UpdateQueueOutboundCallerConfigError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::update_queue_outbound_caller_config::UpdateQueueOutboundCallerConfigError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::update_queue_outbound_caller_config::UpdateQueueOutboundCallerConfigError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::update_queue_outbound_caller_config::UpdateQueueOutboundCallerConfigError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::update_queue_outbound_caller_config::UpdateQueueOutboundCallerConfigError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_queue_outbound_email_config::UpdateQueueOutboundEmailConfigError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_queue_outbound_email_config::UpdateQueueOutboundEmailConfigError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_queue_outbound_email_config::UpdateQueueOutboundEmailConfigError> for Error {
fn from(err: crate::operation::update_queue_outbound_email_config::UpdateQueueOutboundEmailConfigError) -> Self {
match err {
crate::operation::update_queue_outbound_email_config::UpdateQueueOutboundEmailConfigError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::update_queue_outbound_email_config::UpdateQueueOutboundEmailConfigError::ConditionalOperationFailedException(inner) => {
Error::ConditionalOperationFailedException(inner)
}
crate::operation::update_queue_outbound_email_config::UpdateQueueOutboundEmailConfigError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::update_queue_outbound_email_config::UpdateQueueOutboundEmailConfigError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::update_queue_outbound_email_config::UpdateQueueOutboundEmailConfigError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::update_queue_outbound_email_config::UpdateQueueOutboundEmailConfigError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::update_queue_outbound_email_config::UpdateQueueOutboundEmailConfigError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::update_queue_outbound_email_config::UpdateQueueOutboundEmailConfigError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_queue_status::UpdateQueueStatusError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_queue_status::UpdateQueueStatusError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_queue_status::UpdateQueueStatusError> for Error {
fn from(err: crate::operation::update_queue_status::UpdateQueueStatusError) -> Self {
match err {
crate::operation::update_queue_status::UpdateQueueStatusError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::update_queue_status::UpdateQueueStatusError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::update_queue_status::UpdateQueueStatusError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::update_queue_status::UpdateQueueStatusError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::update_queue_status::UpdateQueueStatusError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::update_queue_status::UpdateQueueStatusError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_quick_connect_config::UpdateQuickConnectConfigError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_quick_connect_config::UpdateQuickConnectConfigError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_quick_connect_config::UpdateQuickConnectConfigError> for Error {
fn from(err: crate::operation::update_quick_connect_config::UpdateQuickConnectConfigError) -> Self {
match err {
crate::operation::update_quick_connect_config::UpdateQuickConnectConfigError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::update_quick_connect_config::UpdateQuickConnectConfigError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::update_quick_connect_config::UpdateQuickConnectConfigError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::update_quick_connect_config::UpdateQuickConnectConfigError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::update_quick_connect_config::UpdateQuickConnectConfigError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::update_quick_connect_config::UpdateQuickConnectConfigError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_quick_connect_name::UpdateQuickConnectNameError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_quick_connect_name::UpdateQuickConnectNameError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_quick_connect_name::UpdateQuickConnectNameError> for Error {
fn from(err: crate::operation::update_quick_connect_name::UpdateQuickConnectNameError) -> Self {
match err {
crate::operation::update_quick_connect_name::UpdateQuickConnectNameError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::update_quick_connect_name::UpdateQuickConnectNameError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::update_quick_connect_name::UpdateQuickConnectNameError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::update_quick_connect_name::UpdateQuickConnectNameError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::update_quick_connect_name::UpdateQuickConnectNameError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::update_quick_connect_name::UpdateQuickConnectNameError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_routing_profile_agent_availability_timer::UpdateRoutingProfileAgentAvailabilityTimerError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_routing_profile_agent_availability_timer::UpdateRoutingProfileAgentAvailabilityTimerError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_routing_profile_agent_availability_timer::UpdateRoutingProfileAgentAvailabilityTimerError> for Error {
fn from(err: crate::operation::update_routing_profile_agent_availability_timer::UpdateRoutingProfileAgentAvailabilityTimerError) -> Self {
match err {
crate::operation::update_routing_profile_agent_availability_timer::UpdateRoutingProfileAgentAvailabilityTimerError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::update_routing_profile_agent_availability_timer::UpdateRoutingProfileAgentAvailabilityTimerError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::update_routing_profile_agent_availability_timer::UpdateRoutingProfileAgentAvailabilityTimerError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::update_routing_profile_agent_availability_timer::UpdateRoutingProfileAgentAvailabilityTimerError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::update_routing_profile_agent_availability_timer::UpdateRoutingProfileAgentAvailabilityTimerError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::update_routing_profile_agent_availability_timer::UpdateRoutingProfileAgentAvailabilityTimerError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_routing_profile_concurrency::UpdateRoutingProfileConcurrencyError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_routing_profile_concurrency::UpdateRoutingProfileConcurrencyError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_routing_profile_concurrency::UpdateRoutingProfileConcurrencyError> for Error {
fn from(err: crate::operation::update_routing_profile_concurrency::UpdateRoutingProfileConcurrencyError) -> Self {
match err {
crate::operation::update_routing_profile_concurrency::UpdateRoutingProfileConcurrencyError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::update_routing_profile_concurrency::UpdateRoutingProfileConcurrencyError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::update_routing_profile_concurrency::UpdateRoutingProfileConcurrencyError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::update_routing_profile_concurrency::UpdateRoutingProfileConcurrencyError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::update_routing_profile_concurrency::UpdateRoutingProfileConcurrencyError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::update_routing_profile_concurrency::UpdateRoutingProfileConcurrencyError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_routing_profile_default_outbound_queue::UpdateRoutingProfileDefaultOutboundQueueError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_routing_profile_default_outbound_queue::UpdateRoutingProfileDefaultOutboundQueueError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_routing_profile_default_outbound_queue::UpdateRoutingProfileDefaultOutboundQueueError> for Error {
fn from(err: crate::operation::update_routing_profile_default_outbound_queue::UpdateRoutingProfileDefaultOutboundQueueError) -> Self {
match err {
crate::operation::update_routing_profile_default_outbound_queue::UpdateRoutingProfileDefaultOutboundQueueError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::update_routing_profile_default_outbound_queue::UpdateRoutingProfileDefaultOutboundQueueError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::update_routing_profile_default_outbound_queue::UpdateRoutingProfileDefaultOutboundQueueError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::update_routing_profile_default_outbound_queue::UpdateRoutingProfileDefaultOutboundQueueError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::update_routing_profile_default_outbound_queue::UpdateRoutingProfileDefaultOutboundQueueError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::update_routing_profile_default_outbound_queue::UpdateRoutingProfileDefaultOutboundQueueError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_routing_profile_name::UpdateRoutingProfileNameError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_routing_profile_name::UpdateRoutingProfileNameError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_routing_profile_name::UpdateRoutingProfileNameError> for Error {
fn from(err: crate::operation::update_routing_profile_name::UpdateRoutingProfileNameError) -> Self {
match err {
crate::operation::update_routing_profile_name::UpdateRoutingProfileNameError::DuplicateResourceException(inner) => {
Error::DuplicateResourceException(inner)
}
crate::operation::update_routing_profile_name::UpdateRoutingProfileNameError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::update_routing_profile_name::UpdateRoutingProfileNameError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::update_routing_profile_name::UpdateRoutingProfileNameError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::update_routing_profile_name::UpdateRoutingProfileNameError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::update_routing_profile_name::UpdateRoutingProfileNameError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::update_routing_profile_name::UpdateRoutingProfileNameError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_routing_profile_queues::UpdateRoutingProfileQueuesError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_routing_profile_queues::UpdateRoutingProfileQueuesError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_routing_profile_queues::UpdateRoutingProfileQueuesError> for Error {
fn from(err: crate::operation::update_routing_profile_queues::UpdateRoutingProfileQueuesError) -> Self {
match err {
crate::operation::update_routing_profile_queues::UpdateRoutingProfileQueuesError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::update_routing_profile_queues::UpdateRoutingProfileQueuesError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::update_routing_profile_queues::UpdateRoutingProfileQueuesError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::update_routing_profile_queues::UpdateRoutingProfileQueuesError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::update_routing_profile_queues::UpdateRoutingProfileQueuesError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::update_routing_profile_queues::UpdateRoutingProfileQueuesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_rule::UpdateRuleError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_rule::UpdateRuleError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_rule::UpdateRuleError> for Error {
fn from(err: crate::operation::update_rule::UpdateRuleError) -> Self {
match err {
crate::operation::update_rule::UpdateRuleError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::update_rule::UpdateRuleError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::update_rule::UpdateRuleError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::update_rule::UpdateRuleError::ResourceConflictException(inner) => Error::ResourceConflictException(inner),
crate::operation::update_rule::UpdateRuleError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::update_rule::UpdateRuleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::update_rule::UpdateRuleError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_security_profile::UpdateSecurityProfileError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_security_profile::UpdateSecurityProfileError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_security_profile::UpdateSecurityProfileError> for Error {
fn from(err: crate::operation::update_security_profile::UpdateSecurityProfileError) -> Self {
match err {
crate::operation::update_security_profile::UpdateSecurityProfileError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::update_security_profile::UpdateSecurityProfileError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::update_security_profile::UpdateSecurityProfileError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::update_security_profile::UpdateSecurityProfileError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::update_security_profile::UpdateSecurityProfileError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::update_security_profile::UpdateSecurityProfileError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_task_template::UpdateTaskTemplateError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_task_template::UpdateTaskTemplateError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_task_template::UpdateTaskTemplateError> for Error {
fn from(err: crate::operation::update_task_template::UpdateTaskTemplateError) -> Self {
match err {
crate::operation::update_task_template::UpdateTaskTemplateError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::update_task_template::UpdateTaskTemplateError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::update_task_template::UpdateTaskTemplateError::PropertyValidationException(inner) => {
Error::PropertyValidationException(inner)
}
crate::operation::update_task_template::UpdateTaskTemplateError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::update_task_template::UpdateTaskTemplateError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::update_task_template::UpdateTaskTemplateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::update_task_template::UpdateTaskTemplateError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_traffic_distribution::UpdateTrafficDistributionError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_traffic_distribution::UpdateTrafficDistributionError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_traffic_distribution::UpdateTrafficDistributionError> for Error {
fn from(err: crate::operation::update_traffic_distribution::UpdateTrafficDistributionError) -> Self {
match err {
crate::operation::update_traffic_distribution::UpdateTrafficDistributionError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::update_traffic_distribution::UpdateTrafficDistributionError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::update_traffic_distribution::UpdateTrafficDistributionError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::update_traffic_distribution::UpdateTrafficDistributionError::ResourceConflictException(inner) => {
Error::ResourceConflictException(inner)
}
crate::operation::update_traffic_distribution::UpdateTrafficDistributionError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::update_traffic_distribution::UpdateTrafficDistributionError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::update_traffic_distribution::UpdateTrafficDistributionError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_user_hierarchy::UpdateUserHierarchyError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_user_hierarchy::UpdateUserHierarchyError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_user_hierarchy::UpdateUserHierarchyError> for Error {
fn from(err: crate::operation::update_user_hierarchy::UpdateUserHierarchyError) -> Self {
match err {
crate::operation::update_user_hierarchy::UpdateUserHierarchyError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::update_user_hierarchy::UpdateUserHierarchyError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::update_user_hierarchy::UpdateUserHierarchyError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::update_user_hierarchy::UpdateUserHierarchyError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::update_user_hierarchy::UpdateUserHierarchyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::update_user_hierarchy::UpdateUserHierarchyError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_user_hierarchy_group_name::UpdateUserHierarchyGroupNameError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_user_hierarchy_group_name::UpdateUserHierarchyGroupNameError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_user_hierarchy_group_name::UpdateUserHierarchyGroupNameError> for Error {
fn from(err: crate::operation::update_user_hierarchy_group_name::UpdateUserHierarchyGroupNameError) -> Self {
match err {
crate::operation::update_user_hierarchy_group_name::UpdateUserHierarchyGroupNameError::DuplicateResourceException(inner) => {
Error::DuplicateResourceException(inner)
}
crate::operation::update_user_hierarchy_group_name::UpdateUserHierarchyGroupNameError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::update_user_hierarchy_group_name::UpdateUserHierarchyGroupNameError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::update_user_hierarchy_group_name::UpdateUserHierarchyGroupNameError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::update_user_hierarchy_group_name::UpdateUserHierarchyGroupNameError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::update_user_hierarchy_group_name::UpdateUserHierarchyGroupNameError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::update_user_hierarchy_group_name::UpdateUserHierarchyGroupNameError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_user_hierarchy_structure::UpdateUserHierarchyStructureError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_user_hierarchy_structure::UpdateUserHierarchyStructureError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_user_hierarchy_structure::UpdateUserHierarchyStructureError> for Error {
fn from(err: crate::operation::update_user_hierarchy_structure::UpdateUserHierarchyStructureError) -> Self {
match err {
crate::operation::update_user_hierarchy_structure::UpdateUserHierarchyStructureError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::update_user_hierarchy_structure::UpdateUserHierarchyStructureError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::update_user_hierarchy_structure::UpdateUserHierarchyStructureError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::update_user_hierarchy_structure::UpdateUserHierarchyStructureError::ResourceInUseException(inner) => {
Error::ResourceInUseException(inner)
}
crate::operation::update_user_hierarchy_structure::UpdateUserHierarchyStructureError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::update_user_hierarchy_structure::UpdateUserHierarchyStructureError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::update_user_hierarchy_structure::UpdateUserHierarchyStructureError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_user_identity_info::UpdateUserIdentityInfoError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_user_identity_info::UpdateUserIdentityInfoError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_user_identity_info::UpdateUserIdentityInfoError> for Error {
fn from(err: crate::operation::update_user_identity_info::UpdateUserIdentityInfoError) -> Self {
match err {
crate::operation::update_user_identity_info::UpdateUserIdentityInfoError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::update_user_identity_info::UpdateUserIdentityInfoError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::update_user_identity_info::UpdateUserIdentityInfoError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::update_user_identity_info::UpdateUserIdentityInfoError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::update_user_identity_info::UpdateUserIdentityInfoError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::update_user_identity_info::UpdateUserIdentityInfoError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_user_phone_config::UpdateUserPhoneConfigError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_user_phone_config::UpdateUserPhoneConfigError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_user_phone_config::UpdateUserPhoneConfigError> for Error {
fn from(err: crate::operation::update_user_phone_config::UpdateUserPhoneConfigError) -> Self {
match err {
crate::operation::update_user_phone_config::UpdateUserPhoneConfigError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::update_user_phone_config::UpdateUserPhoneConfigError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::update_user_phone_config::UpdateUserPhoneConfigError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::update_user_phone_config::UpdateUserPhoneConfigError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::update_user_phone_config::UpdateUserPhoneConfigError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::update_user_phone_config::UpdateUserPhoneConfigError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_user_proficiencies::UpdateUserProficienciesError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_user_proficiencies::UpdateUserProficienciesError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_user_proficiencies::UpdateUserProficienciesError> for Error {
fn from(err: crate::operation::update_user_proficiencies::UpdateUserProficienciesError) -> Self {
match err {
crate::operation::update_user_proficiencies::UpdateUserProficienciesError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::update_user_proficiencies::UpdateUserProficienciesError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::update_user_proficiencies::UpdateUserProficienciesError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::update_user_proficiencies::UpdateUserProficienciesError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::update_user_proficiencies::UpdateUserProficienciesError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::update_user_proficiencies::UpdateUserProficienciesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_user_routing_profile::UpdateUserRoutingProfileError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_user_routing_profile::UpdateUserRoutingProfileError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_user_routing_profile::UpdateUserRoutingProfileError> for Error {
fn from(err: crate::operation::update_user_routing_profile::UpdateUserRoutingProfileError) -> Self {
match err {
crate::operation::update_user_routing_profile::UpdateUserRoutingProfileError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::update_user_routing_profile::UpdateUserRoutingProfileError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::update_user_routing_profile::UpdateUserRoutingProfileError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::update_user_routing_profile::UpdateUserRoutingProfileError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::update_user_routing_profile::UpdateUserRoutingProfileError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::update_user_routing_profile::UpdateUserRoutingProfileError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_user_security_profiles::UpdateUserSecurityProfilesError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_user_security_profiles::UpdateUserSecurityProfilesError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_user_security_profiles::UpdateUserSecurityProfilesError> for Error {
fn from(err: crate::operation::update_user_security_profiles::UpdateUserSecurityProfilesError) -> Self {
match err {
crate::operation::update_user_security_profiles::UpdateUserSecurityProfilesError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::update_user_security_profiles::UpdateUserSecurityProfilesError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::update_user_security_profiles::UpdateUserSecurityProfilesError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::update_user_security_profiles::UpdateUserSecurityProfilesError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::update_user_security_profiles::UpdateUserSecurityProfilesError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::update_user_security_profiles::UpdateUserSecurityProfilesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_view_content::UpdateViewContentError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_view_content::UpdateViewContentError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_view_content::UpdateViewContentError> for Error {
fn from(err: crate::operation::update_view_content::UpdateViewContentError) -> Self {
match err {
crate::operation::update_view_content::UpdateViewContentError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::update_view_content::UpdateViewContentError::InternalServiceException(inner) => Error::InternalServiceException(inner),
crate::operation::update_view_content::UpdateViewContentError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::update_view_content::UpdateViewContentError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::update_view_content::UpdateViewContentError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
crate::operation::update_view_content::UpdateViewContentError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::update_view_content::UpdateViewContentError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
crate::operation::update_view_content::UpdateViewContentError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_view_metadata::UpdateViewMetadataError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_view_metadata::UpdateViewMetadataError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_view_metadata::UpdateViewMetadataError> for Error {
fn from(err: crate::operation::update_view_metadata::UpdateViewMetadataError) -> Self {
match err {
crate::operation::update_view_metadata::UpdateViewMetadataError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::update_view_metadata::UpdateViewMetadataError::DuplicateResourceException(inner) => {
Error::DuplicateResourceException(inner)
}
crate::operation::update_view_metadata::UpdateViewMetadataError::InternalServiceException(inner) => {
Error::InternalServiceException(inner)
}
crate::operation::update_view_metadata::UpdateViewMetadataError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::update_view_metadata::UpdateViewMetadataError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::update_view_metadata::UpdateViewMetadataError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
crate::operation::update_view_metadata::UpdateViewMetadataError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::update_view_metadata::UpdateViewMetadataError::TooManyRequestsException(inner) => {
Error::TooManyRequestsException(inner)
}
crate::operation::update_view_metadata::UpdateViewMetadataError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl ::std::error::Error for Error {
fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
match self {
Error::AccessDeniedException(inner) => inner.source(),
Error::ConditionalOperationFailedException(inner) => inner.source(),
Error::ConflictException(inner) => inner.source(),
Error::ContactFlowNotPublishedException(inner) => inner.source(),
Error::ContactNotFoundException(inner) => inner.source(),
Error::DestinationNotAllowedException(inner) => inner.source(),
Error::DuplicateResourceException(inner) => inner.source(),
Error::IdempotencyException(inner) => inner.source(),
Error::InternalServiceException(inner) => inner.source(),
Error::InvalidContactFlowException(inner) => inner.source(),
Error::InvalidContactFlowModuleException(inner) => inner.source(),
Error::InvalidParameterException(inner) => inner.source(),
Error::InvalidRequestException(inner) => inner.source(),
Error::LimitExceededException(inner) => inner.source(),
Error::MaximumResultReturnedException(inner) => inner.source(),
Error::OutboundContactNotPermittedException(inner) => inner.source(),
Error::OutputTypeNotFoundException(inner) => inner.source(),
Error::PropertyValidationException(inner) => inner.source(),
Error::ResourceConflictException(inner) => inner.source(),
Error::ResourceInUseException(inner) => inner.source(),
Error::ResourceNotFoundException(inner) => inner.source(),
Error::ResourceNotReadyException(inner) => inner.source(),
Error::ServiceQuotaExceededException(inner) => inner.source(),
Error::ThrottlingException(inner) => inner.source(),
Error::TooManyRequestsException(inner) => inner.source(),
Error::UserNotFoundException(inner) => inner.source(),
Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
}
}
}
impl ::aws_types::request_id::RequestId for Error {
fn request_id(&self) -> Option<&str> {
match self {
Self::AccessDeniedException(e) => e.request_id(),
Self::ConditionalOperationFailedException(e) => e.request_id(),
Self::ConflictException(e) => e.request_id(),
Self::ContactFlowNotPublishedException(e) => e.request_id(),
Self::ContactNotFoundException(e) => e.request_id(),
Self::DestinationNotAllowedException(e) => e.request_id(),
Self::DuplicateResourceException(e) => e.request_id(),
Self::IdempotencyException(e) => e.request_id(),
Self::InternalServiceException(e) => e.request_id(),
Self::InvalidContactFlowException(e) => e.request_id(),
Self::InvalidContactFlowModuleException(e) => e.request_id(),
Self::InvalidParameterException(e) => e.request_id(),
Self::InvalidRequestException(e) => e.request_id(),
Self::LimitExceededException(e) => e.request_id(),
Self::MaximumResultReturnedException(e) => e.request_id(),
Self::OutboundContactNotPermittedException(e) => e.request_id(),
Self::OutputTypeNotFoundException(e) => e.request_id(),
Self::PropertyValidationException(e) => e.request_id(),
Self::ResourceConflictException(e) => e.request_id(),
Self::ResourceInUseException(e) => e.request_id(),
Self::ResourceNotFoundException(e) => e.request_id(),
Self::ResourceNotReadyException(e) => e.request_id(),
Self::ServiceQuotaExceededException(e) => e.request_id(),
Self::ThrottlingException(e) => e.request_id(),
Self::TooManyRequestsException(e) => e.request_id(),
Self::UserNotFoundException(e) => e.request_id(),
Self::Unhandled(e) => e.meta.request_id(),
}
}
}