#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateUserError {
pub kind: UpdateUserErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for UpdateUserError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: UpdateUserErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateUserErrorKind {
DeactivatingLastSystemUserException(crate::error::DeactivatingLastSystemUserException),
EntityNotExistsException(crate::error::EntityNotExistsException),
FailedDependencyException(crate::error::FailedDependencyException),
IllegalUserStateException(crate::error::IllegalUserStateException),
InvalidArgumentException(crate::error::InvalidArgumentException),
ProhibitedStateException(crate::error::ProhibitedStateException),
ServiceUnavailableException(crate::error::ServiceUnavailableException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
UnauthorizedResourceAccessException(crate::error::UnauthorizedResourceAccessException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for UpdateUserError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateUserErrorKind::DeactivatingLastSystemUserException(_inner) => _inner.fmt(f),
UpdateUserErrorKind::EntityNotExistsException(_inner) => _inner.fmt(f),
UpdateUserErrorKind::FailedDependencyException(_inner) => _inner.fmt(f),
UpdateUserErrorKind::IllegalUserStateException(_inner) => _inner.fmt(f),
UpdateUserErrorKind::InvalidArgumentException(_inner) => _inner.fmt(f),
UpdateUserErrorKind::ProhibitedStateException(_inner) => _inner.fmt(f),
UpdateUserErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f),
UpdateUserErrorKind::UnauthorizedOperationException(_inner) => _inner.fmt(f),
UpdateUserErrorKind::UnauthorizedResourceAccessException(_inner) => _inner.fmt(f),
UpdateUserErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateUserError {
fn code(&self) -> Option<&str> {
UpdateUserError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateUserError {
pub fn new(kind: UpdateUserErrorKind, 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: UpdateUserErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateUserErrorKind::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_deactivating_last_system_user_exception(&self) -> bool {
matches!(
&self.kind,
UpdateUserErrorKind::DeactivatingLastSystemUserException(_)
)
}
pub fn is_entity_not_exists_exception(&self) -> bool {
matches!(&self.kind, UpdateUserErrorKind::EntityNotExistsException(_))
}
pub fn is_failed_dependency_exception(&self) -> bool {
matches!(
&self.kind,
UpdateUserErrorKind::FailedDependencyException(_)
)
}
pub fn is_illegal_user_state_exception(&self) -> bool {
matches!(
&self.kind,
UpdateUserErrorKind::IllegalUserStateException(_)
)
}
pub fn is_invalid_argument_exception(&self) -> bool {
matches!(&self.kind, UpdateUserErrorKind::InvalidArgumentException(_))
}
pub fn is_prohibited_state_exception(&self) -> bool {
matches!(&self.kind, UpdateUserErrorKind::ProhibitedStateException(_))
}
pub fn is_service_unavailable_exception(&self) -> bool {
matches!(
&self.kind,
UpdateUserErrorKind::ServiceUnavailableException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
UpdateUserErrorKind::UnauthorizedOperationException(_)
)
}
pub fn is_unauthorized_resource_access_exception(&self) -> bool {
matches!(
&self.kind,
UpdateUserErrorKind::UnauthorizedResourceAccessException(_)
)
}
}
impl std::error::Error for UpdateUserError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateUserErrorKind::DeactivatingLastSystemUserException(_inner) => Some(_inner),
UpdateUserErrorKind::EntityNotExistsException(_inner) => Some(_inner),
UpdateUserErrorKind::FailedDependencyException(_inner) => Some(_inner),
UpdateUserErrorKind::IllegalUserStateException(_inner) => Some(_inner),
UpdateUserErrorKind::InvalidArgumentException(_inner) => Some(_inner),
UpdateUserErrorKind::ProhibitedStateException(_inner) => Some(_inner),
UpdateUserErrorKind::ServiceUnavailableException(_inner) => Some(_inner),
UpdateUserErrorKind::UnauthorizedOperationException(_inner) => Some(_inner),
UpdateUserErrorKind::UnauthorizedResourceAccessException(_inner) => Some(_inner),
UpdateUserErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UnauthorizedResourceAccessException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl UnauthorizedResourceAccessException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for UnauthorizedResourceAccessException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "UnauthorizedResourceAccessException")?;
if let Some(inner_1) = &self.message {
{
write!(f, ": {}", inner_1)?;
}
}
Ok(())
}
}
impl std::error::Error for UnauthorizedResourceAccessException {}
pub mod unauthorized_resource_access_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 {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::UnauthorizedResourceAccessException {
crate::error::UnauthorizedResourceAccessException {
message: self.message,
}
}
}
}
impl UnauthorizedResourceAccessException {
pub fn builder() -> crate::error::unauthorized_resource_access_exception::Builder {
crate::error::unauthorized_resource_access_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UnauthorizedOperationException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
#[allow(missing_docs)] #[doc(hidden)]
pub code: std::option::Option<std::string::String>,
}
impl UnauthorizedOperationException {
#[allow(missing_docs)] pub fn code(&self) -> std::option::Option<&str> {
self.code.as_deref()
}
}
impl UnauthorizedOperationException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for UnauthorizedOperationException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "UnauthorizedOperationException")?;
if let Some(inner_2) = &self.message {
{
write!(f, ": {}", inner_2)?;
}
}
Ok(())
}
}
impl std::error::Error for UnauthorizedOperationException {}
pub mod unauthorized_operation_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>,
pub(crate) code: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
#[allow(missing_docs)] pub fn code(mut self, input: impl Into<std::string::String>) -> Self {
self.code = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_code(mut self, input: std::option::Option<std::string::String>) -> Self {
self.code = input;
self
}
pub fn build(self) -> crate::error::UnauthorizedOperationException {
crate::error::UnauthorizedOperationException {
message: self.message,
code: self.code,
}
}
}
}
impl UnauthorizedOperationException {
pub fn builder() -> crate::error::unauthorized_operation_exception::Builder {
crate::error::unauthorized_operation_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ServiceUnavailableException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl ServiceUnavailableException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ServiceUnavailableException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ServiceUnavailableException")?;
if let Some(inner_3) = &self.message {
{
write!(f, ": {}", inner_3)?;
}
}
Ok(())
}
}
impl std::error::Error for ServiceUnavailableException {}
pub mod service_unavailable_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 {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::ServiceUnavailableException {
crate::error::ServiceUnavailableException {
message: self.message,
}
}
}
}
impl ServiceUnavailableException {
pub fn builder() -> crate::error::service_unavailable_exception::Builder {
crate::error::service_unavailable_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ProhibitedStateException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl ProhibitedStateException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ProhibitedStateException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ProhibitedStateException")?;
if let Some(inner_4) = &self.message {
{
write!(f, ": {}", inner_4)?;
}
}
Ok(())
}
}
impl std::error::Error for ProhibitedStateException {}
pub mod prohibited_state_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 {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::ProhibitedStateException {
crate::error::ProhibitedStateException {
message: self.message,
}
}
}
}
impl ProhibitedStateException {
pub fn builder() -> crate::error::prohibited_state_exception::Builder {
crate::error::prohibited_state_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidArgumentException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidArgumentException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidArgumentException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidArgumentException")?;
if let Some(inner_5) = &self.message {
{
write!(f, ": {}", inner_5)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidArgumentException {}
pub mod invalid_argument_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 {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidArgumentException {
crate::error::InvalidArgumentException {
message: self.message,
}
}
}
}
impl InvalidArgumentException {
pub fn builder() -> crate::error::invalid_argument_exception::Builder {
crate::error::invalid_argument_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct IllegalUserStateException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl IllegalUserStateException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for IllegalUserStateException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "IllegalUserStateException")?;
if let Some(inner_6) = &self.message {
{
write!(f, ": {}", inner_6)?;
}
}
Ok(())
}
}
impl std::error::Error for IllegalUserStateException {}
pub mod illegal_user_state_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 {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::IllegalUserStateException {
crate::error::IllegalUserStateException {
message: self.message,
}
}
}
}
impl IllegalUserStateException {
pub fn builder() -> crate::error::illegal_user_state_exception::Builder {
crate::error::illegal_user_state_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct FailedDependencyException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl FailedDependencyException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for FailedDependencyException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "FailedDependencyException")?;
if let Some(inner_7) = &self.message {
{
write!(f, ": {}", inner_7)?;
}
}
Ok(())
}
}
impl std::error::Error for FailedDependencyException {}
pub mod failed_dependency_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 {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::FailedDependencyException {
crate::error::FailedDependencyException {
message: self.message,
}
}
}
}
impl FailedDependencyException {
pub fn builder() -> crate::error::failed_dependency_exception::Builder {
crate::error::failed_dependency_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct EntityNotExistsException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
#[doc(hidden)]
pub entity_ids: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl EntityNotExistsException {
pub fn entity_ids(&self) -> std::option::Option<&[std::string::String]> {
self.entity_ids.as_deref()
}
}
impl EntityNotExistsException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for EntityNotExistsException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "EntityNotExistsException")?;
if let Some(inner_8) = &self.message {
{
write!(f, ": {}", inner_8)?;
}
}
Ok(())
}
}
impl std::error::Error for EntityNotExistsException {}
pub mod entity_not_exists_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>,
pub(crate) entity_ids: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn entity_ids(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.entity_ids.unwrap_or_default();
v.push(input.into());
self.entity_ids = Some(v);
self
}
pub fn set_entity_ids(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.entity_ids = input;
self
}
pub fn build(self) -> crate::error::EntityNotExistsException {
crate::error::EntityNotExistsException {
message: self.message,
entity_ids: self.entity_ids,
}
}
}
}
impl EntityNotExistsException {
pub fn builder() -> crate::error::entity_not_exists_exception::Builder {
crate::error::entity_not_exists_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeactivatingLastSystemUserException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
#[allow(missing_docs)] #[doc(hidden)]
pub code: std::option::Option<std::string::String>,
}
impl DeactivatingLastSystemUserException {
#[allow(missing_docs)] pub fn code(&self) -> std::option::Option<&str> {
self.code.as_deref()
}
}
impl DeactivatingLastSystemUserException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for DeactivatingLastSystemUserException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "DeactivatingLastSystemUserException")?;
if let Some(inner_9) = &self.message {
{
write!(f, ": {}", inner_9)?;
}
}
Ok(())
}
}
impl std::error::Error for DeactivatingLastSystemUserException {}
pub mod deactivating_last_system_user_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>,
pub(crate) code: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
#[allow(missing_docs)] pub fn code(mut self, input: impl Into<std::string::String>) -> Self {
self.code = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_code(mut self, input: std::option::Option<std::string::String>) -> Self {
self.code = input;
self
}
pub fn build(self) -> crate::error::DeactivatingLastSystemUserException {
crate::error::DeactivatingLastSystemUserException {
message: self.message,
code: self.code,
}
}
}
}
impl DeactivatingLastSystemUserException {
pub fn builder() -> crate::error::deactivating_last_system_user_exception::Builder {
crate::error::deactivating_last_system_user_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateFolderError {
pub kind: UpdateFolderErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for UpdateFolderError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: UpdateFolderErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateFolderErrorKind {
ConcurrentModificationException(crate::error::ConcurrentModificationException),
ConflictingOperationException(crate::error::ConflictingOperationException),
EntityAlreadyExistsException(crate::error::EntityAlreadyExistsException),
EntityNotExistsException(crate::error::EntityNotExistsException),
FailedDependencyException(crate::error::FailedDependencyException),
LimitExceededException(crate::error::LimitExceededException),
ProhibitedStateException(crate::error::ProhibitedStateException),
ServiceUnavailableException(crate::error::ServiceUnavailableException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
UnauthorizedResourceAccessException(crate::error::UnauthorizedResourceAccessException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for UpdateFolderError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateFolderErrorKind::ConcurrentModificationException(_inner) => _inner.fmt(f),
UpdateFolderErrorKind::ConflictingOperationException(_inner) => _inner.fmt(f),
UpdateFolderErrorKind::EntityAlreadyExistsException(_inner) => _inner.fmt(f),
UpdateFolderErrorKind::EntityNotExistsException(_inner) => _inner.fmt(f),
UpdateFolderErrorKind::FailedDependencyException(_inner) => _inner.fmt(f),
UpdateFolderErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
UpdateFolderErrorKind::ProhibitedStateException(_inner) => _inner.fmt(f),
UpdateFolderErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f),
UpdateFolderErrorKind::UnauthorizedOperationException(_inner) => _inner.fmt(f),
UpdateFolderErrorKind::UnauthorizedResourceAccessException(_inner) => _inner.fmt(f),
UpdateFolderErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateFolderError {
fn code(&self) -> Option<&str> {
UpdateFolderError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateFolderError {
pub fn new(kind: UpdateFolderErrorKind, 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: UpdateFolderErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateFolderErrorKind::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,
UpdateFolderErrorKind::ConcurrentModificationException(_)
)
}
pub fn is_conflicting_operation_exception(&self) -> bool {
matches!(
&self.kind,
UpdateFolderErrorKind::ConflictingOperationException(_)
)
}
pub fn is_entity_already_exists_exception(&self) -> bool {
matches!(
&self.kind,
UpdateFolderErrorKind::EntityAlreadyExistsException(_)
)
}
pub fn is_entity_not_exists_exception(&self) -> bool {
matches!(
&self.kind,
UpdateFolderErrorKind::EntityNotExistsException(_)
)
}
pub fn is_failed_dependency_exception(&self) -> bool {
matches!(
&self.kind,
UpdateFolderErrorKind::FailedDependencyException(_)
)
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(&self.kind, UpdateFolderErrorKind::LimitExceededException(_))
}
pub fn is_prohibited_state_exception(&self) -> bool {
matches!(
&self.kind,
UpdateFolderErrorKind::ProhibitedStateException(_)
)
}
pub fn is_service_unavailable_exception(&self) -> bool {
matches!(
&self.kind,
UpdateFolderErrorKind::ServiceUnavailableException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
UpdateFolderErrorKind::UnauthorizedOperationException(_)
)
}
pub fn is_unauthorized_resource_access_exception(&self) -> bool {
matches!(
&self.kind,
UpdateFolderErrorKind::UnauthorizedResourceAccessException(_)
)
}
}
impl std::error::Error for UpdateFolderError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateFolderErrorKind::ConcurrentModificationException(_inner) => Some(_inner),
UpdateFolderErrorKind::ConflictingOperationException(_inner) => Some(_inner),
UpdateFolderErrorKind::EntityAlreadyExistsException(_inner) => Some(_inner),
UpdateFolderErrorKind::EntityNotExistsException(_inner) => Some(_inner),
UpdateFolderErrorKind::FailedDependencyException(_inner) => Some(_inner),
UpdateFolderErrorKind::LimitExceededException(_inner) => Some(_inner),
UpdateFolderErrorKind::ProhibitedStateException(_inner) => Some(_inner),
UpdateFolderErrorKind::ServiceUnavailableException(_inner) => Some(_inner),
UpdateFolderErrorKind::UnauthorizedOperationException(_inner) => Some(_inner),
UpdateFolderErrorKind::UnauthorizedResourceAccessException(_inner) => Some(_inner),
UpdateFolderErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct LimitExceededException {
#[allow(missing_docs)] #[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_10) = &self.message {
{
write!(f, ": {}", inner_10)?;
}
}
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 {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] 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 EntityAlreadyExistsException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl EntityAlreadyExistsException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for EntityAlreadyExistsException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "EntityAlreadyExistsException")?;
if let Some(inner_11) = &self.message {
{
write!(f, ": {}", inner_11)?;
}
}
Ok(())
}
}
impl std::error::Error for EntityAlreadyExistsException {}
pub mod entity_already_exists_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 {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::EntityAlreadyExistsException {
crate::error::EntityAlreadyExistsException {
message: self.message,
}
}
}
}
impl EntityAlreadyExistsException {
pub fn builder() -> crate::error::entity_already_exists_exception::Builder {
crate::error::entity_already_exists_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ConflictingOperationException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl ConflictingOperationException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ConflictingOperationException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ConflictingOperationException")?;
if let Some(inner_12) = &self.message {
{
write!(f, ": {}", inner_12)?;
}
}
Ok(())
}
}
impl std::error::Error for ConflictingOperationException {}
pub mod conflicting_operation_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 {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::ConflictingOperationException {
crate::error::ConflictingOperationException {
message: self.message,
}
}
}
}
impl ConflictingOperationException {
pub fn builder() -> crate::error::conflicting_operation_exception::Builder {
crate::error::conflicting_operation_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ConcurrentModificationException {
#[allow(missing_docs)] #[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_13) = &self.message {
{
write!(f, ": {}", inner_13)?;
}
}
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 {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] 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 UpdateDocumentVersionError {
pub kind: UpdateDocumentVersionErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for UpdateDocumentVersionError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: UpdateDocumentVersionErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateDocumentVersionErrorKind {
ConcurrentModificationException(crate::error::ConcurrentModificationException),
EntityNotExistsException(crate::error::EntityNotExistsException),
FailedDependencyException(crate::error::FailedDependencyException),
InvalidOperationException(crate::error::InvalidOperationException),
ProhibitedStateException(crate::error::ProhibitedStateException),
ServiceUnavailableException(crate::error::ServiceUnavailableException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
UnauthorizedResourceAccessException(crate::error::UnauthorizedResourceAccessException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for UpdateDocumentVersionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateDocumentVersionErrorKind::ConcurrentModificationException(_inner) => {
_inner.fmt(f)
}
UpdateDocumentVersionErrorKind::EntityNotExistsException(_inner) => _inner.fmt(f),
UpdateDocumentVersionErrorKind::FailedDependencyException(_inner) => _inner.fmt(f),
UpdateDocumentVersionErrorKind::InvalidOperationException(_inner) => _inner.fmt(f),
UpdateDocumentVersionErrorKind::ProhibitedStateException(_inner) => _inner.fmt(f),
UpdateDocumentVersionErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f),
UpdateDocumentVersionErrorKind::UnauthorizedOperationException(_inner) => _inner.fmt(f),
UpdateDocumentVersionErrorKind::UnauthorizedResourceAccessException(_inner) => {
_inner.fmt(f)
}
UpdateDocumentVersionErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateDocumentVersionError {
fn code(&self) -> Option<&str> {
UpdateDocumentVersionError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateDocumentVersionError {
pub fn new(kind: UpdateDocumentVersionErrorKind, 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: UpdateDocumentVersionErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateDocumentVersionErrorKind::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,
UpdateDocumentVersionErrorKind::ConcurrentModificationException(_)
)
}
pub fn is_entity_not_exists_exception(&self) -> bool {
matches!(
&self.kind,
UpdateDocumentVersionErrorKind::EntityNotExistsException(_)
)
}
pub fn is_failed_dependency_exception(&self) -> bool {
matches!(
&self.kind,
UpdateDocumentVersionErrorKind::FailedDependencyException(_)
)
}
pub fn is_invalid_operation_exception(&self) -> bool {
matches!(
&self.kind,
UpdateDocumentVersionErrorKind::InvalidOperationException(_)
)
}
pub fn is_prohibited_state_exception(&self) -> bool {
matches!(
&self.kind,
UpdateDocumentVersionErrorKind::ProhibitedStateException(_)
)
}
pub fn is_service_unavailable_exception(&self) -> bool {
matches!(
&self.kind,
UpdateDocumentVersionErrorKind::ServiceUnavailableException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
UpdateDocumentVersionErrorKind::UnauthorizedOperationException(_)
)
}
pub fn is_unauthorized_resource_access_exception(&self) -> bool {
matches!(
&self.kind,
UpdateDocumentVersionErrorKind::UnauthorizedResourceAccessException(_)
)
}
}
impl std::error::Error for UpdateDocumentVersionError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateDocumentVersionErrorKind::ConcurrentModificationException(_inner) => Some(_inner),
UpdateDocumentVersionErrorKind::EntityNotExistsException(_inner) => Some(_inner),
UpdateDocumentVersionErrorKind::FailedDependencyException(_inner) => Some(_inner),
UpdateDocumentVersionErrorKind::InvalidOperationException(_inner) => Some(_inner),
UpdateDocumentVersionErrorKind::ProhibitedStateException(_inner) => Some(_inner),
UpdateDocumentVersionErrorKind::ServiceUnavailableException(_inner) => Some(_inner),
UpdateDocumentVersionErrorKind::UnauthorizedOperationException(_inner) => Some(_inner),
UpdateDocumentVersionErrorKind::UnauthorizedResourceAccessException(_inner) => {
Some(_inner)
}
UpdateDocumentVersionErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidOperationException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidOperationException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidOperationException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidOperationException")?;
if let Some(inner_14) = &self.message {
{
write!(f, ": {}", inner_14)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidOperationException {}
pub mod invalid_operation_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 {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidOperationException {
crate::error::InvalidOperationException {
message: self.message,
}
}
}
}
impl InvalidOperationException {
pub fn builder() -> crate::error::invalid_operation_exception::Builder {
crate::error::invalid_operation_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateDocumentError {
pub kind: UpdateDocumentErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for UpdateDocumentError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: UpdateDocumentErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateDocumentErrorKind {
ConcurrentModificationException(crate::error::ConcurrentModificationException),
ConflictingOperationException(crate::error::ConflictingOperationException),
EntityAlreadyExistsException(crate::error::EntityAlreadyExistsException),
EntityNotExistsException(crate::error::EntityNotExistsException),
FailedDependencyException(crate::error::FailedDependencyException),
LimitExceededException(crate::error::LimitExceededException),
ProhibitedStateException(crate::error::ProhibitedStateException),
ServiceUnavailableException(crate::error::ServiceUnavailableException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
UnauthorizedResourceAccessException(crate::error::UnauthorizedResourceAccessException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for UpdateDocumentError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateDocumentErrorKind::ConcurrentModificationException(_inner) => _inner.fmt(f),
UpdateDocumentErrorKind::ConflictingOperationException(_inner) => _inner.fmt(f),
UpdateDocumentErrorKind::EntityAlreadyExistsException(_inner) => _inner.fmt(f),
UpdateDocumentErrorKind::EntityNotExistsException(_inner) => _inner.fmt(f),
UpdateDocumentErrorKind::FailedDependencyException(_inner) => _inner.fmt(f),
UpdateDocumentErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
UpdateDocumentErrorKind::ProhibitedStateException(_inner) => _inner.fmt(f),
UpdateDocumentErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f),
UpdateDocumentErrorKind::UnauthorizedOperationException(_inner) => _inner.fmt(f),
UpdateDocumentErrorKind::UnauthorizedResourceAccessException(_inner) => _inner.fmt(f),
UpdateDocumentErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateDocumentError {
fn code(&self) -> Option<&str> {
UpdateDocumentError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateDocumentError {
pub fn new(kind: UpdateDocumentErrorKind, 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: UpdateDocumentErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateDocumentErrorKind::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,
UpdateDocumentErrorKind::ConcurrentModificationException(_)
)
}
pub fn is_conflicting_operation_exception(&self) -> bool {
matches!(
&self.kind,
UpdateDocumentErrorKind::ConflictingOperationException(_)
)
}
pub fn is_entity_already_exists_exception(&self) -> bool {
matches!(
&self.kind,
UpdateDocumentErrorKind::EntityAlreadyExistsException(_)
)
}
pub fn is_entity_not_exists_exception(&self) -> bool {
matches!(
&self.kind,
UpdateDocumentErrorKind::EntityNotExistsException(_)
)
}
pub fn is_failed_dependency_exception(&self) -> bool {
matches!(
&self.kind,
UpdateDocumentErrorKind::FailedDependencyException(_)
)
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
UpdateDocumentErrorKind::LimitExceededException(_)
)
}
pub fn is_prohibited_state_exception(&self) -> bool {
matches!(
&self.kind,
UpdateDocumentErrorKind::ProhibitedStateException(_)
)
}
pub fn is_service_unavailable_exception(&self) -> bool {
matches!(
&self.kind,
UpdateDocumentErrorKind::ServiceUnavailableException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
UpdateDocumentErrorKind::UnauthorizedOperationException(_)
)
}
pub fn is_unauthorized_resource_access_exception(&self) -> bool {
matches!(
&self.kind,
UpdateDocumentErrorKind::UnauthorizedResourceAccessException(_)
)
}
}
impl std::error::Error for UpdateDocumentError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateDocumentErrorKind::ConcurrentModificationException(_inner) => Some(_inner),
UpdateDocumentErrorKind::ConflictingOperationException(_inner) => Some(_inner),
UpdateDocumentErrorKind::EntityAlreadyExistsException(_inner) => Some(_inner),
UpdateDocumentErrorKind::EntityNotExistsException(_inner) => Some(_inner),
UpdateDocumentErrorKind::FailedDependencyException(_inner) => Some(_inner),
UpdateDocumentErrorKind::LimitExceededException(_inner) => Some(_inner),
UpdateDocumentErrorKind::ProhibitedStateException(_inner) => Some(_inner),
UpdateDocumentErrorKind::ServiceUnavailableException(_inner) => Some(_inner),
UpdateDocumentErrorKind::UnauthorizedOperationException(_inner) => Some(_inner),
UpdateDocumentErrorKind::UnauthorizedResourceAccessException(_inner) => Some(_inner),
UpdateDocumentErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct RestoreDocumentVersionsError {
pub kind: RestoreDocumentVersionsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for RestoreDocumentVersionsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: RestoreDocumentVersionsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum RestoreDocumentVersionsErrorKind {
ConcurrentModificationException(crate::error::ConcurrentModificationException),
ConflictingOperationException(crate::error::ConflictingOperationException),
EntityNotExistsException(crate::error::EntityNotExistsException),
FailedDependencyException(crate::error::FailedDependencyException),
InvalidOperationException(crate::error::InvalidOperationException),
ProhibitedStateException(crate::error::ProhibitedStateException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
UnauthorizedResourceAccessException(crate::error::UnauthorizedResourceAccessException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for RestoreDocumentVersionsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
RestoreDocumentVersionsErrorKind::ConcurrentModificationException(_inner) => {
_inner.fmt(f)
}
RestoreDocumentVersionsErrorKind::ConflictingOperationException(_inner) => {
_inner.fmt(f)
}
RestoreDocumentVersionsErrorKind::EntityNotExistsException(_inner) => _inner.fmt(f),
RestoreDocumentVersionsErrorKind::FailedDependencyException(_inner) => _inner.fmt(f),
RestoreDocumentVersionsErrorKind::InvalidOperationException(_inner) => _inner.fmt(f),
RestoreDocumentVersionsErrorKind::ProhibitedStateException(_inner) => _inner.fmt(f),
RestoreDocumentVersionsErrorKind::UnauthorizedOperationException(_inner) => {
_inner.fmt(f)
}
RestoreDocumentVersionsErrorKind::UnauthorizedResourceAccessException(_inner) => {
_inner.fmt(f)
}
RestoreDocumentVersionsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for RestoreDocumentVersionsError {
fn code(&self) -> Option<&str> {
RestoreDocumentVersionsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl RestoreDocumentVersionsError {
pub fn new(kind: RestoreDocumentVersionsErrorKind, 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: RestoreDocumentVersionsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: RestoreDocumentVersionsErrorKind::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,
RestoreDocumentVersionsErrorKind::ConcurrentModificationException(_)
)
}
pub fn is_conflicting_operation_exception(&self) -> bool {
matches!(
&self.kind,
RestoreDocumentVersionsErrorKind::ConflictingOperationException(_)
)
}
pub fn is_entity_not_exists_exception(&self) -> bool {
matches!(
&self.kind,
RestoreDocumentVersionsErrorKind::EntityNotExistsException(_)
)
}
pub fn is_failed_dependency_exception(&self) -> bool {
matches!(
&self.kind,
RestoreDocumentVersionsErrorKind::FailedDependencyException(_)
)
}
pub fn is_invalid_operation_exception(&self) -> bool {
matches!(
&self.kind,
RestoreDocumentVersionsErrorKind::InvalidOperationException(_)
)
}
pub fn is_prohibited_state_exception(&self) -> bool {
matches!(
&self.kind,
RestoreDocumentVersionsErrorKind::ProhibitedStateException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
RestoreDocumentVersionsErrorKind::UnauthorizedOperationException(_)
)
}
pub fn is_unauthorized_resource_access_exception(&self) -> bool {
matches!(
&self.kind,
RestoreDocumentVersionsErrorKind::UnauthorizedResourceAccessException(_)
)
}
}
impl std::error::Error for RestoreDocumentVersionsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
RestoreDocumentVersionsErrorKind::ConcurrentModificationException(_inner) => {
Some(_inner)
}
RestoreDocumentVersionsErrorKind::ConflictingOperationException(_inner) => Some(_inner),
RestoreDocumentVersionsErrorKind::EntityNotExistsException(_inner) => Some(_inner),
RestoreDocumentVersionsErrorKind::FailedDependencyException(_inner) => Some(_inner),
RestoreDocumentVersionsErrorKind::InvalidOperationException(_inner) => Some(_inner),
RestoreDocumentVersionsErrorKind::ProhibitedStateException(_inner) => Some(_inner),
RestoreDocumentVersionsErrorKind::UnauthorizedOperationException(_inner) => {
Some(_inner)
}
RestoreDocumentVersionsErrorKind::UnauthorizedResourceAccessException(_inner) => {
Some(_inner)
}
RestoreDocumentVersionsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct RemoveResourcePermissionError {
pub kind: RemoveResourcePermissionErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for RemoveResourcePermissionError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: RemoveResourcePermissionErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum RemoveResourcePermissionErrorKind {
FailedDependencyException(crate::error::FailedDependencyException),
ServiceUnavailableException(crate::error::ServiceUnavailableException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
UnauthorizedResourceAccessException(crate::error::UnauthorizedResourceAccessException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for RemoveResourcePermissionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
RemoveResourcePermissionErrorKind::FailedDependencyException(_inner) => _inner.fmt(f),
RemoveResourcePermissionErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f),
RemoveResourcePermissionErrorKind::UnauthorizedOperationException(_inner) => {
_inner.fmt(f)
}
RemoveResourcePermissionErrorKind::UnauthorizedResourceAccessException(_inner) => {
_inner.fmt(f)
}
RemoveResourcePermissionErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for RemoveResourcePermissionError {
fn code(&self) -> Option<&str> {
RemoveResourcePermissionError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl RemoveResourcePermissionError {
pub fn new(kind: RemoveResourcePermissionErrorKind, 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: RemoveResourcePermissionErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: RemoveResourcePermissionErrorKind::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_failed_dependency_exception(&self) -> bool {
matches!(
&self.kind,
RemoveResourcePermissionErrorKind::FailedDependencyException(_)
)
}
pub fn is_service_unavailable_exception(&self) -> bool {
matches!(
&self.kind,
RemoveResourcePermissionErrorKind::ServiceUnavailableException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
RemoveResourcePermissionErrorKind::UnauthorizedOperationException(_)
)
}
pub fn is_unauthorized_resource_access_exception(&self) -> bool {
matches!(
&self.kind,
RemoveResourcePermissionErrorKind::UnauthorizedResourceAccessException(_)
)
}
}
impl std::error::Error for RemoveResourcePermissionError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
RemoveResourcePermissionErrorKind::FailedDependencyException(_inner) => Some(_inner),
RemoveResourcePermissionErrorKind::ServiceUnavailableException(_inner) => Some(_inner),
RemoveResourcePermissionErrorKind::UnauthorizedOperationException(_inner) => {
Some(_inner)
}
RemoveResourcePermissionErrorKind::UnauthorizedResourceAccessException(_inner) => {
Some(_inner)
}
RemoveResourcePermissionErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct RemoveAllResourcePermissionsError {
pub kind: RemoveAllResourcePermissionsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for RemoveAllResourcePermissionsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: RemoveAllResourcePermissionsErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum RemoveAllResourcePermissionsErrorKind {
FailedDependencyException(crate::error::FailedDependencyException),
ServiceUnavailableException(crate::error::ServiceUnavailableException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
UnauthorizedResourceAccessException(crate::error::UnauthorizedResourceAccessException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for RemoveAllResourcePermissionsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
RemoveAllResourcePermissionsErrorKind::FailedDependencyException(_inner) => {
_inner.fmt(f)
}
RemoveAllResourcePermissionsErrorKind::ServiceUnavailableException(_inner) => {
_inner.fmt(f)
}
RemoveAllResourcePermissionsErrorKind::UnauthorizedOperationException(_inner) => {
_inner.fmt(f)
}
RemoveAllResourcePermissionsErrorKind::UnauthorizedResourceAccessException(_inner) => {
_inner.fmt(f)
}
RemoveAllResourcePermissionsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for RemoveAllResourcePermissionsError {
fn code(&self) -> Option<&str> {
RemoveAllResourcePermissionsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl RemoveAllResourcePermissionsError {
pub fn new(kind: RemoveAllResourcePermissionsErrorKind, 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: RemoveAllResourcePermissionsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: RemoveAllResourcePermissionsErrorKind::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_failed_dependency_exception(&self) -> bool {
matches!(
&self.kind,
RemoveAllResourcePermissionsErrorKind::FailedDependencyException(_)
)
}
pub fn is_service_unavailable_exception(&self) -> bool {
matches!(
&self.kind,
RemoveAllResourcePermissionsErrorKind::ServiceUnavailableException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
RemoveAllResourcePermissionsErrorKind::UnauthorizedOperationException(_)
)
}
pub fn is_unauthorized_resource_access_exception(&self) -> bool {
matches!(
&self.kind,
RemoveAllResourcePermissionsErrorKind::UnauthorizedResourceAccessException(_)
)
}
}
impl std::error::Error for RemoveAllResourcePermissionsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
RemoveAllResourcePermissionsErrorKind::FailedDependencyException(_inner) => {
Some(_inner)
}
RemoveAllResourcePermissionsErrorKind::ServiceUnavailableException(_inner) => {
Some(_inner)
}
RemoveAllResourcePermissionsErrorKind::UnauthorizedOperationException(_inner) => {
Some(_inner)
}
RemoveAllResourcePermissionsErrorKind::UnauthorizedResourceAccessException(_inner) => {
Some(_inner)
}
RemoveAllResourcePermissionsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct InitiateDocumentVersionUploadError {
pub kind: InitiateDocumentVersionUploadErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for InitiateDocumentVersionUploadError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: InitiateDocumentVersionUploadErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum InitiateDocumentVersionUploadErrorKind {
DraftUploadOutOfSyncException(crate::error::DraftUploadOutOfSyncException),
EntityAlreadyExistsException(crate::error::EntityAlreadyExistsException),
EntityNotExistsException(crate::error::EntityNotExistsException),
FailedDependencyException(crate::error::FailedDependencyException),
InvalidPasswordException(crate::error::InvalidPasswordException),
LimitExceededException(crate::error::LimitExceededException),
ProhibitedStateException(crate::error::ProhibitedStateException),
ResourceAlreadyCheckedOutException(crate::error::ResourceAlreadyCheckedOutException),
ServiceUnavailableException(crate::error::ServiceUnavailableException),
StorageLimitExceededException(crate::error::StorageLimitExceededException),
StorageLimitWillExceedException(crate::error::StorageLimitWillExceedException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
UnauthorizedResourceAccessException(crate::error::UnauthorizedResourceAccessException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for InitiateDocumentVersionUploadError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
InitiateDocumentVersionUploadErrorKind::DraftUploadOutOfSyncException(_inner) => {
_inner.fmt(f)
}
InitiateDocumentVersionUploadErrorKind::EntityAlreadyExistsException(_inner) => {
_inner.fmt(f)
}
InitiateDocumentVersionUploadErrorKind::EntityNotExistsException(_inner) => {
_inner.fmt(f)
}
InitiateDocumentVersionUploadErrorKind::FailedDependencyException(_inner) => {
_inner.fmt(f)
}
InitiateDocumentVersionUploadErrorKind::InvalidPasswordException(_inner) => {
_inner.fmt(f)
}
InitiateDocumentVersionUploadErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
InitiateDocumentVersionUploadErrorKind::ProhibitedStateException(_inner) => {
_inner.fmt(f)
}
InitiateDocumentVersionUploadErrorKind::ResourceAlreadyCheckedOutException(_inner) => {
_inner.fmt(f)
}
InitiateDocumentVersionUploadErrorKind::ServiceUnavailableException(_inner) => {
_inner.fmt(f)
}
InitiateDocumentVersionUploadErrorKind::StorageLimitExceededException(_inner) => {
_inner.fmt(f)
}
InitiateDocumentVersionUploadErrorKind::StorageLimitWillExceedException(_inner) => {
_inner.fmt(f)
}
InitiateDocumentVersionUploadErrorKind::UnauthorizedOperationException(_inner) => {
_inner.fmt(f)
}
InitiateDocumentVersionUploadErrorKind::UnauthorizedResourceAccessException(_inner) => {
_inner.fmt(f)
}
InitiateDocumentVersionUploadErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for InitiateDocumentVersionUploadError {
fn code(&self) -> Option<&str> {
InitiateDocumentVersionUploadError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl InitiateDocumentVersionUploadError {
pub fn new(
kind: InitiateDocumentVersionUploadErrorKind,
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: InitiateDocumentVersionUploadErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: InitiateDocumentVersionUploadErrorKind::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_draft_upload_out_of_sync_exception(&self) -> bool {
matches!(
&self.kind,
InitiateDocumentVersionUploadErrorKind::DraftUploadOutOfSyncException(_)
)
}
pub fn is_entity_already_exists_exception(&self) -> bool {
matches!(
&self.kind,
InitiateDocumentVersionUploadErrorKind::EntityAlreadyExistsException(_)
)
}
pub fn is_entity_not_exists_exception(&self) -> bool {
matches!(
&self.kind,
InitiateDocumentVersionUploadErrorKind::EntityNotExistsException(_)
)
}
pub fn is_failed_dependency_exception(&self) -> bool {
matches!(
&self.kind,
InitiateDocumentVersionUploadErrorKind::FailedDependencyException(_)
)
}
pub fn is_invalid_password_exception(&self) -> bool {
matches!(
&self.kind,
InitiateDocumentVersionUploadErrorKind::InvalidPasswordException(_)
)
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
InitiateDocumentVersionUploadErrorKind::LimitExceededException(_)
)
}
pub fn is_prohibited_state_exception(&self) -> bool {
matches!(
&self.kind,
InitiateDocumentVersionUploadErrorKind::ProhibitedStateException(_)
)
}
pub fn is_resource_already_checked_out_exception(&self) -> bool {
matches!(
&self.kind,
InitiateDocumentVersionUploadErrorKind::ResourceAlreadyCheckedOutException(_)
)
}
pub fn is_service_unavailable_exception(&self) -> bool {
matches!(
&self.kind,
InitiateDocumentVersionUploadErrorKind::ServiceUnavailableException(_)
)
}
pub fn is_storage_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
InitiateDocumentVersionUploadErrorKind::StorageLimitExceededException(_)
)
}
pub fn is_storage_limit_will_exceed_exception(&self) -> bool {
matches!(
&self.kind,
InitiateDocumentVersionUploadErrorKind::StorageLimitWillExceedException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
InitiateDocumentVersionUploadErrorKind::UnauthorizedOperationException(_)
)
}
pub fn is_unauthorized_resource_access_exception(&self) -> bool {
matches!(
&self.kind,
InitiateDocumentVersionUploadErrorKind::UnauthorizedResourceAccessException(_)
)
}
}
impl std::error::Error for InitiateDocumentVersionUploadError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
InitiateDocumentVersionUploadErrorKind::DraftUploadOutOfSyncException(_inner) => {
Some(_inner)
}
InitiateDocumentVersionUploadErrorKind::EntityAlreadyExistsException(_inner) => {
Some(_inner)
}
InitiateDocumentVersionUploadErrorKind::EntityNotExistsException(_inner) => {
Some(_inner)
}
InitiateDocumentVersionUploadErrorKind::FailedDependencyException(_inner) => {
Some(_inner)
}
InitiateDocumentVersionUploadErrorKind::InvalidPasswordException(_inner) => {
Some(_inner)
}
InitiateDocumentVersionUploadErrorKind::LimitExceededException(_inner) => Some(_inner),
InitiateDocumentVersionUploadErrorKind::ProhibitedStateException(_inner) => {
Some(_inner)
}
InitiateDocumentVersionUploadErrorKind::ResourceAlreadyCheckedOutException(_inner) => {
Some(_inner)
}
InitiateDocumentVersionUploadErrorKind::ServiceUnavailableException(_inner) => {
Some(_inner)
}
InitiateDocumentVersionUploadErrorKind::StorageLimitExceededException(_inner) => {
Some(_inner)
}
InitiateDocumentVersionUploadErrorKind::StorageLimitWillExceedException(_inner) => {
Some(_inner)
}
InitiateDocumentVersionUploadErrorKind::UnauthorizedOperationException(_inner) => {
Some(_inner)
}
InitiateDocumentVersionUploadErrorKind::UnauthorizedResourceAccessException(_inner) => {
Some(_inner)
}
InitiateDocumentVersionUploadErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct StorageLimitWillExceedException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl StorageLimitWillExceedException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for StorageLimitWillExceedException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "StorageLimitWillExceedException")?;
if let Some(inner_15) = &self.message {
{
write!(f, ": {}", inner_15)?;
}
}
Ok(())
}
}
impl std::error::Error for StorageLimitWillExceedException {}
pub mod storage_limit_will_exceed_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 {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::StorageLimitWillExceedException {
crate::error::StorageLimitWillExceedException {
message: self.message,
}
}
}
}
impl StorageLimitWillExceedException {
pub fn builder() -> crate::error::storage_limit_will_exceed_exception::Builder {
crate::error::storage_limit_will_exceed_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct StorageLimitExceededException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl StorageLimitExceededException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for StorageLimitExceededException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "StorageLimitExceededException")?;
if let Some(inner_16) = &self.message {
{
write!(f, ": {}", inner_16)?;
}
}
Ok(())
}
}
impl std::error::Error for StorageLimitExceededException {}
pub mod storage_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 {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::StorageLimitExceededException {
crate::error::StorageLimitExceededException {
message: self.message,
}
}
}
}
impl StorageLimitExceededException {
pub fn builder() -> crate::error::storage_limit_exceeded_exception::Builder {
crate::error::storage_limit_exceeded_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ResourceAlreadyCheckedOutException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl ResourceAlreadyCheckedOutException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ResourceAlreadyCheckedOutException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ResourceAlreadyCheckedOutException")?;
if let Some(inner_17) = &self.message {
{
write!(f, ": {}", inner_17)?;
}
}
Ok(())
}
}
impl std::error::Error for ResourceAlreadyCheckedOutException {}
pub mod resource_already_checked_out_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 {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::ResourceAlreadyCheckedOutException {
crate::error::ResourceAlreadyCheckedOutException {
message: self.message,
}
}
}
}
impl ResourceAlreadyCheckedOutException {
pub fn builder() -> crate::error::resource_already_checked_out_exception::Builder {
crate::error::resource_already_checked_out_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidPasswordException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidPasswordException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidPasswordException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidPasswordException")?;
if let Some(inner_18) = &self.message {
{
write!(f, ": {}", inner_18)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidPasswordException {}
pub mod invalid_password_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 {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidPasswordException {
crate::error::InvalidPasswordException {
message: self.message,
}
}
}
}
impl InvalidPasswordException {
pub fn builder() -> crate::error::invalid_password_exception::Builder {
crate::error::invalid_password_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DraftUploadOutOfSyncException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl DraftUploadOutOfSyncException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for DraftUploadOutOfSyncException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "DraftUploadOutOfSyncException")?;
if let Some(inner_19) = &self.message {
{
write!(f, ": {}", inner_19)?;
}
}
Ok(())
}
}
impl std::error::Error for DraftUploadOutOfSyncException {}
pub mod draft_upload_out_of_sync_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 {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::DraftUploadOutOfSyncException {
crate::error::DraftUploadOutOfSyncException {
message: self.message,
}
}
}
}
impl DraftUploadOutOfSyncException {
pub fn builder() -> crate::error::draft_upload_out_of_sync_exception::Builder {
crate::error::draft_upload_out_of_sync_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetResourcesError {
pub kind: GetResourcesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for GetResourcesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: GetResourcesErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetResourcesErrorKind {
FailedDependencyException(crate::error::FailedDependencyException),
InvalidArgumentException(crate::error::InvalidArgumentException),
ServiceUnavailableException(crate::error::ServiceUnavailableException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
UnauthorizedResourceAccessException(crate::error::UnauthorizedResourceAccessException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for GetResourcesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetResourcesErrorKind::FailedDependencyException(_inner) => _inner.fmt(f),
GetResourcesErrorKind::InvalidArgumentException(_inner) => _inner.fmt(f),
GetResourcesErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f),
GetResourcesErrorKind::UnauthorizedOperationException(_inner) => _inner.fmt(f),
GetResourcesErrorKind::UnauthorizedResourceAccessException(_inner) => _inner.fmt(f),
GetResourcesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetResourcesError {
fn code(&self) -> Option<&str> {
GetResourcesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetResourcesError {
pub fn new(kind: GetResourcesErrorKind, 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: GetResourcesErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetResourcesErrorKind::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_failed_dependency_exception(&self) -> bool {
matches!(
&self.kind,
GetResourcesErrorKind::FailedDependencyException(_)
)
}
pub fn is_invalid_argument_exception(&self) -> bool {
matches!(
&self.kind,
GetResourcesErrorKind::InvalidArgumentException(_)
)
}
pub fn is_service_unavailable_exception(&self) -> bool {
matches!(
&self.kind,
GetResourcesErrorKind::ServiceUnavailableException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
GetResourcesErrorKind::UnauthorizedOperationException(_)
)
}
pub fn is_unauthorized_resource_access_exception(&self) -> bool {
matches!(
&self.kind,
GetResourcesErrorKind::UnauthorizedResourceAccessException(_)
)
}
}
impl std::error::Error for GetResourcesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetResourcesErrorKind::FailedDependencyException(_inner) => Some(_inner),
GetResourcesErrorKind::InvalidArgumentException(_inner) => Some(_inner),
GetResourcesErrorKind::ServiceUnavailableException(_inner) => Some(_inner),
GetResourcesErrorKind::UnauthorizedOperationException(_inner) => Some(_inner),
GetResourcesErrorKind::UnauthorizedResourceAccessException(_inner) => Some(_inner),
GetResourcesErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetFolderPathError {
pub kind: GetFolderPathErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for GetFolderPathError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: GetFolderPathErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetFolderPathErrorKind {
EntityNotExistsException(crate::error::EntityNotExistsException),
FailedDependencyException(crate::error::FailedDependencyException),
ServiceUnavailableException(crate::error::ServiceUnavailableException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
UnauthorizedResourceAccessException(crate::error::UnauthorizedResourceAccessException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for GetFolderPathError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetFolderPathErrorKind::EntityNotExistsException(_inner) => _inner.fmt(f),
GetFolderPathErrorKind::FailedDependencyException(_inner) => _inner.fmt(f),
GetFolderPathErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f),
GetFolderPathErrorKind::UnauthorizedOperationException(_inner) => _inner.fmt(f),
GetFolderPathErrorKind::UnauthorizedResourceAccessException(_inner) => _inner.fmt(f),
GetFolderPathErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetFolderPathError {
fn code(&self) -> Option<&str> {
GetFolderPathError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetFolderPathError {
pub fn new(kind: GetFolderPathErrorKind, 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: GetFolderPathErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetFolderPathErrorKind::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_entity_not_exists_exception(&self) -> bool {
matches!(
&self.kind,
GetFolderPathErrorKind::EntityNotExistsException(_)
)
}
pub fn is_failed_dependency_exception(&self) -> bool {
matches!(
&self.kind,
GetFolderPathErrorKind::FailedDependencyException(_)
)
}
pub fn is_service_unavailable_exception(&self) -> bool {
matches!(
&self.kind,
GetFolderPathErrorKind::ServiceUnavailableException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
GetFolderPathErrorKind::UnauthorizedOperationException(_)
)
}
pub fn is_unauthorized_resource_access_exception(&self) -> bool {
matches!(
&self.kind,
GetFolderPathErrorKind::UnauthorizedResourceAccessException(_)
)
}
}
impl std::error::Error for GetFolderPathError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetFolderPathErrorKind::EntityNotExistsException(_inner) => Some(_inner),
GetFolderPathErrorKind::FailedDependencyException(_inner) => Some(_inner),
GetFolderPathErrorKind::ServiceUnavailableException(_inner) => Some(_inner),
GetFolderPathErrorKind::UnauthorizedOperationException(_inner) => Some(_inner),
GetFolderPathErrorKind::UnauthorizedResourceAccessException(_inner) => Some(_inner),
GetFolderPathErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetFolderError {
pub kind: GetFolderErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for GetFolderError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: GetFolderErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetFolderErrorKind {
EntityNotExistsException(crate::error::EntityNotExistsException),
FailedDependencyException(crate::error::FailedDependencyException),
InvalidArgumentException(crate::error::InvalidArgumentException),
ProhibitedStateException(crate::error::ProhibitedStateException),
ServiceUnavailableException(crate::error::ServiceUnavailableException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
UnauthorizedResourceAccessException(crate::error::UnauthorizedResourceAccessException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for GetFolderError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetFolderErrorKind::EntityNotExistsException(_inner) => _inner.fmt(f),
GetFolderErrorKind::FailedDependencyException(_inner) => _inner.fmt(f),
GetFolderErrorKind::InvalidArgumentException(_inner) => _inner.fmt(f),
GetFolderErrorKind::ProhibitedStateException(_inner) => _inner.fmt(f),
GetFolderErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f),
GetFolderErrorKind::UnauthorizedOperationException(_inner) => _inner.fmt(f),
GetFolderErrorKind::UnauthorizedResourceAccessException(_inner) => _inner.fmt(f),
GetFolderErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetFolderError {
fn code(&self) -> Option<&str> {
GetFolderError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetFolderError {
pub fn new(kind: GetFolderErrorKind, 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: GetFolderErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetFolderErrorKind::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_entity_not_exists_exception(&self) -> bool {
matches!(&self.kind, GetFolderErrorKind::EntityNotExistsException(_))
}
pub fn is_failed_dependency_exception(&self) -> bool {
matches!(&self.kind, GetFolderErrorKind::FailedDependencyException(_))
}
pub fn is_invalid_argument_exception(&self) -> bool {
matches!(&self.kind, GetFolderErrorKind::InvalidArgumentException(_))
}
pub fn is_prohibited_state_exception(&self) -> bool {
matches!(&self.kind, GetFolderErrorKind::ProhibitedStateException(_))
}
pub fn is_service_unavailable_exception(&self) -> bool {
matches!(
&self.kind,
GetFolderErrorKind::ServiceUnavailableException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
GetFolderErrorKind::UnauthorizedOperationException(_)
)
}
pub fn is_unauthorized_resource_access_exception(&self) -> bool {
matches!(
&self.kind,
GetFolderErrorKind::UnauthorizedResourceAccessException(_)
)
}
}
impl std::error::Error for GetFolderError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetFolderErrorKind::EntityNotExistsException(_inner) => Some(_inner),
GetFolderErrorKind::FailedDependencyException(_inner) => Some(_inner),
GetFolderErrorKind::InvalidArgumentException(_inner) => Some(_inner),
GetFolderErrorKind::ProhibitedStateException(_inner) => Some(_inner),
GetFolderErrorKind::ServiceUnavailableException(_inner) => Some(_inner),
GetFolderErrorKind::UnauthorizedOperationException(_inner) => Some(_inner),
GetFolderErrorKind::UnauthorizedResourceAccessException(_inner) => Some(_inner),
GetFolderErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetDocumentVersionError {
pub kind: GetDocumentVersionErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for GetDocumentVersionError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: GetDocumentVersionErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetDocumentVersionErrorKind {
EntityNotExistsException(crate::error::EntityNotExistsException),
FailedDependencyException(crate::error::FailedDependencyException),
InvalidPasswordException(crate::error::InvalidPasswordException),
ProhibitedStateException(crate::error::ProhibitedStateException),
ServiceUnavailableException(crate::error::ServiceUnavailableException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
UnauthorizedResourceAccessException(crate::error::UnauthorizedResourceAccessException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for GetDocumentVersionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetDocumentVersionErrorKind::EntityNotExistsException(_inner) => _inner.fmt(f),
GetDocumentVersionErrorKind::FailedDependencyException(_inner) => _inner.fmt(f),
GetDocumentVersionErrorKind::InvalidPasswordException(_inner) => _inner.fmt(f),
GetDocumentVersionErrorKind::ProhibitedStateException(_inner) => _inner.fmt(f),
GetDocumentVersionErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f),
GetDocumentVersionErrorKind::UnauthorizedOperationException(_inner) => _inner.fmt(f),
GetDocumentVersionErrorKind::UnauthorizedResourceAccessException(_inner) => {
_inner.fmt(f)
}
GetDocumentVersionErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetDocumentVersionError {
fn code(&self) -> Option<&str> {
GetDocumentVersionError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetDocumentVersionError {
pub fn new(kind: GetDocumentVersionErrorKind, 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: GetDocumentVersionErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetDocumentVersionErrorKind::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_entity_not_exists_exception(&self) -> bool {
matches!(
&self.kind,
GetDocumentVersionErrorKind::EntityNotExistsException(_)
)
}
pub fn is_failed_dependency_exception(&self) -> bool {
matches!(
&self.kind,
GetDocumentVersionErrorKind::FailedDependencyException(_)
)
}
pub fn is_invalid_password_exception(&self) -> bool {
matches!(
&self.kind,
GetDocumentVersionErrorKind::InvalidPasswordException(_)
)
}
pub fn is_prohibited_state_exception(&self) -> bool {
matches!(
&self.kind,
GetDocumentVersionErrorKind::ProhibitedStateException(_)
)
}
pub fn is_service_unavailable_exception(&self) -> bool {
matches!(
&self.kind,
GetDocumentVersionErrorKind::ServiceUnavailableException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
GetDocumentVersionErrorKind::UnauthorizedOperationException(_)
)
}
pub fn is_unauthorized_resource_access_exception(&self) -> bool {
matches!(
&self.kind,
GetDocumentVersionErrorKind::UnauthorizedResourceAccessException(_)
)
}
}
impl std::error::Error for GetDocumentVersionError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetDocumentVersionErrorKind::EntityNotExistsException(_inner) => Some(_inner),
GetDocumentVersionErrorKind::FailedDependencyException(_inner) => Some(_inner),
GetDocumentVersionErrorKind::InvalidPasswordException(_inner) => Some(_inner),
GetDocumentVersionErrorKind::ProhibitedStateException(_inner) => Some(_inner),
GetDocumentVersionErrorKind::ServiceUnavailableException(_inner) => Some(_inner),
GetDocumentVersionErrorKind::UnauthorizedOperationException(_inner) => Some(_inner),
GetDocumentVersionErrorKind::UnauthorizedResourceAccessException(_inner) => {
Some(_inner)
}
GetDocumentVersionErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetDocumentPathError {
pub kind: GetDocumentPathErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for GetDocumentPathError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: GetDocumentPathErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetDocumentPathErrorKind {
EntityNotExistsException(crate::error::EntityNotExistsException),
FailedDependencyException(crate::error::FailedDependencyException),
ServiceUnavailableException(crate::error::ServiceUnavailableException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
UnauthorizedResourceAccessException(crate::error::UnauthorizedResourceAccessException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for GetDocumentPathError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetDocumentPathErrorKind::EntityNotExistsException(_inner) => _inner.fmt(f),
GetDocumentPathErrorKind::FailedDependencyException(_inner) => _inner.fmt(f),
GetDocumentPathErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f),
GetDocumentPathErrorKind::UnauthorizedOperationException(_inner) => _inner.fmt(f),
GetDocumentPathErrorKind::UnauthorizedResourceAccessException(_inner) => _inner.fmt(f),
GetDocumentPathErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetDocumentPathError {
fn code(&self) -> Option<&str> {
GetDocumentPathError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetDocumentPathError {
pub fn new(kind: GetDocumentPathErrorKind, 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: GetDocumentPathErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetDocumentPathErrorKind::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_entity_not_exists_exception(&self) -> bool {
matches!(
&self.kind,
GetDocumentPathErrorKind::EntityNotExistsException(_)
)
}
pub fn is_failed_dependency_exception(&self) -> bool {
matches!(
&self.kind,
GetDocumentPathErrorKind::FailedDependencyException(_)
)
}
pub fn is_service_unavailable_exception(&self) -> bool {
matches!(
&self.kind,
GetDocumentPathErrorKind::ServiceUnavailableException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
GetDocumentPathErrorKind::UnauthorizedOperationException(_)
)
}
pub fn is_unauthorized_resource_access_exception(&self) -> bool {
matches!(
&self.kind,
GetDocumentPathErrorKind::UnauthorizedResourceAccessException(_)
)
}
}
impl std::error::Error for GetDocumentPathError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetDocumentPathErrorKind::EntityNotExistsException(_inner) => Some(_inner),
GetDocumentPathErrorKind::FailedDependencyException(_inner) => Some(_inner),
GetDocumentPathErrorKind::ServiceUnavailableException(_inner) => Some(_inner),
GetDocumentPathErrorKind::UnauthorizedOperationException(_inner) => Some(_inner),
GetDocumentPathErrorKind::UnauthorizedResourceAccessException(_inner) => Some(_inner),
GetDocumentPathErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetDocumentError {
pub kind: GetDocumentErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for GetDocumentError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: GetDocumentErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetDocumentErrorKind {
EntityNotExistsException(crate::error::EntityNotExistsException),
FailedDependencyException(crate::error::FailedDependencyException),
InvalidArgumentException(crate::error::InvalidArgumentException),
InvalidPasswordException(crate::error::InvalidPasswordException),
ServiceUnavailableException(crate::error::ServiceUnavailableException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
UnauthorizedResourceAccessException(crate::error::UnauthorizedResourceAccessException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for GetDocumentError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetDocumentErrorKind::EntityNotExistsException(_inner) => _inner.fmt(f),
GetDocumentErrorKind::FailedDependencyException(_inner) => _inner.fmt(f),
GetDocumentErrorKind::InvalidArgumentException(_inner) => _inner.fmt(f),
GetDocumentErrorKind::InvalidPasswordException(_inner) => _inner.fmt(f),
GetDocumentErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f),
GetDocumentErrorKind::UnauthorizedOperationException(_inner) => _inner.fmt(f),
GetDocumentErrorKind::UnauthorizedResourceAccessException(_inner) => _inner.fmt(f),
GetDocumentErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetDocumentError {
fn code(&self) -> Option<&str> {
GetDocumentError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetDocumentError {
pub fn new(kind: GetDocumentErrorKind, 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: GetDocumentErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetDocumentErrorKind::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_entity_not_exists_exception(&self) -> bool {
matches!(
&self.kind,
GetDocumentErrorKind::EntityNotExistsException(_)
)
}
pub fn is_failed_dependency_exception(&self) -> bool {
matches!(
&self.kind,
GetDocumentErrorKind::FailedDependencyException(_)
)
}
pub fn is_invalid_argument_exception(&self) -> bool {
matches!(
&self.kind,
GetDocumentErrorKind::InvalidArgumentException(_)
)
}
pub fn is_invalid_password_exception(&self) -> bool {
matches!(
&self.kind,
GetDocumentErrorKind::InvalidPasswordException(_)
)
}
pub fn is_service_unavailable_exception(&self) -> bool {
matches!(
&self.kind,
GetDocumentErrorKind::ServiceUnavailableException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
GetDocumentErrorKind::UnauthorizedOperationException(_)
)
}
pub fn is_unauthorized_resource_access_exception(&self) -> bool {
matches!(
&self.kind,
GetDocumentErrorKind::UnauthorizedResourceAccessException(_)
)
}
}
impl std::error::Error for GetDocumentError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetDocumentErrorKind::EntityNotExistsException(_inner) => Some(_inner),
GetDocumentErrorKind::FailedDependencyException(_inner) => Some(_inner),
GetDocumentErrorKind::InvalidArgumentException(_inner) => Some(_inner),
GetDocumentErrorKind::InvalidPasswordException(_inner) => Some(_inner),
GetDocumentErrorKind::ServiceUnavailableException(_inner) => Some(_inner),
GetDocumentErrorKind::UnauthorizedOperationException(_inner) => Some(_inner),
GetDocumentErrorKind::UnauthorizedResourceAccessException(_inner) => Some(_inner),
GetDocumentErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetCurrentUserError {
pub kind: GetCurrentUserErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for GetCurrentUserError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: GetCurrentUserErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetCurrentUserErrorKind {
EntityNotExistsException(crate::error::EntityNotExistsException),
FailedDependencyException(crate::error::FailedDependencyException),
ServiceUnavailableException(crate::error::ServiceUnavailableException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
UnauthorizedResourceAccessException(crate::error::UnauthorizedResourceAccessException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for GetCurrentUserError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetCurrentUserErrorKind::EntityNotExistsException(_inner) => _inner.fmt(f),
GetCurrentUserErrorKind::FailedDependencyException(_inner) => _inner.fmt(f),
GetCurrentUserErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f),
GetCurrentUserErrorKind::UnauthorizedOperationException(_inner) => _inner.fmt(f),
GetCurrentUserErrorKind::UnauthorizedResourceAccessException(_inner) => _inner.fmt(f),
GetCurrentUserErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetCurrentUserError {
fn code(&self) -> Option<&str> {
GetCurrentUserError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetCurrentUserError {
pub fn new(kind: GetCurrentUserErrorKind, 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: GetCurrentUserErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetCurrentUserErrorKind::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_entity_not_exists_exception(&self) -> bool {
matches!(
&self.kind,
GetCurrentUserErrorKind::EntityNotExistsException(_)
)
}
pub fn is_failed_dependency_exception(&self) -> bool {
matches!(
&self.kind,
GetCurrentUserErrorKind::FailedDependencyException(_)
)
}
pub fn is_service_unavailable_exception(&self) -> bool {
matches!(
&self.kind,
GetCurrentUserErrorKind::ServiceUnavailableException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
GetCurrentUserErrorKind::UnauthorizedOperationException(_)
)
}
pub fn is_unauthorized_resource_access_exception(&self) -> bool {
matches!(
&self.kind,
GetCurrentUserErrorKind::UnauthorizedResourceAccessException(_)
)
}
}
impl std::error::Error for GetCurrentUserError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetCurrentUserErrorKind::EntityNotExistsException(_inner) => Some(_inner),
GetCurrentUserErrorKind::FailedDependencyException(_inner) => Some(_inner),
GetCurrentUserErrorKind::ServiceUnavailableException(_inner) => Some(_inner),
GetCurrentUserErrorKind::UnauthorizedOperationException(_inner) => Some(_inner),
GetCurrentUserErrorKind::UnauthorizedResourceAccessException(_inner) => Some(_inner),
GetCurrentUserErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeUsersError {
pub kind: DescribeUsersErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeUsersError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeUsersErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeUsersErrorKind {
EntityNotExistsException(crate::error::EntityNotExistsException),
FailedDependencyException(crate::error::FailedDependencyException),
InvalidArgumentException(crate::error::InvalidArgumentException),
RequestedEntityTooLargeException(crate::error::RequestedEntityTooLargeException),
ServiceUnavailableException(crate::error::ServiceUnavailableException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
UnauthorizedResourceAccessException(crate::error::UnauthorizedResourceAccessException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeUsersError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeUsersErrorKind::EntityNotExistsException(_inner) => _inner.fmt(f),
DescribeUsersErrorKind::FailedDependencyException(_inner) => _inner.fmt(f),
DescribeUsersErrorKind::InvalidArgumentException(_inner) => _inner.fmt(f),
DescribeUsersErrorKind::RequestedEntityTooLargeException(_inner) => _inner.fmt(f),
DescribeUsersErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f),
DescribeUsersErrorKind::UnauthorizedOperationException(_inner) => _inner.fmt(f),
DescribeUsersErrorKind::UnauthorizedResourceAccessException(_inner) => _inner.fmt(f),
DescribeUsersErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeUsersError {
fn code(&self) -> Option<&str> {
DescribeUsersError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeUsersError {
pub fn new(kind: DescribeUsersErrorKind, 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: DescribeUsersErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeUsersErrorKind::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_entity_not_exists_exception(&self) -> bool {
matches!(
&self.kind,
DescribeUsersErrorKind::EntityNotExistsException(_)
)
}
pub fn is_failed_dependency_exception(&self) -> bool {
matches!(
&self.kind,
DescribeUsersErrorKind::FailedDependencyException(_)
)
}
pub fn is_invalid_argument_exception(&self) -> bool {
matches!(
&self.kind,
DescribeUsersErrorKind::InvalidArgumentException(_)
)
}
pub fn is_requested_entity_too_large_exception(&self) -> bool {
matches!(
&self.kind,
DescribeUsersErrorKind::RequestedEntityTooLargeException(_)
)
}
pub fn is_service_unavailable_exception(&self) -> bool {
matches!(
&self.kind,
DescribeUsersErrorKind::ServiceUnavailableException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
DescribeUsersErrorKind::UnauthorizedOperationException(_)
)
}
pub fn is_unauthorized_resource_access_exception(&self) -> bool {
matches!(
&self.kind,
DescribeUsersErrorKind::UnauthorizedResourceAccessException(_)
)
}
}
impl std::error::Error for DescribeUsersError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeUsersErrorKind::EntityNotExistsException(_inner) => Some(_inner),
DescribeUsersErrorKind::FailedDependencyException(_inner) => Some(_inner),
DescribeUsersErrorKind::InvalidArgumentException(_inner) => Some(_inner),
DescribeUsersErrorKind::RequestedEntityTooLargeException(_inner) => Some(_inner),
DescribeUsersErrorKind::ServiceUnavailableException(_inner) => Some(_inner),
DescribeUsersErrorKind::UnauthorizedOperationException(_inner) => Some(_inner),
DescribeUsersErrorKind::UnauthorizedResourceAccessException(_inner) => Some(_inner),
DescribeUsersErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct RequestedEntityTooLargeException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl RequestedEntityTooLargeException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for RequestedEntityTooLargeException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "RequestedEntityTooLargeException")?;
if let Some(inner_20) = &self.message {
{
write!(f, ": {}", inner_20)?;
}
}
Ok(())
}
}
impl std::error::Error for RequestedEntityTooLargeException {}
pub mod requested_entity_too_large_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 {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::RequestedEntityTooLargeException {
crate::error::RequestedEntityTooLargeException {
message: self.message,
}
}
}
}
impl RequestedEntityTooLargeException {
pub fn builder() -> crate::error::requested_entity_too_large_exception::Builder {
crate::error::requested_entity_too_large_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeRootFoldersError {
pub kind: DescribeRootFoldersErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeRootFoldersError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeRootFoldersErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeRootFoldersErrorKind {
FailedDependencyException(crate::error::FailedDependencyException),
InvalidArgumentException(crate::error::InvalidArgumentException),
ServiceUnavailableException(crate::error::ServiceUnavailableException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
UnauthorizedResourceAccessException(crate::error::UnauthorizedResourceAccessException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeRootFoldersError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeRootFoldersErrorKind::FailedDependencyException(_inner) => _inner.fmt(f),
DescribeRootFoldersErrorKind::InvalidArgumentException(_inner) => _inner.fmt(f),
DescribeRootFoldersErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f),
DescribeRootFoldersErrorKind::UnauthorizedOperationException(_inner) => _inner.fmt(f),
DescribeRootFoldersErrorKind::UnauthorizedResourceAccessException(_inner) => {
_inner.fmt(f)
}
DescribeRootFoldersErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeRootFoldersError {
fn code(&self) -> Option<&str> {
DescribeRootFoldersError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeRootFoldersError {
pub fn new(kind: DescribeRootFoldersErrorKind, 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: DescribeRootFoldersErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeRootFoldersErrorKind::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_failed_dependency_exception(&self) -> bool {
matches!(
&self.kind,
DescribeRootFoldersErrorKind::FailedDependencyException(_)
)
}
pub fn is_invalid_argument_exception(&self) -> bool {
matches!(
&self.kind,
DescribeRootFoldersErrorKind::InvalidArgumentException(_)
)
}
pub fn is_service_unavailable_exception(&self) -> bool {
matches!(
&self.kind,
DescribeRootFoldersErrorKind::ServiceUnavailableException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
DescribeRootFoldersErrorKind::UnauthorizedOperationException(_)
)
}
pub fn is_unauthorized_resource_access_exception(&self) -> bool {
matches!(
&self.kind,
DescribeRootFoldersErrorKind::UnauthorizedResourceAccessException(_)
)
}
}
impl std::error::Error for DescribeRootFoldersError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeRootFoldersErrorKind::FailedDependencyException(_inner) => Some(_inner),
DescribeRootFoldersErrorKind::InvalidArgumentException(_inner) => Some(_inner),
DescribeRootFoldersErrorKind::ServiceUnavailableException(_inner) => Some(_inner),
DescribeRootFoldersErrorKind::UnauthorizedOperationException(_inner) => Some(_inner),
DescribeRootFoldersErrorKind::UnauthorizedResourceAccessException(_inner) => {
Some(_inner)
}
DescribeRootFoldersErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeResourcePermissionsError {
pub kind: DescribeResourcePermissionsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeResourcePermissionsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeResourcePermissionsErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeResourcePermissionsErrorKind {
FailedDependencyException(crate::error::FailedDependencyException),
InvalidArgumentException(crate::error::InvalidArgumentException),
ServiceUnavailableException(crate::error::ServiceUnavailableException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
UnauthorizedResourceAccessException(crate::error::UnauthorizedResourceAccessException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeResourcePermissionsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeResourcePermissionsErrorKind::FailedDependencyException(_inner) => {
_inner.fmt(f)
}
DescribeResourcePermissionsErrorKind::InvalidArgumentException(_inner) => _inner.fmt(f),
DescribeResourcePermissionsErrorKind::ServiceUnavailableException(_inner) => {
_inner.fmt(f)
}
DescribeResourcePermissionsErrorKind::UnauthorizedOperationException(_inner) => {
_inner.fmt(f)
}
DescribeResourcePermissionsErrorKind::UnauthorizedResourceAccessException(_inner) => {
_inner.fmt(f)
}
DescribeResourcePermissionsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeResourcePermissionsError {
fn code(&self) -> Option<&str> {
DescribeResourcePermissionsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeResourcePermissionsError {
pub fn new(kind: DescribeResourcePermissionsErrorKind, 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: DescribeResourcePermissionsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeResourcePermissionsErrorKind::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_failed_dependency_exception(&self) -> bool {
matches!(
&self.kind,
DescribeResourcePermissionsErrorKind::FailedDependencyException(_)
)
}
pub fn is_invalid_argument_exception(&self) -> bool {
matches!(
&self.kind,
DescribeResourcePermissionsErrorKind::InvalidArgumentException(_)
)
}
pub fn is_service_unavailable_exception(&self) -> bool {
matches!(
&self.kind,
DescribeResourcePermissionsErrorKind::ServiceUnavailableException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
DescribeResourcePermissionsErrorKind::UnauthorizedOperationException(_)
)
}
pub fn is_unauthorized_resource_access_exception(&self) -> bool {
matches!(
&self.kind,
DescribeResourcePermissionsErrorKind::UnauthorizedResourceAccessException(_)
)
}
}
impl std::error::Error for DescribeResourcePermissionsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeResourcePermissionsErrorKind::FailedDependencyException(_inner) => Some(_inner),
DescribeResourcePermissionsErrorKind::InvalidArgumentException(_inner) => Some(_inner),
DescribeResourcePermissionsErrorKind::ServiceUnavailableException(_inner) => {
Some(_inner)
}
DescribeResourcePermissionsErrorKind::UnauthorizedOperationException(_inner) => {
Some(_inner)
}
DescribeResourcePermissionsErrorKind::UnauthorizedResourceAccessException(_inner) => {
Some(_inner)
}
DescribeResourcePermissionsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeNotificationSubscriptionsError {
pub kind: DescribeNotificationSubscriptionsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeNotificationSubscriptionsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeNotificationSubscriptionsErrorKind::Unhandled(
crate::error::Unhandled::new(source),
),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeNotificationSubscriptionsErrorKind {
EntityNotExistsException(crate::error::EntityNotExistsException),
ServiceUnavailableException(crate::error::ServiceUnavailableException),
UnauthorizedResourceAccessException(crate::error::UnauthorizedResourceAccessException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeNotificationSubscriptionsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeNotificationSubscriptionsErrorKind::EntityNotExistsException(_inner) => {
_inner.fmt(f)
}
DescribeNotificationSubscriptionsErrorKind::ServiceUnavailableException(_inner) => {
_inner.fmt(f)
}
DescribeNotificationSubscriptionsErrorKind::UnauthorizedResourceAccessException(
_inner,
) => _inner.fmt(f),
DescribeNotificationSubscriptionsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeNotificationSubscriptionsError {
fn code(&self) -> Option<&str> {
DescribeNotificationSubscriptionsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeNotificationSubscriptionsError {
pub fn new(
kind: DescribeNotificationSubscriptionsErrorKind,
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: DescribeNotificationSubscriptionsErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeNotificationSubscriptionsErrorKind::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_entity_not_exists_exception(&self) -> bool {
matches!(
&self.kind,
DescribeNotificationSubscriptionsErrorKind::EntityNotExistsException(_)
)
}
pub fn is_service_unavailable_exception(&self) -> bool {
matches!(
&self.kind,
DescribeNotificationSubscriptionsErrorKind::ServiceUnavailableException(_)
)
}
pub fn is_unauthorized_resource_access_exception(&self) -> bool {
matches!(
&self.kind,
DescribeNotificationSubscriptionsErrorKind::UnauthorizedResourceAccessException(_)
)
}
}
impl std::error::Error for DescribeNotificationSubscriptionsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeNotificationSubscriptionsErrorKind::EntityNotExistsException(_inner) => {
Some(_inner)
}
DescribeNotificationSubscriptionsErrorKind::ServiceUnavailableException(_inner) => {
Some(_inner)
}
DescribeNotificationSubscriptionsErrorKind::UnauthorizedResourceAccessException(
_inner,
) => Some(_inner),
DescribeNotificationSubscriptionsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeGroupsError {
pub kind: DescribeGroupsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeGroupsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeGroupsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeGroupsErrorKind {
FailedDependencyException(crate::error::FailedDependencyException),
ServiceUnavailableException(crate::error::ServiceUnavailableException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
UnauthorizedResourceAccessException(crate::error::UnauthorizedResourceAccessException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeGroupsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeGroupsErrorKind::FailedDependencyException(_inner) => _inner.fmt(f),
DescribeGroupsErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f),
DescribeGroupsErrorKind::UnauthorizedOperationException(_inner) => _inner.fmt(f),
DescribeGroupsErrorKind::UnauthorizedResourceAccessException(_inner) => _inner.fmt(f),
DescribeGroupsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeGroupsError {
fn code(&self) -> Option<&str> {
DescribeGroupsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeGroupsError {
pub fn new(kind: DescribeGroupsErrorKind, 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: DescribeGroupsErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeGroupsErrorKind::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_failed_dependency_exception(&self) -> bool {
matches!(
&self.kind,
DescribeGroupsErrorKind::FailedDependencyException(_)
)
}
pub fn is_service_unavailable_exception(&self) -> bool {
matches!(
&self.kind,
DescribeGroupsErrorKind::ServiceUnavailableException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
DescribeGroupsErrorKind::UnauthorizedOperationException(_)
)
}
pub fn is_unauthorized_resource_access_exception(&self) -> bool {
matches!(
&self.kind,
DescribeGroupsErrorKind::UnauthorizedResourceAccessException(_)
)
}
}
impl std::error::Error for DescribeGroupsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeGroupsErrorKind::FailedDependencyException(_inner) => Some(_inner),
DescribeGroupsErrorKind::ServiceUnavailableException(_inner) => Some(_inner),
DescribeGroupsErrorKind::UnauthorizedOperationException(_inner) => Some(_inner),
DescribeGroupsErrorKind::UnauthorizedResourceAccessException(_inner) => Some(_inner),
DescribeGroupsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeFolderContentsError {
pub kind: DescribeFolderContentsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeFolderContentsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeFolderContentsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeFolderContentsErrorKind {
EntityNotExistsException(crate::error::EntityNotExistsException),
FailedDependencyException(crate::error::FailedDependencyException),
InvalidArgumentException(crate::error::InvalidArgumentException),
ProhibitedStateException(crate::error::ProhibitedStateException),
ServiceUnavailableException(crate::error::ServiceUnavailableException),
UnauthorizedResourceAccessException(crate::error::UnauthorizedResourceAccessException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeFolderContentsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeFolderContentsErrorKind::EntityNotExistsException(_inner) => _inner.fmt(f),
DescribeFolderContentsErrorKind::FailedDependencyException(_inner) => _inner.fmt(f),
DescribeFolderContentsErrorKind::InvalidArgumentException(_inner) => _inner.fmt(f),
DescribeFolderContentsErrorKind::ProhibitedStateException(_inner) => _inner.fmt(f),
DescribeFolderContentsErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f),
DescribeFolderContentsErrorKind::UnauthorizedResourceAccessException(_inner) => {
_inner.fmt(f)
}
DescribeFolderContentsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeFolderContentsError {
fn code(&self) -> Option<&str> {
DescribeFolderContentsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeFolderContentsError {
pub fn new(kind: DescribeFolderContentsErrorKind, 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: DescribeFolderContentsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeFolderContentsErrorKind::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_entity_not_exists_exception(&self) -> bool {
matches!(
&self.kind,
DescribeFolderContentsErrorKind::EntityNotExistsException(_)
)
}
pub fn is_failed_dependency_exception(&self) -> bool {
matches!(
&self.kind,
DescribeFolderContentsErrorKind::FailedDependencyException(_)
)
}
pub fn is_invalid_argument_exception(&self) -> bool {
matches!(
&self.kind,
DescribeFolderContentsErrorKind::InvalidArgumentException(_)
)
}
pub fn is_prohibited_state_exception(&self) -> bool {
matches!(
&self.kind,
DescribeFolderContentsErrorKind::ProhibitedStateException(_)
)
}
pub fn is_service_unavailable_exception(&self) -> bool {
matches!(
&self.kind,
DescribeFolderContentsErrorKind::ServiceUnavailableException(_)
)
}
pub fn is_unauthorized_resource_access_exception(&self) -> bool {
matches!(
&self.kind,
DescribeFolderContentsErrorKind::UnauthorizedResourceAccessException(_)
)
}
}
impl std::error::Error for DescribeFolderContentsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeFolderContentsErrorKind::EntityNotExistsException(_inner) => Some(_inner),
DescribeFolderContentsErrorKind::FailedDependencyException(_inner) => Some(_inner),
DescribeFolderContentsErrorKind::InvalidArgumentException(_inner) => Some(_inner),
DescribeFolderContentsErrorKind::ProhibitedStateException(_inner) => Some(_inner),
DescribeFolderContentsErrorKind::ServiceUnavailableException(_inner) => Some(_inner),
DescribeFolderContentsErrorKind::UnauthorizedResourceAccessException(_inner) => {
Some(_inner)
}
DescribeFolderContentsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeDocumentVersionsError {
pub kind: DescribeDocumentVersionsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeDocumentVersionsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeDocumentVersionsErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeDocumentVersionsErrorKind {
EntityNotExistsException(crate::error::EntityNotExistsException),
FailedDependencyException(crate::error::FailedDependencyException),
InvalidArgumentException(crate::error::InvalidArgumentException),
InvalidPasswordException(crate::error::InvalidPasswordException),
ProhibitedStateException(crate::error::ProhibitedStateException),
ServiceUnavailableException(crate::error::ServiceUnavailableException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
UnauthorizedResourceAccessException(crate::error::UnauthorizedResourceAccessException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeDocumentVersionsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeDocumentVersionsErrorKind::EntityNotExistsException(_inner) => _inner.fmt(f),
DescribeDocumentVersionsErrorKind::FailedDependencyException(_inner) => _inner.fmt(f),
DescribeDocumentVersionsErrorKind::InvalidArgumentException(_inner) => _inner.fmt(f),
DescribeDocumentVersionsErrorKind::InvalidPasswordException(_inner) => _inner.fmt(f),
DescribeDocumentVersionsErrorKind::ProhibitedStateException(_inner) => _inner.fmt(f),
DescribeDocumentVersionsErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f),
DescribeDocumentVersionsErrorKind::UnauthorizedOperationException(_inner) => {
_inner.fmt(f)
}
DescribeDocumentVersionsErrorKind::UnauthorizedResourceAccessException(_inner) => {
_inner.fmt(f)
}
DescribeDocumentVersionsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeDocumentVersionsError {
fn code(&self) -> Option<&str> {
DescribeDocumentVersionsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeDocumentVersionsError {
pub fn new(kind: DescribeDocumentVersionsErrorKind, 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: DescribeDocumentVersionsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeDocumentVersionsErrorKind::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_entity_not_exists_exception(&self) -> bool {
matches!(
&self.kind,
DescribeDocumentVersionsErrorKind::EntityNotExistsException(_)
)
}
pub fn is_failed_dependency_exception(&self) -> bool {
matches!(
&self.kind,
DescribeDocumentVersionsErrorKind::FailedDependencyException(_)
)
}
pub fn is_invalid_argument_exception(&self) -> bool {
matches!(
&self.kind,
DescribeDocumentVersionsErrorKind::InvalidArgumentException(_)
)
}
pub fn is_invalid_password_exception(&self) -> bool {
matches!(
&self.kind,
DescribeDocumentVersionsErrorKind::InvalidPasswordException(_)
)
}
pub fn is_prohibited_state_exception(&self) -> bool {
matches!(
&self.kind,
DescribeDocumentVersionsErrorKind::ProhibitedStateException(_)
)
}
pub fn is_service_unavailable_exception(&self) -> bool {
matches!(
&self.kind,
DescribeDocumentVersionsErrorKind::ServiceUnavailableException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
DescribeDocumentVersionsErrorKind::UnauthorizedOperationException(_)
)
}
pub fn is_unauthorized_resource_access_exception(&self) -> bool {
matches!(
&self.kind,
DescribeDocumentVersionsErrorKind::UnauthorizedResourceAccessException(_)
)
}
}
impl std::error::Error for DescribeDocumentVersionsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeDocumentVersionsErrorKind::EntityNotExistsException(_inner) => Some(_inner),
DescribeDocumentVersionsErrorKind::FailedDependencyException(_inner) => Some(_inner),
DescribeDocumentVersionsErrorKind::InvalidArgumentException(_inner) => Some(_inner),
DescribeDocumentVersionsErrorKind::InvalidPasswordException(_inner) => Some(_inner),
DescribeDocumentVersionsErrorKind::ProhibitedStateException(_inner) => Some(_inner),
DescribeDocumentVersionsErrorKind::ServiceUnavailableException(_inner) => Some(_inner),
DescribeDocumentVersionsErrorKind::UnauthorizedOperationException(_inner) => {
Some(_inner)
}
DescribeDocumentVersionsErrorKind::UnauthorizedResourceAccessException(_inner) => {
Some(_inner)
}
DescribeDocumentVersionsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeCommentsError {
pub kind: DescribeCommentsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeCommentsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeCommentsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeCommentsErrorKind {
EntityNotExistsException(crate::error::EntityNotExistsException),
FailedDependencyException(crate::error::FailedDependencyException),
ProhibitedStateException(crate::error::ProhibitedStateException),
ServiceUnavailableException(crate::error::ServiceUnavailableException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
UnauthorizedResourceAccessException(crate::error::UnauthorizedResourceAccessException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeCommentsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeCommentsErrorKind::EntityNotExistsException(_inner) => _inner.fmt(f),
DescribeCommentsErrorKind::FailedDependencyException(_inner) => _inner.fmt(f),
DescribeCommentsErrorKind::ProhibitedStateException(_inner) => _inner.fmt(f),
DescribeCommentsErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f),
DescribeCommentsErrorKind::UnauthorizedOperationException(_inner) => _inner.fmt(f),
DescribeCommentsErrorKind::UnauthorizedResourceAccessException(_inner) => _inner.fmt(f),
DescribeCommentsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeCommentsError {
fn code(&self) -> Option<&str> {
DescribeCommentsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeCommentsError {
pub fn new(kind: DescribeCommentsErrorKind, 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: DescribeCommentsErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeCommentsErrorKind::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_entity_not_exists_exception(&self) -> bool {
matches!(
&self.kind,
DescribeCommentsErrorKind::EntityNotExistsException(_)
)
}
pub fn is_failed_dependency_exception(&self) -> bool {
matches!(
&self.kind,
DescribeCommentsErrorKind::FailedDependencyException(_)
)
}
pub fn is_prohibited_state_exception(&self) -> bool {
matches!(
&self.kind,
DescribeCommentsErrorKind::ProhibitedStateException(_)
)
}
pub fn is_service_unavailable_exception(&self) -> bool {
matches!(
&self.kind,
DescribeCommentsErrorKind::ServiceUnavailableException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
DescribeCommentsErrorKind::UnauthorizedOperationException(_)
)
}
pub fn is_unauthorized_resource_access_exception(&self) -> bool {
matches!(
&self.kind,
DescribeCommentsErrorKind::UnauthorizedResourceAccessException(_)
)
}
}
impl std::error::Error for DescribeCommentsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeCommentsErrorKind::EntityNotExistsException(_inner) => Some(_inner),
DescribeCommentsErrorKind::FailedDependencyException(_inner) => Some(_inner),
DescribeCommentsErrorKind::ProhibitedStateException(_inner) => Some(_inner),
DescribeCommentsErrorKind::ServiceUnavailableException(_inner) => Some(_inner),
DescribeCommentsErrorKind::UnauthorizedOperationException(_inner) => Some(_inner),
DescribeCommentsErrorKind::UnauthorizedResourceAccessException(_inner) => Some(_inner),
DescribeCommentsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeActivitiesError {
pub kind: DescribeActivitiesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeActivitiesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeActivitiesErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeActivitiesErrorKind {
FailedDependencyException(crate::error::FailedDependencyException),
InvalidArgumentException(crate::error::InvalidArgumentException),
ServiceUnavailableException(crate::error::ServiceUnavailableException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
UnauthorizedResourceAccessException(crate::error::UnauthorizedResourceAccessException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeActivitiesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeActivitiesErrorKind::FailedDependencyException(_inner) => _inner.fmt(f),
DescribeActivitiesErrorKind::InvalidArgumentException(_inner) => _inner.fmt(f),
DescribeActivitiesErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f),
DescribeActivitiesErrorKind::UnauthorizedOperationException(_inner) => _inner.fmt(f),
DescribeActivitiesErrorKind::UnauthorizedResourceAccessException(_inner) => {
_inner.fmt(f)
}
DescribeActivitiesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeActivitiesError {
fn code(&self) -> Option<&str> {
DescribeActivitiesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeActivitiesError {
pub fn new(kind: DescribeActivitiesErrorKind, 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: DescribeActivitiesErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeActivitiesErrorKind::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_failed_dependency_exception(&self) -> bool {
matches!(
&self.kind,
DescribeActivitiesErrorKind::FailedDependencyException(_)
)
}
pub fn is_invalid_argument_exception(&self) -> bool {
matches!(
&self.kind,
DescribeActivitiesErrorKind::InvalidArgumentException(_)
)
}
pub fn is_service_unavailable_exception(&self) -> bool {
matches!(
&self.kind,
DescribeActivitiesErrorKind::ServiceUnavailableException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
DescribeActivitiesErrorKind::UnauthorizedOperationException(_)
)
}
pub fn is_unauthorized_resource_access_exception(&self) -> bool {
matches!(
&self.kind,
DescribeActivitiesErrorKind::UnauthorizedResourceAccessException(_)
)
}
}
impl std::error::Error for DescribeActivitiesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeActivitiesErrorKind::FailedDependencyException(_inner) => Some(_inner),
DescribeActivitiesErrorKind::InvalidArgumentException(_inner) => Some(_inner),
DescribeActivitiesErrorKind::ServiceUnavailableException(_inner) => Some(_inner),
DescribeActivitiesErrorKind::UnauthorizedOperationException(_inner) => Some(_inner),
DescribeActivitiesErrorKind::UnauthorizedResourceAccessException(_inner) => {
Some(_inner)
}
DescribeActivitiesErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteUserError {
pub kind: DeleteUserErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteUserError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteUserErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteUserErrorKind {
EntityNotExistsException(crate::error::EntityNotExistsException),
FailedDependencyException(crate::error::FailedDependencyException),
ServiceUnavailableException(crate::error::ServiceUnavailableException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
UnauthorizedResourceAccessException(crate::error::UnauthorizedResourceAccessException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteUserError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteUserErrorKind::EntityNotExistsException(_inner) => _inner.fmt(f),
DeleteUserErrorKind::FailedDependencyException(_inner) => _inner.fmt(f),
DeleteUserErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f),
DeleteUserErrorKind::UnauthorizedOperationException(_inner) => _inner.fmt(f),
DeleteUserErrorKind::UnauthorizedResourceAccessException(_inner) => _inner.fmt(f),
DeleteUserErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteUserError {
fn code(&self) -> Option<&str> {
DeleteUserError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteUserError {
pub fn new(kind: DeleteUserErrorKind, 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: DeleteUserErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteUserErrorKind::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_entity_not_exists_exception(&self) -> bool {
matches!(&self.kind, DeleteUserErrorKind::EntityNotExistsException(_))
}
pub fn is_failed_dependency_exception(&self) -> bool {
matches!(
&self.kind,
DeleteUserErrorKind::FailedDependencyException(_)
)
}
pub fn is_service_unavailable_exception(&self) -> bool {
matches!(
&self.kind,
DeleteUserErrorKind::ServiceUnavailableException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
DeleteUserErrorKind::UnauthorizedOperationException(_)
)
}
pub fn is_unauthorized_resource_access_exception(&self) -> bool {
matches!(
&self.kind,
DeleteUserErrorKind::UnauthorizedResourceAccessException(_)
)
}
}
impl std::error::Error for DeleteUserError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteUserErrorKind::EntityNotExistsException(_inner) => Some(_inner),
DeleteUserErrorKind::FailedDependencyException(_inner) => Some(_inner),
DeleteUserErrorKind::ServiceUnavailableException(_inner) => Some(_inner),
DeleteUserErrorKind::UnauthorizedOperationException(_inner) => Some(_inner),
DeleteUserErrorKind::UnauthorizedResourceAccessException(_inner) => Some(_inner),
DeleteUserErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteNotificationSubscriptionError {
pub kind: DeleteNotificationSubscriptionErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteNotificationSubscriptionError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteNotificationSubscriptionErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteNotificationSubscriptionErrorKind {
EntityNotExistsException(crate::error::EntityNotExistsException),
ProhibitedStateException(crate::error::ProhibitedStateException),
ServiceUnavailableException(crate::error::ServiceUnavailableException),
UnauthorizedResourceAccessException(crate::error::UnauthorizedResourceAccessException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteNotificationSubscriptionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteNotificationSubscriptionErrorKind::EntityNotExistsException(_inner) => {
_inner.fmt(f)
}
DeleteNotificationSubscriptionErrorKind::ProhibitedStateException(_inner) => {
_inner.fmt(f)
}
DeleteNotificationSubscriptionErrorKind::ServiceUnavailableException(_inner) => {
_inner.fmt(f)
}
DeleteNotificationSubscriptionErrorKind::UnauthorizedResourceAccessException(
_inner,
) => _inner.fmt(f),
DeleteNotificationSubscriptionErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteNotificationSubscriptionError {
fn code(&self) -> Option<&str> {
DeleteNotificationSubscriptionError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteNotificationSubscriptionError {
pub fn new(
kind: DeleteNotificationSubscriptionErrorKind,
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: DeleteNotificationSubscriptionErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteNotificationSubscriptionErrorKind::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_entity_not_exists_exception(&self) -> bool {
matches!(
&self.kind,
DeleteNotificationSubscriptionErrorKind::EntityNotExistsException(_)
)
}
pub fn is_prohibited_state_exception(&self) -> bool {
matches!(
&self.kind,
DeleteNotificationSubscriptionErrorKind::ProhibitedStateException(_)
)
}
pub fn is_service_unavailable_exception(&self) -> bool {
matches!(
&self.kind,
DeleteNotificationSubscriptionErrorKind::ServiceUnavailableException(_)
)
}
pub fn is_unauthorized_resource_access_exception(&self) -> bool {
matches!(
&self.kind,
DeleteNotificationSubscriptionErrorKind::UnauthorizedResourceAccessException(_)
)
}
}
impl std::error::Error for DeleteNotificationSubscriptionError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteNotificationSubscriptionErrorKind::EntityNotExistsException(_inner) => {
Some(_inner)
}
DeleteNotificationSubscriptionErrorKind::ProhibitedStateException(_inner) => {
Some(_inner)
}
DeleteNotificationSubscriptionErrorKind::ServiceUnavailableException(_inner) => {
Some(_inner)
}
DeleteNotificationSubscriptionErrorKind::UnauthorizedResourceAccessException(
_inner,
) => Some(_inner),
DeleteNotificationSubscriptionErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteLabelsError {
pub kind: DeleteLabelsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteLabelsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteLabelsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteLabelsErrorKind {
EntityNotExistsException(crate::error::EntityNotExistsException),
FailedDependencyException(crate::error::FailedDependencyException),
ProhibitedStateException(crate::error::ProhibitedStateException),
ServiceUnavailableException(crate::error::ServiceUnavailableException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
UnauthorizedResourceAccessException(crate::error::UnauthorizedResourceAccessException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteLabelsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteLabelsErrorKind::EntityNotExistsException(_inner) => _inner.fmt(f),
DeleteLabelsErrorKind::FailedDependencyException(_inner) => _inner.fmt(f),
DeleteLabelsErrorKind::ProhibitedStateException(_inner) => _inner.fmt(f),
DeleteLabelsErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f),
DeleteLabelsErrorKind::UnauthorizedOperationException(_inner) => _inner.fmt(f),
DeleteLabelsErrorKind::UnauthorizedResourceAccessException(_inner) => _inner.fmt(f),
DeleteLabelsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteLabelsError {
fn code(&self) -> Option<&str> {
DeleteLabelsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteLabelsError {
pub fn new(kind: DeleteLabelsErrorKind, 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: DeleteLabelsErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteLabelsErrorKind::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_entity_not_exists_exception(&self) -> bool {
matches!(
&self.kind,
DeleteLabelsErrorKind::EntityNotExistsException(_)
)
}
pub fn is_failed_dependency_exception(&self) -> bool {
matches!(
&self.kind,
DeleteLabelsErrorKind::FailedDependencyException(_)
)
}
pub fn is_prohibited_state_exception(&self) -> bool {
matches!(
&self.kind,
DeleteLabelsErrorKind::ProhibitedStateException(_)
)
}
pub fn is_service_unavailable_exception(&self) -> bool {
matches!(
&self.kind,
DeleteLabelsErrorKind::ServiceUnavailableException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
DeleteLabelsErrorKind::UnauthorizedOperationException(_)
)
}
pub fn is_unauthorized_resource_access_exception(&self) -> bool {
matches!(
&self.kind,
DeleteLabelsErrorKind::UnauthorizedResourceAccessException(_)
)
}
}
impl std::error::Error for DeleteLabelsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteLabelsErrorKind::EntityNotExistsException(_inner) => Some(_inner),
DeleteLabelsErrorKind::FailedDependencyException(_inner) => Some(_inner),
DeleteLabelsErrorKind::ProhibitedStateException(_inner) => Some(_inner),
DeleteLabelsErrorKind::ServiceUnavailableException(_inner) => Some(_inner),
DeleteLabelsErrorKind::UnauthorizedOperationException(_inner) => Some(_inner),
DeleteLabelsErrorKind::UnauthorizedResourceAccessException(_inner) => Some(_inner),
DeleteLabelsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteFolderContentsError {
pub kind: DeleteFolderContentsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteFolderContentsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteFolderContentsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteFolderContentsErrorKind {
ConflictingOperationException(crate::error::ConflictingOperationException),
EntityNotExistsException(crate::error::EntityNotExistsException),
FailedDependencyException(crate::error::FailedDependencyException),
ProhibitedStateException(crate::error::ProhibitedStateException),
ServiceUnavailableException(crate::error::ServiceUnavailableException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
UnauthorizedResourceAccessException(crate::error::UnauthorizedResourceAccessException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteFolderContentsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteFolderContentsErrorKind::ConflictingOperationException(_inner) => _inner.fmt(f),
DeleteFolderContentsErrorKind::EntityNotExistsException(_inner) => _inner.fmt(f),
DeleteFolderContentsErrorKind::FailedDependencyException(_inner) => _inner.fmt(f),
DeleteFolderContentsErrorKind::ProhibitedStateException(_inner) => _inner.fmt(f),
DeleteFolderContentsErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f),
DeleteFolderContentsErrorKind::UnauthorizedOperationException(_inner) => _inner.fmt(f),
DeleteFolderContentsErrorKind::UnauthorizedResourceAccessException(_inner) => {
_inner.fmt(f)
}
DeleteFolderContentsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteFolderContentsError {
fn code(&self) -> Option<&str> {
DeleteFolderContentsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteFolderContentsError {
pub fn new(kind: DeleteFolderContentsErrorKind, 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: DeleteFolderContentsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteFolderContentsErrorKind::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_conflicting_operation_exception(&self) -> bool {
matches!(
&self.kind,
DeleteFolderContentsErrorKind::ConflictingOperationException(_)
)
}
pub fn is_entity_not_exists_exception(&self) -> bool {
matches!(
&self.kind,
DeleteFolderContentsErrorKind::EntityNotExistsException(_)
)
}
pub fn is_failed_dependency_exception(&self) -> bool {
matches!(
&self.kind,
DeleteFolderContentsErrorKind::FailedDependencyException(_)
)
}
pub fn is_prohibited_state_exception(&self) -> bool {
matches!(
&self.kind,
DeleteFolderContentsErrorKind::ProhibitedStateException(_)
)
}
pub fn is_service_unavailable_exception(&self) -> bool {
matches!(
&self.kind,
DeleteFolderContentsErrorKind::ServiceUnavailableException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
DeleteFolderContentsErrorKind::UnauthorizedOperationException(_)
)
}
pub fn is_unauthorized_resource_access_exception(&self) -> bool {
matches!(
&self.kind,
DeleteFolderContentsErrorKind::UnauthorizedResourceAccessException(_)
)
}
}
impl std::error::Error for DeleteFolderContentsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteFolderContentsErrorKind::ConflictingOperationException(_inner) => Some(_inner),
DeleteFolderContentsErrorKind::EntityNotExistsException(_inner) => Some(_inner),
DeleteFolderContentsErrorKind::FailedDependencyException(_inner) => Some(_inner),
DeleteFolderContentsErrorKind::ProhibitedStateException(_inner) => Some(_inner),
DeleteFolderContentsErrorKind::ServiceUnavailableException(_inner) => Some(_inner),
DeleteFolderContentsErrorKind::UnauthorizedOperationException(_inner) => Some(_inner),
DeleteFolderContentsErrorKind::UnauthorizedResourceAccessException(_inner) => {
Some(_inner)
}
DeleteFolderContentsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteFolderError {
pub kind: DeleteFolderErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteFolderError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteFolderErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteFolderErrorKind {
ConcurrentModificationException(crate::error::ConcurrentModificationException),
ConflictingOperationException(crate::error::ConflictingOperationException),
EntityNotExistsException(crate::error::EntityNotExistsException),
FailedDependencyException(crate::error::FailedDependencyException),
LimitExceededException(crate::error::LimitExceededException),
ProhibitedStateException(crate::error::ProhibitedStateException),
ServiceUnavailableException(crate::error::ServiceUnavailableException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
UnauthorizedResourceAccessException(crate::error::UnauthorizedResourceAccessException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteFolderError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteFolderErrorKind::ConcurrentModificationException(_inner) => _inner.fmt(f),
DeleteFolderErrorKind::ConflictingOperationException(_inner) => _inner.fmt(f),
DeleteFolderErrorKind::EntityNotExistsException(_inner) => _inner.fmt(f),
DeleteFolderErrorKind::FailedDependencyException(_inner) => _inner.fmt(f),
DeleteFolderErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
DeleteFolderErrorKind::ProhibitedStateException(_inner) => _inner.fmt(f),
DeleteFolderErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f),
DeleteFolderErrorKind::UnauthorizedOperationException(_inner) => _inner.fmt(f),
DeleteFolderErrorKind::UnauthorizedResourceAccessException(_inner) => _inner.fmt(f),
DeleteFolderErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteFolderError {
fn code(&self) -> Option<&str> {
DeleteFolderError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteFolderError {
pub fn new(kind: DeleteFolderErrorKind, 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: DeleteFolderErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteFolderErrorKind::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,
DeleteFolderErrorKind::ConcurrentModificationException(_)
)
}
pub fn is_conflicting_operation_exception(&self) -> bool {
matches!(
&self.kind,
DeleteFolderErrorKind::ConflictingOperationException(_)
)
}
pub fn is_entity_not_exists_exception(&self) -> bool {
matches!(
&self.kind,
DeleteFolderErrorKind::EntityNotExistsException(_)
)
}
pub fn is_failed_dependency_exception(&self) -> bool {
matches!(
&self.kind,
DeleteFolderErrorKind::FailedDependencyException(_)
)
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(&self.kind, DeleteFolderErrorKind::LimitExceededException(_))
}
pub fn is_prohibited_state_exception(&self) -> bool {
matches!(
&self.kind,
DeleteFolderErrorKind::ProhibitedStateException(_)
)
}
pub fn is_service_unavailable_exception(&self) -> bool {
matches!(
&self.kind,
DeleteFolderErrorKind::ServiceUnavailableException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
DeleteFolderErrorKind::UnauthorizedOperationException(_)
)
}
pub fn is_unauthorized_resource_access_exception(&self) -> bool {
matches!(
&self.kind,
DeleteFolderErrorKind::UnauthorizedResourceAccessException(_)
)
}
}
impl std::error::Error for DeleteFolderError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteFolderErrorKind::ConcurrentModificationException(_inner) => Some(_inner),
DeleteFolderErrorKind::ConflictingOperationException(_inner) => Some(_inner),
DeleteFolderErrorKind::EntityNotExistsException(_inner) => Some(_inner),
DeleteFolderErrorKind::FailedDependencyException(_inner) => Some(_inner),
DeleteFolderErrorKind::LimitExceededException(_inner) => Some(_inner),
DeleteFolderErrorKind::ProhibitedStateException(_inner) => Some(_inner),
DeleteFolderErrorKind::ServiceUnavailableException(_inner) => Some(_inner),
DeleteFolderErrorKind::UnauthorizedOperationException(_inner) => Some(_inner),
DeleteFolderErrorKind::UnauthorizedResourceAccessException(_inner) => Some(_inner),
DeleteFolderErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteDocumentVersionError {
pub kind: DeleteDocumentVersionErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteDocumentVersionError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteDocumentVersionErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteDocumentVersionErrorKind {
ConcurrentModificationException(crate::error::ConcurrentModificationException),
ConflictingOperationException(crate::error::ConflictingOperationException),
EntityNotExistsException(crate::error::EntityNotExistsException),
FailedDependencyException(crate::error::FailedDependencyException),
InvalidOperationException(crate::error::InvalidOperationException),
ProhibitedStateException(crate::error::ProhibitedStateException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
UnauthorizedResourceAccessException(crate::error::UnauthorizedResourceAccessException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteDocumentVersionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteDocumentVersionErrorKind::ConcurrentModificationException(_inner) => {
_inner.fmt(f)
}
DeleteDocumentVersionErrorKind::ConflictingOperationException(_inner) => _inner.fmt(f),
DeleteDocumentVersionErrorKind::EntityNotExistsException(_inner) => _inner.fmt(f),
DeleteDocumentVersionErrorKind::FailedDependencyException(_inner) => _inner.fmt(f),
DeleteDocumentVersionErrorKind::InvalidOperationException(_inner) => _inner.fmt(f),
DeleteDocumentVersionErrorKind::ProhibitedStateException(_inner) => _inner.fmt(f),
DeleteDocumentVersionErrorKind::UnauthorizedOperationException(_inner) => _inner.fmt(f),
DeleteDocumentVersionErrorKind::UnauthorizedResourceAccessException(_inner) => {
_inner.fmt(f)
}
DeleteDocumentVersionErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteDocumentVersionError {
fn code(&self) -> Option<&str> {
DeleteDocumentVersionError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteDocumentVersionError {
pub fn new(kind: DeleteDocumentVersionErrorKind, 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: DeleteDocumentVersionErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteDocumentVersionErrorKind::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,
DeleteDocumentVersionErrorKind::ConcurrentModificationException(_)
)
}
pub fn is_conflicting_operation_exception(&self) -> bool {
matches!(
&self.kind,
DeleteDocumentVersionErrorKind::ConflictingOperationException(_)
)
}
pub fn is_entity_not_exists_exception(&self) -> bool {
matches!(
&self.kind,
DeleteDocumentVersionErrorKind::EntityNotExistsException(_)
)
}
pub fn is_failed_dependency_exception(&self) -> bool {
matches!(
&self.kind,
DeleteDocumentVersionErrorKind::FailedDependencyException(_)
)
}
pub fn is_invalid_operation_exception(&self) -> bool {
matches!(
&self.kind,
DeleteDocumentVersionErrorKind::InvalidOperationException(_)
)
}
pub fn is_prohibited_state_exception(&self) -> bool {
matches!(
&self.kind,
DeleteDocumentVersionErrorKind::ProhibitedStateException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
DeleteDocumentVersionErrorKind::UnauthorizedOperationException(_)
)
}
pub fn is_unauthorized_resource_access_exception(&self) -> bool {
matches!(
&self.kind,
DeleteDocumentVersionErrorKind::UnauthorizedResourceAccessException(_)
)
}
}
impl std::error::Error for DeleteDocumentVersionError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteDocumentVersionErrorKind::ConcurrentModificationException(_inner) => Some(_inner),
DeleteDocumentVersionErrorKind::ConflictingOperationException(_inner) => Some(_inner),
DeleteDocumentVersionErrorKind::EntityNotExistsException(_inner) => Some(_inner),
DeleteDocumentVersionErrorKind::FailedDependencyException(_inner) => Some(_inner),
DeleteDocumentVersionErrorKind::InvalidOperationException(_inner) => Some(_inner),
DeleteDocumentVersionErrorKind::ProhibitedStateException(_inner) => Some(_inner),
DeleteDocumentVersionErrorKind::UnauthorizedOperationException(_inner) => Some(_inner),
DeleteDocumentVersionErrorKind::UnauthorizedResourceAccessException(_inner) => {
Some(_inner)
}
DeleteDocumentVersionErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteDocumentError {
pub kind: DeleteDocumentErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteDocumentError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteDocumentErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteDocumentErrorKind {
ConcurrentModificationException(crate::error::ConcurrentModificationException),
ConflictingOperationException(crate::error::ConflictingOperationException),
EntityNotExistsException(crate::error::EntityNotExistsException),
FailedDependencyException(crate::error::FailedDependencyException),
LimitExceededException(crate::error::LimitExceededException),
ProhibitedStateException(crate::error::ProhibitedStateException),
ServiceUnavailableException(crate::error::ServiceUnavailableException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
UnauthorizedResourceAccessException(crate::error::UnauthorizedResourceAccessException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteDocumentError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteDocumentErrorKind::ConcurrentModificationException(_inner) => _inner.fmt(f),
DeleteDocumentErrorKind::ConflictingOperationException(_inner) => _inner.fmt(f),
DeleteDocumentErrorKind::EntityNotExistsException(_inner) => _inner.fmt(f),
DeleteDocumentErrorKind::FailedDependencyException(_inner) => _inner.fmt(f),
DeleteDocumentErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
DeleteDocumentErrorKind::ProhibitedStateException(_inner) => _inner.fmt(f),
DeleteDocumentErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f),
DeleteDocumentErrorKind::UnauthorizedOperationException(_inner) => _inner.fmt(f),
DeleteDocumentErrorKind::UnauthorizedResourceAccessException(_inner) => _inner.fmt(f),
DeleteDocumentErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteDocumentError {
fn code(&self) -> Option<&str> {
DeleteDocumentError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteDocumentError {
pub fn new(kind: DeleteDocumentErrorKind, 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: DeleteDocumentErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteDocumentErrorKind::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,
DeleteDocumentErrorKind::ConcurrentModificationException(_)
)
}
pub fn is_conflicting_operation_exception(&self) -> bool {
matches!(
&self.kind,
DeleteDocumentErrorKind::ConflictingOperationException(_)
)
}
pub fn is_entity_not_exists_exception(&self) -> bool {
matches!(
&self.kind,
DeleteDocumentErrorKind::EntityNotExistsException(_)
)
}
pub fn is_failed_dependency_exception(&self) -> bool {
matches!(
&self.kind,
DeleteDocumentErrorKind::FailedDependencyException(_)
)
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
DeleteDocumentErrorKind::LimitExceededException(_)
)
}
pub fn is_prohibited_state_exception(&self) -> bool {
matches!(
&self.kind,
DeleteDocumentErrorKind::ProhibitedStateException(_)
)
}
pub fn is_service_unavailable_exception(&self) -> bool {
matches!(
&self.kind,
DeleteDocumentErrorKind::ServiceUnavailableException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
DeleteDocumentErrorKind::UnauthorizedOperationException(_)
)
}
pub fn is_unauthorized_resource_access_exception(&self) -> bool {
matches!(
&self.kind,
DeleteDocumentErrorKind::UnauthorizedResourceAccessException(_)
)
}
}
impl std::error::Error for DeleteDocumentError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteDocumentErrorKind::ConcurrentModificationException(_inner) => Some(_inner),
DeleteDocumentErrorKind::ConflictingOperationException(_inner) => Some(_inner),
DeleteDocumentErrorKind::EntityNotExistsException(_inner) => Some(_inner),
DeleteDocumentErrorKind::FailedDependencyException(_inner) => Some(_inner),
DeleteDocumentErrorKind::LimitExceededException(_inner) => Some(_inner),
DeleteDocumentErrorKind::ProhibitedStateException(_inner) => Some(_inner),
DeleteDocumentErrorKind::ServiceUnavailableException(_inner) => Some(_inner),
DeleteDocumentErrorKind::UnauthorizedOperationException(_inner) => Some(_inner),
DeleteDocumentErrorKind::UnauthorizedResourceAccessException(_inner) => Some(_inner),
DeleteDocumentErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteCustomMetadataError {
pub kind: DeleteCustomMetadataErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteCustomMetadataError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteCustomMetadataErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteCustomMetadataErrorKind {
EntityNotExistsException(crate::error::EntityNotExistsException),
FailedDependencyException(crate::error::FailedDependencyException),
ProhibitedStateException(crate::error::ProhibitedStateException),
ServiceUnavailableException(crate::error::ServiceUnavailableException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
UnauthorizedResourceAccessException(crate::error::UnauthorizedResourceAccessException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteCustomMetadataError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteCustomMetadataErrorKind::EntityNotExistsException(_inner) => _inner.fmt(f),
DeleteCustomMetadataErrorKind::FailedDependencyException(_inner) => _inner.fmt(f),
DeleteCustomMetadataErrorKind::ProhibitedStateException(_inner) => _inner.fmt(f),
DeleteCustomMetadataErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f),
DeleteCustomMetadataErrorKind::UnauthorizedOperationException(_inner) => _inner.fmt(f),
DeleteCustomMetadataErrorKind::UnauthorizedResourceAccessException(_inner) => {
_inner.fmt(f)
}
DeleteCustomMetadataErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteCustomMetadataError {
fn code(&self) -> Option<&str> {
DeleteCustomMetadataError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteCustomMetadataError {
pub fn new(kind: DeleteCustomMetadataErrorKind, 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: DeleteCustomMetadataErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteCustomMetadataErrorKind::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_entity_not_exists_exception(&self) -> bool {
matches!(
&self.kind,
DeleteCustomMetadataErrorKind::EntityNotExistsException(_)
)
}
pub fn is_failed_dependency_exception(&self) -> bool {
matches!(
&self.kind,
DeleteCustomMetadataErrorKind::FailedDependencyException(_)
)
}
pub fn is_prohibited_state_exception(&self) -> bool {
matches!(
&self.kind,
DeleteCustomMetadataErrorKind::ProhibitedStateException(_)
)
}
pub fn is_service_unavailable_exception(&self) -> bool {
matches!(
&self.kind,
DeleteCustomMetadataErrorKind::ServiceUnavailableException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
DeleteCustomMetadataErrorKind::UnauthorizedOperationException(_)
)
}
pub fn is_unauthorized_resource_access_exception(&self) -> bool {
matches!(
&self.kind,
DeleteCustomMetadataErrorKind::UnauthorizedResourceAccessException(_)
)
}
}
impl std::error::Error for DeleteCustomMetadataError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteCustomMetadataErrorKind::EntityNotExistsException(_inner) => Some(_inner),
DeleteCustomMetadataErrorKind::FailedDependencyException(_inner) => Some(_inner),
DeleteCustomMetadataErrorKind::ProhibitedStateException(_inner) => Some(_inner),
DeleteCustomMetadataErrorKind::ServiceUnavailableException(_inner) => Some(_inner),
DeleteCustomMetadataErrorKind::UnauthorizedOperationException(_inner) => Some(_inner),
DeleteCustomMetadataErrorKind::UnauthorizedResourceAccessException(_inner) => {
Some(_inner)
}
DeleteCustomMetadataErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteCommentError {
pub kind: DeleteCommentErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteCommentError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteCommentErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteCommentErrorKind {
DocumentLockedForCommentsException(crate::error::DocumentLockedForCommentsException),
EntityNotExistsException(crate::error::EntityNotExistsException),
FailedDependencyException(crate::error::FailedDependencyException),
ProhibitedStateException(crate::error::ProhibitedStateException),
ServiceUnavailableException(crate::error::ServiceUnavailableException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
UnauthorizedResourceAccessException(crate::error::UnauthorizedResourceAccessException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteCommentError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteCommentErrorKind::DocumentLockedForCommentsException(_inner) => _inner.fmt(f),
DeleteCommentErrorKind::EntityNotExistsException(_inner) => _inner.fmt(f),
DeleteCommentErrorKind::FailedDependencyException(_inner) => _inner.fmt(f),
DeleteCommentErrorKind::ProhibitedStateException(_inner) => _inner.fmt(f),
DeleteCommentErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f),
DeleteCommentErrorKind::UnauthorizedOperationException(_inner) => _inner.fmt(f),
DeleteCommentErrorKind::UnauthorizedResourceAccessException(_inner) => _inner.fmt(f),
DeleteCommentErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteCommentError {
fn code(&self) -> Option<&str> {
DeleteCommentError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteCommentError {
pub fn new(kind: DeleteCommentErrorKind, 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: DeleteCommentErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteCommentErrorKind::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_document_locked_for_comments_exception(&self) -> bool {
matches!(
&self.kind,
DeleteCommentErrorKind::DocumentLockedForCommentsException(_)
)
}
pub fn is_entity_not_exists_exception(&self) -> bool {
matches!(
&self.kind,
DeleteCommentErrorKind::EntityNotExistsException(_)
)
}
pub fn is_failed_dependency_exception(&self) -> bool {
matches!(
&self.kind,
DeleteCommentErrorKind::FailedDependencyException(_)
)
}
pub fn is_prohibited_state_exception(&self) -> bool {
matches!(
&self.kind,
DeleteCommentErrorKind::ProhibitedStateException(_)
)
}
pub fn is_service_unavailable_exception(&self) -> bool {
matches!(
&self.kind,
DeleteCommentErrorKind::ServiceUnavailableException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
DeleteCommentErrorKind::UnauthorizedOperationException(_)
)
}
pub fn is_unauthorized_resource_access_exception(&self) -> bool {
matches!(
&self.kind,
DeleteCommentErrorKind::UnauthorizedResourceAccessException(_)
)
}
}
impl std::error::Error for DeleteCommentError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteCommentErrorKind::DocumentLockedForCommentsException(_inner) => Some(_inner),
DeleteCommentErrorKind::EntityNotExistsException(_inner) => Some(_inner),
DeleteCommentErrorKind::FailedDependencyException(_inner) => Some(_inner),
DeleteCommentErrorKind::ProhibitedStateException(_inner) => Some(_inner),
DeleteCommentErrorKind::ServiceUnavailableException(_inner) => Some(_inner),
DeleteCommentErrorKind::UnauthorizedOperationException(_inner) => Some(_inner),
DeleteCommentErrorKind::UnauthorizedResourceAccessException(_inner) => Some(_inner),
DeleteCommentErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DocumentLockedForCommentsException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl DocumentLockedForCommentsException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for DocumentLockedForCommentsException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "DocumentLockedForCommentsException")?;
if let Some(inner_21) = &self.message {
{
write!(f, ": {}", inner_21)?;
}
}
Ok(())
}
}
impl std::error::Error for DocumentLockedForCommentsException {}
pub mod document_locked_for_comments_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 {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::DocumentLockedForCommentsException {
crate::error::DocumentLockedForCommentsException {
message: self.message,
}
}
}
}
impl DocumentLockedForCommentsException {
pub fn builder() -> crate::error::document_locked_for_comments_exception::Builder {
crate::error::document_locked_for_comments_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeactivateUserError {
pub kind: DeactivateUserErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeactivateUserError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeactivateUserErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeactivateUserErrorKind {
EntityNotExistsException(crate::error::EntityNotExistsException),
FailedDependencyException(crate::error::FailedDependencyException),
ServiceUnavailableException(crate::error::ServiceUnavailableException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
UnauthorizedResourceAccessException(crate::error::UnauthorizedResourceAccessException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeactivateUserError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeactivateUserErrorKind::EntityNotExistsException(_inner) => _inner.fmt(f),
DeactivateUserErrorKind::FailedDependencyException(_inner) => _inner.fmt(f),
DeactivateUserErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f),
DeactivateUserErrorKind::UnauthorizedOperationException(_inner) => _inner.fmt(f),
DeactivateUserErrorKind::UnauthorizedResourceAccessException(_inner) => _inner.fmt(f),
DeactivateUserErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeactivateUserError {
fn code(&self) -> Option<&str> {
DeactivateUserError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeactivateUserError {
pub fn new(kind: DeactivateUserErrorKind, 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: DeactivateUserErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeactivateUserErrorKind::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_entity_not_exists_exception(&self) -> bool {
matches!(
&self.kind,
DeactivateUserErrorKind::EntityNotExistsException(_)
)
}
pub fn is_failed_dependency_exception(&self) -> bool {
matches!(
&self.kind,
DeactivateUserErrorKind::FailedDependencyException(_)
)
}
pub fn is_service_unavailable_exception(&self) -> bool {
matches!(
&self.kind,
DeactivateUserErrorKind::ServiceUnavailableException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
DeactivateUserErrorKind::UnauthorizedOperationException(_)
)
}
pub fn is_unauthorized_resource_access_exception(&self) -> bool {
matches!(
&self.kind,
DeactivateUserErrorKind::UnauthorizedResourceAccessException(_)
)
}
}
impl std::error::Error for DeactivateUserError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeactivateUserErrorKind::EntityNotExistsException(_inner) => Some(_inner),
DeactivateUserErrorKind::FailedDependencyException(_inner) => Some(_inner),
DeactivateUserErrorKind::ServiceUnavailableException(_inner) => Some(_inner),
DeactivateUserErrorKind::UnauthorizedOperationException(_inner) => Some(_inner),
DeactivateUserErrorKind::UnauthorizedResourceAccessException(_inner) => Some(_inner),
DeactivateUserErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateUserError {
pub kind: CreateUserErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for CreateUserError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CreateUserErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateUserErrorKind {
EntityAlreadyExistsException(crate::error::EntityAlreadyExistsException),
FailedDependencyException(crate::error::FailedDependencyException),
ServiceUnavailableException(crate::error::ServiceUnavailableException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
UnauthorizedResourceAccessException(crate::error::UnauthorizedResourceAccessException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CreateUserError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateUserErrorKind::EntityAlreadyExistsException(_inner) => _inner.fmt(f),
CreateUserErrorKind::FailedDependencyException(_inner) => _inner.fmt(f),
CreateUserErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f),
CreateUserErrorKind::UnauthorizedOperationException(_inner) => _inner.fmt(f),
CreateUserErrorKind::UnauthorizedResourceAccessException(_inner) => _inner.fmt(f),
CreateUserErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateUserError {
fn code(&self) -> Option<&str> {
CreateUserError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateUserError {
pub fn new(kind: CreateUserErrorKind, 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: CreateUserErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateUserErrorKind::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_entity_already_exists_exception(&self) -> bool {
matches!(
&self.kind,
CreateUserErrorKind::EntityAlreadyExistsException(_)
)
}
pub fn is_failed_dependency_exception(&self) -> bool {
matches!(
&self.kind,
CreateUserErrorKind::FailedDependencyException(_)
)
}
pub fn is_service_unavailable_exception(&self) -> bool {
matches!(
&self.kind,
CreateUserErrorKind::ServiceUnavailableException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
CreateUserErrorKind::UnauthorizedOperationException(_)
)
}
pub fn is_unauthorized_resource_access_exception(&self) -> bool {
matches!(
&self.kind,
CreateUserErrorKind::UnauthorizedResourceAccessException(_)
)
}
}
impl std::error::Error for CreateUserError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateUserErrorKind::EntityAlreadyExistsException(_inner) => Some(_inner),
CreateUserErrorKind::FailedDependencyException(_inner) => Some(_inner),
CreateUserErrorKind::ServiceUnavailableException(_inner) => Some(_inner),
CreateUserErrorKind::UnauthorizedOperationException(_inner) => Some(_inner),
CreateUserErrorKind::UnauthorizedResourceAccessException(_inner) => Some(_inner),
CreateUserErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateNotificationSubscriptionError {
pub kind: CreateNotificationSubscriptionErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for CreateNotificationSubscriptionError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CreateNotificationSubscriptionErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateNotificationSubscriptionErrorKind {
InvalidArgumentException(crate::error::InvalidArgumentException),
ServiceUnavailableException(crate::error::ServiceUnavailableException),
TooManySubscriptionsException(crate::error::TooManySubscriptionsException),
UnauthorizedResourceAccessException(crate::error::UnauthorizedResourceAccessException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CreateNotificationSubscriptionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateNotificationSubscriptionErrorKind::InvalidArgumentException(_inner) => {
_inner.fmt(f)
}
CreateNotificationSubscriptionErrorKind::ServiceUnavailableException(_inner) => {
_inner.fmt(f)
}
CreateNotificationSubscriptionErrorKind::TooManySubscriptionsException(_inner) => {
_inner.fmt(f)
}
CreateNotificationSubscriptionErrorKind::UnauthorizedResourceAccessException(
_inner,
) => _inner.fmt(f),
CreateNotificationSubscriptionErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateNotificationSubscriptionError {
fn code(&self) -> Option<&str> {
CreateNotificationSubscriptionError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateNotificationSubscriptionError {
pub fn new(
kind: CreateNotificationSubscriptionErrorKind,
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: CreateNotificationSubscriptionErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateNotificationSubscriptionErrorKind::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_invalid_argument_exception(&self) -> bool {
matches!(
&self.kind,
CreateNotificationSubscriptionErrorKind::InvalidArgumentException(_)
)
}
pub fn is_service_unavailable_exception(&self) -> bool {
matches!(
&self.kind,
CreateNotificationSubscriptionErrorKind::ServiceUnavailableException(_)
)
}
pub fn is_too_many_subscriptions_exception(&self) -> bool {
matches!(
&self.kind,
CreateNotificationSubscriptionErrorKind::TooManySubscriptionsException(_)
)
}
pub fn is_unauthorized_resource_access_exception(&self) -> bool {
matches!(
&self.kind,
CreateNotificationSubscriptionErrorKind::UnauthorizedResourceAccessException(_)
)
}
}
impl std::error::Error for CreateNotificationSubscriptionError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateNotificationSubscriptionErrorKind::InvalidArgumentException(_inner) => {
Some(_inner)
}
CreateNotificationSubscriptionErrorKind::ServiceUnavailableException(_inner) => {
Some(_inner)
}
CreateNotificationSubscriptionErrorKind::TooManySubscriptionsException(_inner) => {
Some(_inner)
}
CreateNotificationSubscriptionErrorKind::UnauthorizedResourceAccessException(
_inner,
) => Some(_inner),
CreateNotificationSubscriptionErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct TooManySubscriptionsException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl TooManySubscriptionsException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManySubscriptionsException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TooManySubscriptionsException")?;
if let Some(inner_22) = &self.message {
{
write!(f, ": {}", inner_22)?;
}
}
Ok(())
}
}
impl std::error::Error for TooManySubscriptionsException {}
pub mod too_many_subscriptions_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 {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::TooManySubscriptionsException {
crate::error::TooManySubscriptionsException {
message: self.message,
}
}
}
}
impl TooManySubscriptionsException {
pub fn builder() -> crate::error::too_many_subscriptions_exception::Builder {
crate::error::too_many_subscriptions_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateLabelsError {
pub kind: CreateLabelsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for CreateLabelsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CreateLabelsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateLabelsErrorKind {
EntityNotExistsException(crate::error::EntityNotExistsException),
FailedDependencyException(crate::error::FailedDependencyException),
ServiceUnavailableException(crate::error::ServiceUnavailableException),
TooManyLabelsException(crate::error::TooManyLabelsException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
UnauthorizedResourceAccessException(crate::error::UnauthorizedResourceAccessException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CreateLabelsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateLabelsErrorKind::EntityNotExistsException(_inner) => _inner.fmt(f),
CreateLabelsErrorKind::FailedDependencyException(_inner) => _inner.fmt(f),
CreateLabelsErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f),
CreateLabelsErrorKind::TooManyLabelsException(_inner) => _inner.fmt(f),
CreateLabelsErrorKind::UnauthorizedOperationException(_inner) => _inner.fmt(f),
CreateLabelsErrorKind::UnauthorizedResourceAccessException(_inner) => _inner.fmt(f),
CreateLabelsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateLabelsError {
fn code(&self) -> Option<&str> {
CreateLabelsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateLabelsError {
pub fn new(kind: CreateLabelsErrorKind, 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: CreateLabelsErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateLabelsErrorKind::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_entity_not_exists_exception(&self) -> bool {
matches!(
&self.kind,
CreateLabelsErrorKind::EntityNotExistsException(_)
)
}
pub fn is_failed_dependency_exception(&self) -> bool {
matches!(
&self.kind,
CreateLabelsErrorKind::FailedDependencyException(_)
)
}
pub fn is_service_unavailable_exception(&self) -> bool {
matches!(
&self.kind,
CreateLabelsErrorKind::ServiceUnavailableException(_)
)
}
pub fn is_too_many_labels_exception(&self) -> bool {
matches!(&self.kind, CreateLabelsErrorKind::TooManyLabelsException(_))
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
CreateLabelsErrorKind::UnauthorizedOperationException(_)
)
}
pub fn is_unauthorized_resource_access_exception(&self) -> bool {
matches!(
&self.kind,
CreateLabelsErrorKind::UnauthorizedResourceAccessException(_)
)
}
}
impl std::error::Error for CreateLabelsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateLabelsErrorKind::EntityNotExistsException(_inner) => Some(_inner),
CreateLabelsErrorKind::FailedDependencyException(_inner) => Some(_inner),
CreateLabelsErrorKind::ServiceUnavailableException(_inner) => Some(_inner),
CreateLabelsErrorKind::TooManyLabelsException(_inner) => Some(_inner),
CreateLabelsErrorKind::UnauthorizedOperationException(_inner) => Some(_inner),
CreateLabelsErrorKind::UnauthorizedResourceAccessException(_inner) => Some(_inner),
CreateLabelsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct TooManyLabelsException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl TooManyLabelsException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManyLabelsException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TooManyLabelsException")?;
if let Some(inner_23) = &self.message {
{
write!(f, ": {}", inner_23)?;
}
}
Ok(())
}
}
impl std::error::Error for TooManyLabelsException {}
pub mod too_many_labels_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 {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::TooManyLabelsException {
crate::error::TooManyLabelsException {
message: self.message,
}
}
}
}
impl TooManyLabelsException {
pub fn builder() -> crate::error::too_many_labels_exception::Builder {
crate::error::too_many_labels_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateFolderError {
pub kind: CreateFolderErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for CreateFolderError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CreateFolderErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateFolderErrorKind {
ConcurrentModificationException(crate::error::ConcurrentModificationException),
ConflictingOperationException(crate::error::ConflictingOperationException),
EntityAlreadyExistsException(crate::error::EntityAlreadyExistsException),
EntityNotExistsException(crate::error::EntityNotExistsException),
FailedDependencyException(crate::error::FailedDependencyException),
LimitExceededException(crate::error::LimitExceededException),
ProhibitedStateException(crate::error::ProhibitedStateException),
ServiceUnavailableException(crate::error::ServiceUnavailableException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
UnauthorizedResourceAccessException(crate::error::UnauthorizedResourceAccessException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CreateFolderError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateFolderErrorKind::ConcurrentModificationException(_inner) => _inner.fmt(f),
CreateFolderErrorKind::ConflictingOperationException(_inner) => _inner.fmt(f),
CreateFolderErrorKind::EntityAlreadyExistsException(_inner) => _inner.fmt(f),
CreateFolderErrorKind::EntityNotExistsException(_inner) => _inner.fmt(f),
CreateFolderErrorKind::FailedDependencyException(_inner) => _inner.fmt(f),
CreateFolderErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
CreateFolderErrorKind::ProhibitedStateException(_inner) => _inner.fmt(f),
CreateFolderErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f),
CreateFolderErrorKind::UnauthorizedOperationException(_inner) => _inner.fmt(f),
CreateFolderErrorKind::UnauthorizedResourceAccessException(_inner) => _inner.fmt(f),
CreateFolderErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateFolderError {
fn code(&self) -> Option<&str> {
CreateFolderError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateFolderError {
pub fn new(kind: CreateFolderErrorKind, 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: CreateFolderErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateFolderErrorKind::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,
CreateFolderErrorKind::ConcurrentModificationException(_)
)
}
pub fn is_conflicting_operation_exception(&self) -> bool {
matches!(
&self.kind,
CreateFolderErrorKind::ConflictingOperationException(_)
)
}
pub fn is_entity_already_exists_exception(&self) -> bool {
matches!(
&self.kind,
CreateFolderErrorKind::EntityAlreadyExistsException(_)
)
}
pub fn is_entity_not_exists_exception(&self) -> bool {
matches!(
&self.kind,
CreateFolderErrorKind::EntityNotExistsException(_)
)
}
pub fn is_failed_dependency_exception(&self) -> bool {
matches!(
&self.kind,
CreateFolderErrorKind::FailedDependencyException(_)
)
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(&self.kind, CreateFolderErrorKind::LimitExceededException(_))
}
pub fn is_prohibited_state_exception(&self) -> bool {
matches!(
&self.kind,
CreateFolderErrorKind::ProhibitedStateException(_)
)
}
pub fn is_service_unavailable_exception(&self) -> bool {
matches!(
&self.kind,
CreateFolderErrorKind::ServiceUnavailableException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
CreateFolderErrorKind::UnauthorizedOperationException(_)
)
}
pub fn is_unauthorized_resource_access_exception(&self) -> bool {
matches!(
&self.kind,
CreateFolderErrorKind::UnauthorizedResourceAccessException(_)
)
}
}
impl std::error::Error for CreateFolderError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateFolderErrorKind::ConcurrentModificationException(_inner) => Some(_inner),
CreateFolderErrorKind::ConflictingOperationException(_inner) => Some(_inner),
CreateFolderErrorKind::EntityAlreadyExistsException(_inner) => Some(_inner),
CreateFolderErrorKind::EntityNotExistsException(_inner) => Some(_inner),
CreateFolderErrorKind::FailedDependencyException(_inner) => Some(_inner),
CreateFolderErrorKind::LimitExceededException(_inner) => Some(_inner),
CreateFolderErrorKind::ProhibitedStateException(_inner) => Some(_inner),
CreateFolderErrorKind::ServiceUnavailableException(_inner) => Some(_inner),
CreateFolderErrorKind::UnauthorizedOperationException(_inner) => Some(_inner),
CreateFolderErrorKind::UnauthorizedResourceAccessException(_inner) => Some(_inner),
CreateFolderErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateCustomMetadataError {
pub kind: CreateCustomMetadataErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for CreateCustomMetadataError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CreateCustomMetadataErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateCustomMetadataErrorKind {
CustomMetadataLimitExceededException(crate::error::CustomMetadataLimitExceededException),
EntityNotExistsException(crate::error::EntityNotExistsException),
FailedDependencyException(crate::error::FailedDependencyException),
ProhibitedStateException(crate::error::ProhibitedStateException),
ServiceUnavailableException(crate::error::ServiceUnavailableException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
UnauthorizedResourceAccessException(crate::error::UnauthorizedResourceAccessException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CreateCustomMetadataError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateCustomMetadataErrorKind::CustomMetadataLimitExceededException(_inner) => {
_inner.fmt(f)
}
CreateCustomMetadataErrorKind::EntityNotExistsException(_inner) => _inner.fmt(f),
CreateCustomMetadataErrorKind::FailedDependencyException(_inner) => _inner.fmt(f),
CreateCustomMetadataErrorKind::ProhibitedStateException(_inner) => _inner.fmt(f),
CreateCustomMetadataErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f),
CreateCustomMetadataErrorKind::UnauthorizedOperationException(_inner) => _inner.fmt(f),
CreateCustomMetadataErrorKind::UnauthorizedResourceAccessException(_inner) => {
_inner.fmt(f)
}
CreateCustomMetadataErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateCustomMetadataError {
fn code(&self) -> Option<&str> {
CreateCustomMetadataError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateCustomMetadataError {
pub fn new(kind: CreateCustomMetadataErrorKind, 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: CreateCustomMetadataErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateCustomMetadataErrorKind::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_custom_metadata_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
CreateCustomMetadataErrorKind::CustomMetadataLimitExceededException(_)
)
}
pub fn is_entity_not_exists_exception(&self) -> bool {
matches!(
&self.kind,
CreateCustomMetadataErrorKind::EntityNotExistsException(_)
)
}
pub fn is_failed_dependency_exception(&self) -> bool {
matches!(
&self.kind,
CreateCustomMetadataErrorKind::FailedDependencyException(_)
)
}
pub fn is_prohibited_state_exception(&self) -> bool {
matches!(
&self.kind,
CreateCustomMetadataErrorKind::ProhibitedStateException(_)
)
}
pub fn is_service_unavailable_exception(&self) -> bool {
matches!(
&self.kind,
CreateCustomMetadataErrorKind::ServiceUnavailableException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
CreateCustomMetadataErrorKind::UnauthorizedOperationException(_)
)
}
pub fn is_unauthorized_resource_access_exception(&self) -> bool {
matches!(
&self.kind,
CreateCustomMetadataErrorKind::UnauthorizedResourceAccessException(_)
)
}
}
impl std::error::Error for CreateCustomMetadataError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateCustomMetadataErrorKind::CustomMetadataLimitExceededException(_inner) => {
Some(_inner)
}
CreateCustomMetadataErrorKind::EntityNotExistsException(_inner) => Some(_inner),
CreateCustomMetadataErrorKind::FailedDependencyException(_inner) => Some(_inner),
CreateCustomMetadataErrorKind::ProhibitedStateException(_inner) => Some(_inner),
CreateCustomMetadataErrorKind::ServiceUnavailableException(_inner) => Some(_inner),
CreateCustomMetadataErrorKind::UnauthorizedOperationException(_inner) => Some(_inner),
CreateCustomMetadataErrorKind::UnauthorizedResourceAccessException(_inner) => {
Some(_inner)
}
CreateCustomMetadataErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct CustomMetadataLimitExceededException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl CustomMetadataLimitExceededException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for CustomMetadataLimitExceededException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "CustomMetadataLimitExceededException")?;
if let Some(inner_24) = &self.message {
{
write!(f, ": {}", inner_24)?;
}
}
Ok(())
}
}
impl std::error::Error for CustomMetadataLimitExceededException {}
pub mod custom_metadata_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 {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::CustomMetadataLimitExceededException {
crate::error::CustomMetadataLimitExceededException {
message: self.message,
}
}
}
}
impl CustomMetadataLimitExceededException {
pub fn builder() -> crate::error::custom_metadata_limit_exceeded_exception::Builder {
crate::error::custom_metadata_limit_exceeded_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateCommentError {
pub kind: CreateCommentErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for CreateCommentError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CreateCommentErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateCommentErrorKind {
DocumentLockedForCommentsException(crate::error::DocumentLockedForCommentsException),
EntityNotExistsException(crate::error::EntityNotExistsException),
FailedDependencyException(crate::error::FailedDependencyException),
InvalidCommentOperationException(crate::error::InvalidCommentOperationException),
ProhibitedStateException(crate::error::ProhibitedStateException),
ServiceUnavailableException(crate::error::ServiceUnavailableException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
UnauthorizedResourceAccessException(crate::error::UnauthorizedResourceAccessException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CreateCommentError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateCommentErrorKind::DocumentLockedForCommentsException(_inner) => _inner.fmt(f),
CreateCommentErrorKind::EntityNotExistsException(_inner) => _inner.fmt(f),
CreateCommentErrorKind::FailedDependencyException(_inner) => _inner.fmt(f),
CreateCommentErrorKind::InvalidCommentOperationException(_inner) => _inner.fmt(f),
CreateCommentErrorKind::ProhibitedStateException(_inner) => _inner.fmt(f),
CreateCommentErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f),
CreateCommentErrorKind::UnauthorizedOperationException(_inner) => _inner.fmt(f),
CreateCommentErrorKind::UnauthorizedResourceAccessException(_inner) => _inner.fmt(f),
CreateCommentErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateCommentError {
fn code(&self) -> Option<&str> {
CreateCommentError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateCommentError {
pub fn new(kind: CreateCommentErrorKind, 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: CreateCommentErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateCommentErrorKind::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_document_locked_for_comments_exception(&self) -> bool {
matches!(
&self.kind,
CreateCommentErrorKind::DocumentLockedForCommentsException(_)
)
}
pub fn is_entity_not_exists_exception(&self) -> bool {
matches!(
&self.kind,
CreateCommentErrorKind::EntityNotExistsException(_)
)
}
pub fn is_failed_dependency_exception(&self) -> bool {
matches!(
&self.kind,
CreateCommentErrorKind::FailedDependencyException(_)
)
}
pub fn is_invalid_comment_operation_exception(&self) -> bool {
matches!(
&self.kind,
CreateCommentErrorKind::InvalidCommentOperationException(_)
)
}
pub fn is_prohibited_state_exception(&self) -> bool {
matches!(
&self.kind,
CreateCommentErrorKind::ProhibitedStateException(_)
)
}
pub fn is_service_unavailable_exception(&self) -> bool {
matches!(
&self.kind,
CreateCommentErrorKind::ServiceUnavailableException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
CreateCommentErrorKind::UnauthorizedOperationException(_)
)
}
pub fn is_unauthorized_resource_access_exception(&self) -> bool {
matches!(
&self.kind,
CreateCommentErrorKind::UnauthorizedResourceAccessException(_)
)
}
}
impl std::error::Error for CreateCommentError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateCommentErrorKind::DocumentLockedForCommentsException(_inner) => Some(_inner),
CreateCommentErrorKind::EntityNotExistsException(_inner) => Some(_inner),
CreateCommentErrorKind::FailedDependencyException(_inner) => Some(_inner),
CreateCommentErrorKind::InvalidCommentOperationException(_inner) => Some(_inner),
CreateCommentErrorKind::ProhibitedStateException(_inner) => Some(_inner),
CreateCommentErrorKind::ServiceUnavailableException(_inner) => Some(_inner),
CreateCommentErrorKind::UnauthorizedOperationException(_inner) => Some(_inner),
CreateCommentErrorKind::UnauthorizedResourceAccessException(_inner) => Some(_inner),
CreateCommentErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidCommentOperationException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidCommentOperationException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidCommentOperationException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidCommentOperationException")?;
if let Some(inner_25) = &self.message {
{
write!(f, ": {}", inner_25)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidCommentOperationException {}
pub mod invalid_comment_operation_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 {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidCommentOperationException {
crate::error::InvalidCommentOperationException {
message: self.message,
}
}
}
}
impl InvalidCommentOperationException {
pub fn builder() -> crate::error::invalid_comment_operation_exception::Builder {
crate::error::invalid_comment_operation_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct AddResourcePermissionsError {
pub kind: AddResourcePermissionsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for AddResourcePermissionsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: AddResourcePermissionsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum AddResourcePermissionsErrorKind {
FailedDependencyException(crate::error::FailedDependencyException),
ProhibitedStateException(crate::error::ProhibitedStateException),
ServiceUnavailableException(crate::error::ServiceUnavailableException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
UnauthorizedResourceAccessException(crate::error::UnauthorizedResourceAccessException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for AddResourcePermissionsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
AddResourcePermissionsErrorKind::FailedDependencyException(_inner) => _inner.fmt(f),
AddResourcePermissionsErrorKind::ProhibitedStateException(_inner) => _inner.fmt(f),
AddResourcePermissionsErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f),
AddResourcePermissionsErrorKind::UnauthorizedOperationException(_inner) => {
_inner.fmt(f)
}
AddResourcePermissionsErrorKind::UnauthorizedResourceAccessException(_inner) => {
_inner.fmt(f)
}
AddResourcePermissionsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for AddResourcePermissionsError {
fn code(&self) -> Option<&str> {
AddResourcePermissionsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl AddResourcePermissionsError {
pub fn new(kind: AddResourcePermissionsErrorKind, 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: AddResourcePermissionsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: AddResourcePermissionsErrorKind::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_failed_dependency_exception(&self) -> bool {
matches!(
&self.kind,
AddResourcePermissionsErrorKind::FailedDependencyException(_)
)
}
pub fn is_prohibited_state_exception(&self) -> bool {
matches!(
&self.kind,
AddResourcePermissionsErrorKind::ProhibitedStateException(_)
)
}
pub fn is_service_unavailable_exception(&self) -> bool {
matches!(
&self.kind,
AddResourcePermissionsErrorKind::ServiceUnavailableException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
AddResourcePermissionsErrorKind::UnauthorizedOperationException(_)
)
}
pub fn is_unauthorized_resource_access_exception(&self) -> bool {
matches!(
&self.kind,
AddResourcePermissionsErrorKind::UnauthorizedResourceAccessException(_)
)
}
}
impl std::error::Error for AddResourcePermissionsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
AddResourcePermissionsErrorKind::FailedDependencyException(_inner) => Some(_inner),
AddResourcePermissionsErrorKind::ProhibitedStateException(_inner) => Some(_inner),
AddResourcePermissionsErrorKind::ServiceUnavailableException(_inner) => Some(_inner),
AddResourcePermissionsErrorKind::UnauthorizedOperationException(_inner) => Some(_inner),
AddResourcePermissionsErrorKind::UnauthorizedResourceAccessException(_inner) => {
Some(_inner)
}
AddResourcePermissionsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ActivateUserError {
pub kind: ActivateUserErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ActivateUserError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ActivateUserErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ActivateUserErrorKind {
EntityNotExistsException(crate::error::EntityNotExistsException),
FailedDependencyException(crate::error::FailedDependencyException),
ServiceUnavailableException(crate::error::ServiceUnavailableException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
UnauthorizedResourceAccessException(crate::error::UnauthorizedResourceAccessException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ActivateUserError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ActivateUserErrorKind::EntityNotExistsException(_inner) => _inner.fmt(f),
ActivateUserErrorKind::FailedDependencyException(_inner) => _inner.fmt(f),
ActivateUserErrorKind::ServiceUnavailableException(_inner) => _inner.fmt(f),
ActivateUserErrorKind::UnauthorizedOperationException(_inner) => _inner.fmt(f),
ActivateUserErrorKind::UnauthorizedResourceAccessException(_inner) => _inner.fmt(f),
ActivateUserErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ActivateUserError {
fn code(&self) -> Option<&str> {
ActivateUserError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ActivateUserError {
pub fn new(kind: ActivateUserErrorKind, 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: ActivateUserErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ActivateUserErrorKind::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_entity_not_exists_exception(&self) -> bool {
matches!(
&self.kind,
ActivateUserErrorKind::EntityNotExistsException(_)
)
}
pub fn is_failed_dependency_exception(&self) -> bool {
matches!(
&self.kind,
ActivateUserErrorKind::FailedDependencyException(_)
)
}
pub fn is_service_unavailable_exception(&self) -> bool {
matches!(
&self.kind,
ActivateUserErrorKind::ServiceUnavailableException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
ActivateUserErrorKind::UnauthorizedOperationException(_)
)
}
pub fn is_unauthorized_resource_access_exception(&self) -> bool {
matches!(
&self.kind,
ActivateUserErrorKind::UnauthorizedResourceAccessException(_)
)
}
}
impl std::error::Error for ActivateUserError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ActivateUserErrorKind::EntityNotExistsException(_inner) => Some(_inner),
ActivateUserErrorKind::FailedDependencyException(_inner) => Some(_inner),
ActivateUserErrorKind::ServiceUnavailableException(_inner) => Some(_inner),
ActivateUserErrorKind::UnauthorizedOperationException(_inner) => Some(_inner),
ActivateUserErrorKind::UnauthorizedResourceAccessException(_inner) => Some(_inner),
ActivateUserErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct AbortDocumentVersionUploadError {
pub kind: AbortDocumentVersionUploadErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for AbortDocumentVersionUploadError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: AbortDocumentVersionUploadErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum AbortDocumentVersionUploadErrorKind {
ConcurrentModificationException(crate::error::ConcurrentModificationException),
EntityNotExistsException(crate::error::EntityNotExistsException),
FailedDependencyException(crate::error::FailedDependencyException),
ProhibitedStateException(crate::error::ProhibitedStateException),
ServiceUnavailableException(crate::error::ServiceUnavailableException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
UnauthorizedResourceAccessException(crate::error::UnauthorizedResourceAccessException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for AbortDocumentVersionUploadError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
AbortDocumentVersionUploadErrorKind::ConcurrentModificationException(_inner) => {
_inner.fmt(f)
}
AbortDocumentVersionUploadErrorKind::EntityNotExistsException(_inner) => _inner.fmt(f),
AbortDocumentVersionUploadErrorKind::FailedDependencyException(_inner) => _inner.fmt(f),
AbortDocumentVersionUploadErrorKind::ProhibitedStateException(_inner) => _inner.fmt(f),
AbortDocumentVersionUploadErrorKind::ServiceUnavailableException(_inner) => {
_inner.fmt(f)
}
AbortDocumentVersionUploadErrorKind::UnauthorizedOperationException(_inner) => {
_inner.fmt(f)
}
AbortDocumentVersionUploadErrorKind::UnauthorizedResourceAccessException(_inner) => {
_inner.fmt(f)
}
AbortDocumentVersionUploadErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for AbortDocumentVersionUploadError {
fn code(&self) -> Option<&str> {
AbortDocumentVersionUploadError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl AbortDocumentVersionUploadError {
pub fn new(kind: AbortDocumentVersionUploadErrorKind, 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: AbortDocumentVersionUploadErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: AbortDocumentVersionUploadErrorKind::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,
AbortDocumentVersionUploadErrorKind::ConcurrentModificationException(_)
)
}
pub fn is_entity_not_exists_exception(&self) -> bool {
matches!(
&self.kind,
AbortDocumentVersionUploadErrorKind::EntityNotExistsException(_)
)
}
pub fn is_failed_dependency_exception(&self) -> bool {
matches!(
&self.kind,
AbortDocumentVersionUploadErrorKind::FailedDependencyException(_)
)
}
pub fn is_prohibited_state_exception(&self) -> bool {
matches!(
&self.kind,
AbortDocumentVersionUploadErrorKind::ProhibitedStateException(_)
)
}
pub fn is_service_unavailable_exception(&self) -> bool {
matches!(
&self.kind,
AbortDocumentVersionUploadErrorKind::ServiceUnavailableException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
AbortDocumentVersionUploadErrorKind::UnauthorizedOperationException(_)
)
}
pub fn is_unauthorized_resource_access_exception(&self) -> bool {
matches!(
&self.kind,
AbortDocumentVersionUploadErrorKind::UnauthorizedResourceAccessException(_)
)
}
}
impl std::error::Error for AbortDocumentVersionUploadError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
AbortDocumentVersionUploadErrorKind::ConcurrentModificationException(_inner) => {
Some(_inner)
}
AbortDocumentVersionUploadErrorKind::EntityNotExistsException(_inner) => Some(_inner),
AbortDocumentVersionUploadErrorKind::FailedDependencyException(_inner) => Some(_inner),
AbortDocumentVersionUploadErrorKind::ProhibitedStateException(_inner) => Some(_inner),
AbortDocumentVersionUploadErrorKind::ServiceUnavailableException(_inner) => {
Some(_inner)
}
AbortDocumentVersionUploadErrorKind::UnauthorizedOperationException(_inner) => {
Some(_inner)
}
AbortDocumentVersionUploadErrorKind::UnauthorizedResourceAccessException(_inner) => {
Some(_inner)
}
AbortDocumentVersionUploadErrorKind::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 _)
}
}