// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// All possible error types for this service.
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum Error {
    /// The server response for authorization failure.
    AccessDeniedError(crate::error::AccessDeniedError),
    /// The server cannot process the request due to an apparent client error.
    BadRequestError(crate::error::BadRequestError),
    /// The server was acting as a gateway or proxy and did not receive a timely response from the upstream server.
    GatewayTimeoutError(crate::error::GatewayTimeoutError),
    /// The server response when an unexpected error occurred while processing request.
    InternalFailureError(crate::error::InternalFailureError),
    #[allow(missing_docs)] // documentation missing in model
    JsonTranslationError(crate::error::JsonTranslationError),
    #[allow(missing_docs)] // documentation missing in model
    OperationConflictError(crate::error::OperationConflictError),
    /// The server response for the usage plan quota exceeded error.
    QuotaExceededError(crate::error::QuotaExceededError),
    /// The server could not process the request because of conflict in the current state of the resource.
    ResourceConflictError(crate::error::ResourceConflictError),
    /// The server response when the specified resource cannot be found after an API request passes authentication and authorization.
    ResourceNotFoundError(crate::error::ResourceNotFoundError),
    /// The server cannot handle the request due to technical reasons.
    ServiceUnavailableError(crate::error::ServiceUnavailableError),
    /// The server response when usage plan or account-level throttling limits exceeded.
    ThrottlingError(crate::error::ThrottlingError),
    /// The server response when the authorizer failed to authenticate the caller.
    UnauthorizedError(crate::error::UnauthorizedError),
    ///
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
    ///
    /// When logging an error from the SDK, it is recommended that you either wrap the error in
    /// [`DisplayErrorContext`](crate::types::DisplayErrorContext), use another
    /// error reporter library that visits the error's cause/source chain, or call
    /// [`Error::source`](std::error::Error::source) for more details about the underlying cause.
    ///
    Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for Error {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        match self {
            Error::AccessDeniedError(inner) => inner.fmt(f),
            Error::BadRequestError(inner) => inner.fmt(f),
            Error::GatewayTimeoutError(inner) => inner.fmt(f),
            Error::InternalFailureError(inner) => inner.fmt(f),
            Error::JsonTranslationError(inner) => inner.fmt(f),
            Error::OperationConflictError(inner) => inner.fmt(f),
            Error::QuotaExceededError(inner) => inner.fmt(f),
            Error::ResourceConflictError(inner) => inner.fmt(f),
            Error::ResourceNotFoundError(inner) => inner.fmt(f),
            Error::ServiceUnavailableError(inner) => inner.fmt(f),
            Error::ThrottlingError(inner) => inner.fmt(f),
            Error::UnauthorizedError(inner) => inner.fmt(f),
            Error::Unhandled(inner) => inner.fmt(f),
        }
    }
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::CreateAs2ConnectionError, R>> for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<crate::error::CreateAs2ConnectionError, R>,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::CreateAs2ConnectionError> for Error {
    fn from(err: crate::error::CreateAs2ConnectionError) -> Self {
        match err.kind {
            crate::error::CreateAs2ConnectionErrorKind::OperationConflictError(inner) => {
                Error::OperationConflictError(inner)
            }
            crate::error::CreateAs2ConnectionErrorKind::ResourceConflictError(inner) => {
                Error::ResourceConflictError(inner)
            }
            crate::error::CreateAs2ConnectionErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::CreateAs2ConnectionErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::CreateAs2ConnectionErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::CreateAs2ConnectionErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::CreateAs2ConnectionErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::CreateAs2ConnectionErrorKind::ResourceNotFoundError(inner) => {
                Error::ResourceNotFoundError(inner)
            }
            crate::error::CreateAs2ConnectionErrorKind::ServiceUnavailableError(inner) => {
                Error::ServiceUnavailableError(inner)
            }
            crate::error::CreateAs2ConnectionErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::CreateAs2ConnectionErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::CreateAs2ConnectionErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::CreateBucketConnectionError, R>>
    for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<crate::error::CreateBucketConnectionError, R>,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::CreateBucketConnectionError> for Error {
    fn from(err: crate::error::CreateBucketConnectionError) -> Self {
        match err.kind {
            crate::error::CreateBucketConnectionErrorKind::OperationConflictError(inner) => {
                Error::OperationConflictError(inner)
            }
            crate::error::CreateBucketConnectionErrorKind::ResourceConflictError(inner) => {
                Error::ResourceConflictError(inner)
            }
            crate::error::CreateBucketConnectionErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::CreateBucketConnectionErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::CreateBucketConnectionErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::CreateBucketConnectionErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::CreateBucketConnectionErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::CreateBucketConnectionErrorKind::ResourceNotFoundError(inner) => {
                Error::ResourceNotFoundError(inner)
            }
            crate::error::CreateBucketConnectionErrorKind::ServiceUnavailableError(inner) => {
                Error::ServiceUnavailableError(inner)
            }
            crate::error::CreateBucketConnectionErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::CreateBucketConnectionErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::CreateBucketConnectionErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::CreateGlobalConnectionError, R>>
    for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<crate::error::CreateGlobalConnectionError, R>,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::CreateGlobalConnectionError> for Error {
    fn from(err: crate::error::CreateGlobalConnectionError) -> Self {
        match err.kind {
            crate::error::CreateGlobalConnectionErrorKind::OperationConflictError(inner) => {
                Error::OperationConflictError(inner)
            }
            crate::error::CreateGlobalConnectionErrorKind::ResourceConflictError(inner) => {
                Error::ResourceConflictError(inner)
            }
            crate::error::CreateGlobalConnectionErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::CreateGlobalConnectionErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::CreateGlobalConnectionErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::CreateGlobalConnectionErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::CreateGlobalConnectionErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::CreateGlobalConnectionErrorKind::ResourceNotFoundError(inner) => {
                Error::ResourceNotFoundError(inner)
            }
            crate::error::CreateGlobalConnectionErrorKind::ServiceUnavailableError(inner) => {
                Error::ServiceUnavailableError(inner)
            }
            crate::error::CreateGlobalConnectionErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::CreateGlobalConnectionErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::CreateGlobalConnectionErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R>
    From<
        aws_smithy_http::result::SdkError<
            crate::error::CreateInboundX12TransactionSettingsError,
            R,
        >,
    > for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<
            crate::error::CreateInboundX12TransactionSettingsError,
            R,
        >,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::CreateInboundX12TransactionSettingsError> for Error {
    fn from(err: crate::error::CreateInboundX12TransactionSettingsError) -> Self {
        match err.kind {
            crate::error::CreateInboundX12TransactionSettingsErrorKind::OperationConflictError(
                inner,
            ) => Error::OperationConflictError(inner),
            crate::error::CreateInboundX12TransactionSettingsErrorKind::ResourceConflictError(
                inner,
            ) => Error::ResourceConflictError(inner),
            crate::error::CreateInboundX12TransactionSettingsErrorKind::AccessDeniedError(
                inner,
            ) => Error::AccessDeniedError(inner),
            crate::error::CreateInboundX12TransactionSettingsErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::CreateInboundX12TransactionSettingsErrorKind::GatewayTimeoutError(
                inner,
            ) => Error::GatewayTimeoutError(inner),
            crate::error::CreateInboundX12TransactionSettingsErrorKind::InternalFailureError(
                inner,
            ) => Error::InternalFailureError(inner),
            crate::error::CreateInboundX12TransactionSettingsErrorKind::QuotaExceededError(
                inner,
            ) => Error::QuotaExceededError(inner),
            crate::error::CreateInboundX12TransactionSettingsErrorKind::ResourceNotFoundError(
                inner,
            ) => Error::ResourceNotFoundError(inner),
            crate::error::CreateInboundX12TransactionSettingsErrorKind::ServiceUnavailableError(
                inner,
            ) => Error::ServiceUnavailableError(inner),
            crate::error::CreateInboundX12TransactionSettingsErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::CreateInboundX12TransactionSettingsErrorKind::UnauthorizedError(
                inner,
            ) => Error::UnauthorizedError(inner),
            crate::error::CreateInboundX12TransactionSettingsErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R>
    From<
        aws_smithy_http::result::SdkError<
            crate::error::CreateOutboundX12TransactionSettingsError,
            R,
        >,
    > for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<
            crate::error::CreateOutboundX12TransactionSettingsError,
            R,
        >,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::CreateOutboundX12TransactionSettingsError> for Error {
    fn from(err: crate::error::CreateOutboundX12TransactionSettingsError) -> Self {
        match err.kind {
            crate::error::CreateOutboundX12TransactionSettingsErrorKind::OperationConflictError(inner) => Error::OperationConflictError(inner),
            crate::error::CreateOutboundX12TransactionSettingsErrorKind::ResourceConflictError(inner) => Error::ResourceConflictError(inner),
            crate::error::CreateOutboundX12TransactionSettingsErrorKind::AccessDeniedError(inner) => Error::AccessDeniedError(inner),
            crate::error::CreateOutboundX12TransactionSettingsErrorKind::BadRequestError(inner) => Error::BadRequestError(inner),
            crate::error::CreateOutboundX12TransactionSettingsErrorKind::GatewayTimeoutError(inner) => Error::GatewayTimeoutError(inner),
            crate::error::CreateOutboundX12TransactionSettingsErrorKind::InternalFailureError(inner) => Error::InternalFailureError(inner),
            crate::error::CreateOutboundX12TransactionSettingsErrorKind::QuotaExceededError(inner) => Error::QuotaExceededError(inner),
            crate::error::CreateOutboundX12TransactionSettingsErrorKind::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
            crate::error::CreateOutboundX12TransactionSettingsErrorKind::ServiceUnavailableError(inner) => Error::ServiceUnavailableError(inner),
            crate::error::CreateOutboundX12TransactionSettingsErrorKind::ThrottlingError(inner) => Error::ThrottlingError(inner),
            crate::error::CreateOutboundX12TransactionSettingsErrorKind::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
            crate::error::CreateOutboundX12TransactionSettingsErrorKind::Unhandled(inner) => Error::Unhandled(crate::error::Unhandled::new(inner.into())),
        }
    }
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::CreateRemoteFtpConnectionError, R>>
    for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<crate::error::CreateRemoteFtpConnectionError, R>,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::CreateRemoteFtpConnectionError> for Error {
    fn from(err: crate::error::CreateRemoteFtpConnectionError) -> Self {
        match err.kind {
            crate::error::CreateRemoteFtpConnectionErrorKind::OperationConflictError(inner) => {
                Error::OperationConflictError(inner)
            }
            crate::error::CreateRemoteFtpConnectionErrorKind::ResourceConflictError(inner) => {
                Error::ResourceConflictError(inner)
            }
            crate::error::CreateRemoteFtpConnectionErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::CreateRemoteFtpConnectionErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::CreateRemoteFtpConnectionErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::CreateRemoteFtpConnectionErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::CreateRemoteFtpConnectionErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::CreateRemoteFtpConnectionErrorKind::ResourceNotFoundError(inner) => {
                Error::ResourceNotFoundError(inner)
            }
            crate::error::CreateRemoteFtpConnectionErrorKind::ServiceUnavailableError(inner) => {
                Error::ServiceUnavailableError(inner)
            }
            crate::error::CreateRemoteFtpConnectionErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::CreateRemoteFtpConnectionErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::CreateRemoteFtpConnectionErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::CreateStediFtpConnectionError, R>>
    for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<crate::error::CreateStediFtpConnectionError, R>,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::CreateStediFtpConnectionError> for Error {
    fn from(err: crate::error::CreateStediFtpConnectionError) -> Self {
        match err.kind {
            crate::error::CreateStediFtpConnectionErrorKind::OperationConflictError(inner) => {
                Error::OperationConflictError(inner)
            }
            crate::error::CreateStediFtpConnectionErrorKind::ResourceConflictError(inner) => {
                Error::ResourceConflictError(inner)
            }
            crate::error::CreateStediFtpConnectionErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::CreateStediFtpConnectionErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::CreateStediFtpConnectionErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::CreateStediFtpConnectionErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::CreateStediFtpConnectionErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::CreateStediFtpConnectionErrorKind::ResourceNotFoundError(inner) => {
                Error::ResourceNotFoundError(inner)
            }
            crate::error::CreateStediFtpConnectionErrorKind::ServiceUnavailableError(inner) => {
                Error::ServiceUnavailableError(inner)
            }
            crate::error::CreateStediFtpConnectionErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::CreateStediFtpConnectionErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::CreateStediFtpConnectionErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::CreateX12PartnershipError, R>>
    for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<crate::error::CreateX12PartnershipError, R>,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::CreateX12PartnershipError> for Error {
    fn from(err: crate::error::CreateX12PartnershipError) -> Self {
        match err.kind {
            crate::error::CreateX12PartnershipErrorKind::OperationConflictError(inner) => {
                Error::OperationConflictError(inner)
            }
            crate::error::CreateX12PartnershipErrorKind::ResourceConflictError(inner) => {
                Error::ResourceConflictError(inner)
            }
            crate::error::CreateX12PartnershipErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::CreateX12PartnershipErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::CreateX12PartnershipErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::CreateX12PartnershipErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::CreateX12PartnershipErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::CreateX12PartnershipErrorKind::ResourceNotFoundError(inner) => {
                Error::ResourceNotFoundError(inner)
            }
            crate::error::CreateX12PartnershipErrorKind::ServiceUnavailableError(inner) => {
                Error::ServiceUnavailableError(inner)
            }
            crate::error::CreateX12PartnershipErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::CreateX12PartnershipErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::CreateX12PartnershipErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::CreateX12ProfileError, R>> for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<crate::error::CreateX12ProfileError, R>,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::CreateX12ProfileError> for Error {
    fn from(err: crate::error::CreateX12ProfileError) -> Self {
        match err.kind {
            crate::error::CreateX12ProfileErrorKind::OperationConflictError(inner) => {
                Error::OperationConflictError(inner)
            }
            crate::error::CreateX12ProfileErrorKind::ResourceConflictError(inner) => {
                Error::ResourceConflictError(inner)
            }
            crate::error::CreateX12ProfileErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::CreateX12ProfileErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::CreateX12ProfileErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::CreateX12ProfileErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::CreateX12ProfileErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::CreateX12ProfileErrorKind::ResourceNotFoundError(inner) => {
                Error::ResourceNotFoundError(inner)
            }
            crate::error::CreateX12ProfileErrorKind::ServiceUnavailableError(inner) => {
                Error::ServiceUnavailableError(inner)
            }
            crate::error::CreateX12ProfileErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::CreateX12ProfileErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::CreateX12ProfileErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::DeleteAs2BasicAuthError, R>> for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<crate::error::DeleteAs2BasicAuthError, R>,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::DeleteAs2BasicAuthError> for Error {
    fn from(err: crate::error::DeleteAs2BasicAuthError) -> Self {
        match err.kind {
            crate::error::DeleteAs2BasicAuthErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::DeleteAs2BasicAuthErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::DeleteAs2BasicAuthErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::DeleteAs2BasicAuthErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::DeleteAs2BasicAuthErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::DeleteAs2BasicAuthErrorKind::ResourceNotFoundError(inner) => {
                Error::ResourceNotFoundError(inner)
            }
            crate::error::DeleteAs2BasicAuthErrorKind::ServiceUnavailableError(inner) => {
                Error::ServiceUnavailableError(inner)
            }
            crate::error::DeleteAs2BasicAuthErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::DeleteAs2BasicAuthErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::DeleteAs2BasicAuthErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::DeleteAs2ConnectionError, R>> for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<crate::error::DeleteAs2ConnectionError, R>,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::DeleteAs2ConnectionError> for Error {
    fn from(err: crate::error::DeleteAs2ConnectionError) -> Self {
        match err.kind {
            crate::error::DeleteAs2ConnectionErrorKind::OperationConflictError(inner) => {
                Error::OperationConflictError(inner)
            }
            crate::error::DeleteAs2ConnectionErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::DeleteAs2ConnectionErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::DeleteAs2ConnectionErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::DeleteAs2ConnectionErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::DeleteAs2ConnectionErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::DeleteAs2ConnectionErrorKind::ResourceNotFoundError(inner) => {
                Error::ResourceNotFoundError(inner)
            }
            crate::error::DeleteAs2ConnectionErrorKind::ServiceUnavailableError(inner) => {
                Error::ServiceUnavailableError(inner)
            }
            crate::error::DeleteAs2ConnectionErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::DeleteAs2ConnectionErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::DeleteAs2ConnectionErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::DeleteBucketConnectionError, R>>
    for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<crate::error::DeleteBucketConnectionError, R>,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::DeleteBucketConnectionError> for Error {
    fn from(err: crate::error::DeleteBucketConnectionError) -> Self {
        match err.kind {
            crate::error::DeleteBucketConnectionErrorKind::OperationConflictError(inner) => {
                Error::OperationConflictError(inner)
            }
            crate::error::DeleteBucketConnectionErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::DeleteBucketConnectionErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::DeleteBucketConnectionErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::DeleteBucketConnectionErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::DeleteBucketConnectionErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::DeleteBucketConnectionErrorKind::ResourceNotFoundError(inner) => {
                Error::ResourceNotFoundError(inner)
            }
            crate::error::DeleteBucketConnectionErrorKind::ServiceUnavailableError(inner) => {
                Error::ServiceUnavailableError(inner)
            }
            crate::error::DeleteBucketConnectionErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::DeleteBucketConnectionErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::DeleteBucketConnectionErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::DeleteGlobalConnectionError, R>>
    for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<crate::error::DeleteGlobalConnectionError, R>,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::DeleteGlobalConnectionError> for Error {
    fn from(err: crate::error::DeleteGlobalConnectionError) -> Self {
        match err.kind {
            crate::error::DeleteGlobalConnectionErrorKind::OperationConflictError(inner) => {
                Error::OperationConflictError(inner)
            }
            crate::error::DeleteGlobalConnectionErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::DeleteGlobalConnectionErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::DeleteGlobalConnectionErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::DeleteGlobalConnectionErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::DeleteGlobalConnectionErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::DeleteGlobalConnectionErrorKind::ResourceNotFoundError(inner) => {
                Error::ResourceNotFoundError(inner)
            }
            crate::error::DeleteGlobalConnectionErrorKind::ServiceUnavailableError(inner) => {
                Error::ServiceUnavailableError(inner)
            }
            crate::error::DeleteGlobalConnectionErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::DeleteGlobalConnectionErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::DeleteGlobalConnectionErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R>
    From<
        aws_smithy_http::result::SdkError<
            crate::error::DeleteInboundX12TransactionSettingsError,
            R,
        >,
    > for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<
            crate::error::DeleteInboundX12TransactionSettingsError,
            R,
        >,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::DeleteInboundX12TransactionSettingsError> for Error {
    fn from(err: crate::error::DeleteInboundX12TransactionSettingsError) -> Self {
        match err.kind {
            crate::error::DeleteInboundX12TransactionSettingsErrorKind::OperationConflictError(
                inner,
            ) => Error::OperationConflictError(inner),
            crate::error::DeleteInboundX12TransactionSettingsErrorKind::AccessDeniedError(
                inner,
            ) => Error::AccessDeniedError(inner),
            crate::error::DeleteInboundX12TransactionSettingsErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::DeleteInboundX12TransactionSettingsErrorKind::GatewayTimeoutError(
                inner,
            ) => Error::GatewayTimeoutError(inner),
            crate::error::DeleteInboundX12TransactionSettingsErrorKind::InternalFailureError(
                inner,
            ) => Error::InternalFailureError(inner),
            crate::error::DeleteInboundX12TransactionSettingsErrorKind::QuotaExceededError(
                inner,
            ) => Error::QuotaExceededError(inner),
            crate::error::DeleteInboundX12TransactionSettingsErrorKind::ResourceNotFoundError(
                inner,
            ) => Error::ResourceNotFoundError(inner),
            crate::error::DeleteInboundX12TransactionSettingsErrorKind::ServiceUnavailableError(
                inner,
            ) => Error::ServiceUnavailableError(inner),
            crate::error::DeleteInboundX12TransactionSettingsErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::DeleteInboundX12TransactionSettingsErrorKind::UnauthorizedError(
                inner,
            ) => Error::UnauthorizedError(inner),
            crate::error::DeleteInboundX12TransactionSettingsErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R>
    From<
        aws_smithy_http::result::SdkError<
            crate::error::DeleteOutboundX12TransactionSettingsError,
            R,
        >,
    > for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<
            crate::error::DeleteOutboundX12TransactionSettingsError,
            R,
        >,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::DeleteOutboundX12TransactionSettingsError> for Error {
    fn from(err: crate::error::DeleteOutboundX12TransactionSettingsError) -> Self {
        match err.kind {
            crate::error::DeleteOutboundX12TransactionSettingsErrorKind::OperationConflictError(inner) => Error::OperationConflictError(inner),
            crate::error::DeleteOutboundX12TransactionSettingsErrorKind::AccessDeniedError(inner) => Error::AccessDeniedError(inner),
            crate::error::DeleteOutboundX12TransactionSettingsErrorKind::BadRequestError(inner) => Error::BadRequestError(inner),
            crate::error::DeleteOutboundX12TransactionSettingsErrorKind::GatewayTimeoutError(inner) => Error::GatewayTimeoutError(inner),
            crate::error::DeleteOutboundX12TransactionSettingsErrorKind::InternalFailureError(inner) => Error::InternalFailureError(inner),
            crate::error::DeleteOutboundX12TransactionSettingsErrorKind::QuotaExceededError(inner) => Error::QuotaExceededError(inner),
            crate::error::DeleteOutboundX12TransactionSettingsErrorKind::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
            crate::error::DeleteOutboundX12TransactionSettingsErrorKind::ServiceUnavailableError(inner) => Error::ServiceUnavailableError(inner),
            crate::error::DeleteOutboundX12TransactionSettingsErrorKind::ThrottlingError(inner) => Error::ThrottlingError(inner),
            crate::error::DeleteOutboundX12TransactionSettingsErrorKind::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
            crate::error::DeleteOutboundX12TransactionSettingsErrorKind::Unhandled(inner) => Error::Unhandled(crate::error::Unhandled::new(inner.into())),
        }
    }
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::DeleteRemoteFtpConnectionError, R>>
    for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<crate::error::DeleteRemoteFtpConnectionError, R>,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::DeleteRemoteFtpConnectionError> for Error {
    fn from(err: crate::error::DeleteRemoteFtpConnectionError) -> Self {
        match err.kind {
            crate::error::DeleteRemoteFtpConnectionErrorKind::OperationConflictError(inner) => {
                Error::OperationConflictError(inner)
            }
            crate::error::DeleteRemoteFtpConnectionErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::DeleteRemoteFtpConnectionErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::DeleteRemoteFtpConnectionErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::DeleteRemoteFtpConnectionErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::DeleteRemoteFtpConnectionErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::DeleteRemoteFtpConnectionErrorKind::ResourceNotFoundError(inner) => {
                Error::ResourceNotFoundError(inner)
            }
            crate::error::DeleteRemoteFtpConnectionErrorKind::ServiceUnavailableError(inner) => {
                Error::ServiceUnavailableError(inner)
            }
            crate::error::DeleteRemoteFtpConnectionErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::DeleteRemoteFtpConnectionErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::DeleteRemoteFtpConnectionErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::DeleteStediFtpConnectionError, R>>
    for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<crate::error::DeleteStediFtpConnectionError, R>,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::DeleteStediFtpConnectionError> for Error {
    fn from(err: crate::error::DeleteStediFtpConnectionError) -> Self {
        match err.kind {
            crate::error::DeleteStediFtpConnectionErrorKind::OperationConflictError(inner) => {
                Error::OperationConflictError(inner)
            }
            crate::error::DeleteStediFtpConnectionErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::DeleteStediFtpConnectionErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::DeleteStediFtpConnectionErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::DeleteStediFtpConnectionErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::DeleteStediFtpConnectionErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::DeleteStediFtpConnectionErrorKind::ResourceNotFoundError(inner) => {
                Error::ResourceNotFoundError(inner)
            }
            crate::error::DeleteStediFtpConnectionErrorKind::ServiceUnavailableError(inner) => {
                Error::ServiceUnavailableError(inner)
            }
            crate::error::DeleteStediFtpConnectionErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::DeleteStediFtpConnectionErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::DeleteStediFtpConnectionErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::DeleteX12PartnershipError, R>>
    for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<crate::error::DeleteX12PartnershipError, R>,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::DeleteX12PartnershipError> for Error {
    fn from(err: crate::error::DeleteX12PartnershipError) -> Self {
        match err.kind {
            crate::error::DeleteX12PartnershipErrorKind::OperationConflictError(inner) => {
                Error::OperationConflictError(inner)
            }
            crate::error::DeleteX12PartnershipErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::DeleteX12PartnershipErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::DeleteX12PartnershipErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::DeleteX12PartnershipErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::DeleteX12PartnershipErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::DeleteX12PartnershipErrorKind::ResourceNotFoundError(inner) => {
                Error::ResourceNotFoundError(inner)
            }
            crate::error::DeleteX12PartnershipErrorKind::ServiceUnavailableError(inner) => {
                Error::ServiceUnavailableError(inner)
            }
            crate::error::DeleteX12PartnershipErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::DeleteX12PartnershipErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::DeleteX12PartnershipErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::DeleteX12ProfileError, R>> for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<crate::error::DeleteX12ProfileError, R>,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::DeleteX12ProfileError> for Error {
    fn from(err: crate::error::DeleteX12ProfileError) -> Self {
        match err.kind {
            crate::error::DeleteX12ProfileErrorKind::OperationConflictError(inner) => {
                Error::OperationConflictError(inner)
            }
            crate::error::DeleteX12ProfileErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::DeleteX12ProfileErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::DeleteX12ProfileErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::DeleteX12ProfileErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::DeleteX12ProfileErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::DeleteX12ProfileErrorKind::ResourceNotFoundError(inner) => {
                Error::ResourceNotFoundError(inner)
            }
            crate::error::DeleteX12ProfileErrorKind::ServiceUnavailableError(inner) => {
                Error::ServiceUnavailableError(inner)
            }
            crate::error::DeleteX12ProfileErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::DeleteX12ProfileErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::DeleteX12ProfileErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::GenerateEdiError, R>> for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(err: aws_smithy_http::result::SdkError<crate::error::GenerateEdiError, R>) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::GenerateEdiError> for Error {
    fn from(err: crate::error::GenerateEdiError) -> Self {
        match err.kind {
            crate::error::GenerateEdiErrorKind::JsonTranslationError(inner) => {
                Error::JsonTranslationError(inner)
            }
            crate::error::GenerateEdiErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::GenerateEdiErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::GenerateEdiErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::GenerateEdiErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::GenerateEdiErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::GenerateEdiErrorKind::ResourceNotFoundError(inner) => {
                Error::ResourceNotFoundError(inner)
            }
            crate::error::GenerateEdiErrorKind::ServiceUnavailableError(inner) => {
                Error::ServiceUnavailableError(inner)
            }
            crate::error::GenerateEdiErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::GenerateEdiErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::GenerateEdiErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::GetAs2ConnectionError, R>> for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<crate::error::GetAs2ConnectionError, R>,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::GetAs2ConnectionError> for Error {
    fn from(err: crate::error::GetAs2ConnectionError) -> Self {
        match err.kind {
            crate::error::GetAs2ConnectionErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::GetAs2ConnectionErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::GetAs2ConnectionErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::GetAs2ConnectionErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::GetAs2ConnectionErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::GetAs2ConnectionErrorKind::ResourceNotFoundError(inner) => {
                Error::ResourceNotFoundError(inner)
            }
            crate::error::GetAs2ConnectionErrorKind::ServiceUnavailableError(inner) => {
                Error::ServiceUnavailableError(inner)
            }
            crate::error::GetAs2ConnectionErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::GetAs2ConnectionErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::GetAs2ConnectionErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::GetBucketConnectionError, R>> for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<crate::error::GetBucketConnectionError, R>,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::GetBucketConnectionError> for Error {
    fn from(err: crate::error::GetBucketConnectionError) -> Self {
        match err.kind {
            crate::error::GetBucketConnectionErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::GetBucketConnectionErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::GetBucketConnectionErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::GetBucketConnectionErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::GetBucketConnectionErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::GetBucketConnectionErrorKind::ResourceNotFoundError(inner) => {
                Error::ResourceNotFoundError(inner)
            }
            crate::error::GetBucketConnectionErrorKind::ServiceUnavailableError(inner) => {
                Error::ServiceUnavailableError(inner)
            }
            crate::error::GetBucketConnectionErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::GetBucketConnectionErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::GetBucketConnectionErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::GetConnectionsError, R>> for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(err: aws_smithy_http::result::SdkError<crate::error::GetConnectionsError, R>) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::GetConnectionsError> for Error {
    fn from(err: crate::error::GetConnectionsError) -> Self {
        match err.kind {
            crate::error::GetConnectionsErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::GetConnectionsErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::GetConnectionsErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::GetConnectionsErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::GetConnectionsErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::GetConnectionsErrorKind::ResourceNotFoundError(inner) => {
                Error::ResourceNotFoundError(inner)
            }
            crate::error::GetConnectionsErrorKind::ServiceUnavailableError(inner) => {
                Error::ServiceUnavailableError(inner)
            }
            crate::error::GetConnectionsErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::GetConnectionsErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::GetConnectionsErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::GetGlobalConnectionError, R>> for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<crate::error::GetGlobalConnectionError, R>,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::GetGlobalConnectionError> for Error {
    fn from(err: crate::error::GetGlobalConnectionError) -> Self {
        match err.kind {
            crate::error::GetGlobalConnectionErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::GetGlobalConnectionErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::GetGlobalConnectionErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::GetGlobalConnectionErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::GetGlobalConnectionErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::GetGlobalConnectionErrorKind::ResourceNotFoundError(inner) => {
                Error::ResourceNotFoundError(inner)
            }
            crate::error::GetGlobalConnectionErrorKind::ServiceUnavailableError(inner) => {
                Error::ServiceUnavailableError(inner)
            }
            crate::error::GetGlobalConnectionErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::GetGlobalConnectionErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::GetGlobalConnectionErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R>
    From<aws_smithy_http::result::SdkError<crate::error::GetInboundX12TransactionSettingsError, R>>
    for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<
            crate::error::GetInboundX12TransactionSettingsError,
            R,
        >,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::GetInboundX12TransactionSettingsError> for Error {
    fn from(err: crate::error::GetInboundX12TransactionSettingsError) -> Self {
        match err.kind {
            crate::error::GetInboundX12TransactionSettingsErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::GetInboundX12TransactionSettingsErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::GetInboundX12TransactionSettingsErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::GetInboundX12TransactionSettingsErrorKind::InternalFailureError(
                inner,
            ) => Error::InternalFailureError(inner),
            crate::error::GetInboundX12TransactionSettingsErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::GetInboundX12TransactionSettingsErrorKind::ResourceNotFoundError(
                inner,
            ) => Error::ResourceNotFoundError(inner),
            crate::error::GetInboundX12TransactionSettingsErrorKind::ServiceUnavailableError(
                inner,
            ) => Error::ServiceUnavailableError(inner),
            crate::error::GetInboundX12TransactionSettingsErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::GetInboundX12TransactionSettingsErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::GetInboundX12TransactionSettingsErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::GetOutboundX12ControlNumbersError, R>>
    for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<crate::error::GetOutboundX12ControlNumbersError, R>,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::GetOutboundX12ControlNumbersError> for Error {
    fn from(err: crate::error::GetOutboundX12ControlNumbersError) -> Self {
        match err.kind {
            crate::error::GetOutboundX12ControlNumbersErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::GetOutboundX12ControlNumbersErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::GetOutboundX12ControlNumbersErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::GetOutboundX12ControlNumbersErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::GetOutboundX12ControlNumbersErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::GetOutboundX12ControlNumbersErrorKind::ResourceNotFoundError(inner) => {
                Error::ResourceNotFoundError(inner)
            }
            crate::error::GetOutboundX12ControlNumbersErrorKind::ServiceUnavailableError(inner) => {
                Error::ServiceUnavailableError(inner)
            }
            crate::error::GetOutboundX12ControlNumbersErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::GetOutboundX12ControlNumbersErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::GetOutboundX12ControlNumbersErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R>
    From<aws_smithy_http::result::SdkError<crate::error::GetOutboundX12TransactionSettingsError, R>>
    for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<
            crate::error::GetOutboundX12TransactionSettingsError,
            R,
        >,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::GetOutboundX12TransactionSettingsError> for Error {
    fn from(err: crate::error::GetOutboundX12TransactionSettingsError) -> Self {
        match err.kind {
            crate::error::GetOutboundX12TransactionSettingsErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::GetOutboundX12TransactionSettingsErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::GetOutboundX12TransactionSettingsErrorKind::GatewayTimeoutError(
                inner,
            ) => Error::GatewayTimeoutError(inner),
            crate::error::GetOutboundX12TransactionSettingsErrorKind::InternalFailureError(
                inner,
            ) => Error::InternalFailureError(inner),
            crate::error::GetOutboundX12TransactionSettingsErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::GetOutboundX12TransactionSettingsErrorKind::ResourceNotFoundError(
                inner,
            ) => Error::ResourceNotFoundError(inner),
            crate::error::GetOutboundX12TransactionSettingsErrorKind::ServiceUnavailableError(
                inner,
            ) => Error::ServiceUnavailableError(inner),
            crate::error::GetOutboundX12TransactionSettingsErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::GetOutboundX12TransactionSettingsErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::GetOutboundX12TransactionSettingsErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::GetRemoteFtpConnectionError, R>>
    for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<crate::error::GetRemoteFtpConnectionError, R>,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::GetRemoteFtpConnectionError> for Error {
    fn from(err: crate::error::GetRemoteFtpConnectionError) -> Self {
        match err.kind {
            crate::error::GetRemoteFtpConnectionErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::GetRemoteFtpConnectionErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::GetRemoteFtpConnectionErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::GetRemoteFtpConnectionErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::GetRemoteFtpConnectionErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::GetRemoteFtpConnectionErrorKind::ResourceNotFoundError(inner) => {
                Error::ResourceNotFoundError(inner)
            }
            crate::error::GetRemoteFtpConnectionErrorKind::ServiceUnavailableError(inner) => {
                Error::ServiceUnavailableError(inner)
            }
            crate::error::GetRemoteFtpConnectionErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::GetRemoteFtpConnectionErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::GetRemoteFtpConnectionErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::GetStediFtpConnectionError, R>>
    for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<crate::error::GetStediFtpConnectionError, R>,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::GetStediFtpConnectionError> for Error {
    fn from(err: crate::error::GetStediFtpConnectionError) -> Self {
        match err.kind {
            crate::error::GetStediFtpConnectionErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::GetStediFtpConnectionErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::GetStediFtpConnectionErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::GetStediFtpConnectionErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::GetStediFtpConnectionErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::GetStediFtpConnectionErrorKind::ResourceNotFoundError(inner) => {
                Error::ResourceNotFoundError(inner)
            }
            crate::error::GetStediFtpConnectionErrorKind::ServiceUnavailableError(inner) => {
                Error::ServiceUnavailableError(inner)
            }
            crate::error::GetStediFtpConnectionErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::GetStediFtpConnectionErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::GetStediFtpConnectionErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::GetX12PartnershipError, R>> for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<crate::error::GetX12PartnershipError, R>,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::GetX12PartnershipError> for Error {
    fn from(err: crate::error::GetX12PartnershipError) -> Self {
        match err.kind {
            crate::error::GetX12PartnershipErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::GetX12PartnershipErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::GetX12PartnershipErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::GetX12PartnershipErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::GetX12PartnershipErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::GetX12PartnershipErrorKind::ResourceNotFoundError(inner) => {
                Error::ResourceNotFoundError(inner)
            }
            crate::error::GetX12PartnershipErrorKind::ServiceUnavailableError(inner) => {
                Error::ServiceUnavailableError(inner)
            }
            crate::error::GetX12PartnershipErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::GetX12PartnershipErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::GetX12PartnershipErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R>
    From<aws_smithy_http::result::SdkError<crate::error::GetX12PartnershipByInterchangesError, R>>
    for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<
            crate::error::GetX12PartnershipByInterchangesError,
            R,
        >,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::GetX12PartnershipByInterchangesError> for Error {
    fn from(err: crate::error::GetX12PartnershipByInterchangesError) -> Self {
        match err.kind {
            crate::error::GetX12PartnershipByInterchangesErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::GetX12PartnershipByInterchangesErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::GetX12PartnershipByInterchangesErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::GetX12PartnershipByInterchangesErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::GetX12PartnershipByInterchangesErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::GetX12PartnershipByInterchangesErrorKind::ResourceNotFoundError(
                inner,
            ) => Error::ResourceNotFoundError(inner),
            crate::error::GetX12PartnershipByInterchangesErrorKind::ServiceUnavailableError(
                inner,
            ) => Error::ServiceUnavailableError(inner),
            crate::error::GetX12PartnershipByInterchangesErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::GetX12PartnershipByInterchangesErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::GetX12PartnershipByInterchangesErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::GetX12ProfileError, R>> for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(err: aws_smithy_http::result::SdkError<crate::error::GetX12ProfileError, R>) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::GetX12ProfileError> for Error {
    fn from(err: crate::error::GetX12ProfileError) -> Self {
        match err.kind {
            crate::error::GetX12ProfileErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::GetX12ProfileErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::GetX12ProfileErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::GetX12ProfileErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::GetX12ProfileErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::GetX12ProfileErrorKind::ResourceNotFoundError(inner) => {
                Error::ResourceNotFoundError(inner)
            }
            crate::error::GetX12ProfileErrorKind::ServiceUnavailableError(inner) => {
                Error::ServiceUnavailableError(inner)
            }
            crate::error::GetX12ProfileErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::GetX12ProfileErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::GetX12ProfileErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::GetX12ProfileByInterchangeError, R>>
    for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<crate::error::GetX12ProfileByInterchangeError, R>,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::GetX12ProfileByInterchangeError> for Error {
    fn from(err: crate::error::GetX12ProfileByInterchangeError) -> Self {
        match err.kind {
            crate::error::GetX12ProfileByInterchangeErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::GetX12ProfileByInterchangeErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::GetX12ProfileByInterchangeErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::GetX12ProfileByInterchangeErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::GetX12ProfileByInterchangeErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::GetX12ProfileByInterchangeErrorKind::ResourceNotFoundError(inner) => {
                Error::ResourceNotFoundError(inner)
            }
            crate::error::GetX12ProfileByInterchangeErrorKind::ServiceUnavailableError(inner) => {
                Error::ServiceUnavailableError(inner)
            }
            crate::error::GetX12ProfileByInterchangeErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::GetX12ProfileByInterchangeErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::GetX12ProfileByInterchangeErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::IncrementX12ControlNumberError, R>>
    for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<crate::error::IncrementX12ControlNumberError, R>,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::IncrementX12ControlNumberError> for Error {
    fn from(err: crate::error::IncrementX12ControlNumberError) -> Self {
        match err.kind {
            crate::error::IncrementX12ControlNumberErrorKind::OperationConflictError(inner) => {
                Error::OperationConflictError(inner)
            }
            crate::error::IncrementX12ControlNumberErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::IncrementX12ControlNumberErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::IncrementX12ControlNumberErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::IncrementX12ControlNumberErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::IncrementX12ControlNumberErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::IncrementX12ControlNumberErrorKind::ResourceNotFoundError(inner) => {
                Error::ResourceNotFoundError(inner)
            }
            crate::error::IncrementX12ControlNumberErrorKind::ServiceUnavailableError(inner) => {
                Error::ServiceUnavailableError(inner)
            }
            crate::error::IncrementX12ControlNumberErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::IncrementX12ControlNumberErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::IncrementX12ControlNumberErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::ListGlobalConnectionsError, R>>
    for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<crate::error::ListGlobalConnectionsError, R>,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::ListGlobalConnectionsError> for Error {
    fn from(err: crate::error::ListGlobalConnectionsError) -> Self {
        match err.kind {
            crate::error::ListGlobalConnectionsErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::ListGlobalConnectionsErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::ListGlobalConnectionsErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::ListGlobalConnectionsErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::ListGlobalConnectionsErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::ListGlobalConnectionsErrorKind::ResourceNotFoundError(inner) => {
                Error::ResourceNotFoundError(inner)
            }
            crate::error::ListGlobalConnectionsErrorKind::ServiceUnavailableError(inner) => {
                Error::ServiceUnavailableError(inner)
            }
            crate::error::ListGlobalConnectionsErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::ListGlobalConnectionsErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::ListGlobalConnectionsErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::ListX12PartnershipsError, R>> for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<crate::error::ListX12PartnershipsError, R>,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::ListX12PartnershipsError> for Error {
    fn from(err: crate::error::ListX12PartnershipsError) -> Self {
        match err.kind {
            crate::error::ListX12PartnershipsErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::ListX12PartnershipsErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::ListX12PartnershipsErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::ListX12PartnershipsErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::ListX12PartnershipsErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::ListX12PartnershipsErrorKind::ResourceNotFoundError(inner) => {
                Error::ResourceNotFoundError(inner)
            }
            crate::error::ListX12PartnershipsErrorKind::ServiceUnavailableError(inner) => {
                Error::ServiceUnavailableError(inner)
            }
            crate::error::ListX12PartnershipsErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::ListX12PartnershipsErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::ListX12PartnershipsErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::ListX12ProfilesError, R>> for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(err: aws_smithy_http::result::SdkError<crate::error::ListX12ProfilesError, R>) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::ListX12ProfilesError> for Error {
    fn from(err: crate::error::ListX12ProfilesError) -> Self {
        match err.kind {
            crate::error::ListX12ProfilesErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::ListX12ProfilesErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::ListX12ProfilesErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::ListX12ProfilesErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::ListX12ProfilesErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::ListX12ProfilesErrorKind::ResourceNotFoundError(inner) => {
                Error::ResourceNotFoundError(inner)
            }
            crate::error::ListX12ProfilesErrorKind::ServiceUnavailableError(inner) => {
                Error::ServiceUnavailableError(inner)
            }
            crate::error::ListX12ProfilesErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::ListX12ProfilesErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::ListX12ProfilesErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::SetOutboundX12ControlNumberError, R>>
    for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<crate::error::SetOutboundX12ControlNumberError, R>,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::SetOutboundX12ControlNumberError> for Error {
    fn from(err: crate::error::SetOutboundX12ControlNumberError) -> Self {
        match err.kind {
            crate::error::SetOutboundX12ControlNumberErrorKind::OperationConflictError(inner) => {
                Error::OperationConflictError(inner)
            }
            crate::error::SetOutboundX12ControlNumberErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::SetOutboundX12ControlNumberErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::SetOutboundX12ControlNumberErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::SetOutboundX12ControlNumberErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::SetOutboundX12ControlNumberErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::SetOutboundX12ControlNumberErrorKind::ResourceNotFoundError(inner) => {
                Error::ResourceNotFoundError(inner)
            }
            crate::error::SetOutboundX12ControlNumberErrorKind::ServiceUnavailableError(inner) => {
                Error::ServiceUnavailableError(inner)
            }
            crate::error::SetOutboundX12ControlNumberErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::SetOutboundX12ControlNumberErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::SetOutboundX12ControlNumberErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::UpdateAs2BasicAuthError, R>> for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<crate::error::UpdateAs2BasicAuthError, R>,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::UpdateAs2BasicAuthError> for Error {
    fn from(err: crate::error::UpdateAs2BasicAuthError) -> Self {
        match err.kind {
            crate::error::UpdateAs2BasicAuthErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::UpdateAs2BasicAuthErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::UpdateAs2BasicAuthErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::UpdateAs2BasicAuthErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::UpdateAs2BasicAuthErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::UpdateAs2BasicAuthErrorKind::ResourceNotFoundError(inner) => {
                Error::ResourceNotFoundError(inner)
            }
            crate::error::UpdateAs2BasicAuthErrorKind::ServiceUnavailableError(inner) => {
                Error::ServiceUnavailableError(inner)
            }
            crate::error::UpdateAs2BasicAuthErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::UpdateAs2BasicAuthErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::UpdateAs2BasicAuthErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::UpdateAs2ConnectionError, R>> for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<crate::error::UpdateAs2ConnectionError, R>,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::UpdateAs2ConnectionError> for Error {
    fn from(err: crate::error::UpdateAs2ConnectionError) -> Self {
        match err.kind {
            crate::error::UpdateAs2ConnectionErrorKind::OperationConflictError(inner) => {
                Error::OperationConflictError(inner)
            }
            crate::error::UpdateAs2ConnectionErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::UpdateAs2ConnectionErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::UpdateAs2ConnectionErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::UpdateAs2ConnectionErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::UpdateAs2ConnectionErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::UpdateAs2ConnectionErrorKind::ResourceNotFoundError(inner) => {
                Error::ResourceNotFoundError(inner)
            }
            crate::error::UpdateAs2ConnectionErrorKind::ServiceUnavailableError(inner) => {
                Error::ServiceUnavailableError(inner)
            }
            crate::error::UpdateAs2ConnectionErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::UpdateAs2ConnectionErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::UpdateAs2ConnectionErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::UpdateAs2CredentialsError, R>>
    for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<crate::error::UpdateAs2CredentialsError, R>,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::UpdateAs2CredentialsError> for Error {
    fn from(err: crate::error::UpdateAs2CredentialsError) -> Self {
        match err.kind {
            crate::error::UpdateAs2CredentialsErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::UpdateAs2CredentialsErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::UpdateAs2CredentialsErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::UpdateAs2CredentialsErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::UpdateAs2CredentialsErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::UpdateAs2CredentialsErrorKind::ResourceNotFoundError(inner) => {
                Error::ResourceNotFoundError(inner)
            }
            crate::error::UpdateAs2CredentialsErrorKind::ServiceUnavailableError(inner) => {
                Error::ServiceUnavailableError(inner)
            }
            crate::error::UpdateAs2CredentialsErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::UpdateAs2CredentialsErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::UpdateAs2CredentialsErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::UpdateBucketConnectionError, R>>
    for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<crate::error::UpdateBucketConnectionError, R>,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::UpdateBucketConnectionError> for Error {
    fn from(err: crate::error::UpdateBucketConnectionError) -> Self {
        match err.kind {
            crate::error::UpdateBucketConnectionErrorKind::OperationConflictError(inner) => {
                Error::OperationConflictError(inner)
            }
            crate::error::UpdateBucketConnectionErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::UpdateBucketConnectionErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::UpdateBucketConnectionErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::UpdateBucketConnectionErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::UpdateBucketConnectionErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::UpdateBucketConnectionErrorKind::ResourceNotFoundError(inner) => {
                Error::ResourceNotFoundError(inner)
            }
            crate::error::UpdateBucketConnectionErrorKind::ServiceUnavailableError(inner) => {
                Error::ServiceUnavailableError(inner)
            }
            crate::error::UpdateBucketConnectionErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::UpdateBucketConnectionErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::UpdateBucketConnectionErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::UpdateGlobalConnectionError, R>>
    for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<crate::error::UpdateGlobalConnectionError, R>,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::UpdateGlobalConnectionError> for Error {
    fn from(err: crate::error::UpdateGlobalConnectionError) -> Self {
        match err.kind {
            crate::error::UpdateGlobalConnectionErrorKind::OperationConflictError(inner) => {
                Error::OperationConflictError(inner)
            }
            crate::error::UpdateGlobalConnectionErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::UpdateGlobalConnectionErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::UpdateGlobalConnectionErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::UpdateGlobalConnectionErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::UpdateGlobalConnectionErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::UpdateGlobalConnectionErrorKind::ResourceNotFoundError(inner) => {
                Error::ResourceNotFoundError(inner)
            }
            crate::error::UpdateGlobalConnectionErrorKind::ServiceUnavailableError(inner) => {
                Error::ServiceUnavailableError(inner)
            }
            crate::error::UpdateGlobalConnectionErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::UpdateGlobalConnectionErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::UpdateGlobalConnectionErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R>
    From<
        aws_smithy_http::result::SdkError<
            crate::error::UpdateInboundX12TransactionSettingsError,
            R,
        >,
    > for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<
            crate::error::UpdateInboundX12TransactionSettingsError,
            R,
        >,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::UpdateInboundX12TransactionSettingsError> for Error {
    fn from(err: crate::error::UpdateInboundX12TransactionSettingsError) -> Self {
        match err.kind {
            crate::error::UpdateInboundX12TransactionSettingsErrorKind::OperationConflictError(
                inner,
            ) => Error::OperationConflictError(inner),
            crate::error::UpdateInboundX12TransactionSettingsErrorKind::AccessDeniedError(
                inner,
            ) => Error::AccessDeniedError(inner),
            crate::error::UpdateInboundX12TransactionSettingsErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::UpdateInboundX12TransactionSettingsErrorKind::GatewayTimeoutError(
                inner,
            ) => Error::GatewayTimeoutError(inner),
            crate::error::UpdateInboundX12TransactionSettingsErrorKind::InternalFailureError(
                inner,
            ) => Error::InternalFailureError(inner),
            crate::error::UpdateInboundX12TransactionSettingsErrorKind::QuotaExceededError(
                inner,
            ) => Error::QuotaExceededError(inner),
            crate::error::UpdateInboundX12TransactionSettingsErrorKind::ResourceNotFoundError(
                inner,
            ) => Error::ResourceNotFoundError(inner),
            crate::error::UpdateInboundX12TransactionSettingsErrorKind::ServiceUnavailableError(
                inner,
            ) => Error::ServiceUnavailableError(inner),
            crate::error::UpdateInboundX12TransactionSettingsErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::UpdateInboundX12TransactionSettingsErrorKind::UnauthorizedError(
                inner,
            ) => Error::UnauthorizedError(inner),
            crate::error::UpdateInboundX12TransactionSettingsErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R>
    From<
        aws_smithy_http::result::SdkError<
            crate::error::UpdateOutboundX12TransactionSettingsError,
            R,
        >,
    > for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<
            crate::error::UpdateOutboundX12TransactionSettingsError,
            R,
        >,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::UpdateOutboundX12TransactionSettingsError> for Error {
    fn from(err: crate::error::UpdateOutboundX12TransactionSettingsError) -> Self {
        match err.kind {
            crate::error::UpdateOutboundX12TransactionSettingsErrorKind::OperationConflictError(inner) => Error::OperationConflictError(inner),
            crate::error::UpdateOutboundX12TransactionSettingsErrorKind::AccessDeniedError(inner) => Error::AccessDeniedError(inner),
            crate::error::UpdateOutboundX12TransactionSettingsErrorKind::BadRequestError(inner) => Error::BadRequestError(inner),
            crate::error::UpdateOutboundX12TransactionSettingsErrorKind::GatewayTimeoutError(inner) => Error::GatewayTimeoutError(inner),
            crate::error::UpdateOutboundX12TransactionSettingsErrorKind::InternalFailureError(inner) => Error::InternalFailureError(inner),
            crate::error::UpdateOutboundX12TransactionSettingsErrorKind::QuotaExceededError(inner) => Error::QuotaExceededError(inner),
            crate::error::UpdateOutboundX12TransactionSettingsErrorKind::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
            crate::error::UpdateOutboundX12TransactionSettingsErrorKind::ServiceUnavailableError(inner) => Error::ServiceUnavailableError(inner),
            crate::error::UpdateOutboundX12TransactionSettingsErrorKind::ThrottlingError(inner) => Error::ThrottlingError(inner),
            crate::error::UpdateOutboundX12TransactionSettingsErrorKind::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
            crate::error::UpdateOutboundX12TransactionSettingsErrorKind::Unhandled(inner) => Error::Unhandled(crate::error::Unhandled::new(inner.into())),
        }
    }
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::UpdateRemoteFtpConnectionError, R>>
    for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<crate::error::UpdateRemoteFtpConnectionError, R>,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::UpdateRemoteFtpConnectionError> for Error {
    fn from(err: crate::error::UpdateRemoteFtpConnectionError) -> Self {
        match err.kind {
            crate::error::UpdateRemoteFtpConnectionErrorKind::OperationConflictError(inner) => {
                Error::OperationConflictError(inner)
            }
            crate::error::UpdateRemoteFtpConnectionErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::UpdateRemoteFtpConnectionErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::UpdateRemoteFtpConnectionErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::UpdateRemoteFtpConnectionErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::UpdateRemoteFtpConnectionErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::UpdateRemoteFtpConnectionErrorKind::ResourceNotFoundError(inner) => {
                Error::ResourceNotFoundError(inner)
            }
            crate::error::UpdateRemoteFtpConnectionErrorKind::ServiceUnavailableError(inner) => {
                Error::ServiceUnavailableError(inner)
            }
            crate::error::UpdateRemoteFtpConnectionErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::UpdateRemoteFtpConnectionErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::UpdateRemoteFtpConnectionErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::UpdateRemoteFtpCredentialsError, R>>
    for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<crate::error::UpdateRemoteFtpCredentialsError, R>,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::UpdateRemoteFtpCredentialsError> for Error {
    fn from(err: crate::error::UpdateRemoteFtpCredentialsError) -> Self {
        match err.kind {
            crate::error::UpdateRemoteFtpCredentialsErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::UpdateRemoteFtpCredentialsErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::UpdateRemoteFtpCredentialsErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::UpdateRemoteFtpCredentialsErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::UpdateRemoteFtpCredentialsErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::UpdateRemoteFtpCredentialsErrorKind::ResourceNotFoundError(inner) => {
                Error::ResourceNotFoundError(inner)
            }
            crate::error::UpdateRemoteFtpCredentialsErrorKind::ServiceUnavailableError(inner) => {
                Error::ServiceUnavailableError(inner)
            }
            crate::error::UpdateRemoteFtpCredentialsErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::UpdateRemoteFtpCredentialsErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::UpdateRemoteFtpCredentialsErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::UpdateStediFtpConnectionError, R>>
    for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<crate::error::UpdateStediFtpConnectionError, R>,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::UpdateStediFtpConnectionError> for Error {
    fn from(err: crate::error::UpdateStediFtpConnectionError) -> Self {
        match err.kind {
            crate::error::UpdateStediFtpConnectionErrorKind::OperationConflictError(inner) => {
                Error::OperationConflictError(inner)
            }
            crate::error::UpdateStediFtpConnectionErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::UpdateStediFtpConnectionErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::UpdateStediFtpConnectionErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::UpdateStediFtpConnectionErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::UpdateStediFtpConnectionErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::UpdateStediFtpConnectionErrorKind::ResourceNotFoundError(inner) => {
                Error::ResourceNotFoundError(inner)
            }
            crate::error::UpdateStediFtpConnectionErrorKind::ServiceUnavailableError(inner) => {
                Error::ServiceUnavailableError(inner)
            }
            crate::error::UpdateStediFtpConnectionErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::UpdateStediFtpConnectionErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::UpdateStediFtpConnectionErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::UpdateX12PartnershipError, R>>
    for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<crate::error::UpdateX12PartnershipError, R>,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::UpdateX12PartnershipError> for Error {
    fn from(err: crate::error::UpdateX12PartnershipError) -> Self {
        match err.kind {
            crate::error::UpdateX12PartnershipErrorKind::OperationConflictError(inner) => {
                Error::OperationConflictError(inner)
            }
            crate::error::UpdateX12PartnershipErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::UpdateX12PartnershipErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::UpdateX12PartnershipErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::UpdateX12PartnershipErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::UpdateX12PartnershipErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::UpdateX12PartnershipErrorKind::ResourceNotFoundError(inner) => {
                Error::ResourceNotFoundError(inner)
            }
            crate::error::UpdateX12PartnershipErrorKind::ServiceUnavailableError(inner) => {
                Error::ServiceUnavailableError(inner)
            }
            crate::error::UpdateX12PartnershipErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::UpdateX12PartnershipErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::UpdateX12PartnershipErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::UpdateX12ProfileError, R>> for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<crate::error::UpdateX12ProfileError, R>,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::UpdateX12ProfileError> for Error {
    fn from(err: crate::error::UpdateX12ProfileError) -> Self {
        match err.kind {
            crate::error::UpdateX12ProfileErrorKind::OperationConflictError(inner) => {
                Error::OperationConflictError(inner)
            }
            crate::error::UpdateX12ProfileErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::UpdateX12ProfileErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::UpdateX12ProfileErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::UpdateX12ProfileErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::UpdateX12ProfileErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::UpdateX12ProfileErrorKind::ResourceNotFoundError(inner) => {
                Error::ResourceNotFoundError(inner)
            }
            crate::error::UpdateX12ProfileErrorKind::ServiceUnavailableError(inner) => {
                Error::ServiceUnavailableError(inner)
            }
            crate::error::UpdateX12ProfileErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::UpdateX12ProfileErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::UpdateX12ProfileErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl std::error::Error for Error {}
