#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CancelResourceRequestError {
pub kind: CancelResourceRequestErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CancelResourceRequestErrorKind {
ConcurrentModificationException(crate::error::ConcurrentModificationException),
RequestTokenNotFoundException(crate::error::RequestTokenNotFoundException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for CancelResourceRequestError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CancelResourceRequestErrorKind::ConcurrentModificationException(_inner) => {
_inner.fmt(f)
}
CancelResourceRequestErrorKind::RequestTokenNotFoundException(_inner) => _inner.fmt(f),
CancelResourceRequestErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CancelResourceRequestError {
fn code(&self) -> Option<&str> {
CancelResourceRequestError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CancelResourceRequestError {
pub fn new(kind: CancelResourceRequestErrorKind, 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: CancelResourceRequestErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CancelResourceRequestErrorKind::Unhandled(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,
CancelResourceRequestErrorKind::ConcurrentModificationException(_)
)
}
pub fn is_request_token_not_found_exception(&self) -> bool {
matches!(
&self.kind,
CancelResourceRequestErrorKind::RequestTokenNotFoundException(_)
)
}
}
impl std::error::Error for CancelResourceRequestError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CancelResourceRequestErrorKind::ConcurrentModificationException(_inner) => Some(_inner),
CancelResourceRequestErrorKind::RequestTokenNotFoundException(_inner) => Some(_inner),
CancelResourceRequestErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateResourceError {
pub kind: CreateResourceErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateResourceErrorKind {
AlreadyExistsException(crate::error::AlreadyExistsException),
ClientTokenConflictException(crate::error::ClientTokenConflictException),
ConcurrentOperationException(crate::error::ConcurrentOperationException),
GeneralServiceException(crate::error::GeneralServiceException),
HandlerFailureException(crate::error::HandlerFailureException),
HandlerInternalFailureException(crate::error::HandlerInternalFailureException),
InvalidCredentialsException(crate::error::InvalidCredentialsException),
InvalidRequestException(crate::error::InvalidRequestException),
NetworkFailureException(crate::error::NetworkFailureException),
NotStabilizedException(crate::error::NotStabilizedException),
NotUpdatableException(crate::error::NotUpdatableException),
PrivateTypeException(crate::error::PrivateTypeException),
ResourceConflictException(crate::error::ResourceConflictException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
ServiceInternalErrorException(crate::error::ServiceInternalErrorException),
ServiceLimitExceededException(crate::error::ServiceLimitExceededException),
ThrottlingException(crate::error::ThrottlingException),
TypeNotFoundException(crate::error::TypeNotFoundException),
UnsupportedActionException(crate::error::UnsupportedActionException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for CreateResourceError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateResourceErrorKind::AlreadyExistsException(_inner) => _inner.fmt(f),
CreateResourceErrorKind::ClientTokenConflictException(_inner) => _inner.fmt(f),
CreateResourceErrorKind::ConcurrentOperationException(_inner) => _inner.fmt(f),
CreateResourceErrorKind::GeneralServiceException(_inner) => _inner.fmt(f),
CreateResourceErrorKind::HandlerFailureException(_inner) => _inner.fmt(f),
CreateResourceErrorKind::HandlerInternalFailureException(_inner) => _inner.fmt(f),
CreateResourceErrorKind::InvalidCredentialsException(_inner) => _inner.fmt(f),
CreateResourceErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
CreateResourceErrorKind::NetworkFailureException(_inner) => _inner.fmt(f),
CreateResourceErrorKind::NotStabilizedException(_inner) => _inner.fmt(f),
CreateResourceErrorKind::NotUpdatableException(_inner) => _inner.fmt(f),
CreateResourceErrorKind::PrivateTypeException(_inner) => _inner.fmt(f),
CreateResourceErrorKind::ResourceConflictException(_inner) => _inner.fmt(f),
CreateResourceErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
CreateResourceErrorKind::ServiceInternalErrorException(_inner) => _inner.fmt(f),
CreateResourceErrorKind::ServiceLimitExceededException(_inner) => _inner.fmt(f),
CreateResourceErrorKind::ThrottlingException(_inner) => _inner.fmt(f),
CreateResourceErrorKind::TypeNotFoundException(_inner) => _inner.fmt(f),
CreateResourceErrorKind::UnsupportedActionException(_inner) => _inner.fmt(f),
CreateResourceErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateResourceError {
fn code(&self) -> Option<&str> {
CreateResourceError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateResourceError {
pub fn new(kind: CreateResourceErrorKind, 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: CreateResourceErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateResourceErrorKind::Unhandled(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_already_exists_exception(&self) -> bool {
matches!(
&self.kind,
CreateResourceErrorKind::AlreadyExistsException(_)
)
}
pub fn is_client_token_conflict_exception(&self) -> bool {
matches!(
&self.kind,
CreateResourceErrorKind::ClientTokenConflictException(_)
)
}
pub fn is_concurrent_operation_exception(&self) -> bool {
matches!(
&self.kind,
CreateResourceErrorKind::ConcurrentOperationException(_)
)
}
pub fn is_general_service_exception(&self) -> bool {
matches!(
&self.kind,
CreateResourceErrorKind::GeneralServiceException(_)
)
}
pub fn is_handler_failure_exception(&self) -> bool {
matches!(
&self.kind,
CreateResourceErrorKind::HandlerFailureException(_)
)
}
pub fn is_handler_internal_failure_exception(&self) -> bool {
matches!(
&self.kind,
CreateResourceErrorKind::HandlerInternalFailureException(_)
)
}
pub fn is_invalid_credentials_exception(&self) -> bool {
matches!(
&self.kind,
CreateResourceErrorKind::InvalidCredentialsException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
CreateResourceErrorKind::InvalidRequestException(_)
)
}
pub fn is_network_failure_exception(&self) -> bool {
matches!(
&self.kind,
CreateResourceErrorKind::NetworkFailureException(_)
)
}
pub fn is_not_stabilized_exception(&self) -> bool {
matches!(
&self.kind,
CreateResourceErrorKind::NotStabilizedException(_)
)
}
pub fn is_not_updatable_exception(&self) -> bool {
matches!(
&self.kind,
CreateResourceErrorKind::NotUpdatableException(_)
)
}
pub fn is_private_type_exception(&self) -> bool {
matches!(&self.kind, CreateResourceErrorKind::PrivateTypeException(_))
}
pub fn is_resource_conflict_exception(&self) -> bool {
matches!(
&self.kind,
CreateResourceErrorKind::ResourceConflictException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
CreateResourceErrorKind::ResourceNotFoundException(_)
)
}
pub fn is_service_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
CreateResourceErrorKind::ServiceInternalErrorException(_)
)
}
pub fn is_service_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
CreateResourceErrorKind::ServiceLimitExceededException(_)
)
}
pub fn is_throttling_exception(&self) -> bool {
matches!(&self.kind, CreateResourceErrorKind::ThrottlingException(_))
}
pub fn is_type_not_found_exception(&self) -> bool {
matches!(
&self.kind,
CreateResourceErrorKind::TypeNotFoundException(_)
)
}
pub fn is_unsupported_action_exception(&self) -> bool {
matches!(
&self.kind,
CreateResourceErrorKind::UnsupportedActionException(_)
)
}
}
impl std::error::Error for CreateResourceError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateResourceErrorKind::AlreadyExistsException(_inner) => Some(_inner),
CreateResourceErrorKind::ClientTokenConflictException(_inner) => Some(_inner),
CreateResourceErrorKind::ConcurrentOperationException(_inner) => Some(_inner),
CreateResourceErrorKind::GeneralServiceException(_inner) => Some(_inner),
CreateResourceErrorKind::HandlerFailureException(_inner) => Some(_inner),
CreateResourceErrorKind::HandlerInternalFailureException(_inner) => Some(_inner),
CreateResourceErrorKind::InvalidCredentialsException(_inner) => Some(_inner),
CreateResourceErrorKind::InvalidRequestException(_inner) => Some(_inner),
CreateResourceErrorKind::NetworkFailureException(_inner) => Some(_inner),
CreateResourceErrorKind::NotStabilizedException(_inner) => Some(_inner),
CreateResourceErrorKind::NotUpdatableException(_inner) => Some(_inner),
CreateResourceErrorKind::PrivateTypeException(_inner) => Some(_inner),
CreateResourceErrorKind::ResourceConflictException(_inner) => Some(_inner),
CreateResourceErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
CreateResourceErrorKind::ServiceInternalErrorException(_inner) => Some(_inner),
CreateResourceErrorKind::ServiceLimitExceededException(_inner) => Some(_inner),
CreateResourceErrorKind::ThrottlingException(_inner) => Some(_inner),
CreateResourceErrorKind::TypeNotFoundException(_inner) => Some(_inner),
CreateResourceErrorKind::UnsupportedActionException(_inner) => Some(_inner),
CreateResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteResourceError {
pub kind: DeleteResourceErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteResourceErrorKind {
AlreadyExistsException(crate::error::AlreadyExistsException),
ClientTokenConflictException(crate::error::ClientTokenConflictException),
ConcurrentOperationException(crate::error::ConcurrentOperationException),
GeneralServiceException(crate::error::GeneralServiceException),
HandlerFailureException(crate::error::HandlerFailureException),
HandlerInternalFailureException(crate::error::HandlerInternalFailureException),
InvalidCredentialsException(crate::error::InvalidCredentialsException),
InvalidRequestException(crate::error::InvalidRequestException),
NetworkFailureException(crate::error::NetworkFailureException),
NotStabilizedException(crate::error::NotStabilizedException),
NotUpdatableException(crate::error::NotUpdatableException),
PrivateTypeException(crate::error::PrivateTypeException),
ResourceConflictException(crate::error::ResourceConflictException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
ServiceInternalErrorException(crate::error::ServiceInternalErrorException),
ServiceLimitExceededException(crate::error::ServiceLimitExceededException),
ThrottlingException(crate::error::ThrottlingException),
TypeNotFoundException(crate::error::TypeNotFoundException),
UnsupportedActionException(crate::error::UnsupportedActionException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DeleteResourceError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteResourceErrorKind::AlreadyExistsException(_inner) => _inner.fmt(f),
DeleteResourceErrorKind::ClientTokenConflictException(_inner) => _inner.fmt(f),
DeleteResourceErrorKind::ConcurrentOperationException(_inner) => _inner.fmt(f),
DeleteResourceErrorKind::GeneralServiceException(_inner) => _inner.fmt(f),
DeleteResourceErrorKind::HandlerFailureException(_inner) => _inner.fmt(f),
DeleteResourceErrorKind::HandlerInternalFailureException(_inner) => _inner.fmt(f),
DeleteResourceErrorKind::InvalidCredentialsException(_inner) => _inner.fmt(f),
DeleteResourceErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
DeleteResourceErrorKind::NetworkFailureException(_inner) => _inner.fmt(f),
DeleteResourceErrorKind::NotStabilizedException(_inner) => _inner.fmt(f),
DeleteResourceErrorKind::NotUpdatableException(_inner) => _inner.fmt(f),
DeleteResourceErrorKind::PrivateTypeException(_inner) => _inner.fmt(f),
DeleteResourceErrorKind::ResourceConflictException(_inner) => _inner.fmt(f),
DeleteResourceErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
DeleteResourceErrorKind::ServiceInternalErrorException(_inner) => _inner.fmt(f),
DeleteResourceErrorKind::ServiceLimitExceededException(_inner) => _inner.fmt(f),
DeleteResourceErrorKind::ThrottlingException(_inner) => _inner.fmt(f),
DeleteResourceErrorKind::TypeNotFoundException(_inner) => _inner.fmt(f),
DeleteResourceErrorKind::UnsupportedActionException(_inner) => _inner.fmt(f),
DeleteResourceErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteResourceError {
fn code(&self) -> Option<&str> {
DeleteResourceError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteResourceError {
pub fn new(kind: DeleteResourceErrorKind, 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: DeleteResourceErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteResourceErrorKind::Unhandled(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_already_exists_exception(&self) -> bool {
matches!(
&self.kind,
DeleteResourceErrorKind::AlreadyExistsException(_)
)
}
pub fn is_client_token_conflict_exception(&self) -> bool {
matches!(
&self.kind,
DeleteResourceErrorKind::ClientTokenConflictException(_)
)
}
pub fn is_concurrent_operation_exception(&self) -> bool {
matches!(
&self.kind,
DeleteResourceErrorKind::ConcurrentOperationException(_)
)
}
pub fn is_general_service_exception(&self) -> bool {
matches!(
&self.kind,
DeleteResourceErrorKind::GeneralServiceException(_)
)
}
pub fn is_handler_failure_exception(&self) -> bool {
matches!(
&self.kind,
DeleteResourceErrorKind::HandlerFailureException(_)
)
}
pub fn is_handler_internal_failure_exception(&self) -> bool {
matches!(
&self.kind,
DeleteResourceErrorKind::HandlerInternalFailureException(_)
)
}
pub fn is_invalid_credentials_exception(&self) -> bool {
matches!(
&self.kind,
DeleteResourceErrorKind::InvalidCredentialsException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
DeleteResourceErrorKind::InvalidRequestException(_)
)
}
pub fn is_network_failure_exception(&self) -> bool {
matches!(
&self.kind,
DeleteResourceErrorKind::NetworkFailureException(_)
)
}
pub fn is_not_stabilized_exception(&self) -> bool {
matches!(
&self.kind,
DeleteResourceErrorKind::NotStabilizedException(_)
)
}
pub fn is_not_updatable_exception(&self) -> bool {
matches!(
&self.kind,
DeleteResourceErrorKind::NotUpdatableException(_)
)
}
pub fn is_private_type_exception(&self) -> bool {
matches!(&self.kind, DeleteResourceErrorKind::PrivateTypeException(_))
}
pub fn is_resource_conflict_exception(&self) -> bool {
matches!(
&self.kind,
DeleteResourceErrorKind::ResourceConflictException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DeleteResourceErrorKind::ResourceNotFoundException(_)
)
}
pub fn is_service_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
DeleteResourceErrorKind::ServiceInternalErrorException(_)
)
}
pub fn is_service_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
DeleteResourceErrorKind::ServiceLimitExceededException(_)
)
}
pub fn is_throttling_exception(&self) -> bool {
matches!(&self.kind, DeleteResourceErrorKind::ThrottlingException(_))
}
pub fn is_type_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DeleteResourceErrorKind::TypeNotFoundException(_)
)
}
pub fn is_unsupported_action_exception(&self) -> bool {
matches!(
&self.kind,
DeleteResourceErrorKind::UnsupportedActionException(_)
)
}
}
impl std::error::Error for DeleteResourceError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteResourceErrorKind::AlreadyExistsException(_inner) => Some(_inner),
DeleteResourceErrorKind::ClientTokenConflictException(_inner) => Some(_inner),
DeleteResourceErrorKind::ConcurrentOperationException(_inner) => Some(_inner),
DeleteResourceErrorKind::GeneralServiceException(_inner) => Some(_inner),
DeleteResourceErrorKind::HandlerFailureException(_inner) => Some(_inner),
DeleteResourceErrorKind::HandlerInternalFailureException(_inner) => Some(_inner),
DeleteResourceErrorKind::InvalidCredentialsException(_inner) => Some(_inner),
DeleteResourceErrorKind::InvalidRequestException(_inner) => Some(_inner),
DeleteResourceErrorKind::NetworkFailureException(_inner) => Some(_inner),
DeleteResourceErrorKind::NotStabilizedException(_inner) => Some(_inner),
DeleteResourceErrorKind::NotUpdatableException(_inner) => Some(_inner),
DeleteResourceErrorKind::PrivateTypeException(_inner) => Some(_inner),
DeleteResourceErrorKind::ResourceConflictException(_inner) => Some(_inner),
DeleteResourceErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
DeleteResourceErrorKind::ServiceInternalErrorException(_inner) => Some(_inner),
DeleteResourceErrorKind::ServiceLimitExceededException(_inner) => Some(_inner),
DeleteResourceErrorKind::ThrottlingException(_inner) => Some(_inner),
DeleteResourceErrorKind::TypeNotFoundException(_inner) => Some(_inner),
DeleteResourceErrorKind::UnsupportedActionException(_inner) => Some(_inner),
DeleteResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetResourceError {
pub kind: GetResourceErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetResourceErrorKind {
AlreadyExistsException(crate::error::AlreadyExistsException),
GeneralServiceException(crate::error::GeneralServiceException),
HandlerFailureException(crate::error::HandlerFailureException),
HandlerInternalFailureException(crate::error::HandlerInternalFailureException),
InvalidCredentialsException(crate::error::InvalidCredentialsException),
InvalidRequestException(crate::error::InvalidRequestException),
NetworkFailureException(crate::error::NetworkFailureException),
NotStabilizedException(crate::error::NotStabilizedException),
NotUpdatableException(crate::error::NotUpdatableException),
PrivateTypeException(crate::error::PrivateTypeException),
ResourceConflictException(crate::error::ResourceConflictException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
ServiceInternalErrorException(crate::error::ServiceInternalErrorException),
ServiceLimitExceededException(crate::error::ServiceLimitExceededException),
ThrottlingException(crate::error::ThrottlingException),
TypeNotFoundException(crate::error::TypeNotFoundException),
UnsupportedActionException(crate::error::UnsupportedActionException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for GetResourceError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetResourceErrorKind::AlreadyExistsException(_inner) => _inner.fmt(f),
GetResourceErrorKind::GeneralServiceException(_inner) => _inner.fmt(f),
GetResourceErrorKind::HandlerFailureException(_inner) => _inner.fmt(f),
GetResourceErrorKind::HandlerInternalFailureException(_inner) => _inner.fmt(f),
GetResourceErrorKind::InvalidCredentialsException(_inner) => _inner.fmt(f),
GetResourceErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
GetResourceErrorKind::NetworkFailureException(_inner) => _inner.fmt(f),
GetResourceErrorKind::NotStabilizedException(_inner) => _inner.fmt(f),
GetResourceErrorKind::NotUpdatableException(_inner) => _inner.fmt(f),
GetResourceErrorKind::PrivateTypeException(_inner) => _inner.fmt(f),
GetResourceErrorKind::ResourceConflictException(_inner) => _inner.fmt(f),
GetResourceErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
GetResourceErrorKind::ServiceInternalErrorException(_inner) => _inner.fmt(f),
GetResourceErrorKind::ServiceLimitExceededException(_inner) => _inner.fmt(f),
GetResourceErrorKind::ThrottlingException(_inner) => _inner.fmt(f),
GetResourceErrorKind::TypeNotFoundException(_inner) => _inner.fmt(f),
GetResourceErrorKind::UnsupportedActionException(_inner) => _inner.fmt(f),
GetResourceErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetResourceError {
fn code(&self) -> Option<&str> {
GetResourceError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetResourceError {
pub fn new(kind: GetResourceErrorKind, 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: GetResourceErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetResourceErrorKind::Unhandled(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_already_exists_exception(&self) -> bool {
matches!(&self.kind, GetResourceErrorKind::AlreadyExistsException(_))
}
pub fn is_general_service_exception(&self) -> bool {
matches!(&self.kind, GetResourceErrorKind::GeneralServiceException(_))
}
pub fn is_handler_failure_exception(&self) -> bool {
matches!(&self.kind, GetResourceErrorKind::HandlerFailureException(_))
}
pub fn is_handler_internal_failure_exception(&self) -> bool {
matches!(
&self.kind,
GetResourceErrorKind::HandlerInternalFailureException(_)
)
}
pub fn is_invalid_credentials_exception(&self) -> bool {
matches!(
&self.kind,
GetResourceErrorKind::InvalidCredentialsException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(&self.kind, GetResourceErrorKind::InvalidRequestException(_))
}
pub fn is_network_failure_exception(&self) -> bool {
matches!(&self.kind, GetResourceErrorKind::NetworkFailureException(_))
}
pub fn is_not_stabilized_exception(&self) -> bool {
matches!(&self.kind, GetResourceErrorKind::NotStabilizedException(_))
}
pub fn is_not_updatable_exception(&self) -> bool {
matches!(&self.kind, GetResourceErrorKind::NotUpdatableException(_))
}
pub fn is_private_type_exception(&self) -> bool {
matches!(&self.kind, GetResourceErrorKind::PrivateTypeException(_))
}
pub fn is_resource_conflict_exception(&self) -> bool {
matches!(
&self.kind,
GetResourceErrorKind::ResourceConflictException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
GetResourceErrorKind::ResourceNotFoundException(_)
)
}
pub fn is_service_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
GetResourceErrorKind::ServiceInternalErrorException(_)
)
}
pub fn is_service_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
GetResourceErrorKind::ServiceLimitExceededException(_)
)
}
pub fn is_throttling_exception(&self) -> bool {
matches!(&self.kind, GetResourceErrorKind::ThrottlingException(_))
}
pub fn is_type_not_found_exception(&self) -> bool {
matches!(&self.kind, GetResourceErrorKind::TypeNotFoundException(_))
}
pub fn is_unsupported_action_exception(&self) -> bool {
matches!(
&self.kind,
GetResourceErrorKind::UnsupportedActionException(_)
)
}
}
impl std::error::Error for GetResourceError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetResourceErrorKind::AlreadyExistsException(_inner) => Some(_inner),
GetResourceErrorKind::GeneralServiceException(_inner) => Some(_inner),
GetResourceErrorKind::HandlerFailureException(_inner) => Some(_inner),
GetResourceErrorKind::HandlerInternalFailureException(_inner) => Some(_inner),
GetResourceErrorKind::InvalidCredentialsException(_inner) => Some(_inner),
GetResourceErrorKind::InvalidRequestException(_inner) => Some(_inner),
GetResourceErrorKind::NetworkFailureException(_inner) => Some(_inner),
GetResourceErrorKind::NotStabilizedException(_inner) => Some(_inner),
GetResourceErrorKind::NotUpdatableException(_inner) => Some(_inner),
GetResourceErrorKind::PrivateTypeException(_inner) => Some(_inner),
GetResourceErrorKind::ResourceConflictException(_inner) => Some(_inner),
GetResourceErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
GetResourceErrorKind::ServiceInternalErrorException(_inner) => Some(_inner),
GetResourceErrorKind::ServiceLimitExceededException(_inner) => Some(_inner),
GetResourceErrorKind::ThrottlingException(_inner) => Some(_inner),
GetResourceErrorKind::TypeNotFoundException(_inner) => Some(_inner),
GetResourceErrorKind::UnsupportedActionException(_inner) => Some(_inner),
GetResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetResourceRequestStatusError {
pub kind: GetResourceRequestStatusErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetResourceRequestStatusErrorKind {
RequestTokenNotFoundException(crate::error::RequestTokenNotFoundException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for GetResourceRequestStatusError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetResourceRequestStatusErrorKind::RequestTokenNotFoundException(_inner) => {
_inner.fmt(f)
}
GetResourceRequestStatusErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetResourceRequestStatusError {
fn code(&self) -> Option<&str> {
GetResourceRequestStatusError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetResourceRequestStatusError {
pub fn new(kind: GetResourceRequestStatusErrorKind, 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: GetResourceRequestStatusErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetResourceRequestStatusErrorKind::Unhandled(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_request_token_not_found_exception(&self) -> bool {
matches!(
&self.kind,
GetResourceRequestStatusErrorKind::RequestTokenNotFoundException(_)
)
}
}
impl std::error::Error for GetResourceRequestStatusError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetResourceRequestStatusErrorKind::RequestTokenNotFoundException(_inner) => {
Some(_inner)
}
GetResourceRequestStatusErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListResourceRequestsError {
pub kind: ListResourceRequestsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListResourceRequestsErrorKind {
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for ListResourceRequestsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListResourceRequestsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListResourceRequestsError {
fn code(&self) -> Option<&str> {
ListResourceRequestsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListResourceRequestsError {
pub fn new(kind: ListResourceRequestsErrorKind, 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: ListResourceRequestsErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListResourceRequestsErrorKind::Unhandled(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()
}
}
impl std::error::Error for ListResourceRequestsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListResourceRequestsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListResourcesError {
pub kind: ListResourcesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListResourcesErrorKind {
AlreadyExistsException(crate::error::AlreadyExistsException),
GeneralServiceException(crate::error::GeneralServiceException),
HandlerFailureException(crate::error::HandlerFailureException),
HandlerInternalFailureException(crate::error::HandlerInternalFailureException),
InvalidCredentialsException(crate::error::InvalidCredentialsException),
InvalidRequestException(crate::error::InvalidRequestException),
NetworkFailureException(crate::error::NetworkFailureException),
NotStabilizedException(crate::error::NotStabilizedException),
NotUpdatableException(crate::error::NotUpdatableException),
PrivateTypeException(crate::error::PrivateTypeException),
ResourceConflictException(crate::error::ResourceConflictException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
ServiceInternalErrorException(crate::error::ServiceInternalErrorException),
ServiceLimitExceededException(crate::error::ServiceLimitExceededException),
ThrottlingException(crate::error::ThrottlingException),
TypeNotFoundException(crate::error::TypeNotFoundException),
UnsupportedActionException(crate::error::UnsupportedActionException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for ListResourcesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListResourcesErrorKind::AlreadyExistsException(_inner) => _inner.fmt(f),
ListResourcesErrorKind::GeneralServiceException(_inner) => _inner.fmt(f),
ListResourcesErrorKind::HandlerFailureException(_inner) => _inner.fmt(f),
ListResourcesErrorKind::HandlerInternalFailureException(_inner) => _inner.fmt(f),
ListResourcesErrorKind::InvalidCredentialsException(_inner) => _inner.fmt(f),
ListResourcesErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
ListResourcesErrorKind::NetworkFailureException(_inner) => _inner.fmt(f),
ListResourcesErrorKind::NotStabilizedException(_inner) => _inner.fmt(f),
ListResourcesErrorKind::NotUpdatableException(_inner) => _inner.fmt(f),
ListResourcesErrorKind::PrivateTypeException(_inner) => _inner.fmt(f),
ListResourcesErrorKind::ResourceConflictException(_inner) => _inner.fmt(f),
ListResourcesErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
ListResourcesErrorKind::ServiceInternalErrorException(_inner) => _inner.fmt(f),
ListResourcesErrorKind::ServiceLimitExceededException(_inner) => _inner.fmt(f),
ListResourcesErrorKind::ThrottlingException(_inner) => _inner.fmt(f),
ListResourcesErrorKind::TypeNotFoundException(_inner) => _inner.fmt(f),
ListResourcesErrorKind::UnsupportedActionException(_inner) => _inner.fmt(f),
ListResourcesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListResourcesError {
fn code(&self) -> Option<&str> {
ListResourcesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListResourcesError {
pub fn new(kind: ListResourcesErrorKind, 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: ListResourcesErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListResourcesErrorKind::Unhandled(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_already_exists_exception(&self) -> bool {
matches!(
&self.kind,
ListResourcesErrorKind::AlreadyExistsException(_)
)
}
pub fn is_general_service_exception(&self) -> bool {
matches!(
&self.kind,
ListResourcesErrorKind::GeneralServiceException(_)
)
}
pub fn is_handler_failure_exception(&self) -> bool {
matches!(
&self.kind,
ListResourcesErrorKind::HandlerFailureException(_)
)
}
pub fn is_handler_internal_failure_exception(&self) -> bool {
matches!(
&self.kind,
ListResourcesErrorKind::HandlerInternalFailureException(_)
)
}
pub fn is_invalid_credentials_exception(&self) -> bool {
matches!(
&self.kind,
ListResourcesErrorKind::InvalidCredentialsException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
ListResourcesErrorKind::InvalidRequestException(_)
)
}
pub fn is_network_failure_exception(&self) -> bool {
matches!(
&self.kind,
ListResourcesErrorKind::NetworkFailureException(_)
)
}
pub fn is_not_stabilized_exception(&self) -> bool {
matches!(
&self.kind,
ListResourcesErrorKind::NotStabilizedException(_)
)
}
pub fn is_not_updatable_exception(&self) -> bool {
matches!(&self.kind, ListResourcesErrorKind::NotUpdatableException(_))
}
pub fn is_private_type_exception(&self) -> bool {
matches!(&self.kind, ListResourcesErrorKind::PrivateTypeException(_))
}
pub fn is_resource_conflict_exception(&self) -> bool {
matches!(
&self.kind,
ListResourcesErrorKind::ResourceConflictException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
ListResourcesErrorKind::ResourceNotFoundException(_)
)
}
pub fn is_service_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
ListResourcesErrorKind::ServiceInternalErrorException(_)
)
}
pub fn is_service_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
ListResourcesErrorKind::ServiceLimitExceededException(_)
)
}
pub fn is_throttling_exception(&self) -> bool {
matches!(&self.kind, ListResourcesErrorKind::ThrottlingException(_))
}
pub fn is_type_not_found_exception(&self) -> bool {
matches!(&self.kind, ListResourcesErrorKind::TypeNotFoundException(_))
}
pub fn is_unsupported_action_exception(&self) -> bool {
matches!(
&self.kind,
ListResourcesErrorKind::UnsupportedActionException(_)
)
}
}
impl std::error::Error for ListResourcesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListResourcesErrorKind::AlreadyExistsException(_inner) => Some(_inner),
ListResourcesErrorKind::GeneralServiceException(_inner) => Some(_inner),
ListResourcesErrorKind::HandlerFailureException(_inner) => Some(_inner),
ListResourcesErrorKind::HandlerInternalFailureException(_inner) => Some(_inner),
ListResourcesErrorKind::InvalidCredentialsException(_inner) => Some(_inner),
ListResourcesErrorKind::InvalidRequestException(_inner) => Some(_inner),
ListResourcesErrorKind::NetworkFailureException(_inner) => Some(_inner),
ListResourcesErrorKind::NotStabilizedException(_inner) => Some(_inner),
ListResourcesErrorKind::NotUpdatableException(_inner) => Some(_inner),
ListResourcesErrorKind::PrivateTypeException(_inner) => Some(_inner),
ListResourcesErrorKind::ResourceConflictException(_inner) => Some(_inner),
ListResourcesErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
ListResourcesErrorKind::ServiceInternalErrorException(_inner) => Some(_inner),
ListResourcesErrorKind::ServiceLimitExceededException(_inner) => Some(_inner),
ListResourcesErrorKind::ThrottlingException(_inner) => Some(_inner),
ListResourcesErrorKind::TypeNotFoundException(_inner) => Some(_inner),
ListResourcesErrorKind::UnsupportedActionException(_inner) => Some(_inner),
ListResourcesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateResourceError {
pub kind: UpdateResourceErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateResourceErrorKind {
AlreadyExistsException(crate::error::AlreadyExistsException),
ClientTokenConflictException(crate::error::ClientTokenConflictException),
ConcurrentOperationException(crate::error::ConcurrentOperationException),
GeneralServiceException(crate::error::GeneralServiceException),
HandlerFailureException(crate::error::HandlerFailureException),
HandlerInternalFailureException(crate::error::HandlerInternalFailureException),
InvalidCredentialsException(crate::error::InvalidCredentialsException),
InvalidRequestException(crate::error::InvalidRequestException),
NetworkFailureException(crate::error::NetworkFailureException),
NotStabilizedException(crate::error::NotStabilizedException),
NotUpdatableException(crate::error::NotUpdatableException),
PrivateTypeException(crate::error::PrivateTypeException),
ResourceConflictException(crate::error::ResourceConflictException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
ServiceInternalErrorException(crate::error::ServiceInternalErrorException),
ServiceLimitExceededException(crate::error::ServiceLimitExceededException),
ThrottlingException(crate::error::ThrottlingException),
TypeNotFoundException(crate::error::TypeNotFoundException),
UnsupportedActionException(crate::error::UnsupportedActionException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for UpdateResourceError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateResourceErrorKind::AlreadyExistsException(_inner) => _inner.fmt(f),
UpdateResourceErrorKind::ClientTokenConflictException(_inner) => _inner.fmt(f),
UpdateResourceErrorKind::ConcurrentOperationException(_inner) => _inner.fmt(f),
UpdateResourceErrorKind::GeneralServiceException(_inner) => _inner.fmt(f),
UpdateResourceErrorKind::HandlerFailureException(_inner) => _inner.fmt(f),
UpdateResourceErrorKind::HandlerInternalFailureException(_inner) => _inner.fmt(f),
UpdateResourceErrorKind::InvalidCredentialsException(_inner) => _inner.fmt(f),
UpdateResourceErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
UpdateResourceErrorKind::NetworkFailureException(_inner) => _inner.fmt(f),
UpdateResourceErrorKind::NotStabilizedException(_inner) => _inner.fmt(f),
UpdateResourceErrorKind::NotUpdatableException(_inner) => _inner.fmt(f),
UpdateResourceErrorKind::PrivateTypeException(_inner) => _inner.fmt(f),
UpdateResourceErrorKind::ResourceConflictException(_inner) => _inner.fmt(f),
UpdateResourceErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
UpdateResourceErrorKind::ServiceInternalErrorException(_inner) => _inner.fmt(f),
UpdateResourceErrorKind::ServiceLimitExceededException(_inner) => _inner.fmt(f),
UpdateResourceErrorKind::ThrottlingException(_inner) => _inner.fmt(f),
UpdateResourceErrorKind::TypeNotFoundException(_inner) => _inner.fmt(f),
UpdateResourceErrorKind::UnsupportedActionException(_inner) => _inner.fmt(f),
UpdateResourceErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateResourceError {
fn code(&self) -> Option<&str> {
UpdateResourceError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateResourceError {
pub fn new(kind: UpdateResourceErrorKind, 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: UpdateResourceErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateResourceErrorKind::Unhandled(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_already_exists_exception(&self) -> bool {
matches!(
&self.kind,
UpdateResourceErrorKind::AlreadyExistsException(_)
)
}
pub fn is_client_token_conflict_exception(&self) -> bool {
matches!(
&self.kind,
UpdateResourceErrorKind::ClientTokenConflictException(_)
)
}
pub fn is_concurrent_operation_exception(&self) -> bool {
matches!(
&self.kind,
UpdateResourceErrorKind::ConcurrentOperationException(_)
)
}
pub fn is_general_service_exception(&self) -> bool {
matches!(
&self.kind,
UpdateResourceErrorKind::GeneralServiceException(_)
)
}
pub fn is_handler_failure_exception(&self) -> bool {
matches!(
&self.kind,
UpdateResourceErrorKind::HandlerFailureException(_)
)
}
pub fn is_handler_internal_failure_exception(&self) -> bool {
matches!(
&self.kind,
UpdateResourceErrorKind::HandlerInternalFailureException(_)
)
}
pub fn is_invalid_credentials_exception(&self) -> bool {
matches!(
&self.kind,
UpdateResourceErrorKind::InvalidCredentialsException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
UpdateResourceErrorKind::InvalidRequestException(_)
)
}
pub fn is_network_failure_exception(&self) -> bool {
matches!(
&self.kind,
UpdateResourceErrorKind::NetworkFailureException(_)
)
}
pub fn is_not_stabilized_exception(&self) -> bool {
matches!(
&self.kind,
UpdateResourceErrorKind::NotStabilizedException(_)
)
}
pub fn is_not_updatable_exception(&self) -> bool {
matches!(
&self.kind,
UpdateResourceErrorKind::NotUpdatableException(_)
)
}
pub fn is_private_type_exception(&self) -> bool {
matches!(&self.kind, UpdateResourceErrorKind::PrivateTypeException(_))
}
pub fn is_resource_conflict_exception(&self) -> bool {
matches!(
&self.kind,
UpdateResourceErrorKind::ResourceConflictException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
UpdateResourceErrorKind::ResourceNotFoundException(_)
)
}
pub fn is_service_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
UpdateResourceErrorKind::ServiceInternalErrorException(_)
)
}
pub fn is_service_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
UpdateResourceErrorKind::ServiceLimitExceededException(_)
)
}
pub fn is_throttling_exception(&self) -> bool {
matches!(&self.kind, UpdateResourceErrorKind::ThrottlingException(_))
}
pub fn is_type_not_found_exception(&self) -> bool {
matches!(
&self.kind,
UpdateResourceErrorKind::TypeNotFoundException(_)
)
}
pub fn is_unsupported_action_exception(&self) -> bool {
matches!(
&self.kind,
UpdateResourceErrorKind::UnsupportedActionException(_)
)
}
}
impl std::error::Error for UpdateResourceError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateResourceErrorKind::AlreadyExistsException(_inner) => Some(_inner),
UpdateResourceErrorKind::ClientTokenConflictException(_inner) => Some(_inner),
UpdateResourceErrorKind::ConcurrentOperationException(_inner) => Some(_inner),
UpdateResourceErrorKind::GeneralServiceException(_inner) => Some(_inner),
UpdateResourceErrorKind::HandlerFailureException(_inner) => Some(_inner),
UpdateResourceErrorKind::HandlerInternalFailureException(_inner) => Some(_inner),
UpdateResourceErrorKind::InvalidCredentialsException(_inner) => Some(_inner),
UpdateResourceErrorKind::InvalidRequestException(_inner) => Some(_inner),
UpdateResourceErrorKind::NetworkFailureException(_inner) => Some(_inner),
UpdateResourceErrorKind::NotStabilizedException(_inner) => Some(_inner),
UpdateResourceErrorKind::NotUpdatableException(_inner) => Some(_inner),
UpdateResourceErrorKind::PrivateTypeException(_inner) => Some(_inner),
UpdateResourceErrorKind::ResourceConflictException(_inner) => Some(_inner),
UpdateResourceErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
UpdateResourceErrorKind::ServiceInternalErrorException(_inner) => Some(_inner),
UpdateResourceErrorKind::ServiceLimitExceededException(_inner) => Some(_inner),
UpdateResourceErrorKind::ThrottlingException(_inner) => Some(_inner),
UpdateResourceErrorKind::TypeNotFoundException(_inner) => Some(_inner),
UpdateResourceErrorKind::UnsupportedActionException(_inner) => Some(_inner),
UpdateResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct UnsupportedActionException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for UnsupportedActionException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("UnsupportedActionException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl UnsupportedActionException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for UnsupportedActionException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "UnsupportedActionException")?;
if let Some(inner_1) = &self.message {
write!(f, ": {}", inner_1)?;
}
Ok(())
}
}
impl std::error::Error for UnsupportedActionException {}
pub mod unsupported_action_exception {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::UnsupportedActionException {
crate::error::UnsupportedActionException {
message: self.message,
}
}
}
}
impl UnsupportedActionException {
pub fn builder() -> crate::error::unsupported_action_exception::Builder {
crate::error::unsupported_action_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TypeNotFoundException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for TypeNotFoundException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TypeNotFoundException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl TypeNotFoundException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TypeNotFoundException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TypeNotFoundException")?;
if let Some(inner_2) = &self.message {
write!(f, ": {}", inner_2)?;
}
Ok(())
}
}
impl std::error::Error for TypeNotFoundException {}
pub mod type_not_found_exception {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::TypeNotFoundException {
crate::error::TypeNotFoundException {
message: self.message,
}
}
}
}
impl TypeNotFoundException {
pub fn builder() -> crate::error::type_not_found_exception::Builder {
crate::error::type_not_found_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ThrottlingException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for ThrottlingException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ThrottlingException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl ThrottlingException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ThrottlingException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ThrottlingException")?;
if let Some(inner_3) = &self.message {
write!(f, ": {}", inner_3)?;
}
Ok(())
}
}
impl std::error::Error for ThrottlingException {}
pub mod throttling_exception {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::ThrottlingException {
crate::error::ThrottlingException {
message: self.message,
}
}
}
}
impl ThrottlingException {
pub fn builder() -> crate::error::throttling_exception::Builder {
crate::error::throttling_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ServiceLimitExceededException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for ServiceLimitExceededException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ServiceLimitExceededException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl ServiceLimitExceededException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ServiceLimitExceededException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ServiceLimitExceededException")?;
if let Some(inner_4) = &self.message {
write!(f, ": {}", inner_4)?;
}
Ok(())
}
}
impl std::error::Error for ServiceLimitExceededException {}
pub mod service_limit_exceeded_exception {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::ServiceLimitExceededException {
crate::error::ServiceLimitExceededException {
message: self.message,
}
}
}
}
impl ServiceLimitExceededException {
pub fn builder() -> crate::error::service_limit_exceeded_exception::Builder {
crate::error::service_limit_exceeded_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ServiceInternalErrorException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for ServiceInternalErrorException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ServiceInternalErrorException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl ServiceInternalErrorException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ServiceInternalErrorException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ServiceInternalErrorException")?;
if let Some(inner_5) = &self.message {
write!(f, ": {}", inner_5)?;
}
Ok(())
}
}
impl std::error::Error for ServiceInternalErrorException {}
pub mod service_internal_error_exception {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::ServiceInternalErrorException {
crate::error::ServiceInternalErrorException {
message: self.message,
}
}
}
}
impl ServiceInternalErrorException {
pub fn builder() -> crate::error::service_internal_error_exception::Builder {
crate::error::service_internal_error_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ResourceNotFoundException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for ResourceNotFoundException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ResourceNotFoundException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl ResourceNotFoundException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ResourceNotFoundException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ResourceNotFoundException")?;
if let Some(inner_6) = &self.message {
write!(f, ": {}", inner_6)?;
}
Ok(())
}
}
impl std::error::Error for ResourceNotFoundException {}
pub mod resource_not_found_exception {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::ResourceNotFoundException {
crate::error::ResourceNotFoundException {
message: self.message,
}
}
}
}
impl ResourceNotFoundException {
pub fn builder() -> crate::error::resource_not_found_exception::Builder {
crate::error::resource_not_found_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ResourceConflictException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for ResourceConflictException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ResourceConflictException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl ResourceConflictException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ResourceConflictException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ResourceConflictException")?;
if let Some(inner_7) = &self.message {
write!(f, ": {}", inner_7)?;
}
Ok(())
}
}
impl std::error::Error for ResourceConflictException {}
pub mod resource_conflict_exception {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::ResourceConflictException {
crate::error::ResourceConflictException {
message: self.message,
}
}
}
}
impl ResourceConflictException {
pub fn builder() -> crate::error::resource_conflict_exception::Builder {
crate::error::resource_conflict_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct PrivateTypeException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for PrivateTypeException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("PrivateTypeException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl PrivateTypeException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for PrivateTypeException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "PrivateTypeException")?;
if let Some(inner_8) = &self.message {
write!(f, ": {}", inner_8)?;
}
Ok(())
}
}
impl std::error::Error for PrivateTypeException {}
pub mod private_type_exception {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::PrivateTypeException {
crate::error::PrivateTypeException {
message: self.message,
}
}
}
}
impl PrivateTypeException {
pub fn builder() -> crate::error::private_type_exception::Builder {
crate::error::private_type_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct NotUpdatableException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for NotUpdatableException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("NotUpdatableException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl NotUpdatableException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for NotUpdatableException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "NotUpdatableException")?;
if let Some(inner_9) = &self.message {
write!(f, ": {}", inner_9)?;
}
Ok(())
}
}
impl std::error::Error for NotUpdatableException {}
pub mod not_updatable_exception {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::NotUpdatableException {
crate::error::NotUpdatableException {
message: self.message,
}
}
}
}
impl NotUpdatableException {
pub fn builder() -> crate::error::not_updatable_exception::Builder {
crate::error::not_updatable_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct NotStabilizedException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for NotStabilizedException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("NotStabilizedException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl NotStabilizedException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for NotStabilizedException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "NotStabilizedException")?;
if let Some(inner_10) = &self.message {
write!(f, ": {}", inner_10)?;
}
Ok(())
}
}
impl std::error::Error for NotStabilizedException {}
pub mod not_stabilized_exception {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::NotStabilizedException {
crate::error::NotStabilizedException {
message: self.message,
}
}
}
}
impl NotStabilizedException {
pub fn builder() -> crate::error::not_stabilized_exception::Builder {
crate::error::not_stabilized_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct NetworkFailureException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for NetworkFailureException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("NetworkFailureException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl NetworkFailureException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for NetworkFailureException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "NetworkFailureException")?;
if let Some(inner_11) = &self.message {
write!(f, ": {}", inner_11)?;
}
Ok(())
}
}
impl std::error::Error for NetworkFailureException {}
pub mod network_failure_exception {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::NetworkFailureException {
crate::error::NetworkFailureException {
message: self.message,
}
}
}
}
impl NetworkFailureException {
pub fn builder() -> crate::error::network_failure_exception::Builder {
crate::error::network_failure_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InvalidRequestException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InvalidRequestException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InvalidRequestException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InvalidRequestException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidRequestException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidRequestException")?;
if let Some(inner_12) = &self.message {
write!(f, ": {}", inner_12)?;
}
Ok(())
}
}
impl std::error::Error for InvalidRequestException {}
pub mod invalid_request_exception {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::InvalidRequestException {
crate::error::InvalidRequestException {
message: self.message,
}
}
}
}
impl InvalidRequestException {
pub fn builder() -> crate::error::invalid_request_exception::Builder {
crate::error::invalid_request_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InvalidCredentialsException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InvalidCredentialsException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InvalidCredentialsException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InvalidCredentialsException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidCredentialsException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidCredentialsException")?;
if let Some(inner_13) = &self.message {
write!(f, ": {}", inner_13)?;
}
Ok(())
}
}
impl std::error::Error for InvalidCredentialsException {}
pub mod invalid_credentials_exception {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::InvalidCredentialsException {
crate::error::InvalidCredentialsException {
message: self.message,
}
}
}
}
impl InvalidCredentialsException {
pub fn builder() -> crate::error::invalid_credentials_exception::Builder {
crate::error::invalid_credentials_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct HandlerInternalFailureException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for HandlerInternalFailureException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("HandlerInternalFailureException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl HandlerInternalFailureException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for HandlerInternalFailureException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "HandlerInternalFailureException")?;
if let Some(inner_14) = &self.message {
write!(f, ": {}", inner_14)?;
}
Ok(())
}
}
impl std::error::Error for HandlerInternalFailureException {}
pub mod handler_internal_failure_exception {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::HandlerInternalFailureException {
crate::error::HandlerInternalFailureException {
message: self.message,
}
}
}
}
impl HandlerInternalFailureException {
pub fn builder() -> crate::error::handler_internal_failure_exception::Builder {
crate::error::handler_internal_failure_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct HandlerFailureException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for HandlerFailureException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("HandlerFailureException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl HandlerFailureException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for HandlerFailureException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "HandlerFailureException")?;
if let Some(inner_15) = &self.message {
write!(f, ": {}", inner_15)?;
}
Ok(())
}
}
impl std::error::Error for HandlerFailureException {}
pub mod handler_failure_exception {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::HandlerFailureException {
crate::error::HandlerFailureException {
message: self.message,
}
}
}
}
impl HandlerFailureException {
pub fn builder() -> crate::error::handler_failure_exception::Builder {
crate::error::handler_failure_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct GeneralServiceException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for GeneralServiceException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("GeneralServiceException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl GeneralServiceException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for GeneralServiceException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "GeneralServiceException")?;
if let Some(inner_16) = &self.message {
write!(f, ": {}", inner_16)?;
}
Ok(())
}
}
impl std::error::Error for GeneralServiceException {}
pub mod general_service_exception {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::GeneralServiceException {
crate::error::GeneralServiceException {
message: self.message,
}
}
}
}
impl GeneralServiceException {
pub fn builder() -> crate::error::general_service_exception::Builder {
crate::error::general_service_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ConcurrentOperationException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for ConcurrentOperationException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ConcurrentOperationException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl ConcurrentOperationException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ConcurrentOperationException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ConcurrentOperationException")?;
if let Some(inner_17) = &self.message {
write!(f, ": {}", inner_17)?;
}
Ok(())
}
}
impl std::error::Error for ConcurrentOperationException {}
pub mod concurrent_operation_exception {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::ConcurrentOperationException {
crate::error::ConcurrentOperationException {
message: self.message,
}
}
}
}
impl ConcurrentOperationException {
pub fn builder() -> crate::error::concurrent_operation_exception::Builder {
crate::error::concurrent_operation_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ClientTokenConflictException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for ClientTokenConflictException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ClientTokenConflictException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl ClientTokenConflictException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ClientTokenConflictException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ClientTokenConflictException")?;
if let Some(inner_18) = &self.message {
write!(f, ": {}", inner_18)?;
}
Ok(())
}
}
impl std::error::Error for ClientTokenConflictException {}
pub mod client_token_conflict_exception {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::ClientTokenConflictException {
crate::error::ClientTokenConflictException {
message: self.message,
}
}
}
}
impl ClientTokenConflictException {
pub fn builder() -> crate::error::client_token_conflict_exception::Builder {
crate::error::client_token_conflict_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct AlreadyExistsException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for AlreadyExistsException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("AlreadyExistsException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl AlreadyExistsException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for AlreadyExistsException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "AlreadyExistsException")?;
if let Some(inner_19) = &self.message {
write!(f, ": {}", inner_19)?;
}
Ok(())
}
}
impl std::error::Error for AlreadyExistsException {}
pub mod already_exists_exception {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::AlreadyExistsException {
crate::error::AlreadyExistsException {
message: self.message,
}
}
}
}
impl AlreadyExistsException {
pub fn builder() -> crate::error::already_exists_exception::Builder {
crate::error::already_exists_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct RequestTokenNotFoundException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for RequestTokenNotFoundException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("RequestTokenNotFoundException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl RequestTokenNotFoundException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for RequestTokenNotFoundException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "RequestTokenNotFoundException")?;
if let Some(inner_20) = &self.message {
write!(f, ": {}", inner_20)?;
}
Ok(())
}
}
impl std::error::Error for RequestTokenNotFoundException {}
pub mod request_token_not_found_exception {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::RequestTokenNotFoundException {
crate::error::RequestTokenNotFoundException {
message: self.message,
}
}
}
}
impl RequestTokenNotFoundException {
pub fn builder() -> crate::error::request_token_not_found_exception::Builder {
crate::error::request_token_not_found_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ConcurrentModificationException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for ConcurrentModificationException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ConcurrentModificationException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl ConcurrentModificationException {
pub fn message(&self) -> 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_21) = &self.message {
write!(f, ": {}", inner_21)?;
}
Ok(())
}
}
impl std::error::Error for ConcurrentModificationException {}
pub mod concurrent_modification_exception {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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()
}
}