#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateIdentityPoolError {
pub kind: UpdateIdentityPoolErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for UpdateIdentityPoolError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: UpdateIdentityPoolErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateIdentityPoolErrorKind {
ConcurrentModificationException(crate::error::ConcurrentModificationException),
InternalErrorException(crate::error::InternalErrorException),
InvalidParameterException(crate::error::InvalidParameterException),
LimitExceededException(crate::error::LimitExceededException),
NotAuthorizedException(crate::error::NotAuthorizedException),
ResourceConflictException(crate::error::ResourceConflictException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
TooManyRequestsException(crate::error::TooManyRequestsException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for UpdateIdentityPoolError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateIdentityPoolErrorKind::ConcurrentModificationException(_inner) => _inner.fmt(f),
UpdateIdentityPoolErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
UpdateIdentityPoolErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
UpdateIdentityPoolErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
UpdateIdentityPoolErrorKind::NotAuthorizedException(_inner) => _inner.fmt(f),
UpdateIdentityPoolErrorKind::ResourceConflictException(_inner) => _inner.fmt(f),
UpdateIdentityPoolErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
UpdateIdentityPoolErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f),
UpdateIdentityPoolErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateIdentityPoolError {
fn code(&self) -> Option<&str> {
UpdateIdentityPoolError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateIdentityPoolError {
pub fn new(kind: UpdateIdentityPoolErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: UpdateIdentityPoolErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateIdentityPoolErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_concurrent_modification_exception(&self) -> bool {
matches!(
&self.kind,
UpdateIdentityPoolErrorKind::ConcurrentModificationException(_)
)
}
pub fn is_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
UpdateIdentityPoolErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
UpdateIdentityPoolErrorKind::InvalidParameterException(_)
)
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
UpdateIdentityPoolErrorKind::LimitExceededException(_)
)
}
pub fn is_not_authorized_exception(&self) -> bool {
matches!(
&self.kind,
UpdateIdentityPoolErrorKind::NotAuthorizedException(_)
)
}
pub fn is_resource_conflict_exception(&self) -> bool {
matches!(
&self.kind,
UpdateIdentityPoolErrorKind::ResourceConflictException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
UpdateIdentityPoolErrorKind::ResourceNotFoundException(_)
)
}
pub fn is_too_many_requests_exception(&self) -> bool {
matches!(
&self.kind,
UpdateIdentityPoolErrorKind::TooManyRequestsException(_)
)
}
}
impl std::error::Error for UpdateIdentityPoolError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateIdentityPoolErrorKind::ConcurrentModificationException(_inner) => Some(_inner),
UpdateIdentityPoolErrorKind::InternalErrorException(_inner) => Some(_inner),
UpdateIdentityPoolErrorKind::InvalidParameterException(_inner) => Some(_inner),
UpdateIdentityPoolErrorKind::LimitExceededException(_inner) => Some(_inner),
UpdateIdentityPoolErrorKind::NotAuthorizedException(_inner) => Some(_inner),
UpdateIdentityPoolErrorKind::ResourceConflictException(_inner) => Some(_inner),
UpdateIdentityPoolErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
UpdateIdentityPoolErrorKind::TooManyRequestsException(_inner) => Some(_inner),
UpdateIdentityPoolErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct TooManyRequestsException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl TooManyRequestsException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManyRequestsException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TooManyRequestsException")?;
if let Some(inner_1) = &self.message {
{
write!(f, ": {}", inner_1)?;
}
}
Ok(())
}
}
impl std::error::Error for TooManyRequestsException {}
pub mod too_many_requests_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::TooManyRequestsException {
crate::error::TooManyRequestsException {
message: self.message,
}
}
}
}
impl TooManyRequestsException {
pub fn builder() -> crate::error::too_many_requests_exception::Builder {
crate::error::too_many_requests_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ResourceNotFoundException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl ResourceNotFoundException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ResourceNotFoundException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ResourceNotFoundException")?;
if let Some(inner_2) = &self.message {
{
write!(f, ": {}", inner_2)?;
}
}
Ok(())
}
}
impl std::error::Error for ResourceNotFoundException {}
pub mod resource_not_found_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::ResourceNotFoundException {
crate::error::ResourceNotFoundException {
message: self.message,
}
}
}
}
impl ResourceNotFoundException {
pub fn builder() -> crate::error::resource_not_found_exception::Builder {
crate::error::resource_not_found_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ResourceConflictException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl ResourceConflictException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ResourceConflictException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ResourceConflictException")?;
if let Some(inner_3) = &self.message {
{
write!(f, ": {}", inner_3)?;
}
}
Ok(())
}
}
impl std::error::Error for ResourceConflictException {}
pub mod resource_conflict_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::ResourceConflictException {
crate::error::ResourceConflictException {
message: self.message,
}
}
}
}
impl ResourceConflictException {
pub fn builder() -> crate::error::resource_conflict_exception::Builder {
crate::error::resource_conflict_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct NotAuthorizedException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl NotAuthorizedException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for NotAuthorizedException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "NotAuthorizedException")?;
if let Some(inner_4) = &self.message {
{
write!(f, ": {}", inner_4)?;
}
}
Ok(())
}
}
impl std::error::Error for NotAuthorizedException {}
pub mod not_authorized_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::NotAuthorizedException {
crate::error::NotAuthorizedException {
message: self.message,
}
}
}
}
impl NotAuthorizedException {
pub fn builder() -> crate::error::not_authorized_exception::Builder {
crate::error::not_authorized_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct LimitExceededException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl LimitExceededException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for LimitExceededException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "LimitExceededException")?;
if let Some(inner_5) = &self.message {
{
write!(f, ": {}", inner_5)?;
}
}
Ok(())
}
}
impl std::error::Error for LimitExceededException {}
pub mod limit_exceeded_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::LimitExceededException {
crate::error::LimitExceededException {
message: self.message,
}
}
}
}
impl LimitExceededException {
pub fn builder() -> crate::error::limit_exceeded_exception::Builder {
crate::error::limit_exceeded_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidParameterException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidParameterException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidParameterException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidParameterException")?;
if let Some(inner_6) = &self.message {
{
write!(f, ": {}", inner_6)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidParameterException {}
pub mod invalid_parameter_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidParameterException {
crate::error::InvalidParameterException {
message: self.message,
}
}
}
}
impl InvalidParameterException {
pub fn builder() -> crate::error::invalid_parameter_exception::Builder {
crate::error::invalid_parameter_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InternalErrorException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InternalErrorException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InternalErrorException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InternalErrorException")?;
if let Some(inner_7) = &self.message {
{
write!(f, ": {}", inner_7)?;
}
}
Ok(())
}
}
impl std::error::Error for InternalErrorException {}
pub mod internal_error_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InternalErrorException {
crate::error::InternalErrorException {
message: self.message,
}
}
}
}
impl InternalErrorException {
pub fn builder() -> crate::error::internal_error_exception::Builder {
crate::error::internal_error_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ConcurrentModificationException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl ConcurrentModificationException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ConcurrentModificationException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ConcurrentModificationException")?;
if let Some(inner_8) = &self.message {
{
write!(f, ": {}", inner_8)?;
}
}
Ok(())
}
}
impl std::error::Error for ConcurrentModificationException {}
pub mod concurrent_modification_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::ConcurrentModificationException {
crate::error::ConcurrentModificationException {
message: self.message,
}
}
}
}
impl ConcurrentModificationException {
pub fn builder() -> crate::error::concurrent_modification_exception::Builder {
crate::error::concurrent_modification_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UntagResourceError {
pub kind: UntagResourceErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for UntagResourceError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: UntagResourceErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UntagResourceErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidParameterException(crate::error::InvalidParameterException),
NotAuthorizedException(crate::error::NotAuthorizedException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
TooManyRequestsException(crate::error::TooManyRequestsException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for UntagResourceError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UntagResourceErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
UntagResourceErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
UntagResourceErrorKind::NotAuthorizedException(_inner) => _inner.fmt(f),
UntagResourceErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
UntagResourceErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f),
UntagResourceErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UntagResourceError {
fn code(&self) -> Option<&str> {
UntagResourceError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UntagResourceError {
pub fn new(kind: UntagResourceErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: UntagResourceErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UntagResourceErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
UntagResourceErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
UntagResourceErrorKind::InvalidParameterException(_)
)
}
pub fn is_not_authorized_exception(&self) -> bool {
matches!(
&self.kind,
UntagResourceErrorKind::NotAuthorizedException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
UntagResourceErrorKind::ResourceNotFoundException(_)
)
}
pub fn is_too_many_requests_exception(&self) -> bool {
matches!(
&self.kind,
UntagResourceErrorKind::TooManyRequestsException(_)
)
}
}
impl std::error::Error for UntagResourceError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UntagResourceErrorKind::InternalErrorException(_inner) => Some(_inner),
UntagResourceErrorKind::InvalidParameterException(_inner) => Some(_inner),
UntagResourceErrorKind::NotAuthorizedException(_inner) => Some(_inner),
UntagResourceErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
UntagResourceErrorKind::TooManyRequestsException(_inner) => Some(_inner),
UntagResourceErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UnlinkIdentityError {
pub kind: UnlinkIdentityErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for UnlinkIdentityError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: UnlinkIdentityErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UnlinkIdentityErrorKind {
ExternalServiceException(crate::error::ExternalServiceException),
InternalErrorException(crate::error::InternalErrorException),
InvalidParameterException(crate::error::InvalidParameterException),
NotAuthorizedException(crate::error::NotAuthorizedException),
ResourceConflictException(crate::error::ResourceConflictException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
TooManyRequestsException(crate::error::TooManyRequestsException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for UnlinkIdentityError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UnlinkIdentityErrorKind::ExternalServiceException(_inner) => _inner.fmt(f),
UnlinkIdentityErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
UnlinkIdentityErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
UnlinkIdentityErrorKind::NotAuthorizedException(_inner) => _inner.fmt(f),
UnlinkIdentityErrorKind::ResourceConflictException(_inner) => _inner.fmt(f),
UnlinkIdentityErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
UnlinkIdentityErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f),
UnlinkIdentityErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UnlinkIdentityError {
fn code(&self) -> Option<&str> {
UnlinkIdentityError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UnlinkIdentityError {
pub fn new(kind: UnlinkIdentityErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: UnlinkIdentityErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UnlinkIdentityErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_external_service_exception(&self) -> bool {
matches!(
&self.kind,
UnlinkIdentityErrorKind::ExternalServiceException(_)
)
}
pub fn is_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
UnlinkIdentityErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
UnlinkIdentityErrorKind::InvalidParameterException(_)
)
}
pub fn is_not_authorized_exception(&self) -> bool {
matches!(
&self.kind,
UnlinkIdentityErrorKind::NotAuthorizedException(_)
)
}
pub fn is_resource_conflict_exception(&self) -> bool {
matches!(
&self.kind,
UnlinkIdentityErrorKind::ResourceConflictException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
UnlinkIdentityErrorKind::ResourceNotFoundException(_)
)
}
pub fn is_too_many_requests_exception(&self) -> bool {
matches!(
&self.kind,
UnlinkIdentityErrorKind::TooManyRequestsException(_)
)
}
}
impl std::error::Error for UnlinkIdentityError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UnlinkIdentityErrorKind::ExternalServiceException(_inner) => Some(_inner),
UnlinkIdentityErrorKind::InternalErrorException(_inner) => Some(_inner),
UnlinkIdentityErrorKind::InvalidParameterException(_inner) => Some(_inner),
UnlinkIdentityErrorKind::NotAuthorizedException(_inner) => Some(_inner),
UnlinkIdentityErrorKind::ResourceConflictException(_inner) => Some(_inner),
UnlinkIdentityErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
UnlinkIdentityErrorKind::TooManyRequestsException(_inner) => Some(_inner),
UnlinkIdentityErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ExternalServiceException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl ExternalServiceException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ExternalServiceException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ExternalServiceException")?;
if let Some(inner_9) = &self.message {
{
write!(f, ": {}", inner_9)?;
}
}
Ok(())
}
}
impl std::error::Error for ExternalServiceException {}
pub mod external_service_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::ExternalServiceException {
crate::error::ExternalServiceException {
message: self.message,
}
}
}
}
impl ExternalServiceException {
pub fn builder() -> crate::error::external_service_exception::Builder {
crate::error::external_service_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UnlinkDeveloperIdentityError {
pub kind: UnlinkDeveloperIdentityErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for UnlinkDeveloperIdentityError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: UnlinkDeveloperIdentityErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UnlinkDeveloperIdentityErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidParameterException(crate::error::InvalidParameterException),
NotAuthorizedException(crate::error::NotAuthorizedException),
ResourceConflictException(crate::error::ResourceConflictException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
TooManyRequestsException(crate::error::TooManyRequestsException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for UnlinkDeveloperIdentityError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UnlinkDeveloperIdentityErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
UnlinkDeveloperIdentityErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
UnlinkDeveloperIdentityErrorKind::NotAuthorizedException(_inner) => _inner.fmt(f),
UnlinkDeveloperIdentityErrorKind::ResourceConflictException(_inner) => _inner.fmt(f),
UnlinkDeveloperIdentityErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
UnlinkDeveloperIdentityErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f),
UnlinkDeveloperIdentityErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UnlinkDeveloperIdentityError {
fn code(&self) -> Option<&str> {
UnlinkDeveloperIdentityError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UnlinkDeveloperIdentityError {
pub fn new(kind: UnlinkDeveloperIdentityErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: UnlinkDeveloperIdentityErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UnlinkDeveloperIdentityErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
UnlinkDeveloperIdentityErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
UnlinkDeveloperIdentityErrorKind::InvalidParameterException(_)
)
}
pub fn is_not_authorized_exception(&self) -> bool {
matches!(
&self.kind,
UnlinkDeveloperIdentityErrorKind::NotAuthorizedException(_)
)
}
pub fn is_resource_conflict_exception(&self) -> bool {
matches!(
&self.kind,
UnlinkDeveloperIdentityErrorKind::ResourceConflictException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
UnlinkDeveloperIdentityErrorKind::ResourceNotFoundException(_)
)
}
pub fn is_too_many_requests_exception(&self) -> bool {
matches!(
&self.kind,
UnlinkDeveloperIdentityErrorKind::TooManyRequestsException(_)
)
}
}
impl std::error::Error for UnlinkDeveloperIdentityError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UnlinkDeveloperIdentityErrorKind::InternalErrorException(_inner) => Some(_inner),
UnlinkDeveloperIdentityErrorKind::InvalidParameterException(_inner) => Some(_inner),
UnlinkDeveloperIdentityErrorKind::NotAuthorizedException(_inner) => Some(_inner),
UnlinkDeveloperIdentityErrorKind::ResourceConflictException(_inner) => Some(_inner),
UnlinkDeveloperIdentityErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
UnlinkDeveloperIdentityErrorKind::TooManyRequestsException(_inner) => Some(_inner),
UnlinkDeveloperIdentityErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct TagResourceError {
pub kind: TagResourceErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for TagResourceError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: TagResourceErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum TagResourceErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidParameterException(crate::error::InvalidParameterException),
NotAuthorizedException(crate::error::NotAuthorizedException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
TooManyRequestsException(crate::error::TooManyRequestsException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for TagResourceError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
TagResourceErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
TagResourceErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
TagResourceErrorKind::NotAuthorizedException(_inner) => _inner.fmt(f),
TagResourceErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
TagResourceErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f),
TagResourceErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for TagResourceError {
fn code(&self) -> Option<&str> {
TagResourceError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl TagResourceError {
pub fn new(kind: TagResourceErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: TagResourceErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: TagResourceErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_internal_error_exception(&self) -> bool {
matches!(&self.kind, TagResourceErrorKind::InternalErrorException(_))
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
TagResourceErrorKind::InvalidParameterException(_)
)
}
pub fn is_not_authorized_exception(&self) -> bool {
matches!(&self.kind, TagResourceErrorKind::NotAuthorizedException(_))
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
TagResourceErrorKind::ResourceNotFoundException(_)
)
}
pub fn is_too_many_requests_exception(&self) -> bool {
matches!(
&self.kind,
TagResourceErrorKind::TooManyRequestsException(_)
)
}
}
impl std::error::Error for TagResourceError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
TagResourceErrorKind::InternalErrorException(_inner) => Some(_inner),
TagResourceErrorKind::InvalidParameterException(_inner) => Some(_inner),
TagResourceErrorKind::NotAuthorizedException(_inner) => Some(_inner),
TagResourceErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
TagResourceErrorKind::TooManyRequestsException(_inner) => Some(_inner),
TagResourceErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct SetPrincipalTagAttributeMapError {
pub kind: SetPrincipalTagAttributeMapErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for SetPrincipalTagAttributeMapError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: SetPrincipalTagAttributeMapErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum SetPrincipalTagAttributeMapErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidParameterException(crate::error::InvalidParameterException),
NotAuthorizedException(crate::error::NotAuthorizedException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
TooManyRequestsException(crate::error::TooManyRequestsException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for SetPrincipalTagAttributeMapError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
SetPrincipalTagAttributeMapErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
SetPrincipalTagAttributeMapErrorKind::InvalidParameterException(_inner) => {
_inner.fmt(f)
}
SetPrincipalTagAttributeMapErrorKind::NotAuthorizedException(_inner) => _inner.fmt(f),
SetPrincipalTagAttributeMapErrorKind::ResourceNotFoundException(_inner) => {
_inner.fmt(f)
}
SetPrincipalTagAttributeMapErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f),
SetPrincipalTagAttributeMapErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for SetPrincipalTagAttributeMapError {
fn code(&self) -> Option<&str> {
SetPrincipalTagAttributeMapError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl SetPrincipalTagAttributeMapError {
pub fn new(kind: SetPrincipalTagAttributeMapErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: SetPrincipalTagAttributeMapErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: SetPrincipalTagAttributeMapErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
SetPrincipalTagAttributeMapErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
SetPrincipalTagAttributeMapErrorKind::InvalidParameterException(_)
)
}
pub fn is_not_authorized_exception(&self) -> bool {
matches!(
&self.kind,
SetPrincipalTagAttributeMapErrorKind::NotAuthorizedException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
SetPrincipalTagAttributeMapErrorKind::ResourceNotFoundException(_)
)
}
pub fn is_too_many_requests_exception(&self) -> bool {
matches!(
&self.kind,
SetPrincipalTagAttributeMapErrorKind::TooManyRequestsException(_)
)
}
}
impl std::error::Error for SetPrincipalTagAttributeMapError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
SetPrincipalTagAttributeMapErrorKind::InternalErrorException(_inner) => Some(_inner),
SetPrincipalTagAttributeMapErrorKind::InvalidParameterException(_inner) => Some(_inner),
SetPrincipalTagAttributeMapErrorKind::NotAuthorizedException(_inner) => Some(_inner),
SetPrincipalTagAttributeMapErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
SetPrincipalTagAttributeMapErrorKind::TooManyRequestsException(_inner) => Some(_inner),
SetPrincipalTagAttributeMapErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct SetIdentityPoolRolesError {
pub kind: SetIdentityPoolRolesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for SetIdentityPoolRolesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: SetIdentityPoolRolesErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum SetIdentityPoolRolesErrorKind {
ConcurrentModificationException(crate::error::ConcurrentModificationException),
InternalErrorException(crate::error::InternalErrorException),
InvalidParameterException(crate::error::InvalidParameterException),
NotAuthorizedException(crate::error::NotAuthorizedException),
ResourceConflictException(crate::error::ResourceConflictException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
TooManyRequestsException(crate::error::TooManyRequestsException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for SetIdentityPoolRolesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
SetIdentityPoolRolesErrorKind::ConcurrentModificationException(_inner) => _inner.fmt(f),
SetIdentityPoolRolesErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
SetIdentityPoolRolesErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
SetIdentityPoolRolesErrorKind::NotAuthorizedException(_inner) => _inner.fmt(f),
SetIdentityPoolRolesErrorKind::ResourceConflictException(_inner) => _inner.fmt(f),
SetIdentityPoolRolesErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
SetIdentityPoolRolesErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f),
SetIdentityPoolRolesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for SetIdentityPoolRolesError {
fn code(&self) -> Option<&str> {
SetIdentityPoolRolesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl SetIdentityPoolRolesError {
pub fn new(kind: SetIdentityPoolRolesErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: SetIdentityPoolRolesErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: SetIdentityPoolRolesErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_concurrent_modification_exception(&self) -> bool {
matches!(
&self.kind,
SetIdentityPoolRolesErrorKind::ConcurrentModificationException(_)
)
}
pub fn is_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
SetIdentityPoolRolesErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
SetIdentityPoolRolesErrorKind::InvalidParameterException(_)
)
}
pub fn is_not_authorized_exception(&self) -> bool {
matches!(
&self.kind,
SetIdentityPoolRolesErrorKind::NotAuthorizedException(_)
)
}
pub fn is_resource_conflict_exception(&self) -> bool {
matches!(
&self.kind,
SetIdentityPoolRolesErrorKind::ResourceConflictException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
SetIdentityPoolRolesErrorKind::ResourceNotFoundException(_)
)
}
pub fn is_too_many_requests_exception(&self) -> bool {
matches!(
&self.kind,
SetIdentityPoolRolesErrorKind::TooManyRequestsException(_)
)
}
}
impl std::error::Error for SetIdentityPoolRolesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
SetIdentityPoolRolesErrorKind::ConcurrentModificationException(_inner) => Some(_inner),
SetIdentityPoolRolesErrorKind::InternalErrorException(_inner) => Some(_inner),
SetIdentityPoolRolesErrorKind::InvalidParameterException(_inner) => Some(_inner),
SetIdentityPoolRolesErrorKind::NotAuthorizedException(_inner) => Some(_inner),
SetIdentityPoolRolesErrorKind::ResourceConflictException(_inner) => Some(_inner),
SetIdentityPoolRolesErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
SetIdentityPoolRolesErrorKind::TooManyRequestsException(_inner) => Some(_inner),
SetIdentityPoolRolesErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct MergeDeveloperIdentitiesError {
pub kind: MergeDeveloperIdentitiesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for MergeDeveloperIdentitiesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: MergeDeveloperIdentitiesErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum MergeDeveloperIdentitiesErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidParameterException(crate::error::InvalidParameterException),
NotAuthorizedException(crate::error::NotAuthorizedException),
ResourceConflictException(crate::error::ResourceConflictException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
TooManyRequestsException(crate::error::TooManyRequestsException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for MergeDeveloperIdentitiesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
MergeDeveloperIdentitiesErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
MergeDeveloperIdentitiesErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
MergeDeveloperIdentitiesErrorKind::NotAuthorizedException(_inner) => _inner.fmt(f),
MergeDeveloperIdentitiesErrorKind::ResourceConflictException(_inner) => _inner.fmt(f),
MergeDeveloperIdentitiesErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
MergeDeveloperIdentitiesErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f),
MergeDeveloperIdentitiesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for MergeDeveloperIdentitiesError {
fn code(&self) -> Option<&str> {
MergeDeveloperIdentitiesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl MergeDeveloperIdentitiesError {
pub fn new(kind: MergeDeveloperIdentitiesErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: MergeDeveloperIdentitiesErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: MergeDeveloperIdentitiesErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
MergeDeveloperIdentitiesErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
MergeDeveloperIdentitiesErrorKind::InvalidParameterException(_)
)
}
pub fn is_not_authorized_exception(&self) -> bool {
matches!(
&self.kind,
MergeDeveloperIdentitiesErrorKind::NotAuthorizedException(_)
)
}
pub fn is_resource_conflict_exception(&self) -> bool {
matches!(
&self.kind,
MergeDeveloperIdentitiesErrorKind::ResourceConflictException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
MergeDeveloperIdentitiesErrorKind::ResourceNotFoundException(_)
)
}
pub fn is_too_many_requests_exception(&self) -> bool {
matches!(
&self.kind,
MergeDeveloperIdentitiesErrorKind::TooManyRequestsException(_)
)
}
}
impl std::error::Error for MergeDeveloperIdentitiesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
MergeDeveloperIdentitiesErrorKind::InternalErrorException(_inner) => Some(_inner),
MergeDeveloperIdentitiesErrorKind::InvalidParameterException(_inner) => Some(_inner),
MergeDeveloperIdentitiesErrorKind::NotAuthorizedException(_inner) => Some(_inner),
MergeDeveloperIdentitiesErrorKind::ResourceConflictException(_inner) => Some(_inner),
MergeDeveloperIdentitiesErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
MergeDeveloperIdentitiesErrorKind::TooManyRequestsException(_inner) => Some(_inner),
MergeDeveloperIdentitiesErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct LookupDeveloperIdentityError {
pub kind: LookupDeveloperIdentityErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for LookupDeveloperIdentityError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: LookupDeveloperIdentityErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum LookupDeveloperIdentityErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidParameterException(crate::error::InvalidParameterException),
NotAuthorizedException(crate::error::NotAuthorizedException),
ResourceConflictException(crate::error::ResourceConflictException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
TooManyRequestsException(crate::error::TooManyRequestsException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for LookupDeveloperIdentityError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
LookupDeveloperIdentityErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
LookupDeveloperIdentityErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
LookupDeveloperIdentityErrorKind::NotAuthorizedException(_inner) => _inner.fmt(f),
LookupDeveloperIdentityErrorKind::ResourceConflictException(_inner) => _inner.fmt(f),
LookupDeveloperIdentityErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
LookupDeveloperIdentityErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f),
LookupDeveloperIdentityErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for LookupDeveloperIdentityError {
fn code(&self) -> Option<&str> {
LookupDeveloperIdentityError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl LookupDeveloperIdentityError {
pub fn new(kind: LookupDeveloperIdentityErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: LookupDeveloperIdentityErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: LookupDeveloperIdentityErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
LookupDeveloperIdentityErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
LookupDeveloperIdentityErrorKind::InvalidParameterException(_)
)
}
pub fn is_not_authorized_exception(&self) -> bool {
matches!(
&self.kind,
LookupDeveloperIdentityErrorKind::NotAuthorizedException(_)
)
}
pub fn is_resource_conflict_exception(&self) -> bool {
matches!(
&self.kind,
LookupDeveloperIdentityErrorKind::ResourceConflictException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
LookupDeveloperIdentityErrorKind::ResourceNotFoundException(_)
)
}
pub fn is_too_many_requests_exception(&self) -> bool {
matches!(
&self.kind,
LookupDeveloperIdentityErrorKind::TooManyRequestsException(_)
)
}
}
impl std::error::Error for LookupDeveloperIdentityError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
LookupDeveloperIdentityErrorKind::InternalErrorException(_inner) => Some(_inner),
LookupDeveloperIdentityErrorKind::InvalidParameterException(_inner) => Some(_inner),
LookupDeveloperIdentityErrorKind::NotAuthorizedException(_inner) => Some(_inner),
LookupDeveloperIdentityErrorKind::ResourceConflictException(_inner) => Some(_inner),
LookupDeveloperIdentityErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
LookupDeveloperIdentityErrorKind::TooManyRequestsException(_inner) => Some(_inner),
LookupDeveloperIdentityErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListTagsForResourceError {
pub kind: ListTagsForResourceErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListTagsForResourceError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListTagsForResourceErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListTagsForResourceErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidParameterException(crate::error::InvalidParameterException),
NotAuthorizedException(crate::error::NotAuthorizedException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
TooManyRequestsException(crate::error::TooManyRequestsException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListTagsForResourceError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListTagsForResourceErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
ListTagsForResourceErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
ListTagsForResourceErrorKind::NotAuthorizedException(_inner) => _inner.fmt(f),
ListTagsForResourceErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
ListTagsForResourceErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f),
ListTagsForResourceErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListTagsForResourceError {
fn code(&self) -> Option<&str> {
ListTagsForResourceError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListTagsForResourceError {
pub fn new(kind: ListTagsForResourceErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: ListTagsForResourceErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListTagsForResourceErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
ListTagsForResourceErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
ListTagsForResourceErrorKind::InvalidParameterException(_)
)
}
pub fn is_not_authorized_exception(&self) -> bool {
matches!(
&self.kind,
ListTagsForResourceErrorKind::NotAuthorizedException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
ListTagsForResourceErrorKind::ResourceNotFoundException(_)
)
}
pub fn is_too_many_requests_exception(&self) -> bool {
matches!(
&self.kind,
ListTagsForResourceErrorKind::TooManyRequestsException(_)
)
}
}
impl std::error::Error for ListTagsForResourceError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListTagsForResourceErrorKind::InternalErrorException(_inner) => Some(_inner),
ListTagsForResourceErrorKind::InvalidParameterException(_inner) => Some(_inner),
ListTagsForResourceErrorKind::NotAuthorizedException(_inner) => Some(_inner),
ListTagsForResourceErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
ListTagsForResourceErrorKind::TooManyRequestsException(_inner) => Some(_inner),
ListTagsForResourceErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListIdentityPoolsError {
pub kind: ListIdentityPoolsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListIdentityPoolsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListIdentityPoolsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListIdentityPoolsErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidParameterException(crate::error::InvalidParameterException),
NotAuthorizedException(crate::error::NotAuthorizedException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
TooManyRequestsException(crate::error::TooManyRequestsException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListIdentityPoolsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListIdentityPoolsErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
ListIdentityPoolsErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
ListIdentityPoolsErrorKind::NotAuthorizedException(_inner) => _inner.fmt(f),
ListIdentityPoolsErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
ListIdentityPoolsErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f),
ListIdentityPoolsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListIdentityPoolsError {
fn code(&self) -> Option<&str> {
ListIdentityPoolsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListIdentityPoolsError {
pub fn new(kind: ListIdentityPoolsErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: ListIdentityPoolsErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListIdentityPoolsErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
ListIdentityPoolsErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
ListIdentityPoolsErrorKind::InvalidParameterException(_)
)
}
pub fn is_not_authorized_exception(&self) -> bool {
matches!(
&self.kind,
ListIdentityPoolsErrorKind::NotAuthorizedException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
ListIdentityPoolsErrorKind::ResourceNotFoundException(_)
)
}
pub fn is_too_many_requests_exception(&self) -> bool {
matches!(
&self.kind,
ListIdentityPoolsErrorKind::TooManyRequestsException(_)
)
}
}
impl std::error::Error for ListIdentityPoolsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListIdentityPoolsErrorKind::InternalErrorException(_inner) => Some(_inner),
ListIdentityPoolsErrorKind::InvalidParameterException(_inner) => Some(_inner),
ListIdentityPoolsErrorKind::NotAuthorizedException(_inner) => Some(_inner),
ListIdentityPoolsErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
ListIdentityPoolsErrorKind::TooManyRequestsException(_inner) => Some(_inner),
ListIdentityPoolsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListIdentitiesError {
pub kind: ListIdentitiesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListIdentitiesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListIdentitiesErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListIdentitiesErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidParameterException(crate::error::InvalidParameterException),
NotAuthorizedException(crate::error::NotAuthorizedException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
TooManyRequestsException(crate::error::TooManyRequestsException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListIdentitiesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListIdentitiesErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
ListIdentitiesErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
ListIdentitiesErrorKind::NotAuthorizedException(_inner) => _inner.fmt(f),
ListIdentitiesErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
ListIdentitiesErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f),
ListIdentitiesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListIdentitiesError {
fn code(&self) -> Option<&str> {
ListIdentitiesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListIdentitiesError {
pub fn new(kind: ListIdentitiesErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: ListIdentitiesErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListIdentitiesErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
ListIdentitiesErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
ListIdentitiesErrorKind::InvalidParameterException(_)
)
}
pub fn is_not_authorized_exception(&self) -> bool {
matches!(
&self.kind,
ListIdentitiesErrorKind::NotAuthorizedException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
ListIdentitiesErrorKind::ResourceNotFoundException(_)
)
}
pub fn is_too_many_requests_exception(&self) -> bool {
matches!(
&self.kind,
ListIdentitiesErrorKind::TooManyRequestsException(_)
)
}
}
impl std::error::Error for ListIdentitiesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListIdentitiesErrorKind::InternalErrorException(_inner) => Some(_inner),
ListIdentitiesErrorKind::InvalidParameterException(_inner) => Some(_inner),
ListIdentitiesErrorKind::NotAuthorizedException(_inner) => Some(_inner),
ListIdentitiesErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
ListIdentitiesErrorKind::TooManyRequestsException(_inner) => Some(_inner),
ListIdentitiesErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetPrincipalTagAttributeMapError {
pub kind: GetPrincipalTagAttributeMapErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for GetPrincipalTagAttributeMapError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: GetPrincipalTagAttributeMapErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetPrincipalTagAttributeMapErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidParameterException(crate::error::InvalidParameterException),
NotAuthorizedException(crate::error::NotAuthorizedException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
TooManyRequestsException(crate::error::TooManyRequestsException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for GetPrincipalTagAttributeMapError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetPrincipalTagAttributeMapErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
GetPrincipalTagAttributeMapErrorKind::InvalidParameterException(_inner) => {
_inner.fmt(f)
}
GetPrincipalTagAttributeMapErrorKind::NotAuthorizedException(_inner) => _inner.fmt(f),
GetPrincipalTagAttributeMapErrorKind::ResourceNotFoundException(_inner) => {
_inner.fmt(f)
}
GetPrincipalTagAttributeMapErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f),
GetPrincipalTagAttributeMapErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetPrincipalTagAttributeMapError {
fn code(&self) -> Option<&str> {
GetPrincipalTagAttributeMapError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetPrincipalTagAttributeMapError {
pub fn new(kind: GetPrincipalTagAttributeMapErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: GetPrincipalTagAttributeMapErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetPrincipalTagAttributeMapErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
GetPrincipalTagAttributeMapErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
GetPrincipalTagAttributeMapErrorKind::InvalidParameterException(_)
)
}
pub fn is_not_authorized_exception(&self) -> bool {
matches!(
&self.kind,
GetPrincipalTagAttributeMapErrorKind::NotAuthorizedException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
GetPrincipalTagAttributeMapErrorKind::ResourceNotFoundException(_)
)
}
pub fn is_too_many_requests_exception(&self) -> bool {
matches!(
&self.kind,
GetPrincipalTagAttributeMapErrorKind::TooManyRequestsException(_)
)
}
}
impl std::error::Error for GetPrincipalTagAttributeMapError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetPrincipalTagAttributeMapErrorKind::InternalErrorException(_inner) => Some(_inner),
GetPrincipalTagAttributeMapErrorKind::InvalidParameterException(_inner) => Some(_inner),
GetPrincipalTagAttributeMapErrorKind::NotAuthorizedException(_inner) => Some(_inner),
GetPrincipalTagAttributeMapErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
GetPrincipalTagAttributeMapErrorKind::TooManyRequestsException(_inner) => Some(_inner),
GetPrincipalTagAttributeMapErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetOpenIdTokenForDeveloperIdentityError {
pub kind: GetOpenIdTokenForDeveloperIdentityErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for GetOpenIdTokenForDeveloperIdentityError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: GetOpenIdTokenForDeveloperIdentityErrorKind::Unhandled(
crate::error::Unhandled::new(source),
),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetOpenIdTokenForDeveloperIdentityErrorKind {
DeveloperUserAlreadyRegisteredException(crate::error::DeveloperUserAlreadyRegisteredException),
InternalErrorException(crate::error::InternalErrorException),
InvalidParameterException(crate::error::InvalidParameterException),
NotAuthorizedException(crate::error::NotAuthorizedException),
ResourceConflictException(crate::error::ResourceConflictException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
TooManyRequestsException(crate::error::TooManyRequestsException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for GetOpenIdTokenForDeveloperIdentityError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetOpenIdTokenForDeveloperIdentityErrorKind::DeveloperUserAlreadyRegisteredException(_inner) =>
_inner.fmt(f)
,
GetOpenIdTokenForDeveloperIdentityErrorKind::InternalErrorException(_inner) =>
_inner.fmt(f)
,
GetOpenIdTokenForDeveloperIdentityErrorKind::InvalidParameterException(_inner) =>
_inner.fmt(f)
,
GetOpenIdTokenForDeveloperIdentityErrorKind::NotAuthorizedException(_inner) =>
_inner.fmt(f)
,
GetOpenIdTokenForDeveloperIdentityErrorKind::ResourceConflictException(_inner) =>
_inner.fmt(f)
,
GetOpenIdTokenForDeveloperIdentityErrorKind::ResourceNotFoundException(_inner) =>
_inner.fmt(f)
,
GetOpenIdTokenForDeveloperIdentityErrorKind::TooManyRequestsException(_inner) =>
_inner.fmt(f)
,
GetOpenIdTokenForDeveloperIdentityErrorKind::Unhandled(_inner) => {
_inner.fmt(f)
}
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetOpenIdTokenForDeveloperIdentityError {
fn code(&self) -> Option<&str> {
GetOpenIdTokenForDeveloperIdentityError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetOpenIdTokenForDeveloperIdentityError {
pub fn new(
kind: GetOpenIdTokenForDeveloperIdentityErrorKind,
meta: aws_smithy_types::Error,
) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: GetOpenIdTokenForDeveloperIdentityErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetOpenIdTokenForDeveloperIdentityErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_developer_user_already_registered_exception(&self) -> bool {
matches!(
&self.kind,
GetOpenIdTokenForDeveloperIdentityErrorKind::DeveloperUserAlreadyRegisteredException(_)
)
}
pub fn is_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
GetOpenIdTokenForDeveloperIdentityErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
GetOpenIdTokenForDeveloperIdentityErrorKind::InvalidParameterException(_)
)
}
pub fn is_not_authorized_exception(&self) -> bool {
matches!(
&self.kind,
GetOpenIdTokenForDeveloperIdentityErrorKind::NotAuthorizedException(_)
)
}
pub fn is_resource_conflict_exception(&self) -> bool {
matches!(
&self.kind,
GetOpenIdTokenForDeveloperIdentityErrorKind::ResourceConflictException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
GetOpenIdTokenForDeveloperIdentityErrorKind::ResourceNotFoundException(_)
)
}
pub fn is_too_many_requests_exception(&self) -> bool {
matches!(
&self.kind,
GetOpenIdTokenForDeveloperIdentityErrorKind::TooManyRequestsException(_)
)
}
}
impl std::error::Error for GetOpenIdTokenForDeveloperIdentityError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetOpenIdTokenForDeveloperIdentityErrorKind::DeveloperUserAlreadyRegisteredException(_inner) =>
Some(_inner)
,
GetOpenIdTokenForDeveloperIdentityErrorKind::InternalErrorException(_inner) =>
Some(_inner)
,
GetOpenIdTokenForDeveloperIdentityErrorKind::InvalidParameterException(_inner) =>
Some(_inner)
,
GetOpenIdTokenForDeveloperIdentityErrorKind::NotAuthorizedException(_inner) =>
Some(_inner)
,
GetOpenIdTokenForDeveloperIdentityErrorKind::ResourceConflictException(_inner) =>
Some(_inner)
,
GetOpenIdTokenForDeveloperIdentityErrorKind::ResourceNotFoundException(_inner) =>
Some(_inner)
,
GetOpenIdTokenForDeveloperIdentityErrorKind::TooManyRequestsException(_inner) =>
Some(_inner)
,
GetOpenIdTokenForDeveloperIdentityErrorKind::Unhandled(_inner) => {
Some(_inner)
}
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeveloperUserAlreadyRegisteredException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl DeveloperUserAlreadyRegisteredException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for DeveloperUserAlreadyRegisteredException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "DeveloperUserAlreadyRegisteredException")?;
if let Some(inner_10) = &self.message {
{
write!(f, ": {}", inner_10)?;
}
}
Ok(())
}
}
impl std::error::Error for DeveloperUserAlreadyRegisteredException {}
pub mod developer_user_already_registered_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::DeveloperUserAlreadyRegisteredException {
crate::error::DeveloperUserAlreadyRegisteredException {
message: self.message,
}
}
}
}
impl DeveloperUserAlreadyRegisteredException {
pub fn builder() -> crate::error::developer_user_already_registered_exception::Builder {
crate::error::developer_user_already_registered_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetOpenIdTokenError {
pub kind: GetOpenIdTokenErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for GetOpenIdTokenError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: GetOpenIdTokenErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetOpenIdTokenErrorKind {
ExternalServiceException(crate::error::ExternalServiceException),
InternalErrorException(crate::error::InternalErrorException),
InvalidParameterException(crate::error::InvalidParameterException),
NotAuthorizedException(crate::error::NotAuthorizedException),
ResourceConflictException(crate::error::ResourceConflictException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
TooManyRequestsException(crate::error::TooManyRequestsException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for GetOpenIdTokenError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetOpenIdTokenErrorKind::ExternalServiceException(_inner) => _inner.fmt(f),
GetOpenIdTokenErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
GetOpenIdTokenErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
GetOpenIdTokenErrorKind::NotAuthorizedException(_inner) => _inner.fmt(f),
GetOpenIdTokenErrorKind::ResourceConflictException(_inner) => _inner.fmt(f),
GetOpenIdTokenErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
GetOpenIdTokenErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f),
GetOpenIdTokenErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetOpenIdTokenError {
fn code(&self) -> Option<&str> {
GetOpenIdTokenError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetOpenIdTokenError {
pub fn new(kind: GetOpenIdTokenErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: GetOpenIdTokenErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetOpenIdTokenErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_external_service_exception(&self) -> bool {
matches!(
&self.kind,
GetOpenIdTokenErrorKind::ExternalServiceException(_)
)
}
pub fn is_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
GetOpenIdTokenErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
GetOpenIdTokenErrorKind::InvalidParameterException(_)
)
}
pub fn is_not_authorized_exception(&self) -> bool {
matches!(
&self.kind,
GetOpenIdTokenErrorKind::NotAuthorizedException(_)
)
}
pub fn is_resource_conflict_exception(&self) -> bool {
matches!(
&self.kind,
GetOpenIdTokenErrorKind::ResourceConflictException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
GetOpenIdTokenErrorKind::ResourceNotFoundException(_)
)
}
pub fn is_too_many_requests_exception(&self) -> bool {
matches!(
&self.kind,
GetOpenIdTokenErrorKind::TooManyRequestsException(_)
)
}
}
impl std::error::Error for GetOpenIdTokenError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetOpenIdTokenErrorKind::ExternalServiceException(_inner) => Some(_inner),
GetOpenIdTokenErrorKind::InternalErrorException(_inner) => Some(_inner),
GetOpenIdTokenErrorKind::InvalidParameterException(_inner) => Some(_inner),
GetOpenIdTokenErrorKind::NotAuthorizedException(_inner) => Some(_inner),
GetOpenIdTokenErrorKind::ResourceConflictException(_inner) => Some(_inner),
GetOpenIdTokenErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
GetOpenIdTokenErrorKind::TooManyRequestsException(_inner) => Some(_inner),
GetOpenIdTokenErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetIdentityPoolRolesError {
pub kind: GetIdentityPoolRolesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for GetIdentityPoolRolesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: GetIdentityPoolRolesErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetIdentityPoolRolesErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidParameterException(crate::error::InvalidParameterException),
NotAuthorizedException(crate::error::NotAuthorizedException),
ResourceConflictException(crate::error::ResourceConflictException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
TooManyRequestsException(crate::error::TooManyRequestsException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for GetIdentityPoolRolesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetIdentityPoolRolesErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
GetIdentityPoolRolesErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
GetIdentityPoolRolesErrorKind::NotAuthorizedException(_inner) => _inner.fmt(f),
GetIdentityPoolRolesErrorKind::ResourceConflictException(_inner) => _inner.fmt(f),
GetIdentityPoolRolesErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
GetIdentityPoolRolesErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f),
GetIdentityPoolRolesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetIdentityPoolRolesError {
fn code(&self) -> Option<&str> {
GetIdentityPoolRolesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetIdentityPoolRolesError {
pub fn new(kind: GetIdentityPoolRolesErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: GetIdentityPoolRolesErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetIdentityPoolRolesErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
GetIdentityPoolRolesErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
GetIdentityPoolRolesErrorKind::InvalidParameterException(_)
)
}
pub fn is_not_authorized_exception(&self) -> bool {
matches!(
&self.kind,
GetIdentityPoolRolesErrorKind::NotAuthorizedException(_)
)
}
pub fn is_resource_conflict_exception(&self) -> bool {
matches!(
&self.kind,
GetIdentityPoolRolesErrorKind::ResourceConflictException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
GetIdentityPoolRolesErrorKind::ResourceNotFoundException(_)
)
}
pub fn is_too_many_requests_exception(&self) -> bool {
matches!(
&self.kind,
GetIdentityPoolRolesErrorKind::TooManyRequestsException(_)
)
}
}
impl std::error::Error for GetIdentityPoolRolesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetIdentityPoolRolesErrorKind::InternalErrorException(_inner) => Some(_inner),
GetIdentityPoolRolesErrorKind::InvalidParameterException(_inner) => Some(_inner),
GetIdentityPoolRolesErrorKind::NotAuthorizedException(_inner) => Some(_inner),
GetIdentityPoolRolesErrorKind::ResourceConflictException(_inner) => Some(_inner),
GetIdentityPoolRolesErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
GetIdentityPoolRolesErrorKind::TooManyRequestsException(_inner) => Some(_inner),
GetIdentityPoolRolesErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetIdError {
pub kind: GetIdErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for GetIdError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: GetIdErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetIdErrorKind {
ExternalServiceException(crate::error::ExternalServiceException),
InternalErrorException(crate::error::InternalErrorException),
InvalidParameterException(crate::error::InvalidParameterException),
LimitExceededException(crate::error::LimitExceededException),
NotAuthorizedException(crate::error::NotAuthorizedException),
ResourceConflictException(crate::error::ResourceConflictException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
TooManyRequestsException(crate::error::TooManyRequestsException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for GetIdError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetIdErrorKind::ExternalServiceException(_inner) => _inner.fmt(f),
GetIdErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
GetIdErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
GetIdErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
GetIdErrorKind::NotAuthorizedException(_inner) => _inner.fmt(f),
GetIdErrorKind::ResourceConflictException(_inner) => _inner.fmt(f),
GetIdErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
GetIdErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f),
GetIdErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetIdError {
fn code(&self) -> Option<&str> {
GetIdError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetIdError {
pub fn new(kind: GetIdErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: GetIdErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetIdErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_external_service_exception(&self) -> bool {
matches!(&self.kind, GetIdErrorKind::ExternalServiceException(_))
}
pub fn is_internal_error_exception(&self) -> bool {
matches!(&self.kind, GetIdErrorKind::InternalErrorException(_))
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(&self.kind, GetIdErrorKind::InvalidParameterException(_))
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(&self.kind, GetIdErrorKind::LimitExceededException(_))
}
pub fn is_not_authorized_exception(&self) -> bool {
matches!(&self.kind, GetIdErrorKind::NotAuthorizedException(_))
}
pub fn is_resource_conflict_exception(&self) -> bool {
matches!(&self.kind, GetIdErrorKind::ResourceConflictException(_))
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(&self.kind, GetIdErrorKind::ResourceNotFoundException(_))
}
pub fn is_too_many_requests_exception(&self) -> bool {
matches!(&self.kind, GetIdErrorKind::TooManyRequestsException(_))
}
}
impl std::error::Error for GetIdError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetIdErrorKind::ExternalServiceException(_inner) => Some(_inner),
GetIdErrorKind::InternalErrorException(_inner) => Some(_inner),
GetIdErrorKind::InvalidParameterException(_inner) => Some(_inner),
GetIdErrorKind::LimitExceededException(_inner) => Some(_inner),
GetIdErrorKind::NotAuthorizedException(_inner) => Some(_inner),
GetIdErrorKind::ResourceConflictException(_inner) => Some(_inner),
GetIdErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
GetIdErrorKind::TooManyRequestsException(_inner) => Some(_inner),
GetIdErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetCredentialsForIdentityError {
pub kind: GetCredentialsForIdentityErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for GetCredentialsForIdentityError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: GetCredentialsForIdentityErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetCredentialsForIdentityErrorKind {
ExternalServiceException(crate::error::ExternalServiceException),
InternalErrorException(crate::error::InternalErrorException),
InvalidIdentityPoolConfigurationException(
crate::error::InvalidIdentityPoolConfigurationException,
),
InvalidParameterException(crate::error::InvalidParameterException),
NotAuthorizedException(crate::error::NotAuthorizedException),
ResourceConflictException(crate::error::ResourceConflictException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
TooManyRequestsException(crate::error::TooManyRequestsException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for GetCredentialsForIdentityError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetCredentialsForIdentityErrorKind::ExternalServiceException(_inner) => _inner.fmt(f),
GetCredentialsForIdentityErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
GetCredentialsForIdentityErrorKind::InvalidIdentityPoolConfigurationException(
_inner,
) => _inner.fmt(f),
GetCredentialsForIdentityErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
GetCredentialsForIdentityErrorKind::NotAuthorizedException(_inner) => _inner.fmt(f),
GetCredentialsForIdentityErrorKind::ResourceConflictException(_inner) => _inner.fmt(f),
GetCredentialsForIdentityErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
GetCredentialsForIdentityErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f),
GetCredentialsForIdentityErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetCredentialsForIdentityError {
fn code(&self) -> Option<&str> {
GetCredentialsForIdentityError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetCredentialsForIdentityError {
pub fn new(kind: GetCredentialsForIdentityErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: GetCredentialsForIdentityErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetCredentialsForIdentityErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_external_service_exception(&self) -> bool {
matches!(
&self.kind,
GetCredentialsForIdentityErrorKind::ExternalServiceException(_)
)
}
pub fn is_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
GetCredentialsForIdentityErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_identity_pool_configuration_exception(&self) -> bool {
matches!(
&self.kind,
GetCredentialsForIdentityErrorKind::InvalidIdentityPoolConfigurationException(_)
)
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
GetCredentialsForIdentityErrorKind::InvalidParameterException(_)
)
}
pub fn is_not_authorized_exception(&self) -> bool {
matches!(
&self.kind,
GetCredentialsForIdentityErrorKind::NotAuthorizedException(_)
)
}
pub fn is_resource_conflict_exception(&self) -> bool {
matches!(
&self.kind,
GetCredentialsForIdentityErrorKind::ResourceConflictException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
GetCredentialsForIdentityErrorKind::ResourceNotFoundException(_)
)
}
pub fn is_too_many_requests_exception(&self) -> bool {
matches!(
&self.kind,
GetCredentialsForIdentityErrorKind::TooManyRequestsException(_)
)
}
}
impl std::error::Error for GetCredentialsForIdentityError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetCredentialsForIdentityErrorKind::ExternalServiceException(_inner) => Some(_inner),
GetCredentialsForIdentityErrorKind::InternalErrorException(_inner) => Some(_inner),
GetCredentialsForIdentityErrorKind::InvalidIdentityPoolConfigurationException(
_inner,
) => Some(_inner),
GetCredentialsForIdentityErrorKind::InvalidParameterException(_inner) => Some(_inner),
GetCredentialsForIdentityErrorKind::NotAuthorizedException(_inner) => Some(_inner),
GetCredentialsForIdentityErrorKind::ResourceConflictException(_inner) => Some(_inner),
GetCredentialsForIdentityErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
GetCredentialsForIdentityErrorKind::TooManyRequestsException(_inner) => Some(_inner),
GetCredentialsForIdentityErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidIdentityPoolConfigurationException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidIdentityPoolConfigurationException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidIdentityPoolConfigurationException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidIdentityPoolConfigurationException")?;
if let Some(inner_11) = &self.message {
{
write!(f, ": {}", inner_11)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidIdentityPoolConfigurationException {}
pub mod invalid_identity_pool_configuration_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidIdentityPoolConfigurationException {
crate::error::InvalidIdentityPoolConfigurationException {
message: self.message,
}
}
}
}
impl InvalidIdentityPoolConfigurationException {
pub fn builder() -> crate::error::invalid_identity_pool_configuration_exception::Builder {
crate::error::invalid_identity_pool_configuration_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeIdentityPoolError {
pub kind: DescribeIdentityPoolErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeIdentityPoolError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeIdentityPoolErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeIdentityPoolErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidParameterException(crate::error::InvalidParameterException),
NotAuthorizedException(crate::error::NotAuthorizedException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
TooManyRequestsException(crate::error::TooManyRequestsException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeIdentityPoolError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeIdentityPoolErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
DescribeIdentityPoolErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
DescribeIdentityPoolErrorKind::NotAuthorizedException(_inner) => _inner.fmt(f),
DescribeIdentityPoolErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
DescribeIdentityPoolErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f),
DescribeIdentityPoolErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeIdentityPoolError {
fn code(&self) -> Option<&str> {
DescribeIdentityPoolError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeIdentityPoolError {
pub fn new(kind: DescribeIdentityPoolErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: DescribeIdentityPoolErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeIdentityPoolErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
DescribeIdentityPoolErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
DescribeIdentityPoolErrorKind::InvalidParameterException(_)
)
}
pub fn is_not_authorized_exception(&self) -> bool {
matches!(
&self.kind,
DescribeIdentityPoolErrorKind::NotAuthorizedException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DescribeIdentityPoolErrorKind::ResourceNotFoundException(_)
)
}
pub fn is_too_many_requests_exception(&self) -> bool {
matches!(
&self.kind,
DescribeIdentityPoolErrorKind::TooManyRequestsException(_)
)
}
}
impl std::error::Error for DescribeIdentityPoolError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeIdentityPoolErrorKind::InternalErrorException(_inner) => Some(_inner),
DescribeIdentityPoolErrorKind::InvalidParameterException(_inner) => Some(_inner),
DescribeIdentityPoolErrorKind::NotAuthorizedException(_inner) => Some(_inner),
DescribeIdentityPoolErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
DescribeIdentityPoolErrorKind::TooManyRequestsException(_inner) => Some(_inner),
DescribeIdentityPoolErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeIdentityError {
pub kind: DescribeIdentityErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeIdentityError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeIdentityErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeIdentityErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidParameterException(crate::error::InvalidParameterException),
NotAuthorizedException(crate::error::NotAuthorizedException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
TooManyRequestsException(crate::error::TooManyRequestsException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeIdentityError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeIdentityErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
DescribeIdentityErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
DescribeIdentityErrorKind::NotAuthorizedException(_inner) => _inner.fmt(f),
DescribeIdentityErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
DescribeIdentityErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f),
DescribeIdentityErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeIdentityError {
fn code(&self) -> Option<&str> {
DescribeIdentityError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeIdentityError {
pub fn new(kind: DescribeIdentityErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: DescribeIdentityErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeIdentityErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
DescribeIdentityErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
DescribeIdentityErrorKind::InvalidParameterException(_)
)
}
pub fn is_not_authorized_exception(&self) -> bool {
matches!(
&self.kind,
DescribeIdentityErrorKind::NotAuthorizedException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DescribeIdentityErrorKind::ResourceNotFoundException(_)
)
}
pub fn is_too_many_requests_exception(&self) -> bool {
matches!(
&self.kind,
DescribeIdentityErrorKind::TooManyRequestsException(_)
)
}
}
impl std::error::Error for DescribeIdentityError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeIdentityErrorKind::InternalErrorException(_inner) => Some(_inner),
DescribeIdentityErrorKind::InvalidParameterException(_inner) => Some(_inner),
DescribeIdentityErrorKind::NotAuthorizedException(_inner) => Some(_inner),
DescribeIdentityErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
DescribeIdentityErrorKind::TooManyRequestsException(_inner) => Some(_inner),
DescribeIdentityErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteIdentityPoolError {
pub kind: DeleteIdentityPoolErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteIdentityPoolError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteIdentityPoolErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteIdentityPoolErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidParameterException(crate::error::InvalidParameterException),
NotAuthorizedException(crate::error::NotAuthorizedException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
TooManyRequestsException(crate::error::TooManyRequestsException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteIdentityPoolError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteIdentityPoolErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
DeleteIdentityPoolErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
DeleteIdentityPoolErrorKind::NotAuthorizedException(_inner) => _inner.fmt(f),
DeleteIdentityPoolErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
DeleteIdentityPoolErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f),
DeleteIdentityPoolErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteIdentityPoolError {
fn code(&self) -> Option<&str> {
DeleteIdentityPoolError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteIdentityPoolError {
pub fn new(kind: DeleteIdentityPoolErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: DeleteIdentityPoolErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteIdentityPoolErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
DeleteIdentityPoolErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
DeleteIdentityPoolErrorKind::InvalidParameterException(_)
)
}
pub fn is_not_authorized_exception(&self) -> bool {
matches!(
&self.kind,
DeleteIdentityPoolErrorKind::NotAuthorizedException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DeleteIdentityPoolErrorKind::ResourceNotFoundException(_)
)
}
pub fn is_too_many_requests_exception(&self) -> bool {
matches!(
&self.kind,
DeleteIdentityPoolErrorKind::TooManyRequestsException(_)
)
}
}
impl std::error::Error for DeleteIdentityPoolError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteIdentityPoolErrorKind::InternalErrorException(_inner) => Some(_inner),
DeleteIdentityPoolErrorKind::InvalidParameterException(_inner) => Some(_inner),
DeleteIdentityPoolErrorKind::NotAuthorizedException(_inner) => Some(_inner),
DeleteIdentityPoolErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
DeleteIdentityPoolErrorKind::TooManyRequestsException(_inner) => Some(_inner),
DeleteIdentityPoolErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteIdentitiesError {
pub kind: DeleteIdentitiesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteIdentitiesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteIdentitiesErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteIdentitiesErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidParameterException(crate::error::InvalidParameterException),
TooManyRequestsException(crate::error::TooManyRequestsException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteIdentitiesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteIdentitiesErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
DeleteIdentitiesErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
DeleteIdentitiesErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f),
DeleteIdentitiesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteIdentitiesError {
fn code(&self) -> Option<&str> {
DeleteIdentitiesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteIdentitiesError {
pub fn new(kind: DeleteIdentitiesErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: DeleteIdentitiesErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteIdentitiesErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
DeleteIdentitiesErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
DeleteIdentitiesErrorKind::InvalidParameterException(_)
)
}
pub fn is_too_many_requests_exception(&self) -> bool {
matches!(
&self.kind,
DeleteIdentitiesErrorKind::TooManyRequestsException(_)
)
}
}
impl std::error::Error for DeleteIdentitiesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteIdentitiesErrorKind::InternalErrorException(_inner) => Some(_inner),
DeleteIdentitiesErrorKind::InvalidParameterException(_inner) => Some(_inner),
DeleteIdentitiesErrorKind::TooManyRequestsException(_inner) => Some(_inner),
DeleteIdentitiesErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateIdentityPoolError {
pub kind: CreateIdentityPoolErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for CreateIdentityPoolError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CreateIdentityPoolErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateIdentityPoolErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidParameterException(crate::error::InvalidParameterException),
LimitExceededException(crate::error::LimitExceededException),
NotAuthorizedException(crate::error::NotAuthorizedException),
ResourceConflictException(crate::error::ResourceConflictException),
TooManyRequestsException(crate::error::TooManyRequestsException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CreateIdentityPoolError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateIdentityPoolErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
CreateIdentityPoolErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
CreateIdentityPoolErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
CreateIdentityPoolErrorKind::NotAuthorizedException(_inner) => _inner.fmt(f),
CreateIdentityPoolErrorKind::ResourceConflictException(_inner) => _inner.fmt(f),
CreateIdentityPoolErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f),
CreateIdentityPoolErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateIdentityPoolError {
fn code(&self) -> Option<&str> {
CreateIdentityPoolError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateIdentityPoolError {
pub fn new(kind: CreateIdentityPoolErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: CreateIdentityPoolErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateIdentityPoolErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
CreateIdentityPoolErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
CreateIdentityPoolErrorKind::InvalidParameterException(_)
)
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
CreateIdentityPoolErrorKind::LimitExceededException(_)
)
}
pub fn is_not_authorized_exception(&self) -> bool {
matches!(
&self.kind,
CreateIdentityPoolErrorKind::NotAuthorizedException(_)
)
}
pub fn is_resource_conflict_exception(&self) -> bool {
matches!(
&self.kind,
CreateIdentityPoolErrorKind::ResourceConflictException(_)
)
}
pub fn is_too_many_requests_exception(&self) -> bool {
matches!(
&self.kind,
CreateIdentityPoolErrorKind::TooManyRequestsException(_)
)
}
}
impl std::error::Error for CreateIdentityPoolError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateIdentityPoolErrorKind::InternalErrorException(_inner) => Some(_inner),
CreateIdentityPoolErrorKind::InvalidParameterException(_inner) => Some(_inner),
CreateIdentityPoolErrorKind::LimitExceededException(_inner) => Some(_inner),
CreateIdentityPoolErrorKind::NotAuthorizedException(_inner) => Some(_inner),
CreateIdentityPoolErrorKind::ResourceConflictException(_inner) => Some(_inner),
CreateIdentityPoolErrorKind::TooManyRequestsException(_inner) => Some(_inner),
CreateIdentityPoolErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[derive(Debug)]
pub struct Unhandled {
source: Box<dyn std::error::Error + Send + Sync + 'static>,
}
impl Unhandled {
#[allow(unused)]
pub(crate) fn new(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self { source }
}
}
impl std::fmt::Display for Unhandled {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
write!(f, "unhandled error")
}
}
impl std::error::Error for Unhandled {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
Some(self.source.as_ref() as _)
}
}