#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum Error {
ConcurrentModificationException(crate::types::error::ConcurrentModificationException),
DeveloperUserAlreadyRegisteredException(
crate::types::error::DeveloperUserAlreadyRegisteredException,
),
ExternalServiceException(crate::types::error::ExternalServiceException),
InternalErrorException(crate::types::error::InternalErrorException),
InvalidIdentityPoolConfigurationException(
crate::types::error::InvalidIdentityPoolConfigurationException,
),
InvalidParameterException(crate::types::error::InvalidParameterException),
LimitExceededException(crate::types::error::LimitExceededException),
NotAuthorizedException(crate::types::error::NotAuthorizedException),
ResourceConflictException(crate::types::error::ResourceConflictException),
ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
TooManyRequestsException(crate::types::error::TooManyRequestsException),
Unhandled(aws_smithy_types::error::Unhandled),
}
impl std::fmt::Display for Error {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
Error::ConcurrentModificationException(inner) => inner.fmt(f),
Error::DeveloperUserAlreadyRegisteredException(inner) => inner.fmt(f),
Error::ExternalServiceException(inner) => inner.fmt(f),
Error::InternalErrorException(inner) => inner.fmt(f),
Error::InvalidIdentityPoolConfigurationException(inner) => inner.fmt(f),
Error::InvalidParameterException(inner) => inner.fmt(f),
Error::LimitExceededException(inner) => inner.fmt(f),
Error::NotAuthorizedException(inner) => inner.fmt(f),
Error::ResourceConflictException(inner) => inner.fmt(f),
Error::ResourceNotFoundException(inner) => inner.fmt(f),
Error::TooManyRequestsException(inner) => inner.fmt(f),
Error::Unhandled(inner) => inner.fmt(f),
}
}
}
impl<R>
From<
aws_smithy_http::result::SdkError<
crate::operation::create_identity_pool::CreateIdentityPoolError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<
crate::operation::create_identity_pool::CreateIdentityPoolError,
R,
>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
aws_smithy_types::error::Unhandled::builder()
.meta(
aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::create_identity_pool::CreateIdentityPoolError> for Error {
fn from(err: crate::operation::create_identity_pool::CreateIdentityPoolError) -> Self {
match err {
crate::operation::create_identity_pool::CreateIdentityPoolError::InternalErrorException(inner) => Error::InternalErrorException(inner),
crate::operation::create_identity_pool::CreateIdentityPoolError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::create_identity_pool::CreateIdentityPoolError::LimitExceededException(inner) => Error::LimitExceededException(inner),
crate::operation::create_identity_pool::CreateIdentityPoolError::NotAuthorizedException(inner) => Error::NotAuthorizedException(inner),
crate::operation::create_identity_pool::CreateIdentityPoolError::ResourceConflictException(inner) => Error::ResourceConflictException(inner),
crate::operation::create_identity_pool::CreateIdentityPoolError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
crate::operation::create_identity_pool::CreateIdentityPoolError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
aws_smithy_http::result::SdkError<
crate::operation::delete_identities::DeleteIdentitiesError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<
crate::operation::delete_identities::DeleteIdentitiesError,
R,
>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
aws_smithy_types::error::Unhandled::builder()
.meta(
aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::delete_identities::DeleteIdentitiesError> for Error {
fn from(err: crate::operation::delete_identities::DeleteIdentitiesError) -> Self {
match err {
crate::operation::delete_identities::DeleteIdentitiesError::InternalErrorException(inner) => Error::InternalErrorException(inner),
crate::operation::delete_identities::DeleteIdentitiesError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::delete_identities::DeleteIdentitiesError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
crate::operation::delete_identities::DeleteIdentitiesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
aws_smithy_http::result::SdkError<
crate::operation::delete_identity_pool::DeleteIdentityPoolError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<
crate::operation::delete_identity_pool::DeleteIdentityPoolError,
R,
>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
aws_smithy_types::error::Unhandled::builder()
.meta(
aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::delete_identity_pool::DeleteIdentityPoolError> for Error {
fn from(err: crate::operation::delete_identity_pool::DeleteIdentityPoolError) -> Self {
match err {
crate::operation::delete_identity_pool::DeleteIdentityPoolError::InternalErrorException(inner) => Error::InternalErrorException(inner),
crate::operation::delete_identity_pool::DeleteIdentityPoolError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::delete_identity_pool::DeleteIdentityPoolError::NotAuthorizedException(inner) => Error::NotAuthorizedException(inner),
crate::operation::delete_identity_pool::DeleteIdentityPoolError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::delete_identity_pool::DeleteIdentityPoolError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
crate::operation::delete_identity_pool::DeleteIdentityPoolError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
aws_smithy_http::result::SdkError<
crate::operation::describe_identity::DescribeIdentityError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<
crate::operation::describe_identity::DescribeIdentityError,
R,
>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
aws_smithy_types::error::Unhandled::builder()
.meta(
aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::describe_identity::DescribeIdentityError> for Error {
fn from(err: crate::operation::describe_identity::DescribeIdentityError) -> Self {
match err {
crate::operation::describe_identity::DescribeIdentityError::InternalErrorException(inner) => Error::InternalErrorException(inner),
crate::operation::describe_identity::DescribeIdentityError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::describe_identity::DescribeIdentityError::NotAuthorizedException(inner) => Error::NotAuthorizedException(inner),
crate::operation::describe_identity::DescribeIdentityError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::describe_identity::DescribeIdentityError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
crate::operation::describe_identity::DescribeIdentityError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
aws_smithy_http::result::SdkError<
crate::operation::describe_identity_pool::DescribeIdentityPoolError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<
crate::operation::describe_identity_pool::DescribeIdentityPoolError,
R,
>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
aws_smithy_types::error::Unhandled::builder()
.meta(
aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::describe_identity_pool::DescribeIdentityPoolError> for Error {
fn from(err: crate::operation::describe_identity_pool::DescribeIdentityPoolError) -> Self {
match err {
crate::operation::describe_identity_pool::DescribeIdentityPoolError::InternalErrorException(inner) => Error::InternalErrorException(inner),
crate::operation::describe_identity_pool::DescribeIdentityPoolError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::describe_identity_pool::DescribeIdentityPoolError::NotAuthorizedException(inner) => Error::NotAuthorizedException(inner),
crate::operation::describe_identity_pool::DescribeIdentityPoolError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::describe_identity_pool::DescribeIdentityPoolError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
crate::operation::describe_identity_pool::DescribeIdentityPoolError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
aws_smithy_http::result::SdkError<
crate::operation::get_credentials_for_identity::GetCredentialsForIdentityError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<
crate::operation::get_credentials_for_identity::GetCredentialsForIdentityError,
R,
>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
aws_smithy_types::error::Unhandled::builder()
.meta(
aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::get_credentials_for_identity::GetCredentialsForIdentityError>
for Error
{
fn from(
err: crate::operation::get_credentials_for_identity::GetCredentialsForIdentityError,
) -> Self {
match err {
crate::operation::get_credentials_for_identity::GetCredentialsForIdentityError::ExternalServiceException(inner) => Error::ExternalServiceException(inner),
crate::operation::get_credentials_for_identity::GetCredentialsForIdentityError::InternalErrorException(inner) => Error::InternalErrorException(inner),
crate::operation::get_credentials_for_identity::GetCredentialsForIdentityError::InvalidIdentityPoolConfigurationException(inner) => Error::InvalidIdentityPoolConfigurationException(inner),
crate::operation::get_credentials_for_identity::GetCredentialsForIdentityError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::get_credentials_for_identity::GetCredentialsForIdentityError::NotAuthorizedException(inner) => Error::NotAuthorizedException(inner),
crate::operation::get_credentials_for_identity::GetCredentialsForIdentityError::ResourceConflictException(inner) => Error::ResourceConflictException(inner),
crate::operation::get_credentials_for_identity::GetCredentialsForIdentityError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::get_credentials_for_identity::GetCredentialsForIdentityError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
crate::operation::get_credentials_for_identity::GetCredentialsForIdentityError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::operation::get_id::GetIdError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::operation::get_id::GetIdError, R>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
aws_smithy_types::error::Unhandled::builder()
.meta(
aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::get_id::GetIdError> for Error {
fn from(err: crate::operation::get_id::GetIdError) -> Self {
match err {
crate::operation::get_id::GetIdError::ExternalServiceException(inner) => {
Error::ExternalServiceException(inner)
}
crate::operation::get_id::GetIdError::InternalErrorException(inner) => {
Error::InternalErrorException(inner)
}
crate::operation::get_id::GetIdError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::get_id::GetIdError::LimitExceededException(inner) => {
Error::LimitExceededException(inner)
}
crate::operation::get_id::GetIdError::NotAuthorizedException(inner) => {
Error::NotAuthorizedException(inner)
}
crate::operation::get_id::GetIdError::ResourceConflictException(inner) => {
Error::ResourceConflictException(inner)
}
crate::operation::get_id::GetIdError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::get_id::GetIdError::TooManyRequestsException(inner) => {
Error::TooManyRequestsException(inner)
}
crate::operation::get_id::GetIdError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
aws_smithy_http::result::SdkError<
crate::operation::get_identity_pool_roles::GetIdentityPoolRolesError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<
crate::operation::get_identity_pool_roles::GetIdentityPoolRolesError,
R,
>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
aws_smithy_types::error::Unhandled::builder()
.meta(
aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::get_identity_pool_roles::GetIdentityPoolRolesError> for Error {
fn from(err: crate::operation::get_identity_pool_roles::GetIdentityPoolRolesError) -> Self {
match err {
crate::operation::get_identity_pool_roles::GetIdentityPoolRolesError::InternalErrorException(inner) => Error::InternalErrorException(inner),
crate::operation::get_identity_pool_roles::GetIdentityPoolRolesError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::get_identity_pool_roles::GetIdentityPoolRolesError::NotAuthorizedException(inner) => Error::NotAuthorizedException(inner),
crate::operation::get_identity_pool_roles::GetIdentityPoolRolesError::ResourceConflictException(inner) => Error::ResourceConflictException(inner),
crate::operation::get_identity_pool_roles::GetIdentityPoolRolesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::get_identity_pool_roles::GetIdentityPoolRolesError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
crate::operation::get_identity_pool_roles::GetIdentityPoolRolesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
aws_smithy_http::result::SdkError<
crate::operation::get_open_id_token::GetOpenIdTokenError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<
crate::operation::get_open_id_token::GetOpenIdTokenError,
R,
>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
aws_smithy_types::error::Unhandled::builder()
.meta(
aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::get_open_id_token::GetOpenIdTokenError> for Error {
fn from(err: crate::operation::get_open_id_token::GetOpenIdTokenError) -> Self {
match err {
crate::operation::get_open_id_token::GetOpenIdTokenError::ExternalServiceException(
inner,
) => Error::ExternalServiceException(inner),
crate::operation::get_open_id_token::GetOpenIdTokenError::InternalErrorException(
inner,
) => Error::InternalErrorException(inner),
crate::operation::get_open_id_token::GetOpenIdTokenError::InvalidParameterException(
inner,
) => Error::InvalidParameterException(inner),
crate::operation::get_open_id_token::GetOpenIdTokenError::NotAuthorizedException(
inner,
) => Error::NotAuthorizedException(inner),
crate::operation::get_open_id_token::GetOpenIdTokenError::ResourceConflictException(
inner,
) => Error::ResourceConflictException(inner),
crate::operation::get_open_id_token::GetOpenIdTokenError::ResourceNotFoundException(
inner,
) => Error::ResourceNotFoundException(inner),
crate::operation::get_open_id_token::GetOpenIdTokenError::TooManyRequestsException(
inner,
) => Error::TooManyRequestsException(inner),
crate::operation::get_open_id_token::GetOpenIdTokenError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::operation::get_open_id_token_for_developer_identity::GetOpenIdTokenForDeveloperIdentityError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: aws_smithy_http::result::SdkError<crate::operation::get_open_id_token_for_developer_identity::GetOpenIdTokenForDeveloperIdentityError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
aws_smithy_types::error::Unhandled::builder()
.meta(aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build()
),
}
}
}
impl From<crate::operation::get_open_id_token_for_developer_identity::GetOpenIdTokenForDeveloperIdentityError> for Error {
fn from(err: crate::operation::get_open_id_token_for_developer_identity::GetOpenIdTokenForDeveloperIdentityError) -> Self {
match err {
crate::operation::get_open_id_token_for_developer_identity::GetOpenIdTokenForDeveloperIdentityError::DeveloperUserAlreadyRegisteredException(inner) => Error::DeveloperUserAlreadyRegisteredException(inner),
crate::operation::get_open_id_token_for_developer_identity::GetOpenIdTokenForDeveloperIdentityError::InternalErrorException(inner) => Error::InternalErrorException(inner),
crate::operation::get_open_id_token_for_developer_identity::GetOpenIdTokenForDeveloperIdentityError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::get_open_id_token_for_developer_identity::GetOpenIdTokenForDeveloperIdentityError::NotAuthorizedException(inner) => Error::NotAuthorizedException(inner),
crate::operation::get_open_id_token_for_developer_identity::GetOpenIdTokenForDeveloperIdentityError::ResourceConflictException(inner) => Error::ResourceConflictException(inner),
crate::operation::get_open_id_token_for_developer_identity::GetOpenIdTokenForDeveloperIdentityError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::get_open_id_token_for_developer_identity::GetOpenIdTokenForDeveloperIdentityError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
crate::operation::get_open_id_token_for_developer_identity::GetOpenIdTokenForDeveloperIdentityError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
aws_smithy_http::result::SdkError<
crate::operation::get_principal_tag_attribute_map::GetPrincipalTagAttributeMapError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<
crate::operation::get_principal_tag_attribute_map::GetPrincipalTagAttributeMapError,
R,
>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
aws_smithy_types::error::Unhandled::builder()
.meta(
aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::get_principal_tag_attribute_map::GetPrincipalTagAttributeMapError>
for Error
{
fn from(
err: crate::operation::get_principal_tag_attribute_map::GetPrincipalTagAttributeMapError,
) -> Self {
match err {
crate::operation::get_principal_tag_attribute_map::GetPrincipalTagAttributeMapError::InternalErrorException(inner) => Error::InternalErrorException(inner),
crate::operation::get_principal_tag_attribute_map::GetPrincipalTagAttributeMapError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::get_principal_tag_attribute_map::GetPrincipalTagAttributeMapError::NotAuthorizedException(inner) => Error::NotAuthorizedException(inner),
crate::operation::get_principal_tag_attribute_map::GetPrincipalTagAttributeMapError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::get_principal_tag_attribute_map::GetPrincipalTagAttributeMapError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
crate::operation::get_principal_tag_attribute_map::GetPrincipalTagAttributeMapError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
aws_smithy_http::result::SdkError<
crate::operation::list_identities::ListIdentitiesError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<
crate::operation::list_identities::ListIdentitiesError,
R,
>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
aws_smithy_types::error::Unhandled::builder()
.meta(
aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::list_identities::ListIdentitiesError> for Error {
fn from(err: crate::operation::list_identities::ListIdentitiesError) -> Self {
match err {
crate::operation::list_identities::ListIdentitiesError::InternalErrorException(
inner,
) => Error::InternalErrorException(inner),
crate::operation::list_identities::ListIdentitiesError::InvalidParameterException(
inner,
) => Error::InvalidParameterException(inner),
crate::operation::list_identities::ListIdentitiesError::NotAuthorizedException(
inner,
) => Error::NotAuthorizedException(inner),
crate::operation::list_identities::ListIdentitiesError::ResourceNotFoundException(
inner,
) => Error::ResourceNotFoundException(inner),
crate::operation::list_identities::ListIdentitiesError::TooManyRequestsException(
inner,
) => Error::TooManyRequestsException(inner),
crate::operation::list_identities::ListIdentitiesError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R>
From<
aws_smithy_http::result::SdkError<
crate::operation::list_identity_pools::ListIdentityPoolsError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<
crate::operation::list_identity_pools::ListIdentityPoolsError,
R,
>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
aws_smithy_types::error::Unhandled::builder()
.meta(
aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::list_identity_pools::ListIdentityPoolsError> for Error {
fn from(err: crate::operation::list_identity_pools::ListIdentityPoolsError) -> Self {
match err {
crate::operation::list_identity_pools::ListIdentityPoolsError::InternalErrorException(inner) => Error::InternalErrorException(inner),
crate::operation::list_identity_pools::ListIdentityPoolsError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::list_identity_pools::ListIdentityPoolsError::NotAuthorizedException(inner) => Error::NotAuthorizedException(inner),
crate::operation::list_identity_pools::ListIdentityPoolsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::list_identity_pools::ListIdentityPoolsError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
crate::operation::list_identity_pools::ListIdentityPoolsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
aws_smithy_http::result::SdkError<
crate::operation::list_tags_for_resource::ListTagsForResourceError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<
crate::operation::list_tags_for_resource::ListTagsForResourceError,
R,
>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
aws_smithy_types::error::Unhandled::builder()
.meta(
aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
match err {
crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalErrorException(inner) => Error::InternalErrorException(inner),
crate::operation::list_tags_for_resource::ListTagsForResourceError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::list_tags_for_resource::ListTagsForResourceError::NotAuthorizedException(inner) => Error::NotAuthorizedException(inner),
crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::list_tags_for_resource::ListTagsForResourceError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
aws_smithy_http::result::SdkError<
crate::operation::lookup_developer_identity::LookupDeveloperIdentityError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<
crate::operation::lookup_developer_identity::LookupDeveloperIdentityError,
R,
>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
aws_smithy_types::error::Unhandled::builder()
.meta(
aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::lookup_developer_identity::LookupDeveloperIdentityError> for Error {
fn from(
err: crate::operation::lookup_developer_identity::LookupDeveloperIdentityError,
) -> Self {
match err {
crate::operation::lookup_developer_identity::LookupDeveloperIdentityError::InternalErrorException(inner) => Error::InternalErrorException(inner),
crate::operation::lookup_developer_identity::LookupDeveloperIdentityError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::lookup_developer_identity::LookupDeveloperIdentityError::NotAuthorizedException(inner) => Error::NotAuthorizedException(inner),
crate::operation::lookup_developer_identity::LookupDeveloperIdentityError::ResourceConflictException(inner) => Error::ResourceConflictException(inner),
crate::operation::lookup_developer_identity::LookupDeveloperIdentityError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::lookup_developer_identity::LookupDeveloperIdentityError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
crate::operation::lookup_developer_identity::LookupDeveloperIdentityError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
aws_smithy_http::result::SdkError<
crate::operation::merge_developer_identities::MergeDeveloperIdentitiesError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<
crate::operation::merge_developer_identities::MergeDeveloperIdentitiesError,
R,
>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
aws_smithy_types::error::Unhandled::builder()
.meta(
aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::merge_developer_identities::MergeDeveloperIdentitiesError> for Error {
fn from(
err: crate::operation::merge_developer_identities::MergeDeveloperIdentitiesError,
) -> Self {
match err {
crate::operation::merge_developer_identities::MergeDeveloperIdentitiesError::InternalErrorException(inner) => Error::InternalErrorException(inner),
crate::operation::merge_developer_identities::MergeDeveloperIdentitiesError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::merge_developer_identities::MergeDeveloperIdentitiesError::NotAuthorizedException(inner) => Error::NotAuthorizedException(inner),
crate::operation::merge_developer_identities::MergeDeveloperIdentitiesError::ResourceConflictException(inner) => Error::ResourceConflictException(inner),
crate::operation::merge_developer_identities::MergeDeveloperIdentitiesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::merge_developer_identities::MergeDeveloperIdentitiesError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
crate::operation::merge_developer_identities::MergeDeveloperIdentitiesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
aws_smithy_http::result::SdkError<
crate::operation::set_identity_pool_roles::SetIdentityPoolRolesError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<
crate::operation::set_identity_pool_roles::SetIdentityPoolRolesError,
R,
>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
aws_smithy_types::error::Unhandled::builder()
.meta(
aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::set_identity_pool_roles::SetIdentityPoolRolesError> for Error {
fn from(err: crate::operation::set_identity_pool_roles::SetIdentityPoolRolesError) -> Self {
match err {
crate::operation::set_identity_pool_roles::SetIdentityPoolRolesError::ConcurrentModificationException(inner) => Error::ConcurrentModificationException(inner),
crate::operation::set_identity_pool_roles::SetIdentityPoolRolesError::InternalErrorException(inner) => Error::InternalErrorException(inner),
crate::operation::set_identity_pool_roles::SetIdentityPoolRolesError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::set_identity_pool_roles::SetIdentityPoolRolesError::NotAuthorizedException(inner) => Error::NotAuthorizedException(inner),
crate::operation::set_identity_pool_roles::SetIdentityPoolRolesError::ResourceConflictException(inner) => Error::ResourceConflictException(inner),
crate::operation::set_identity_pool_roles::SetIdentityPoolRolesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::set_identity_pool_roles::SetIdentityPoolRolesError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
crate::operation::set_identity_pool_roles::SetIdentityPoolRolesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
aws_smithy_http::result::SdkError<
crate::operation::set_principal_tag_attribute_map::SetPrincipalTagAttributeMapError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<
crate::operation::set_principal_tag_attribute_map::SetPrincipalTagAttributeMapError,
R,
>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
aws_smithy_types::error::Unhandled::builder()
.meta(
aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::set_principal_tag_attribute_map::SetPrincipalTagAttributeMapError>
for Error
{
fn from(
err: crate::operation::set_principal_tag_attribute_map::SetPrincipalTagAttributeMapError,
) -> Self {
match err {
crate::operation::set_principal_tag_attribute_map::SetPrincipalTagAttributeMapError::InternalErrorException(inner) => Error::InternalErrorException(inner),
crate::operation::set_principal_tag_attribute_map::SetPrincipalTagAttributeMapError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::set_principal_tag_attribute_map::SetPrincipalTagAttributeMapError::NotAuthorizedException(inner) => Error::NotAuthorizedException(inner),
crate::operation::set_principal_tag_attribute_map::SetPrincipalTagAttributeMapError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::set_principal_tag_attribute_map::SetPrincipalTagAttributeMapError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
crate::operation::set_principal_tag_attribute_map::SetPrincipalTagAttributeMapError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::operation::tag_resource::TagResourceError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::operation::tag_resource::TagResourceError, R>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
aws_smithy_types::error::Unhandled::builder()
.meta(
aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::tag_resource::TagResourceError> for Error {
fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
match err {
crate::operation::tag_resource::TagResourceError::InternalErrorException(inner) => {
Error::InternalErrorException(inner)
}
crate::operation::tag_resource::TagResourceError::InvalidParameterException(inner) => {
Error::InvalidParameterException(inner)
}
crate::operation::tag_resource::TagResourceError::NotAuthorizedException(inner) => {
Error::NotAuthorizedException(inner)
}
crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::tag_resource::TagResourceError::TooManyRequestsException(inner) => {
Error::TooManyRequestsException(inner)
}
crate::operation::tag_resource::TagResourceError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R>
From<
aws_smithy_http::result::SdkError<
crate::operation::unlink_developer_identity::UnlinkDeveloperIdentityError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<
crate::operation::unlink_developer_identity::UnlinkDeveloperIdentityError,
R,
>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
aws_smithy_types::error::Unhandled::builder()
.meta(
aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::unlink_developer_identity::UnlinkDeveloperIdentityError> for Error {
fn from(
err: crate::operation::unlink_developer_identity::UnlinkDeveloperIdentityError,
) -> Self {
match err {
crate::operation::unlink_developer_identity::UnlinkDeveloperIdentityError::InternalErrorException(inner) => Error::InternalErrorException(inner),
crate::operation::unlink_developer_identity::UnlinkDeveloperIdentityError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::unlink_developer_identity::UnlinkDeveloperIdentityError::NotAuthorizedException(inner) => Error::NotAuthorizedException(inner),
crate::operation::unlink_developer_identity::UnlinkDeveloperIdentityError::ResourceConflictException(inner) => Error::ResourceConflictException(inner),
crate::operation::unlink_developer_identity::UnlinkDeveloperIdentityError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::unlink_developer_identity::UnlinkDeveloperIdentityError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
crate::operation::unlink_developer_identity::UnlinkDeveloperIdentityError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
aws_smithy_http::result::SdkError<
crate::operation::unlink_identity::UnlinkIdentityError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<
crate::operation::unlink_identity::UnlinkIdentityError,
R,
>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
aws_smithy_types::error::Unhandled::builder()
.meta(
aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::unlink_identity::UnlinkIdentityError> for Error {
fn from(err: crate::operation::unlink_identity::UnlinkIdentityError) -> Self {
match err {
crate::operation::unlink_identity::UnlinkIdentityError::ExternalServiceException(
inner,
) => Error::ExternalServiceException(inner),
crate::operation::unlink_identity::UnlinkIdentityError::InternalErrorException(
inner,
) => Error::InternalErrorException(inner),
crate::operation::unlink_identity::UnlinkIdentityError::InvalidParameterException(
inner,
) => Error::InvalidParameterException(inner),
crate::operation::unlink_identity::UnlinkIdentityError::NotAuthorizedException(
inner,
) => Error::NotAuthorizedException(inner),
crate::operation::unlink_identity::UnlinkIdentityError::ResourceConflictException(
inner,
) => Error::ResourceConflictException(inner),
crate::operation::unlink_identity::UnlinkIdentityError::ResourceNotFoundException(
inner,
) => Error::ResourceNotFoundException(inner),
crate::operation::unlink_identity::UnlinkIdentityError::TooManyRequestsException(
inner,
) => Error::TooManyRequestsException(inner),
crate::operation::unlink_identity::UnlinkIdentityError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R>
From<aws_smithy_http::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<
crate::operation::untag_resource::UntagResourceError,
R,
>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
aws_smithy_types::error::Unhandled::builder()
.meta(
aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::untag_resource::UntagResourceError> for Error {
fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
match err {
crate::operation::untag_resource::UntagResourceError::InternalErrorException(inner) => {
Error::InternalErrorException(inner)
}
crate::operation::untag_resource::UntagResourceError::InvalidParameterException(
inner,
) => Error::InvalidParameterException(inner),
crate::operation::untag_resource::UntagResourceError::NotAuthorizedException(inner) => {
Error::NotAuthorizedException(inner)
}
crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(
inner,
) => Error::ResourceNotFoundException(inner),
crate::operation::untag_resource::UntagResourceError::TooManyRequestsException(
inner,
) => Error::TooManyRequestsException(inner),
crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R>
From<
aws_smithy_http::result::SdkError<
crate::operation::update_identity_pool::UpdateIdentityPoolError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<
crate::operation::update_identity_pool::UpdateIdentityPoolError,
R,
>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
aws_smithy_types::error::Unhandled::builder()
.meta(
aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::update_identity_pool::UpdateIdentityPoolError> for Error {
fn from(err: crate::operation::update_identity_pool::UpdateIdentityPoolError) -> Self {
match err {
crate::operation::update_identity_pool::UpdateIdentityPoolError::ConcurrentModificationException(inner) => Error::ConcurrentModificationException(inner),
crate::operation::update_identity_pool::UpdateIdentityPoolError::InternalErrorException(inner) => Error::InternalErrorException(inner),
crate::operation::update_identity_pool::UpdateIdentityPoolError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
crate::operation::update_identity_pool::UpdateIdentityPoolError::LimitExceededException(inner) => Error::LimitExceededException(inner),
crate::operation::update_identity_pool::UpdateIdentityPoolError::NotAuthorizedException(inner) => Error::NotAuthorizedException(inner),
crate::operation::update_identity_pool::UpdateIdentityPoolError::ResourceConflictException(inner) => Error::ResourceConflictException(inner),
crate::operation::update_identity_pool::UpdateIdentityPoolError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::update_identity_pool::UpdateIdentityPoolError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
crate::operation::update_identity_pool::UpdateIdentityPoolError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl std::error::Error for Error {}
impl aws_http::request_id::RequestId for Error {
fn request_id(&self) -> Option<&str> {
match self {
Self::ConcurrentModificationException(e) => e.request_id(),
Self::DeveloperUserAlreadyRegisteredException(e) => e.request_id(),
Self::ExternalServiceException(e) => e.request_id(),
Self::InternalErrorException(e) => e.request_id(),
Self::InvalidIdentityPoolConfigurationException(e) => e.request_id(),
Self::InvalidParameterException(e) => e.request_id(),
Self::LimitExceededException(e) => e.request_id(),
Self::NotAuthorizedException(e) => e.request_id(),
Self::ResourceConflictException(e) => e.request_id(),
Self::ResourceNotFoundException(e) => e.request_id(),
Self::TooManyRequestsException(e) => e.request_id(),
Self::Unhandled(e) => e.request_id(),
}
}
}