#[non_exhaustive]
#[derive(::std::fmt::Debug)]
pub enum Error {
AccessDeniedException(crate::types::error::AccessDeniedException),
ConflictException(crate::types::error::ConflictException),
InternalServerException(crate::types::error::InternalServerException),
ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
ThrottlingException(crate::types::error::ThrottlingException),
ValidationException(crate::types::error::ValidationException),
#[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
variable wildcard pattern and check `.code()`:
\
`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
\
See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
Unhandled(crate::error::sealed_unhandled::Unhandled),
}
impl ::std::fmt::Display for Error {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
Error::AccessDeniedException(inner) => inner.fmt(f),
Error::ConflictException(inner) => inner.fmt(f),
Error::InternalServerException(inner) => inner.fmt(f),
Error::ResourceNotFoundException(inner) => inner.fmt(f),
Error::ServiceQuotaExceededException(inner) => inner.fmt(f),
Error::ThrottlingException(inner) => inner.fmt(f),
Error::ValidationException(inner) => inner.fmt(f),
Error::Unhandled(_) => {
if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
write!(f, "unhandled error ({code})")
} else {
f.write_str("unhandled error")
}
}
}
}
}
impl From<::aws_smithy_types::error::operation::BuildError> for Error {
fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
source: value.into(),
meta: ::std::default::Default::default(),
})
}
}
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
match self {
Self::AccessDeniedException(inner) => inner.meta(),
Self::ConflictException(inner) => inner.meta(),
Self::InternalServerException(inner) => inner.meta(),
Self::ResourceNotFoundException(inner) => inner.meta(),
Self::ServiceQuotaExceededException(inner) => inner.meta(),
Self::ThrottlingException(inner) => inner.meta(),
Self::ValidationException(inner) => inner.meta(),
Self::Unhandled(inner) => &inner.meta,
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_access_grant::CreateAccessGrantError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_access_grant::CreateAccessGrantError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_access_grant::CreateAccessGrantError> for Error {
fn from(err: crate::operation::create_access_grant::CreateAccessGrantError) -> Self {
match err {
crate::operation::create_access_grant::CreateAccessGrantError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::create_access_grant::CreateAccessGrantError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::create_access_grant::CreateAccessGrantError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::create_access_grant::CreateAccessGrantError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::create_access_grant::CreateAccessGrantError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::create_access_grant::CreateAccessGrantError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::create_access_grant::CreateAccessGrantError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::create_access_grant::CreateAccessGrantError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_access_profile::CreateAccessProfileError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_access_profile::CreateAccessProfileError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_access_profile::CreateAccessProfileError> for Error {
fn from(err: crate::operation::create_access_profile::CreateAccessProfileError) -> Self {
match err {
crate::operation::create_access_profile::CreateAccessProfileError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::create_access_profile::CreateAccessProfileError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::create_access_profile::CreateAccessProfileError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::create_access_profile::CreateAccessProfileError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::create_access_profile::CreateAccessProfileError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::create_access_profile::CreateAccessProfileError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::create_access_profile::CreateAccessProfileError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::create_access_profile::CreateAccessProfileError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_alert::CreateAlertError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_alert::CreateAlertError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_alert::CreateAlertError> for Error {
fn from(err: crate::operation::create_alert::CreateAlertError) -> Self {
match err {
crate::operation::create_alert::CreateAlertError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::create_alert::CreateAlertError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::create_alert::CreateAlertError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::create_alert::CreateAlertError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::create_alert::CreateAlertError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::create_alert::CreateAlertError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::create_alert::CreateAlertError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::create_alert::CreateAlertError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_domain::CreateDomainError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_domain::CreateDomainError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_domain::CreateDomainError> for Error {
fn from(err: crate::operation::create_domain::CreateDomainError) -> Self {
match err {
crate::operation::create_domain::CreateDomainError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::create_domain::CreateDomainError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::create_domain::CreateDomainError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::create_domain::CreateDomainError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::create_domain::CreateDomainError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::create_domain::CreateDomainError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::create_domain::CreateDomainError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_domain_access_grant_for_organization::CreateDomainAccessGrantForOrganizationError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_domain_access_grant_for_organization::CreateDomainAccessGrantForOrganizationError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_domain_access_grant_for_organization::CreateDomainAccessGrantForOrganizationError> for Error {
fn from(err: crate::operation::create_domain_access_grant_for_organization::CreateDomainAccessGrantForOrganizationError) -> Self {
match err {
crate::operation::create_domain_access_grant_for_organization::CreateDomainAccessGrantForOrganizationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::create_domain_access_grant_for_organization::CreateDomainAccessGrantForOrganizationError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::create_domain_access_grant_for_organization::CreateDomainAccessGrantForOrganizationError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::create_domain_access_grant_for_organization::CreateDomainAccessGrantForOrganizationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::create_domain_access_grant_for_organization::CreateDomainAccessGrantForOrganizationError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::create_domain_access_grant_for_organization::CreateDomainAccessGrantForOrganizationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::create_domain_access_grant_for_organization::CreateDomainAccessGrantForOrganizationError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::create_domain_access_grant_for_organization::CreateDomainAccessGrantForOrganizationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_domain_for_organization::CreateDomainForOrganizationError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_domain_for_organization::CreateDomainForOrganizationError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_domain_for_organization::CreateDomainForOrganizationError> for Error {
fn from(err: crate::operation::create_domain_for_organization::CreateDomainForOrganizationError) -> Self {
match err {
crate::operation::create_domain_for_organization::CreateDomainForOrganizationError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::create_domain_for_organization::CreateDomainForOrganizationError::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::operation::create_domain_for_organization::CreateDomainForOrganizationError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::create_domain_for_organization::CreateDomainForOrganizationError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::create_domain_for_organization::CreateDomainForOrganizationError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::create_domain_for_organization::CreateDomainForOrganizationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_integration::CreateIntegrationError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_integration::CreateIntegrationError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_integration::CreateIntegrationError> for Error {
fn from(err: crate::operation::create_integration::CreateIntegrationError) -> Self {
match err {
crate::operation::create_integration::CreateIntegrationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::create_integration::CreateIntegrationError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::create_integration::CreateIntegrationError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::create_integration::CreateIntegrationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::create_integration::CreateIntegrationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::create_integration::CreateIntegrationError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::create_integration::CreateIntegrationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_omni_dashboard::CreateOmniDashboardError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_omni_dashboard::CreateOmniDashboardError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_omni_dashboard::CreateOmniDashboardError> for Error {
fn from(err: crate::operation::create_omni_dashboard::CreateOmniDashboardError) -> Self {
match err {
crate::operation::create_omni_dashboard::CreateOmniDashboardError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::create_omni_dashboard::CreateOmniDashboardError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::create_omni_dashboard::CreateOmniDashboardError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::create_omni_dashboard::CreateOmniDashboardError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::create_omni_dashboard::CreateOmniDashboardError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::create_omni_dashboard::CreateOmniDashboardError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::create_omni_dashboard::CreateOmniDashboardError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::create_omni_dashboard::CreateOmniDashboardError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_one_time_deep_link_code::CreateOneTimeDeepLinkCodeError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_one_time_deep_link_code::CreateOneTimeDeepLinkCodeError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_one_time_deep_link_code::CreateOneTimeDeepLinkCodeError> for Error {
fn from(err: crate::operation::create_one_time_deep_link_code::CreateOneTimeDeepLinkCodeError) -> Self {
match err {
crate::operation::create_one_time_deep_link_code::CreateOneTimeDeepLinkCodeError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::create_one_time_deep_link_code::CreateOneTimeDeepLinkCodeError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::create_one_time_deep_link_code::CreateOneTimeDeepLinkCodeError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::create_one_time_deep_link_code::CreateOneTimeDeepLinkCodeError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::create_one_time_deep_link_code::CreateOneTimeDeepLinkCodeError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::create_one_time_deep_link_code::CreateOneTimeDeepLinkCodeError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_space::CreateSpaceError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_space::CreateSpaceError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_space::CreateSpaceError> for Error {
fn from(err: crate::operation::create_space::CreateSpaceError) -> Self {
match err {
crate::operation::create_space::CreateSpaceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::create_space::CreateSpaceError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::create_space::CreateSpaceError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::create_space::CreateSpaceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::create_space::CreateSpaceError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::create_space::CreateSpaceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::create_space::CreateSpaceError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::create_space::CreateSpaceError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_view::CreateViewError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_view::CreateViewError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_view::CreateViewError> for Error {
fn from(err: crate::operation::create_view::CreateViewError) -> Self {
match err {
crate::operation::create_view::CreateViewError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::create_view::CreateViewError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::create_view::CreateViewError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::create_view::CreateViewError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::create_view::CreateViewError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::create_view::CreateViewError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_access_grant::DeleteAccessGrantError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_access_grant::DeleteAccessGrantError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_access_grant::DeleteAccessGrantError> for Error {
fn from(err: crate::operation::delete_access_grant::DeleteAccessGrantError) -> Self {
match err {
crate::operation::delete_access_grant::DeleteAccessGrantError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::delete_access_grant::DeleteAccessGrantError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::delete_access_grant::DeleteAccessGrantError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::delete_access_grant::DeleteAccessGrantError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::delete_access_grant::DeleteAccessGrantError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::delete_access_grant::DeleteAccessGrantError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_access_profile::DeleteAccessProfileError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_access_profile::DeleteAccessProfileError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_access_profile::DeleteAccessProfileError> for Error {
fn from(err: crate::operation::delete_access_profile::DeleteAccessProfileError) -> Self {
match err {
crate::operation::delete_access_profile::DeleteAccessProfileError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::delete_access_profile::DeleteAccessProfileError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::delete_access_profile::DeleteAccessProfileError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::delete_access_profile::DeleteAccessProfileError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::delete_access_profile::DeleteAccessProfileError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::delete_access_profile::DeleteAccessProfileError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_alert::DeleteAlertError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_alert::DeleteAlertError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_alert::DeleteAlertError> for Error {
fn from(err: crate::operation::delete_alert::DeleteAlertError) -> Self {
match err {
crate::operation::delete_alert::DeleteAlertError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::delete_alert::DeleteAlertError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::delete_alert::DeleteAlertError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::delete_alert::DeleteAlertError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::delete_alert::DeleteAlertError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_domain::DeleteDomainError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_domain::DeleteDomainError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_domain::DeleteDomainError> for Error {
fn from(err: crate::operation::delete_domain::DeleteDomainError) -> Self {
match err {
crate::operation::delete_domain::DeleteDomainError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::delete_domain::DeleteDomainError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::delete_domain::DeleteDomainError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::delete_domain::DeleteDomainError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::delete_domain::DeleteDomainError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::delete_domain::DeleteDomainError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::delete_domain_access_grant_for_organization::DeleteDomainAccessGrantForOrganizationError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::delete_domain_access_grant_for_organization::DeleteDomainAccessGrantForOrganizationError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_domain_access_grant_for_organization::DeleteDomainAccessGrantForOrganizationError> for Error {
fn from(err: crate::operation::delete_domain_access_grant_for_organization::DeleteDomainAccessGrantForOrganizationError) -> Self {
match err {
crate::operation::delete_domain_access_grant_for_organization::DeleteDomainAccessGrantForOrganizationError::AccessDeniedException(
inner,
) => Error::AccessDeniedException(inner),
crate::operation::delete_domain_access_grant_for_organization::DeleteDomainAccessGrantForOrganizationError::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::operation::delete_domain_access_grant_for_organization::DeleteDomainAccessGrantForOrganizationError::InternalServerException(
inner,
) => Error::InternalServerException(inner),
crate::operation::delete_domain_access_grant_for_organization::DeleteDomainAccessGrantForOrganizationError::ThrottlingException(
inner,
) => Error::ThrottlingException(inner),
crate::operation::delete_domain_access_grant_for_organization::DeleteDomainAccessGrantForOrganizationError::ValidationException(
inner,
) => Error::ValidationException(inner),
crate::operation::delete_domain_access_grant_for_organization::DeleteDomainAccessGrantForOrganizationError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R>
From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_domain_for_organization::DeleteDomainForOrganizationError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::delete_domain_for_organization::DeleteDomainForOrganizationError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_domain_for_organization::DeleteDomainForOrganizationError> for Error {
fn from(err: crate::operation::delete_domain_for_organization::DeleteDomainForOrganizationError) -> Self {
match err {
crate::operation::delete_domain_for_organization::DeleteDomainForOrganizationError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::delete_domain_for_organization::DeleteDomainForOrganizationError::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::operation::delete_domain_for_organization::DeleteDomainForOrganizationError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::delete_domain_for_organization::DeleteDomainForOrganizationError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::delete_domain_for_organization::DeleteDomainForOrganizationError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::delete_domain_for_organization::DeleteDomainForOrganizationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_integration::DeleteIntegrationError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_integration::DeleteIntegrationError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_integration::DeleteIntegrationError> for Error {
fn from(err: crate::operation::delete_integration::DeleteIntegrationError) -> Self {
match err {
crate::operation::delete_integration::DeleteIntegrationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::delete_integration::DeleteIntegrationError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::delete_integration::DeleteIntegrationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::delete_integration::DeleteIntegrationError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::delete_integration::DeleteIntegrationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_omni_dashboard::DeleteOmniDashboardError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_omni_dashboard::DeleteOmniDashboardError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_omni_dashboard::DeleteOmniDashboardError> for Error {
fn from(err: crate::operation::delete_omni_dashboard::DeleteOmniDashboardError) -> Self {
match err {
crate::operation::delete_omni_dashboard::DeleteOmniDashboardError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::delete_omni_dashboard::DeleteOmniDashboardError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::delete_omni_dashboard::DeleteOmniDashboardError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::delete_omni_dashboard::DeleteOmniDashboardError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::delete_omni_dashboard::DeleteOmniDashboardError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_space::DeleteSpaceError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_space::DeleteSpaceError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_space::DeleteSpaceError> for Error {
fn from(err: crate::operation::delete_space::DeleteSpaceError) -> Self {
match err {
crate::operation::delete_space::DeleteSpaceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::delete_space::DeleteSpaceError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::delete_space::DeleteSpaceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::delete_space::DeleteSpaceError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::delete_space::DeleteSpaceError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_view::DeleteViewError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_view::DeleteViewError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_view::DeleteViewError> for Error {
fn from(err: crate::operation::delete_view::DeleteViewError) -> Self {
match err {
crate::operation::delete_view::DeleteViewError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::delete_view::DeleteViewError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::delete_view::DeleteViewError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::delete_view::DeleteViewError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::delete_view::DeleteViewError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::delete_view::DeleteViewError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_access_grant::GetAccessGrantError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_access_grant::GetAccessGrantError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::get_access_grant::GetAccessGrantError> for Error {
fn from(err: crate::operation::get_access_grant::GetAccessGrantError) -> Self {
match err {
crate::operation::get_access_grant::GetAccessGrantError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::get_access_grant::GetAccessGrantError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::get_access_grant::GetAccessGrantError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::get_access_grant::GetAccessGrantError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::get_access_grant::GetAccessGrantError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::get_access_grant::GetAccessGrantError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_access_profile::GetAccessProfileError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_access_profile::GetAccessProfileError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::get_access_profile::GetAccessProfileError> for Error {
fn from(err: crate::operation::get_access_profile::GetAccessProfileError) -> Self {
match err {
crate::operation::get_access_profile::GetAccessProfileError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::get_access_profile::GetAccessProfileError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::get_access_profile::GetAccessProfileError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::get_access_profile::GetAccessProfileError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::get_access_profile::GetAccessProfileError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::get_access_profile::GetAccessProfileError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_alert::GetAlertError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_alert::GetAlertError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::get_alert::GetAlertError> for Error {
fn from(err: crate::operation::get_alert::GetAlertError) -> Self {
match err {
crate::operation::get_alert::GetAlertError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::get_alert::GetAlertError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::get_alert::GetAlertError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::get_alert::GetAlertError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::get_alert::GetAlertError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::get_alert::GetAlertError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_context_graph::GetContextGraphError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_context_graph::GetContextGraphError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::get_context_graph::GetContextGraphError> for Error {
fn from(err: crate::operation::get_context_graph::GetContextGraphError) -> Self {
match err {
crate::operation::get_context_graph::GetContextGraphError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::get_context_graph::GetContextGraphError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::get_context_graph::GetContextGraphError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::get_context_graph::GetContextGraphError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::get_context_graph::GetContextGraphError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_domain::GetDomainError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_domain::GetDomainError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::get_domain::GetDomainError> for Error {
fn from(err: crate::operation::get_domain::GetDomainError) -> Self {
match err {
crate::operation::get_domain::GetDomainError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::get_domain::GetDomainError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::get_domain::GetDomainError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::get_domain::GetDomainError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::get_domain::GetDomainError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::get_domain::GetDomainError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::get_domain_access_grant_for_organization::GetDomainAccessGrantForOrganizationError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::get_domain_access_grant_for_organization::GetDomainAccessGrantForOrganizationError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::get_domain_access_grant_for_organization::GetDomainAccessGrantForOrganizationError> for Error {
fn from(err: crate::operation::get_domain_access_grant_for_organization::GetDomainAccessGrantForOrganizationError) -> Self {
match err {
crate::operation::get_domain_access_grant_for_organization::GetDomainAccessGrantForOrganizationError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::get_domain_access_grant_for_organization::GetDomainAccessGrantForOrganizationError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::get_domain_access_grant_for_organization::GetDomainAccessGrantForOrganizationError::ResourceNotFoundException(
inner,
) => Error::ResourceNotFoundException(inner),
crate::operation::get_domain_access_grant_for_organization::GetDomainAccessGrantForOrganizationError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::get_domain_access_grant_for_organization::GetDomainAccessGrantForOrganizationError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::get_domain_access_grant_for_organization::GetDomainAccessGrantForOrganizationError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_domain_for_organization::GetDomainForOrganizationError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_domain_for_organization::GetDomainForOrganizationError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::get_domain_for_organization::GetDomainForOrganizationError> for Error {
fn from(err: crate::operation::get_domain_for_organization::GetDomainForOrganizationError) -> Self {
match err {
crate::operation::get_domain_for_organization::GetDomainForOrganizationError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::get_domain_for_organization::GetDomainForOrganizationError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::get_domain_for_organization::GetDomainForOrganizationError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::get_domain_for_organization::GetDomainForOrganizationError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::get_domain_for_organization::GetDomainForOrganizationError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::get_domain_for_organization::GetDomainForOrganizationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_integration::GetIntegrationError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_integration::GetIntegrationError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::get_integration::GetIntegrationError> for Error {
fn from(err: crate::operation::get_integration::GetIntegrationError) -> Self {
match err {
crate::operation::get_integration::GetIntegrationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::get_integration::GetIntegrationError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::get_integration::GetIntegrationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::get_integration::GetIntegrationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::get_integration::GetIntegrationError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::get_integration::GetIntegrationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_intelligence_configuration::GetIntelligenceConfigurationError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::get_intelligence_configuration::GetIntelligenceConfigurationError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::get_intelligence_configuration::GetIntelligenceConfigurationError> for Error {
fn from(err: crate::operation::get_intelligence_configuration::GetIntelligenceConfigurationError) -> Self {
match err {
crate::operation::get_intelligence_configuration::GetIntelligenceConfigurationError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::get_intelligence_configuration::GetIntelligenceConfigurationError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::get_intelligence_configuration::GetIntelligenceConfigurationError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::get_intelligence_configuration::GetIntelligenceConfigurationError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::get_intelligence_configuration::GetIntelligenceConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_omni_dashboard::GetOmniDashboardError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_omni_dashboard::GetOmniDashboardError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::get_omni_dashboard::GetOmniDashboardError> for Error {
fn from(err: crate::operation::get_omni_dashboard::GetOmniDashboardError) -> Self {
match err {
crate::operation::get_omni_dashboard::GetOmniDashboardError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::get_omni_dashboard::GetOmniDashboardError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::get_omni_dashboard::GetOmniDashboardError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::get_omni_dashboard::GetOmniDashboardError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::get_omni_dashboard::GetOmniDashboardError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::get_omni_dashboard::GetOmniDashboardError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_space::GetSpaceError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_space::GetSpaceError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::get_space::GetSpaceError> for Error {
fn from(err: crate::operation::get_space::GetSpaceError) -> Self {
match err {
crate::operation::get_space::GetSpaceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::get_space::GetSpaceError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::get_space::GetSpaceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::get_space::GetSpaceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::get_space::GetSpaceError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::get_space::GetSpaceError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::get_space_credentials_for_organization::GetSpaceCredentialsForOrganizationError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::get_space_credentials_for_organization::GetSpaceCredentialsForOrganizationError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::get_space_credentials_for_organization::GetSpaceCredentialsForOrganizationError> for Error {
fn from(err: crate::operation::get_space_credentials_for_organization::GetSpaceCredentialsForOrganizationError) -> Self {
match err {
crate::operation::get_space_credentials_for_organization::GetSpaceCredentialsForOrganizationError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::get_space_credentials_for_organization::GetSpaceCredentialsForOrganizationError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::get_space_credentials_for_organization::GetSpaceCredentialsForOrganizationError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::get_space_credentials_for_organization::GetSpaceCredentialsForOrganizationError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::get_space_credentials_for_organization::GetSpaceCredentialsForOrganizationError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::get_space_credentials_for_organization::GetSpaceCredentialsForOrganizationError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_telemetry_query_results::GetTelemetryQueryResultsError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_telemetry_query_results::GetTelemetryQueryResultsError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::get_telemetry_query_results::GetTelemetryQueryResultsError> for Error {
fn from(err: crate::operation::get_telemetry_query_results::GetTelemetryQueryResultsError) -> Self {
match err {
crate::operation::get_telemetry_query_results::GetTelemetryQueryResultsError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::get_telemetry_query_results::GetTelemetryQueryResultsError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::get_telemetry_query_results::GetTelemetryQueryResultsError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::get_telemetry_query_results::GetTelemetryQueryResultsError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::get_telemetry_query_results::GetTelemetryQueryResultsError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::get_telemetry_query_results::GetTelemetryQueryResultsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_view::GetViewError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_view::GetViewError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::get_view::GetViewError> for Error {
fn from(err: crate::operation::get_view::GetViewError) -> Self {
match err {
crate::operation::get_view::GetViewError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::get_view::GetViewError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::get_view::GetViewError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::get_view::GetViewError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::get_view::GetViewError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_access_grants::ListAccessGrantsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_access_grants::ListAccessGrantsError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_access_grants::ListAccessGrantsError> for Error {
fn from(err: crate::operation::list_access_grants::ListAccessGrantsError) -> Self {
match err {
crate::operation::list_access_grants::ListAccessGrantsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::list_access_grants::ListAccessGrantsError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::list_access_grants::ListAccessGrantsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::list_access_grants::ListAccessGrantsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_access_grants::ListAccessGrantsError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::list_access_grants::ListAccessGrantsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_access_profiles::ListAccessProfilesError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_access_profiles::ListAccessProfilesError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_access_profiles::ListAccessProfilesError> for Error {
fn from(err: crate::operation::list_access_profiles::ListAccessProfilesError) -> Self {
match err {
crate::operation::list_access_profiles::ListAccessProfilesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::list_access_profiles::ListAccessProfilesError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::list_access_profiles::ListAccessProfilesError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::list_access_profiles::ListAccessProfilesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_access_profiles::ListAccessProfilesError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::list_access_profiles::ListAccessProfilesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_alerts::ListAlertsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_alerts::ListAlertsError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_alerts::ListAlertsError> for Error {
fn from(err: crate::operation::list_alerts::ListAlertsError) -> Self {
match err {
crate::operation::list_alerts::ListAlertsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::list_alerts::ListAlertsError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::list_alerts::ListAlertsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::list_alerts::ListAlertsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_alerts::ListAlertsError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::list_alerts::ListAlertsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::list_domain_access_grants_for_organization::ListDomainAccessGrantsForOrganizationError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::list_domain_access_grants_for_organization::ListDomainAccessGrantsForOrganizationError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_domain_access_grants_for_organization::ListDomainAccessGrantsForOrganizationError> for Error {
fn from(err: crate::operation::list_domain_access_grants_for_organization::ListDomainAccessGrantsForOrganizationError) -> Self {
match err {
crate::operation::list_domain_access_grants_for_organization::ListDomainAccessGrantsForOrganizationError::AccessDeniedException(
inner,
) => Error::AccessDeniedException(inner),
crate::operation::list_domain_access_grants_for_organization::ListDomainAccessGrantsForOrganizationError::InternalServerException(
inner,
) => Error::InternalServerException(inner),
crate::operation::list_domain_access_grants_for_organization::ListDomainAccessGrantsForOrganizationError::ResourceNotFoundException(
inner,
) => Error::ResourceNotFoundException(inner),
crate::operation::list_domain_access_grants_for_organization::ListDomainAccessGrantsForOrganizationError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::list_domain_access_grants_for_organization::ListDomainAccessGrantsForOrganizationError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::list_domain_access_grants_for_organization::ListDomainAccessGrantsForOrganizationError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_domains::ListDomainsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_domains::ListDomainsError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_domains::ListDomainsError> for Error {
fn from(err: crate::operation::list_domains::ListDomainsError) -> Self {
match err {
crate::operation::list_domains::ListDomainsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::list_domains::ListDomainsError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::list_domains::ListDomainsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_domains::ListDomainsError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::list_domains::ListDomainsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_integrations::ListIntegrationsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_integrations::ListIntegrationsError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_integrations::ListIntegrationsError> for Error {
fn from(err: crate::operation::list_integrations::ListIntegrationsError) -> Self {
match err {
crate::operation::list_integrations::ListIntegrationsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::list_integrations::ListIntegrationsError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::list_integrations::ListIntegrationsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_integrations::ListIntegrationsError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::list_integrations::ListIntegrationsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_omni_dashboards::ListOmniDashboardsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_omni_dashboards::ListOmniDashboardsError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_omni_dashboards::ListOmniDashboardsError> for Error {
fn from(err: crate::operation::list_omni_dashboards::ListOmniDashboardsError) -> Self {
match err {
crate::operation::list_omni_dashboards::ListOmniDashboardsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::list_omni_dashboards::ListOmniDashboardsError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::list_omni_dashboards::ListOmniDashboardsError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::list_omni_dashboards::ListOmniDashboardsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_omni_dashboards::ListOmniDashboardsError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::list_omni_dashboards::ListOmniDashboardsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_spaces::ListSpacesError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_spaces::ListSpacesError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_spaces::ListSpacesError> for Error {
fn from(err: crate::operation::list_spaces::ListSpacesError) -> Self {
match err {
crate::operation::list_spaces::ListSpacesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::list_spaces::ListSpacesError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::list_spaces::ListSpacesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_spaces::ListSpacesError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::list_spaces::ListSpacesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_spaces_for_organization::ListSpacesForOrganizationError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_spaces_for_organization::ListSpacesForOrganizationError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_spaces_for_organization::ListSpacesForOrganizationError> for Error {
fn from(err: crate::operation::list_spaces_for_organization::ListSpacesForOrganizationError) -> Self {
match err {
crate::operation::list_spaces_for_organization::ListSpacesForOrganizationError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::list_spaces_for_organization::ListSpacesForOrganizationError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::list_spaces_for_organization::ListSpacesForOrganizationError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::list_spaces_for_organization::ListSpacesForOrganizationError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::list_spaces_for_organization::ListSpacesForOrganizationError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::list_spaces_for_organization::ListSpacesForOrganizationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_telemetry_fields::ListTelemetryFieldsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_telemetry_fields::ListTelemetryFieldsError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_telemetry_fields::ListTelemetryFieldsError> for Error {
fn from(err: crate::operation::list_telemetry_fields::ListTelemetryFieldsError) -> Self {
match err {
crate::operation::list_telemetry_fields::ListTelemetryFieldsError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::list_telemetry_fields::ListTelemetryFieldsError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::list_telemetry_fields::ListTelemetryFieldsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_telemetry_fields::ListTelemetryFieldsError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::list_telemetry_fields::ListTelemetryFieldsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_telemetry_query_sessions::ListTelemetryQuerySessionsError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_telemetry_query_sessions::ListTelemetryQuerySessionsError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_telemetry_query_sessions::ListTelemetryQuerySessionsError> for Error {
fn from(err: crate::operation::list_telemetry_query_sessions::ListTelemetryQuerySessionsError) -> Self {
match err {
crate::operation::list_telemetry_query_sessions::ListTelemetryQuerySessionsError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::list_telemetry_query_sessions::ListTelemetryQuerySessionsError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::list_telemetry_query_sessions::ListTelemetryQuerySessionsError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::list_telemetry_query_sessions::ListTelemetryQuerySessionsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_views::ListViewsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_views::ListViewsError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_views::ListViewsError> for Error {
fn from(err: crate::operation::list_views::ListViewsError) -> Self {
match err {
crate::operation::list_views::ListViewsError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::list_views::ListViewsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_views::ListViewsError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::list_views::ListViewsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_intelligence_configuration::PutIntelligenceConfigurationError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::put_intelligence_configuration::PutIntelligenceConfigurationError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::put_intelligence_configuration::PutIntelligenceConfigurationError> for Error {
fn from(err: crate::operation::put_intelligence_configuration::PutIntelligenceConfigurationError) -> Self {
match err {
crate::operation::put_intelligence_configuration::PutIntelligenceConfigurationError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::put_intelligence_configuration::PutIntelligenceConfigurationError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::put_intelligence_configuration::PutIntelligenceConfigurationError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::put_intelligence_configuration::PutIntelligenceConfigurationError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::put_intelligence_configuration::PutIntelligenceConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_principals::SearchPrincipalsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_principals::SearchPrincipalsError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::search_principals::SearchPrincipalsError> for Error {
fn from(err: crate::operation::search_principals::SearchPrincipalsError) -> Self {
match err {
crate::operation::search_principals::SearchPrincipalsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::search_principals::SearchPrincipalsError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::search_principals::SearchPrincipalsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::search_principals::SearchPrincipalsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::search_principals::SearchPrincipalsError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::search_principals::SearchPrincipalsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_telemetry_query::StartTelemetryQueryError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_telemetry_query::StartTelemetryQueryError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::start_telemetry_query::StartTelemetryQueryError> for Error {
fn from(err: crate::operation::start_telemetry_query::StartTelemetryQueryError) -> Self {
match err {
crate::operation::start_telemetry_query::StartTelemetryQueryError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::start_telemetry_query::StartTelemetryQueryError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::start_telemetry_query::StartTelemetryQueryError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::start_telemetry_query::StartTelemetryQueryError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::start_telemetry_query::StartTelemetryQueryError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_telemetry_query_session::StartTelemetryQuerySessionError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_telemetry_query_session::StartTelemetryQuerySessionError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::start_telemetry_query_session::StartTelemetryQuerySessionError> for Error {
fn from(err: crate::operation::start_telemetry_query_session::StartTelemetryQuerySessionError) -> Self {
match err {
crate::operation::start_telemetry_query_session::StartTelemetryQuerySessionError::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::operation::start_telemetry_query_session::StartTelemetryQuerySessionError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::start_telemetry_query_session::StartTelemetryQuerySessionError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::start_telemetry_query_session::StartTelemetryQuerySessionError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::start_telemetry_query_session::StartTelemetryQuerySessionError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::start_telemetry_query_session::StartTelemetryQuerySessionError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_telemetry_query::StopTelemetryQueryError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_telemetry_query::StopTelemetryQueryError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::stop_telemetry_query::StopTelemetryQueryError> for Error {
fn from(err: crate::operation::stop_telemetry_query::StopTelemetryQueryError) -> Self {
match err {
crate::operation::stop_telemetry_query::StopTelemetryQueryError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::stop_telemetry_query::StopTelemetryQueryError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::stop_telemetry_query::StopTelemetryQueryError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::stop_telemetry_query::StopTelemetryQueryError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::stop_telemetry_query::StopTelemetryQueryError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::stop_telemetry_query::StopTelemetryQueryError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_telemetry_query_session::StopTelemetryQuerySessionError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_telemetry_query_session::StopTelemetryQuerySessionError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::stop_telemetry_query_session::StopTelemetryQuerySessionError> for Error {
fn from(err: crate::operation::stop_telemetry_query_session::StopTelemetryQuerySessionError) -> Self {
match err {
crate::operation::stop_telemetry_query_session::StopTelemetryQuerySessionError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::stop_telemetry_query_session::StopTelemetryQuerySessionError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::stop_telemetry_query_session::StopTelemetryQuerySessionError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::stop_telemetry_query_session::StopTelemetryQuerySessionError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::stop_telemetry_query_session::StopTelemetryQuerySessionError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_access_profile::UpdateAccessProfileError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_access_profile::UpdateAccessProfileError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_access_profile::UpdateAccessProfileError> for Error {
fn from(err: crate::operation::update_access_profile::UpdateAccessProfileError) -> Self {
match err {
crate::operation::update_access_profile::UpdateAccessProfileError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::update_access_profile::UpdateAccessProfileError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::update_access_profile::UpdateAccessProfileError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::update_access_profile::UpdateAccessProfileError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::update_access_profile::UpdateAccessProfileError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::update_access_profile::UpdateAccessProfileError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::update_access_profile::UpdateAccessProfileError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::update_access_profile::UpdateAccessProfileError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_alert::UpdateAlertError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_alert::UpdateAlertError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_alert::UpdateAlertError> for Error {
fn from(err: crate::operation::update_alert::UpdateAlertError) -> Self {
match err {
crate::operation::update_alert::UpdateAlertError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::update_alert::UpdateAlertError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::update_alert::UpdateAlertError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::update_alert::UpdateAlertError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::update_alert::UpdateAlertError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::update_alert::UpdateAlertError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::update_alert::UpdateAlertError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_domain::UpdateDomainError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_domain::UpdateDomainError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_domain::UpdateDomainError> for Error {
fn from(err: crate::operation::update_domain::UpdateDomainError) -> Self {
match err {
crate::operation::update_domain::UpdateDomainError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::update_domain::UpdateDomainError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::update_domain::UpdateDomainError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::update_domain::UpdateDomainError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::update_domain::UpdateDomainError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::update_domain::UpdateDomainError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::update_domain::UpdateDomainError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::update_domain::UpdateDomainError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_domain_for_organization::UpdateDomainForOrganizationError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_domain_for_organization::UpdateDomainForOrganizationError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_domain_for_organization::UpdateDomainForOrganizationError> for Error {
fn from(err: crate::operation::update_domain_for_organization::UpdateDomainForOrganizationError) -> Self {
match err {
crate::operation::update_domain_for_organization::UpdateDomainForOrganizationError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::update_domain_for_organization::UpdateDomainForOrganizationError::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::operation::update_domain_for_organization::UpdateDomainForOrganizationError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::update_domain_for_organization::UpdateDomainForOrganizationError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::update_domain_for_organization::UpdateDomainForOrganizationError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::update_domain_for_organization::UpdateDomainForOrganizationError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::update_domain_for_organization::UpdateDomainForOrganizationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_integration::UpdateIntegrationError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_integration::UpdateIntegrationError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_integration::UpdateIntegrationError> for Error {
fn from(err: crate::operation::update_integration::UpdateIntegrationError) -> Self {
match err {
crate::operation::update_integration::UpdateIntegrationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::update_integration::UpdateIntegrationError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::update_integration::UpdateIntegrationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::update_integration::UpdateIntegrationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::update_integration::UpdateIntegrationError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::update_integration::UpdateIntegrationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_omni_dashboard::UpdateOmniDashboardError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_omni_dashboard::UpdateOmniDashboardError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_omni_dashboard::UpdateOmniDashboardError> for Error {
fn from(err: crate::operation::update_omni_dashboard::UpdateOmniDashboardError) -> Self {
match err {
crate::operation::update_omni_dashboard::UpdateOmniDashboardError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::update_omni_dashboard::UpdateOmniDashboardError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::update_omni_dashboard::UpdateOmniDashboardError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::update_omni_dashboard::UpdateOmniDashboardError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::update_omni_dashboard::UpdateOmniDashboardError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::update_omni_dashboard::UpdateOmniDashboardError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::update_omni_dashboard::UpdateOmniDashboardError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::update_omni_dashboard::UpdateOmniDashboardError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_space::UpdateSpaceError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_space::UpdateSpaceError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_space::UpdateSpaceError> for Error {
fn from(err: crate::operation::update_space::UpdateSpaceError) -> Self {
match err {
crate::operation::update_space::UpdateSpaceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::update_space::UpdateSpaceError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::update_space::UpdateSpaceError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::update_space::UpdateSpaceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::update_space::UpdateSpaceError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::update_space::UpdateSpaceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::update_space::UpdateSpaceError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::update_space::UpdateSpaceError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_view::UpdateViewError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_view::UpdateViewError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_view::UpdateViewError> for Error {
fn from(err: crate::operation::update_view::UpdateViewError) -> Self {
match err {
crate::operation::update_view::UpdateViewError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::update_view::UpdateViewError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::update_view::UpdateViewError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::update_view::UpdateViewError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::update_view::UpdateViewError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::update_view::UpdateViewError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::update_view::UpdateViewError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl ::std::error::Error for Error {
fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
match self {
Error::AccessDeniedException(inner) => inner.source(),
Error::ConflictException(inner) => inner.source(),
Error::InternalServerException(inner) => inner.source(),
Error::ResourceNotFoundException(inner) => inner.source(),
Error::ServiceQuotaExceededException(inner) => inner.source(),
Error::ThrottlingException(inner) => inner.source(),
Error::ValidationException(inner) => inner.source(),
Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
}
}
}
impl ::aws_types::request_id::RequestId for Error {
fn request_id(&self) -> Option<&str> {
match self {
Self::AccessDeniedException(e) => e.request_id(),
Self::ConflictException(e) => e.request_id(),
Self::InternalServerException(e) => e.request_id(),
Self::ResourceNotFoundException(e) => e.request_id(),
Self::ServiceQuotaExceededException(e) => e.request_id(),
Self::ThrottlingException(e) => e.request_id(),
Self::ValidationException(e) => e.request_id(),
Self::Unhandled(e) => e.meta.request_id(),
}
}
}