#[non_exhaustive]
#[derive(::std::fmt::Debug)]
pub enum Error {
BadRequestError(crate::types::error::BadRequestError),
ForbiddenError(crate::types::error::ForbiddenError),
InternalServerError(crate::types::error::InternalServerError),
RateLimitError(crate::types::error::RateLimitError),
ResourceNotFoundError(crate::types::error::ResourceNotFoundError),
UnauthorizedError(crate::types::error::UnauthorizedError),
ValidationError(crate::types::error::ValidationError),
#[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::BadRequestError(inner) => inner.fmt(f),
Error::ForbiddenError(inner) => inner.fmt(f),
Error::InternalServerError(inner) => inner.fmt(f),
Error::RateLimitError(inner) => inner.fmt(f),
Error::ResourceNotFoundError(inner) => inner.fmt(f),
Error::UnauthorizedError(inner) => inner.fmt(f),
Error::ValidationError(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::BadRequestError(inner) => inner.meta(),
Self::ForbiddenError(inner) => inner.meta(),
Self::InternalServerError(inner) => inner.meta(),
Self::RateLimitError(inner) => inner.meta(),
Self::ResourceNotFoundError(inner) => inner.meta(),
Self::UnauthorizedError(inner) => inner.meta(),
Self::ValidationError(inner) => inner.meta(),
Self::Unhandled(inner) => &inner.meta,
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_create_user::BatchCreateUserError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_create_user::BatchCreateUserError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::batch_create_user::BatchCreateUserError> for Error {
fn from(err: crate::operation::batch_create_user::BatchCreateUserError) -> Self {
match err {
crate::operation::batch_create_user::BatchCreateUserError::BadRequestError(inner) => Error::BadRequestError(inner),
crate::operation::batch_create_user::BatchCreateUserError::ForbiddenError(inner) => Error::ForbiddenError(inner),
crate::operation::batch_create_user::BatchCreateUserError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::batch_create_user::BatchCreateUserError::RateLimitError(inner) => Error::RateLimitError(inner),
crate::operation::batch_create_user::BatchCreateUserError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
crate::operation::batch_create_user::BatchCreateUserError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
crate::operation::batch_create_user::BatchCreateUserError::ValidationError(inner) => Error::ValidationError(inner),
crate::operation::batch_create_user::BatchCreateUserError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_delete_user::BatchDeleteUserError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_delete_user::BatchDeleteUserError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::batch_delete_user::BatchDeleteUserError> for Error {
fn from(err: crate::operation::batch_delete_user::BatchDeleteUserError) -> Self {
match err {
crate::operation::batch_delete_user::BatchDeleteUserError::BadRequestError(inner) => Error::BadRequestError(inner),
crate::operation::batch_delete_user::BatchDeleteUserError::ForbiddenError(inner) => Error::ForbiddenError(inner),
crate::operation::batch_delete_user::BatchDeleteUserError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::batch_delete_user::BatchDeleteUserError::RateLimitError(inner) => Error::RateLimitError(inner),
crate::operation::batch_delete_user::BatchDeleteUserError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
crate::operation::batch_delete_user::BatchDeleteUserError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
crate::operation::batch_delete_user::BatchDeleteUserError::ValidationError(inner) => Error::ValidationError(inner),
crate::operation::batch_delete_user::BatchDeleteUserError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_lookup_user_uname::BatchLookupUserUnameError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_lookup_user_uname::BatchLookupUserUnameError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::batch_lookup_user_uname::BatchLookupUserUnameError> for Error {
fn from(err: crate::operation::batch_lookup_user_uname::BatchLookupUserUnameError) -> Self {
match err {
crate::operation::batch_lookup_user_uname::BatchLookupUserUnameError::BadRequestError(inner) => Error::BadRequestError(inner),
crate::operation::batch_lookup_user_uname::BatchLookupUserUnameError::ForbiddenError(inner) => Error::ForbiddenError(inner),
crate::operation::batch_lookup_user_uname::BatchLookupUserUnameError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::batch_lookup_user_uname::BatchLookupUserUnameError::RateLimitError(inner) => Error::RateLimitError(inner),
crate::operation::batch_lookup_user_uname::BatchLookupUserUnameError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
crate::operation::batch_lookup_user_uname::BatchLookupUserUnameError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
crate::operation::batch_lookup_user_uname::BatchLookupUserUnameError::ValidationError(inner) => Error::ValidationError(inner),
crate::operation::batch_lookup_user_uname::BatchLookupUserUnameError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_reinvite_user::BatchReinviteUserError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_reinvite_user::BatchReinviteUserError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::batch_reinvite_user::BatchReinviteUserError> for Error {
fn from(err: crate::operation::batch_reinvite_user::BatchReinviteUserError) -> Self {
match err {
crate::operation::batch_reinvite_user::BatchReinviteUserError::BadRequestError(inner) => Error::BadRequestError(inner),
crate::operation::batch_reinvite_user::BatchReinviteUserError::ForbiddenError(inner) => Error::ForbiddenError(inner),
crate::operation::batch_reinvite_user::BatchReinviteUserError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::batch_reinvite_user::BatchReinviteUserError::RateLimitError(inner) => Error::RateLimitError(inner),
crate::operation::batch_reinvite_user::BatchReinviteUserError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
crate::operation::batch_reinvite_user::BatchReinviteUserError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
crate::operation::batch_reinvite_user::BatchReinviteUserError::ValidationError(inner) => Error::ValidationError(inner),
crate::operation::batch_reinvite_user::BatchReinviteUserError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_reset_devices_for_user::BatchResetDevicesForUserError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_reset_devices_for_user::BatchResetDevicesForUserError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::batch_reset_devices_for_user::BatchResetDevicesForUserError> for Error {
fn from(err: crate::operation::batch_reset_devices_for_user::BatchResetDevicesForUserError) -> Self {
match err {
crate::operation::batch_reset_devices_for_user::BatchResetDevicesForUserError::BadRequestError(inner) => Error::BadRequestError(inner),
crate::operation::batch_reset_devices_for_user::BatchResetDevicesForUserError::ForbiddenError(inner) => Error::ForbiddenError(inner),
crate::operation::batch_reset_devices_for_user::BatchResetDevicesForUserError::InternalServerError(inner) => {
Error::InternalServerError(inner)
}
crate::operation::batch_reset_devices_for_user::BatchResetDevicesForUserError::RateLimitError(inner) => Error::RateLimitError(inner),
crate::operation::batch_reset_devices_for_user::BatchResetDevicesForUserError::ResourceNotFoundError(inner) => {
Error::ResourceNotFoundError(inner)
}
crate::operation::batch_reset_devices_for_user::BatchResetDevicesForUserError::UnauthorizedError(inner) => {
Error::UnauthorizedError(inner)
}
crate::operation::batch_reset_devices_for_user::BatchResetDevicesForUserError::ValidationError(inner) => Error::ValidationError(inner),
crate::operation::batch_reset_devices_for_user::BatchResetDevicesForUserError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_toggle_user_suspend_status::BatchToggleUserSuspendStatusError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::batch_toggle_user_suspend_status::BatchToggleUserSuspendStatusError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::batch_toggle_user_suspend_status::BatchToggleUserSuspendStatusError> for Error {
fn from(err: crate::operation::batch_toggle_user_suspend_status::BatchToggleUserSuspendStatusError) -> Self {
match err {
crate::operation::batch_toggle_user_suspend_status::BatchToggleUserSuspendStatusError::BadRequestError(inner) => {
Error::BadRequestError(inner)
}
crate::operation::batch_toggle_user_suspend_status::BatchToggleUserSuspendStatusError::ForbiddenError(inner) => {
Error::ForbiddenError(inner)
}
crate::operation::batch_toggle_user_suspend_status::BatchToggleUserSuspendStatusError::InternalServerError(inner) => {
Error::InternalServerError(inner)
}
crate::operation::batch_toggle_user_suspend_status::BatchToggleUserSuspendStatusError::RateLimitError(inner) => {
Error::RateLimitError(inner)
}
crate::operation::batch_toggle_user_suspend_status::BatchToggleUserSuspendStatusError::ResourceNotFoundError(inner) => {
Error::ResourceNotFoundError(inner)
}
crate::operation::batch_toggle_user_suspend_status::BatchToggleUserSuspendStatusError::UnauthorizedError(inner) => {
Error::UnauthorizedError(inner)
}
crate::operation::batch_toggle_user_suspend_status::BatchToggleUserSuspendStatusError::ValidationError(inner) => {
Error::ValidationError(inner)
}
crate::operation::batch_toggle_user_suspend_status::BatchToggleUserSuspendStatusError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_bot::CreateBotError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_bot::CreateBotError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => 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_bot::CreateBotError> for Error {
fn from(err: crate::operation::create_bot::CreateBotError) -> Self {
match err {
crate::operation::create_bot::CreateBotError::BadRequestError(inner) => Error::BadRequestError(inner),
crate::operation::create_bot::CreateBotError::ForbiddenError(inner) => Error::ForbiddenError(inner),
crate::operation::create_bot::CreateBotError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::create_bot::CreateBotError::RateLimitError(inner) => Error::RateLimitError(inner),
crate::operation::create_bot::CreateBotError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
crate::operation::create_bot::CreateBotError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
crate::operation::create_bot::CreateBotError::ValidationError(inner) => Error::ValidationError(inner),
crate::operation::create_bot::CreateBotError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_data_retention_bot::CreateDataRetentionBotError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_data_retention_bot::CreateDataRetentionBotError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => 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_data_retention_bot::CreateDataRetentionBotError> for Error {
fn from(err: crate::operation::create_data_retention_bot::CreateDataRetentionBotError) -> Self {
match err {
crate::operation::create_data_retention_bot::CreateDataRetentionBotError::BadRequestError(inner) => Error::BadRequestError(inner),
crate::operation::create_data_retention_bot::CreateDataRetentionBotError::ForbiddenError(inner) => Error::ForbiddenError(inner),
crate::operation::create_data_retention_bot::CreateDataRetentionBotError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::create_data_retention_bot::CreateDataRetentionBotError::RateLimitError(inner) => Error::RateLimitError(inner),
crate::operation::create_data_retention_bot::CreateDataRetentionBotError::ResourceNotFoundError(inner) => {
Error::ResourceNotFoundError(inner)
}
crate::operation::create_data_retention_bot::CreateDataRetentionBotError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
crate::operation::create_data_retention_bot::CreateDataRetentionBotError::ValidationError(inner) => Error::ValidationError(inner),
crate::operation::create_data_retention_bot::CreateDataRetentionBotError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_data_retention_bot_challenge::CreateDataRetentionBotChallengeError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_data_retention_bot_challenge::CreateDataRetentionBotChallengeError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => 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_data_retention_bot_challenge::CreateDataRetentionBotChallengeError> for Error {
fn from(err: crate::operation::create_data_retention_bot_challenge::CreateDataRetentionBotChallengeError) -> Self {
match err {
crate::operation::create_data_retention_bot_challenge::CreateDataRetentionBotChallengeError::BadRequestError(inner) => {
Error::BadRequestError(inner)
}
crate::operation::create_data_retention_bot_challenge::CreateDataRetentionBotChallengeError::ForbiddenError(inner) => {
Error::ForbiddenError(inner)
}
crate::operation::create_data_retention_bot_challenge::CreateDataRetentionBotChallengeError::InternalServerError(inner) => {
Error::InternalServerError(inner)
}
crate::operation::create_data_retention_bot_challenge::CreateDataRetentionBotChallengeError::RateLimitError(inner) => {
Error::RateLimitError(inner)
}
crate::operation::create_data_retention_bot_challenge::CreateDataRetentionBotChallengeError::ResourceNotFoundError(inner) => {
Error::ResourceNotFoundError(inner)
}
crate::operation::create_data_retention_bot_challenge::CreateDataRetentionBotChallengeError::UnauthorizedError(inner) => {
Error::UnauthorizedError(inner)
}
crate::operation::create_data_retention_bot_challenge::CreateDataRetentionBotChallengeError::ValidationError(inner) => {
Error::ValidationError(inner)
}
crate::operation::create_data_retention_bot_challenge::CreateDataRetentionBotChallengeError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_network::CreateNetworkError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_network::CreateNetworkError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => 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_network::CreateNetworkError> for Error {
fn from(err: crate::operation::create_network::CreateNetworkError) -> Self {
match err {
crate::operation::create_network::CreateNetworkError::BadRequestError(inner) => Error::BadRequestError(inner),
crate::operation::create_network::CreateNetworkError::ForbiddenError(inner) => Error::ForbiddenError(inner),
crate::operation::create_network::CreateNetworkError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::create_network::CreateNetworkError::RateLimitError(inner) => Error::RateLimitError(inner),
crate::operation::create_network::CreateNetworkError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
crate::operation::create_network::CreateNetworkError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
crate::operation::create_network::CreateNetworkError::ValidationError(inner) => Error::ValidationError(inner),
crate::operation::create_network::CreateNetworkError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_security_group::CreateSecurityGroupError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_security_group::CreateSecurityGroupError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_security_group::CreateSecurityGroupError> for Error {
fn from(err: crate::operation::create_security_group::CreateSecurityGroupError) -> Self {
match err {
crate::operation::create_security_group::CreateSecurityGroupError::BadRequestError(inner) => Error::BadRequestError(inner),
crate::operation::create_security_group::CreateSecurityGroupError::ForbiddenError(inner) => Error::ForbiddenError(inner),
crate::operation::create_security_group::CreateSecurityGroupError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::create_security_group::CreateSecurityGroupError::RateLimitError(inner) => Error::RateLimitError(inner),
crate::operation::create_security_group::CreateSecurityGroupError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
crate::operation::create_security_group::CreateSecurityGroupError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
crate::operation::create_security_group::CreateSecurityGroupError::ValidationError(inner) => Error::ValidationError(inner),
crate::operation::create_security_group::CreateSecurityGroupError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_bot::DeleteBotError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_bot::DeleteBotError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => 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_bot::DeleteBotError> for Error {
fn from(err: crate::operation::delete_bot::DeleteBotError) -> Self {
match err {
crate::operation::delete_bot::DeleteBotError::BadRequestError(inner) => Error::BadRequestError(inner),
crate::operation::delete_bot::DeleteBotError::ForbiddenError(inner) => Error::ForbiddenError(inner),
crate::operation::delete_bot::DeleteBotError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::delete_bot::DeleteBotError::RateLimitError(inner) => Error::RateLimitError(inner),
crate::operation::delete_bot::DeleteBotError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
crate::operation::delete_bot::DeleteBotError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
crate::operation::delete_bot::DeleteBotError::ValidationError(inner) => Error::ValidationError(inner),
crate::operation::delete_bot::DeleteBotError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_data_retention_bot::DeleteDataRetentionBotError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_data_retention_bot::DeleteDataRetentionBotError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => 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_data_retention_bot::DeleteDataRetentionBotError> for Error {
fn from(err: crate::operation::delete_data_retention_bot::DeleteDataRetentionBotError) -> Self {
match err {
crate::operation::delete_data_retention_bot::DeleteDataRetentionBotError::BadRequestError(inner) => Error::BadRequestError(inner),
crate::operation::delete_data_retention_bot::DeleteDataRetentionBotError::ForbiddenError(inner) => Error::ForbiddenError(inner),
crate::operation::delete_data_retention_bot::DeleteDataRetentionBotError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::delete_data_retention_bot::DeleteDataRetentionBotError::RateLimitError(inner) => Error::RateLimitError(inner),
crate::operation::delete_data_retention_bot::DeleteDataRetentionBotError::ResourceNotFoundError(inner) => {
Error::ResourceNotFoundError(inner)
}
crate::operation::delete_data_retention_bot::DeleteDataRetentionBotError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
crate::operation::delete_data_retention_bot::DeleteDataRetentionBotError::ValidationError(inner) => Error::ValidationError(inner),
crate::operation::delete_data_retention_bot::DeleteDataRetentionBotError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_network::DeleteNetworkError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_network::DeleteNetworkError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => 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_network::DeleteNetworkError> for Error {
fn from(err: crate::operation::delete_network::DeleteNetworkError) -> Self {
match err {
crate::operation::delete_network::DeleteNetworkError::BadRequestError(inner) => Error::BadRequestError(inner),
crate::operation::delete_network::DeleteNetworkError::ForbiddenError(inner) => Error::ForbiddenError(inner),
crate::operation::delete_network::DeleteNetworkError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::delete_network::DeleteNetworkError::RateLimitError(inner) => Error::RateLimitError(inner),
crate::operation::delete_network::DeleteNetworkError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
crate::operation::delete_network::DeleteNetworkError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
crate::operation::delete_network::DeleteNetworkError::ValidationError(inner) => Error::ValidationError(inner),
crate::operation::delete_network::DeleteNetworkError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_security_group::DeleteSecurityGroupError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_security_group::DeleteSecurityGroupError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_security_group::DeleteSecurityGroupError> for Error {
fn from(err: crate::operation::delete_security_group::DeleteSecurityGroupError) -> Self {
match err {
crate::operation::delete_security_group::DeleteSecurityGroupError::BadRequestError(inner) => Error::BadRequestError(inner),
crate::operation::delete_security_group::DeleteSecurityGroupError::ForbiddenError(inner) => Error::ForbiddenError(inner),
crate::operation::delete_security_group::DeleteSecurityGroupError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::delete_security_group::DeleteSecurityGroupError::RateLimitError(inner) => Error::RateLimitError(inner),
crate::operation::delete_security_group::DeleteSecurityGroupError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
crate::operation::delete_security_group::DeleteSecurityGroupError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
crate::operation::delete_security_group::DeleteSecurityGroupError::ValidationError(inner) => Error::ValidationError(inner),
crate::operation::delete_security_group::DeleteSecurityGroupError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_bot::GetBotError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_bot::GetBotError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => 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_bot::GetBotError> for Error {
fn from(err: crate::operation::get_bot::GetBotError) -> Self {
match err {
crate::operation::get_bot::GetBotError::BadRequestError(inner) => Error::BadRequestError(inner),
crate::operation::get_bot::GetBotError::ForbiddenError(inner) => Error::ForbiddenError(inner),
crate::operation::get_bot::GetBotError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::get_bot::GetBotError::RateLimitError(inner) => Error::RateLimitError(inner),
crate::operation::get_bot::GetBotError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
crate::operation::get_bot::GetBotError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
crate::operation::get_bot::GetBotError::ValidationError(inner) => Error::ValidationError(inner),
crate::operation::get_bot::GetBotError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_bots_count::GetBotsCountError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_bots_count::GetBotsCountError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => 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_bots_count::GetBotsCountError> for Error {
fn from(err: crate::operation::get_bots_count::GetBotsCountError) -> Self {
match err {
crate::operation::get_bots_count::GetBotsCountError::BadRequestError(inner) => Error::BadRequestError(inner),
crate::operation::get_bots_count::GetBotsCountError::ForbiddenError(inner) => Error::ForbiddenError(inner),
crate::operation::get_bots_count::GetBotsCountError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::get_bots_count::GetBotsCountError::RateLimitError(inner) => Error::RateLimitError(inner),
crate::operation::get_bots_count::GetBotsCountError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
crate::operation::get_bots_count::GetBotsCountError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
crate::operation::get_bots_count::GetBotsCountError::ValidationError(inner) => Error::ValidationError(inner),
crate::operation::get_bots_count::GetBotsCountError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_data_retention_bot::GetDataRetentionBotError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_data_retention_bot::GetDataRetentionBotError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => 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_data_retention_bot::GetDataRetentionBotError> for Error {
fn from(err: crate::operation::get_data_retention_bot::GetDataRetentionBotError) -> Self {
match err {
crate::operation::get_data_retention_bot::GetDataRetentionBotError::BadRequestError(inner) => Error::BadRequestError(inner),
crate::operation::get_data_retention_bot::GetDataRetentionBotError::ForbiddenError(inner) => Error::ForbiddenError(inner),
crate::operation::get_data_retention_bot::GetDataRetentionBotError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::get_data_retention_bot::GetDataRetentionBotError::RateLimitError(inner) => Error::RateLimitError(inner),
crate::operation::get_data_retention_bot::GetDataRetentionBotError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
crate::operation::get_data_retention_bot::GetDataRetentionBotError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
crate::operation::get_data_retention_bot::GetDataRetentionBotError::ValidationError(inner) => Error::ValidationError(inner),
crate::operation::get_data_retention_bot::GetDataRetentionBotError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_guest_user_history_count::GetGuestUserHistoryCountError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_guest_user_history_count::GetGuestUserHistoryCountError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => 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_guest_user_history_count::GetGuestUserHistoryCountError> for Error {
fn from(err: crate::operation::get_guest_user_history_count::GetGuestUserHistoryCountError) -> Self {
match err {
crate::operation::get_guest_user_history_count::GetGuestUserHistoryCountError::BadRequestError(inner) => Error::BadRequestError(inner),
crate::operation::get_guest_user_history_count::GetGuestUserHistoryCountError::ForbiddenError(inner) => Error::ForbiddenError(inner),
crate::operation::get_guest_user_history_count::GetGuestUserHistoryCountError::InternalServerError(inner) => {
Error::InternalServerError(inner)
}
crate::operation::get_guest_user_history_count::GetGuestUserHistoryCountError::RateLimitError(inner) => Error::RateLimitError(inner),
crate::operation::get_guest_user_history_count::GetGuestUserHistoryCountError::ResourceNotFoundError(inner) => {
Error::ResourceNotFoundError(inner)
}
crate::operation::get_guest_user_history_count::GetGuestUserHistoryCountError::UnauthorizedError(inner) => {
Error::UnauthorizedError(inner)
}
crate::operation::get_guest_user_history_count::GetGuestUserHistoryCountError::ValidationError(inner) => Error::ValidationError(inner),
crate::operation::get_guest_user_history_count::GetGuestUserHistoryCountError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_network::GetNetworkError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_network::GetNetworkError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => 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_network::GetNetworkError> for Error {
fn from(err: crate::operation::get_network::GetNetworkError) -> Self {
match err {
crate::operation::get_network::GetNetworkError::BadRequestError(inner) => Error::BadRequestError(inner),
crate::operation::get_network::GetNetworkError::ForbiddenError(inner) => Error::ForbiddenError(inner),
crate::operation::get_network::GetNetworkError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::get_network::GetNetworkError::RateLimitError(inner) => Error::RateLimitError(inner),
crate::operation::get_network::GetNetworkError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
crate::operation::get_network::GetNetworkError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
crate::operation::get_network::GetNetworkError::ValidationError(inner) => Error::ValidationError(inner),
crate::operation::get_network::GetNetworkError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_network_settings::GetNetworkSettingsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_network_settings::GetNetworkSettingsError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => 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_network_settings::GetNetworkSettingsError> for Error {
fn from(err: crate::operation::get_network_settings::GetNetworkSettingsError) -> Self {
match err {
crate::operation::get_network_settings::GetNetworkSettingsError::BadRequestError(inner) => Error::BadRequestError(inner),
crate::operation::get_network_settings::GetNetworkSettingsError::ForbiddenError(inner) => Error::ForbiddenError(inner),
crate::operation::get_network_settings::GetNetworkSettingsError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::get_network_settings::GetNetworkSettingsError::RateLimitError(inner) => Error::RateLimitError(inner),
crate::operation::get_network_settings::GetNetworkSettingsError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
crate::operation::get_network_settings::GetNetworkSettingsError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
crate::operation::get_network_settings::GetNetworkSettingsError::ValidationError(inner) => Error::ValidationError(inner),
crate::operation::get_network_settings::GetNetworkSettingsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_oidc_info::GetOidcInfoError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_oidc_info::GetOidcInfoError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => 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_oidc_info::GetOidcInfoError> for Error {
fn from(err: crate::operation::get_oidc_info::GetOidcInfoError) -> Self {
match err {
crate::operation::get_oidc_info::GetOidcInfoError::BadRequestError(inner) => Error::BadRequestError(inner),
crate::operation::get_oidc_info::GetOidcInfoError::ForbiddenError(inner) => Error::ForbiddenError(inner),
crate::operation::get_oidc_info::GetOidcInfoError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::get_oidc_info::GetOidcInfoError::RateLimitError(inner) => Error::RateLimitError(inner),
crate::operation::get_oidc_info::GetOidcInfoError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
crate::operation::get_oidc_info::GetOidcInfoError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
crate::operation::get_oidc_info::GetOidcInfoError::ValidationError(inner) => Error::ValidationError(inner),
crate::operation::get_oidc_info::GetOidcInfoError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_security_group::GetSecurityGroupError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_security_group::GetSecurityGroupError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => 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_security_group::GetSecurityGroupError> for Error {
fn from(err: crate::operation::get_security_group::GetSecurityGroupError) -> Self {
match err {
crate::operation::get_security_group::GetSecurityGroupError::BadRequestError(inner) => Error::BadRequestError(inner),
crate::operation::get_security_group::GetSecurityGroupError::ForbiddenError(inner) => Error::ForbiddenError(inner),
crate::operation::get_security_group::GetSecurityGroupError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::get_security_group::GetSecurityGroupError::RateLimitError(inner) => Error::RateLimitError(inner),
crate::operation::get_security_group::GetSecurityGroupError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
crate::operation::get_security_group::GetSecurityGroupError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
crate::operation::get_security_group::GetSecurityGroupError::ValidationError(inner) => Error::ValidationError(inner),
crate::operation::get_security_group::GetSecurityGroupError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_user::GetUserError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_user::GetUserError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => 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_user::GetUserError> for Error {
fn from(err: crate::operation::get_user::GetUserError) -> Self {
match err {
crate::operation::get_user::GetUserError::BadRequestError(inner) => Error::BadRequestError(inner),
crate::operation::get_user::GetUserError::ForbiddenError(inner) => Error::ForbiddenError(inner),
crate::operation::get_user::GetUserError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::get_user::GetUserError::RateLimitError(inner) => Error::RateLimitError(inner),
crate::operation::get_user::GetUserError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
crate::operation::get_user::GetUserError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
crate::operation::get_user::GetUserError::ValidationError(inner) => Error::ValidationError(inner),
crate::operation::get_user::GetUserError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_users_count::GetUsersCountError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_users_count::GetUsersCountError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => 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_users_count::GetUsersCountError> for Error {
fn from(err: crate::operation::get_users_count::GetUsersCountError) -> Self {
match err {
crate::operation::get_users_count::GetUsersCountError::BadRequestError(inner) => Error::BadRequestError(inner),
crate::operation::get_users_count::GetUsersCountError::ForbiddenError(inner) => Error::ForbiddenError(inner),
crate::operation::get_users_count::GetUsersCountError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::get_users_count::GetUsersCountError::RateLimitError(inner) => Error::RateLimitError(inner),
crate::operation::get_users_count::GetUsersCountError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
crate::operation::get_users_count::GetUsersCountError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
crate::operation::get_users_count::GetUsersCountError::ValidationError(inner) => Error::ValidationError(inner),
crate::operation::get_users_count::GetUsersCountError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_blocked_guest_users::ListBlockedGuestUsersError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_blocked_guest_users::ListBlockedGuestUsersError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => 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_blocked_guest_users::ListBlockedGuestUsersError> for Error {
fn from(err: crate::operation::list_blocked_guest_users::ListBlockedGuestUsersError) -> Self {
match err {
crate::operation::list_blocked_guest_users::ListBlockedGuestUsersError::BadRequestError(inner) => Error::BadRequestError(inner),
crate::operation::list_blocked_guest_users::ListBlockedGuestUsersError::ForbiddenError(inner) => Error::ForbiddenError(inner),
crate::operation::list_blocked_guest_users::ListBlockedGuestUsersError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::list_blocked_guest_users::ListBlockedGuestUsersError::RateLimitError(inner) => Error::RateLimitError(inner),
crate::operation::list_blocked_guest_users::ListBlockedGuestUsersError::ResourceNotFoundError(inner) => {
Error::ResourceNotFoundError(inner)
}
crate::operation::list_blocked_guest_users::ListBlockedGuestUsersError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
crate::operation::list_blocked_guest_users::ListBlockedGuestUsersError::ValidationError(inner) => Error::ValidationError(inner),
crate::operation::list_blocked_guest_users::ListBlockedGuestUsersError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_bots::ListBotsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_bots::ListBotsError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_bots::ListBotsError> for Error {
fn from(err: crate::operation::list_bots::ListBotsError) -> Self {
match err {
crate::operation::list_bots::ListBotsError::BadRequestError(inner) => Error::BadRequestError(inner),
crate::operation::list_bots::ListBotsError::ForbiddenError(inner) => Error::ForbiddenError(inner),
crate::operation::list_bots::ListBotsError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::list_bots::ListBotsError::RateLimitError(inner) => Error::RateLimitError(inner),
crate::operation::list_bots::ListBotsError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
crate::operation::list_bots::ListBotsError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
crate::operation::list_bots::ListBotsError::ValidationError(inner) => Error::ValidationError(inner),
crate::operation::list_bots::ListBotsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_devices_for_user::ListDevicesForUserError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_devices_for_user::ListDevicesForUserError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => 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_devices_for_user::ListDevicesForUserError> for Error {
fn from(err: crate::operation::list_devices_for_user::ListDevicesForUserError) -> Self {
match err {
crate::operation::list_devices_for_user::ListDevicesForUserError::BadRequestError(inner) => Error::BadRequestError(inner),
crate::operation::list_devices_for_user::ListDevicesForUserError::ForbiddenError(inner) => Error::ForbiddenError(inner),
crate::operation::list_devices_for_user::ListDevicesForUserError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::list_devices_for_user::ListDevicesForUserError::RateLimitError(inner) => Error::RateLimitError(inner),
crate::operation::list_devices_for_user::ListDevicesForUserError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
crate::operation::list_devices_for_user::ListDevicesForUserError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
crate::operation::list_devices_for_user::ListDevicesForUserError::ValidationError(inner) => Error::ValidationError(inner),
crate::operation::list_devices_for_user::ListDevicesForUserError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_guest_users::ListGuestUsersError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_guest_users::ListGuestUsersError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => 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_guest_users::ListGuestUsersError> for Error {
fn from(err: crate::operation::list_guest_users::ListGuestUsersError) -> Self {
match err {
crate::operation::list_guest_users::ListGuestUsersError::BadRequestError(inner) => Error::BadRequestError(inner),
crate::operation::list_guest_users::ListGuestUsersError::ForbiddenError(inner) => Error::ForbiddenError(inner),
crate::operation::list_guest_users::ListGuestUsersError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::list_guest_users::ListGuestUsersError::RateLimitError(inner) => Error::RateLimitError(inner),
crate::operation::list_guest_users::ListGuestUsersError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
crate::operation::list_guest_users::ListGuestUsersError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
crate::operation::list_guest_users::ListGuestUsersError::ValidationError(inner) => Error::ValidationError(inner),
crate::operation::list_guest_users::ListGuestUsersError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_networks::ListNetworksError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_networks::ListNetworksError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => 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_networks::ListNetworksError> for Error {
fn from(err: crate::operation::list_networks::ListNetworksError) -> Self {
match err {
crate::operation::list_networks::ListNetworksError::BadRequestError(inner) => Error::BadRequestError(inner),
crate::operation::list_networks::ListNetworksError::ForbiddenError(inner) => Error::ForbiddenError(inner),
crate::operation::list_networks::ListNetworksError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::list_networks::ListNetworksError::RateLimitError(inner) => Error::RateLimitError(inner),
crate::operation::list_networks::ListNetworksError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
crate::operation::list_networks::ListNetworksError::ValidationError(inner) => Error::ValidationError(inner),
crate::operation::list_networks::ListNetworksError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_security_groups::ListSecurityGroupsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_security_groups::ListSecurityGroupsError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_security_groups::ListSecurityGroupsError> for Error {
fn from(err: crate::operation::list_security_groups::ListSecurityGroupsError) -> Self {
match err {
crate::operation::list_security_groups::ListSecurityGroupsError::BadRequestError(inner) => Error::BadRequestError(inner),
crate::operation::list_security_groups::ListSecurityGroupsError::ForbiddenError(inner) => Error::ForbiddenError(inner),
crate::operation::list_security_groups::ListSecurityGroupsError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::list_security_groups::ListSecurityGroupsError::RateLimitError(inner) => Error::RateLimitError(inner),
crate::operation::list_security_groups::ListSecurityGroupsError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
crate::operation::list_security_groups::ListSecurityGroupsError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
crate::operation::list_security_groups::ListSecurityGroupsError::ValidationError(inner) => Error::ValidationError(inner),
crate::operation::list_security_groups::ListSecurityGroupsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_security_group_users::ListSecurityGroupUsersError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_security_group_users::ListSecurityGroupUsersError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_security_group_users::ListSecurityGroupUsersError> for Error {
fn from(err: crate::operation::list_security_group_users::ListSecurityGroupUsersError) -> Self {
match err {
crate::operation::list_security_group_users::ListSecurityGroupUsersError::BadRequestError(inner) => Error::BadRequestError(inner),
crate::operation::list_security_group_users::ListSecurityGroupUsersError::ForbiddenError(inner) => Error::ForbiddenError(inner),
crate::operation::list_security_group_users::ListSecurityGroupUsersError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::list_security_group_users::ListSecurityGroupUsersError::RateLimitError(inner) => Error::RateLimitError(inner),
crate::operation::list_security_group_users::ListSecurityGroupUsersError::ResourceNotFoundError(inner) => {
Error::ResourceNotFoundError(inner)
}
crate::operation::list_security_group_users::ListSecurityGroupUsersError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
crate::operation::list_security_group_users::ListSecurityGroupUsersError::ValidationError(inner) => Error::ValidationError(inner),
crate::operation::list_security_group_users::ListSecurityGroupUsersError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_users::ListUsersError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_users::ListUsersError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_users::ListUsersError> for Error {
fn from(err: crate::operation::list_users::ListUsersError) -> Self {
match err {
crate::operation::list_users::ListUsersError::BadRequestError(inner) => Error::BadRequestError(inner),
crate::operation::list_users::ListUsersError::ForbiddenError(inner) => Error::ForbiddenError(inner),
crate::operation::list_users::ListUsersError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::list_users::ListUsersError::RateLimitError(inner) => Error::RateLimitError(inner),
crate::operation::list_users::ListUsersError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
crate::operation::list_users::ListUsersError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
crate::operation::list_users::ListUsersError::ValidationError(inner) => Error::ValidationError(inner),
crate::operation::list_users::ListUsersError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_oidc_config::RegisterOidcConfigError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_oidc_config::RegisterOidcConfigError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::register_oidc_config::RegisterOidcConfigError> for Error {
fn from(err: crate::operation::register_oidc_config::RegisterOidcConfigError) -> Self {
match err {
crate::operation::register_oidc_config::RegisterOidcConfigError::BadRequestError(inner) => Error::BadRequestError(inner),
crate::operation::register_oidc_config::RegisterOidcConfigError::ForbiddenError(inner) => Error::ForbiddenError(inner),
crate::operation::register_oidc_config::RegisterOidcConfigError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::register_oidc_config::RegisterOidcConfigError::RateLimitError(inner) => Error::RateLimitError(inner),
crate::operation::register_oidc_config::RegisterOidcConfigError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
crate::operation::register_oidc_config::RegisterOidcConfigError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
crate::operation::register_oidc_config::RegisterOidcConfigError::ValidationError(inner) => Error::ValidationError(inner),
crate::operation::register_oidc_config::RegisterOidcConfigError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_oidc_config_test::RegisterOidcConfigTestError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_oidc_config_test::RegisterOidcConfigTestError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::register_oidc_config_test::RegisterOidcConfigTestError> for Error {
fn from(err: crate::operation::register_oidc_config_test::RegisterOidcConfigTestError) -> Self {
match err {
crate::operation::register_oidc_config_test::RegisterOidcConfigTestError::BadRequestError(inner) => Error::BadRequestError(inner),
crate::operation::register_oidc_config_test::RegisterOidcConfigTestError::ForbiddenError(inner) => Error::ForbiddenError(inner),
crate::operation::register_oidc_config_test::RegisterOidcConfigTestError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::register_oidc_config_test::RegisterOidcConfigTestError::RateLimitError(inner) => Error::RateLimitError(inner),
crate::operation::register_oidc_config_test::RegisterOidcConfigTestError::ResourceNotFoundError(inner) => {
Error::ResourceNotFoundError(inner)
}
crate::operation::register_oidc_config_test::RegisterOidcConfigTestError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
crate::operation::register_oidc_config_test::RegisterOidcConfigTestError::ValidationError(inner) => Error::ValidationError(inner),
crate::operation::register_oidc_config_test::RegisterOidcConfigTestError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_bot::UpdateBotError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_bot::UpdateBotError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => 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_bot::UpdateBotError> for Error {
fn from(err: crate::operation::update_bot::UpdateBotError) -> Self {
match err {
crate::operation::update_bot::UpdateBotError::BadRequestError(inner) => Error::BadRequestError(inner),
crate::operation::update_bot::UpdateBotError::ForbiddenError(inner) => Error::ForbiddenError(inner),
crate::operation::update_bot::UpdateBotError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::update_bot::UpdateBotError::RateLimitError(inner) => Error::RateLimitError(inner),
crate::operation::update_bot::UpdateBotError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
crate::operation::update_bot::UpdateBotError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
crate::operation::update_bot::UpdateBotError::ValidationError(inner) => Error::ValidationError(inner),
crate::operation::update_bot::UpdateBotError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_data_retention::UpdateDataRetentionError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_data_retention::UpdateDataRetentionError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => 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_data_retention::UpdateDataRetentionError> for Error {
fn from(err: crate::operation::update_data_retention::UpdateDataRetentionError) -> Self {
match err {
crate::operation::update_data_retention::UpdateDataRetentionError::BadRequestError(inner) => Error::BadRequestError(inner),
crate::operation::update_data_retention::UpdateDataRetentionError::ForbiddenError(inner) => Error::ForbiddenError(inner),
crate::operation::update_data_retention::UpdateDataRetentionError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::update_data_retention::UpdateDataRetentionError::RateLimitError(inner) => Error::RateLimitError(inner),
crate::operation::update_data_retention::UpdateDataRetentionError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
crate::operation::update_data_retention::UpdateDataRetentionError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
crate::operation::update_data_retention::UpdateDataRetentionError::ValidationError(inner) => Error::ValidationError(inner),
crate::operation::update_data_retention::UpdateDataRetentionError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_guest_user::UpdateGuestUserError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_guest_user::UpdateGuestUserError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => 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_guest_user::UpdateGuestUserError> for Error {
fn from(err: crate::operation::update_guest_user::UpdateGuestUserError) -> Self {
match err {
crate::operation::update_guest_user::UpdateGuestUserError::BadRequestError(inner) => Error::BadRequestError(inner),
crate::operation::update_guest_user::UpdateGuestUserError::ForbiddenError(inner) => Error::ForbiddenError(inner),
crate::operation::update_guest_user::UpdateGuestUserError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::update_guest_user::UpdateGuestUserError::RateLimitError(inner) => Error::RateLimitError(inner),
crate::operation::update_guest_user::UpdateGuestUserError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
crate::operation::update_guest_user::UpdateGuestUserError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
crate::operation::update_guest_user::UpdateGuestUserError::ValidationError(inner) => Error::ValidationError(inner),
crate::operation::update_guest_user::UpdateGuestUserError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_network::UpdateNetworkError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_network::UpdateNetworkError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => 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_network::UpdateNetworkError> for Error {
fn from(err: crate::operation::update_network::UpdateNetworkError) -> Self {
match err {
crate::operation::update_network::UpdateNetworkError::BadRequestError(inner) => Error::BadRequestError(inner),
crate::operation::update_network::UpdateNetworkError::ForbiddenError(inner) => Error::ForbiddenError(inner),
crate::operation::update_network::UpdateNetworkError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::update_network::UpdateNetworkError::RateLimitError(inner) => Error::RateLimitError(inner),
crate::operation::update_network::UpdateNetworkError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
crate::operation::update_network::UpdateNetworkError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
crate::operation::update_network::UpdateNetworkError::ValidationError(inner) => Error::ValidationError(inner),
crate::operation::update_network::UpdateNetworkError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_network_settings::UpdateNetworkSettingsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_network_settings::UpdateNetworkSettingsError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => 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_network_settings::UpdateNetworkSettingsError> for Error {
fn from(err: crate::operation::update_network_settings::UpdateNetworkSettingsError) -> Self {
match err {
crate::operation::update_network_settings::UpdateNetworkSettingsError::BadRequestError(inner) => Error::BadRequestError(inner),
crate::operation::update_network_settings::UpdateNetworkSettingsError::ForbiddenError(inner) => Error::ForbiddenError(inner),
crate::operation::update_network_settings::UpdateNetworkSettingsError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::update_network_settings::UpdateNetworkSettingsError::RateLimitError(inner) => Error::RateLimitError(inner),
crate::operation::update_network_settings::UpdateNetworkSettingsError::ResourceNotFoundError(inner) => {
Error::ResourceNotFoundError(inner)
}
crate::operation::update_network_settings::UpdateNetworkSettingsError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
crate::operation::update_network_settings::UpdateNetworkSettingsError::ValidationError(inner) => Error::ValidationError(inner),
crate::operation::update_network_settings::UpdateNetworkSettingsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_security_group::UpdateSecurityGroupError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_security_group::UpdateSecurityGroupError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_security_group::UpdateSecurityGroupError> for Error {
fn from(err: crate::operation::update_security_group::UpdateSecurityGroupError) -> Self {
match err {
crate::operation::update_security_group::UpdateSecurityGroupError::BadRequestError(inner) => Error::BadRequestError(inner),
crate::operation::update_security_group::UpdateSecurityGroupError::ForbiddenError(inner) => Error::ForbiddenError(inner),
crate::operation::update_security_group::UpdateSecurityGroupError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::update_security_group::UpdateSecurityGroupError::RateLimitError(inner) => Error::RateLimitError(inner),
crate::operation::update_security_group::UpdateSecurityGroupError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
crate::operation::update_security_group::UpdateSecurityGroupError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
crate::operation::update_security_group::UpdateSecurityGroupError::ValidationError(inner) => Error::ValidationError(inner),
crate::operation::update_security_group::UpdateSecurityGroupError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_user::UpdateUserError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_user::UpdateUserError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_user::UpdateUserError> for Error {
fn from(err: crate::operation::update_user::UpdateUserError) -> Self {
match err {
crate::operation::update_user::UpdateUserError::BadRequestError(inner) => Error::BadRequestError(inner),
crate::operation::update_user::UpdateUserError::ForbiddenError(inner) => Error::ForbiddenError(inner),
crate::operation::update_user::UpdateUserError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::update_user::UpdateUserError::RateLimitError(inner) => Error::RateLimitError(inner),
crate::operation::update_user::UpdateUserError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
crate::operation::update_user::UpdateUserError::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
crate::operation::update_user::UpdateUserError::ValidationError(inner) => Error::ValidationError(inner),
crate::operation::update_user::UpdateUserError::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::BadRequestError(inner) => inner.source(),
Error::ForbiddenError(inner) => inner.source(),
Error::InternalServerError(inner) => inner.source(),
Error::RateLimitError(inner) => inner.source(),
Error::ResourceNotFoundError(inner) => inner.source(),
Error::UnauthorizedError(inner) => inner.source(),
Error::ValidationError(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::BadRequestError(e) => e.request_id(),
Self::ForbiddenError(e) => e.request_id(),
Self::InternalServerError(e) => e.request_id(),
Self::RateLimitError(e) => e.request_id(),
Self::ResourceNotFoundError(e) => e.request_id(),
Self::UnauthorizedError(e) => e.request_id(),
Self::ValidationError(e) => e.request_id(),
Self::Unhandled(e) => e.meta.request_id(),
}
}
}