#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateMemberError {
pub kind: CreateMemberErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateMemberErrorKind {
AccessDeniedException(crate::error::AccessDeniedException),
InternalServiceErrorException(crate::error::InternalServiceErrorException),
InvalidRequestException(crate::error::InvalidRequestException),
ResourceAlreadyExistsException(crate::error::ResourceAlreadyExistsException),
ResourceLimitExceededException(crate::error::ResourceLimitExceededException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
ResourceNotReadyException(crate::error::ResourceNotReadyException),
ThrottlingException(crate::error::ThrottlingException),
TooManyTagsException(crate::error::TooManyTagsException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for CreateMemberError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateMemberErrorKind::AccessDeniedException(_inner) => _inner.fmt(f),
CreateMemberErrorKind::InternalServiceErrorException(_inner) => _inner.fmt(f),
CreateMemberErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
CreateMemberErrorKind::ResourceAlreadyExistsException(_inner) => _inner.fmt(f),
CreateMemberErrorKind::ResourceLimitExceededException(_inner) => _inner.fmt(f),
CreateMemberErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
CreateMemberErrorKind::ResourceNotReadyException(_inner) => _inner.fmt(f),
CreateMemberErrorKind::ThrottlingException(_inner) => _inner.fmt(f),
CreateMemberErrorKind::TooManyTagsException(_inner) => _inner.fmt(f),
CreateMemberErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateMemberError {
fn code(&self) -> Option<&str> {
CreateMemberError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateMemberError {
pub fn new(kind: CreateMemberErrorKind, 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: CreateMemberErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateMemberErrorKind::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_access_denied_exception(&self) -> bool {
matches!(&self.kind, CreateMemberErrorKind::AccessDeniedException(_))
}
pub fn is_internal_service_error_exception(&self) -> bool {
matches!(
&self.kind,
CreateMemberErrorKind::InternalServiceErrorException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
CreateMemberErrorKind::InvalidRequestException(_)
)
}
pub fn is_resource_already_exists_exception(&self) -> bool {
matches!(
&self.kind,
CreateMemberErrorKind::ResourceAlreadyExistsException(_)
)
}
pub fn is_resource_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
CreateMemberErrorKind::ResourceLimitExceededException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
CreateMemberErrorKind::ResourceNotFoundException(_)
)
}
pub fn is_resource_not_ready_exception(&self) -> bool {
matches!(
&self.kind,
CreateMemberErrorKind::ResourceNotReadyException(_)
)
}
pub fn is_throttling_exception(&self) -> bool {
matches!(&self.kind, CreateMemberErrorKind::ThrottlingException(_))
}
pub fn is_too_many_tags_exception(&self) -> bool {
matches!(&self.kind, CreateMemberErrorKind::TooManyTagsException(_))
}
}
impl std::error::Error for CreateMemberError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateMemberErrorKind::AccessDeniedException(_inner) => Some(_inner),
CreateMemberErrorKind::InternalServiceErrorException(_inner) => Some(_inner),
CreateMemberErrorKind::InvalidRequestException(_inner) => Some(_inner),
CreateMemberErrorKind::ResourceAlreadyExistsException(_inner) => Some(_inner),
CreateMemberErrorKind::ResourceLimitExceededException(_inner) => Some(_inner),
CreateMemberErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
CreateMemberErrorKind::ResourceNotReadyException(_inner) => Some(_inner),
CreateMemberErrorKind::ThrottlingException(_inner) => Some(_inner),
CreateMemberErrorKind::TooManyTagsException(_inner) => Some(_inner),
CreateMemberErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateNetworkError {
pub kind: CreateNetworkErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateNetworkErrorKind {
AccessDeniedException(crate::error::AccessDeniedException),
InternalServiceErrorException(crate::error::InternalServiceErrorException),
InvalidRequestException(crate::error::InvalidRequestException),
ResourceAlreadyExistsException(crate::error::ResourceAlreadyExistsException),
ResourceLimitExceededException(crate::error::ResourceLimitExceededException),
ThrottlingException(crate::error::ThrottlingException),
TooManyTagsException(crate::error::TooManyTagsException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for CreateNetworkError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateNetworkErrorKind::AccessDeniedException(_inner) => _inner.fmt(f),
CreateNetworkErrorKind::InternalServiceErrorException(_inner) => _inner.fmt(f),
CreateNetworkErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
CreateNetworkErrorKind::ResourceAlreadyExistsException(_inner) => _inner.fmt(f),
CreateNetworkErrorKind::ResourceLimitExceededException(_inner) => _inner.fmt(f),
CreateNetworkErrorKind::ThrottlingException(_inner) => _inner.fmt(f),
CreateNetworkErrorKind::TooManyTagsException(_inner) => _inner.fmt(f),
CreateNetworkErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateNetworkError {
fn code(&self) -> Option<&str> {
CreateNetworkError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateNetworkError {
pub fn new(kind: CreateNetworkErrorKind, 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: CreateNetworkErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateNetworkErrorKind::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_access_denied_exception(&self) -> bool {
matches!(&self.kind, CreateNetworkErrorKind::AccessDeniedException(_))
}
pub fn is_internal_service_error_exception(&self) -> bool {
matches!(
&self.kind,
CreateNetworkErrorKind::InternalServiceErrorException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
CreateNetworkErrorKind::InvalidRequestException(_)
)
}
pub fn is_resource_already_exists_exception(&self) -> bool {
matches!(
&self.kind,
CreateNetworkErrorKind::ResourceAlreadyExistsException(_)
)
}
pub fn is_resource_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
CreateNetworkErrorKind::ResourceLimitExceededException(_)
)
}
pub fn is_throttling_exception(&self) -> bool {
matches!(&self.kind, CreateNetworkErrorKind::ThrottlingException(_))
}
pub fn is_too_many_tags_exception(&self) -> bool {
matches!(&self.kind, CreateNetworkErrorKind::TooManyTagsException(_))
}
}
impl std::error::Error for CreateNetworkError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateNetworkErrorKind::AccessDeniedException(_inner) => Some(_inner),
CreateNetworkErrorKind::InternalServiceErrorException(_inner) => Some(_inner),
CreateNetworkErrorKind::InvalidRequestException(_inner) => Some(_inner),
CreateNetworkErrorKind::ResourceAlreadyExistsException(_inner) => Some(_inner),
CreateNetworkErrorKind::ResourceLimitExceededException(_inner) => Some(_inner),
CreateNetworkErrorKind::ThrottlingException(_inner) => Some(_inner),
CreateNetworkErrorKind::TooManyTagsException(_inner) => Some(_inner),
CreateNetworkErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateNodeError {
pub kind: CreateNodeErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateNodeErrorKind {
AccessDeniedException(crate::error::AccessDeniedException),
InternalServiceErrorException(crate::error::InternalServiceErrorException),
InvalidRequestException(crate::error::InvalidRequestException),
ResourceAlreadyExistsException(crate::error::ResourceAlreadyExistsException),
ResourceLimitExceededException(crate::error::ResourceLimitExceededException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
ResourceNotReadyException(crate::error::ResourceNotReadyException),
ThrottlingException(crate::error::ThrottlingException),
TooManyTagsException(crate::error::TooManyTagsException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for CreateNodeError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateNodeErrorKind::AccessDeniedException(_inner) => _inner.fmt(f),
CreateNodeErrorKind::InternalServiceErrorException(_inner) => _inner.fmt(f),
CreateNodeErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
CreateNodeErrorKind::ResourceAlreadyExistsException(_inner) => _inner.fmt(f),
CreateNodeErrorKind::ResourceLimitExceededException(_inner) => _inner.fmt(f),
CreateNodeErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
CreateNodeErrorKind::ResourceNotReadyException(_inner) => _inner.fmt(f),
CreateNodeErrorKind::ThrottlingException(_inner) => _inner.fmt(f),
CreateNodeErrorKind::TooManyTagsException(_inner) => _inner.fmt(f),
CreateNodeErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateNodeError {
fn code(&self) -> Option<&str> {
CreateNodeError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateNodeError {
pub fn new(kind: CreateNodeErrorKind, 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: CreateNodeErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateNodeErrorKind::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_access_denied_exception(&self) -> bool {
matches!(&self.kind, CreateNodeErrorKind::AccessDeniedException(_))
}
pub fn is_internal_service_error_exception(&self) -> bool {
matches!(
&self.kind,
CreateNodeErrorKind::InternalServiceErrorException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(&self.kind, CreateNodeErrorKind::InvalidRequestException(_))
}
pub fn is_resource_already_exists_exception(&self) -> bool {
matches!(
&self.kind,
CreateNodeErrorKind::ResourceAlreadyExistsException(_)
)
}
pub fn is_resource_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
CreateNodeErrorKind::ResourceLimitExceededException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
CreateNodeErrorKind::ResourceNotFoundException(_)
)
}
pub fn is_resource_not_ready_exception(&self) -> bool {
matches!(
&self.kind,
CreateNodeErrorKind::ResourceNotReadyException(_)
)
}
pub fn is_throttling_exception(&self) -> bool {
matches!(&self.kind, CreateNodeErrorKind::ThrottlingException(_))
}
pub fn is_too_many_tags_exception(&self) -> bool {
matches!(&self.kind, CreateNodeErrorKind::TooManyTagsException(_))
}
}
impl std::error::Error for CreateNodeError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateNodeErrorKind::AccessDeniedException(_inner) => Some(_inner),
CreateNodeErrorKind::InternalServiceErrorException(_inner) => Some(_inner),
CreateNodeErrorKind::InvalidRequestException(_inner) => Some(_inner),
CreateNodeErrorKind::ResourceAlreadyExistsException(_inner) => Some(_inner),
CreateNodeErrorKind::ResourceLimitExceededException(_inner) => Some(_inner),
CreateNodeErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
CreateNodeErrorKind::ResourceNotReadyException(_inner) => Some(_inner),
CreateNodeErrorKind::ThrottlingException(_inner) => Some(_inner),
CreateNodeErrorKind::TooManyTagsException(_inner) => Some(_inner),
CreateNodeErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateProposalError {
pub kind: CreateProposalErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateProposalErrorKind {
AccessDeniedException(crate::error::AccessDeniedException),
InternalServiceErrorException(crate::error::InternalServiceErrorException),
InvalidRequestException(crate::error::InvalidRequestException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
ResourceNotReadyException(crate::error::ResourceNotReadyException),
ThrottlingException(crate::error::ThrottlingException),
TooManyTagsException(crate::error::TooManyTagsException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for CreateProposalError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateProposalErrorKind::AccessDeniedException(_inner) => _inner.fmt(f),
CreateProposalErrorKind::InternalServiceErrorException(_inner) => _inner.fmt(f),
CreateProposalErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
CreateProposalErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
CreateProposalErrorKind::ResourceNotReadyException(_inner) => _inner.fmt(f),
CreateProposalErrorKind::ThrottlingException(_inner) => _inner.fmt(f),
CreateProposalErrorKind::TooManyTagsException(_inner) => _inner.fmt(f),
CreateProposalErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateProposalError {
fn code(&self) -> Option<&str> {
CreateProposalError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateProposalError {
pub fn new(kind: CreateProposalErrorKind, 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: CreateProposalErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateProposalErrorKind::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_access_denied_exception(&self) -> bool {
matches!(
&self.kind,
CreateProposalErrorKind::AccessDeniedException(_)
)
}
pub fn is_internal_service_error_exception(&self) -> bool {
matches!(
&self.kind,
CreateProposalErrorKind::InternalServiceErrorException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
CreateProposalErrorKind::InvalidRequestException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
CreateProposalErrorKind::ResourceNotFoundException(_)
)
}
pub fn is_resource_not_ready_exception(&self) -> bool {
matches!(
&self.kind,
CreateProposalErrorKind::ResourceNotReadyException(_)
)
}
pub fn is_throttling_exception(&self) -> bool {
matches!(&self.kind, CreateProposalErrorKind::ThrottlingException(_))
}
pub fn is_too_many_tags_exception(&self) -> bool {
matches!(&self.kind, CreateProposalErrorKind::TooManyTagsException(_))
}
}
impl std::error::Error for CreateProposalError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateProposalErrorKind::AccessDeniedException(_inner) => Some(_inner),
CreateProposalErrorKind::InternalServiceErrorException(_inner) => Some(_inner),
CreateProposalErrorKind::InvalidRequestException(_inner) => Some(_inner),
CreateProposalErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
CreateProposalErrorKind::ResourceNotReadyException(_inner) => Some(_inner),
CreateProposalErrorKind::ThrottlingException(_inner) => Some(_inner),
CreateProposalErrorKind::TooManyTagsException(_inner) => Some(_inner),
CreateProposalErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteMemberError {
pub kind: DeleteMemberErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteMemberErrorKind {
AccessDeniedException(crate::error::AccessDeniedException),
InternalServiceErrorException(crate::error::InternalServiceErrorException),
InvalidRequestException(crate::error::InvalidRequestException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
ResourceNotReadyException(crate::error::ResourceNotReadyException),
ThrottlingException(crate::error::ThrottlingException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DeleteMemberError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteMemberErrorKind::AccessDeniedException(_inner) => _inner.fmt(f),
DeleteMemberErrorKind::InternalServiceErrorException(_inner) => _inner.fmt(f),
DeleteMemberErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
DeleteMemberErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
DeleteMemberErrorKind::ResourceNotReadyException(_inner) => _inner.fmt(f),
DeleteMemberErrorKind::ThrottlingException(_inner) => _inner.fmt(f),
DeleteMemberErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteMemberError {
fn code(&self) -> Option<&str> {
DeleteMemberError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteMemberError {
pub fn new(kind: DeleteMemberErrorKind, 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: DeleteMemberErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteMemberErrorKind::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_access_denied_exception(&self) -> bool {
matches!(&self.kind, DeleteMemberErrorKind::AccessDeniedException(_))
}
pub fn is_internal_service_error_exception(&self) -> bool {
matches!(
&self.kind,
DeleteMemberErrorKind::InternalServiceErrorException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
DeleteMemberErrorKind::InvalidRequestException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DeleteMemberErrorKind::ResourceNotFoundException(_)
)
}
pub fn is_resource_not_ready_exception(&self) -> bool {
matches!(
&self.kind,
DeleteMemberErrorKind::ResourceNotReadyException(_)
)
}
pub fn is_throttling_exception(&self) -> bool {
matches!(&self.kind, DeleteMemberErrorKind::ThrottlingException(_))
}
}
impl std::error::Error for DeleteMemberError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteMemberErrorKind::AccessDeniedException(_inner) => Some(_inner),
DeleteMemberErrorKind::InternalServiceErrorException(_inner) => Some(_inner),
DeleteMemberErrorKind::InvalidRequestException(_inner) => Some(_inner),
DeleteMemberErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
DeleteMemberErrorKind::ResourceNotReadyException(_inner) => Some(_inner),
DeleteMemberErrorKind::ThrottlingException(_inner) => Some(_inner),
DeleteMemberErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteNodeError {
pub kind: DeleteNodeErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteNodeErrorKind {
AccessDeniedException(crate::error::AccessDeniedException),
InternalServiceErrorException(crate::error::InternalServiceErrorException),
InvalidRequestException(crate::error::InvalidRequestException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
ResourceNotReadyException(crate::error::ResourceNotReadyException),
ThrottlingException(crate::error::ThrottlingException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DeleteNodeError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteNodeErrorKind::AccessDeniedException(_inner) => _inner.fmt(f),
DeleteNodeErrorKind::InternalServiceErrorException(_inner) => _inner.fmt(f),
DeleteNodeErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
DeleteNodeErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
DeleteNodeErrorKind::ResourceNotReadyException(_inner) => _inner.fmt(f),
DeleteNodeErrorKind::ThrottlingException(_inner) => _inner.fmt(f),
DeleteNodeErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteNodeError {
fn code(&self) -> Option<&str> {
DeleteNodeError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteNodeError {
pub fn new(kind: DeleteNodeErrorKind, 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: DeleteNodeErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteNodeErrorKind::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_access_denied_exception(&self) -> bool {
matches!(&self.kind, DeleteNodeErrorKind::AccessDeniedException(_))
}
pub fn is_internal_service_error_exception(&self) -> bool {
matches!(
&self.kind,
DeleteNodeErrorKind::InternalServiceErrorException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(&self.kind, DeleteNodeErrorKind::InvalidRequestException(_))
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DeleteNodeErrorKind::ResourceNotFoundException(_)
)
}
pub fn is_resource_not_ready_exception(&self) -> bool {
matches!(
&self.kind,
DeleteNodeErrorKind::ResourceNotReadyException(_)
)
}
pub fn is_throttling_exception(&self) -> bool {
matches!(&self.kind, DeleteNodeErrorKind::ThrottlingException(_))
}
}
impl std::error::Error for DeleteNodeError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteNodeErrorKind::AccessDeniedException(_inner) => Some(_inner),
DeleteNodeErrorKind::InternalServiceErrorException(_inner) => Some(_inner),
DeleteNodeErrorKind::InvalidRequestException(_inner) => Some(_inner),
DeleteNodeErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
DeleteNodeErrorKind::ResourceNotReadyException(_inner) => Some(_inner),
DeleteNodeErrorKind::ThrottlingException(_inner) => Some(_inner),
DeleteNodeErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetMemberError {
pub kind: GetMemberErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetMemberErrorKind {
AccessDeniedException(crate::error::AccessDeniedException),
InternalServiceErrorException(crate::error::InternalServiceErrorException),
InvalidRequestException(crate::error::InvalidRequestException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
ThrottlingException(crate::error::ThrottlingException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for GetMemberError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetMemberErrorKind::AccessDeniedException(_inner) => _inner.fmt(f),
GetMemberErrorKind::InternalServiceErrorException(_inner) => _inner.fmt(f),
GetMemberErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
GetMemberErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
GetMemberErrorKind::ThrottlingException(_inner) => _inner.fmt(f),
GetMemberErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetMemberError {
fn code(&self) -> Option<&str> {
GetMemberError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetMemberError {
pub fn new(kind: GetMemberErrorKind, 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: GetMemberErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetMemberErrorKind::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_access_denied_exception(&self) -> bool {
matches!(&self.kind, GetMemberErrorKind::AccessDeniedException(_))
}
pub fn is_internal_service_error_exception(&self) -> bool {
matches!(
&self.kind,
GetMemberErrorKind::InternalServiceErrorException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(&self.kind, GetMemberErrorKind::InvalidRequestException(_))
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(&self.kind, GetMemberErrorKind::ResourceNotFoundException(_))
}
pub fn is_throttling_exception(&self) -> bool {
matches!(&self.kind, GetMemberErrorKind::ThrottlingException(_))
}
}
impl std::error::Error for GetMemberError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetMemberErrorKind::AccessDeniedException(_inner) => Some(_inner),
GetMemberErrorKind::InternalServiceErrorException(_inner) => Some(_inner),
GetMemberErrorKind::InvalidRequestException(_inner) => Some(_inner),
GetMemberErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
GetMemberErrorKind::ThrottlingException(_inner) => Some(_inner),
GetMemberErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetNetworkError {
pub kind: GetNetworkErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetNetworkErrorKind {
AccessDeniedException(crate::error::AccessDeniedException),
InternalServiceErrorException(crate::error::InternalServiceErrorException),
InvalidRequestException(crate::error::InvalidRequestException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
ThrottlingException(crate::error::ThrottlingException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for GetNetworkError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetNetworkErrorKind::AccessDeniedException(_inner) => _inner.fmt(f),
GetNetworkErrorKind::InternalServiceErrorException(_inner) => _inner.fmt(f),
GetNetworkErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
GetNetworkErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
GetNetworkErrorKind::ThrottlingException(_inner) => _inner.fmt(f),
GetNetworkErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetNetworkError {
fn code(&self) -> Option<&str> {
GetNetworkError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetNetworkError {
pub fn new(kind: GetNetworkErrorKind, 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: GetNetworkErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetNetworkErrorKind::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_access_denied_exception(&self) -> bool {
matches!(&self.kind, GetNetworkErrorKind::AccessDeniedException(_))
}
pub fn is_internal_service_error_exception(&self) -> bool {
matches!(
&self.kind,
GetNetworkErrorKind::InternalServiceErrorException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(&self.kind, GetNetworkErrorKind::InvalidRequestException(_))
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
GetNetworkErrorKind::ResourceNotFoundException(_)
)
}
pub fn is_throttling_exception(&self) -> bool {
matches!(&self.kind, GetNetworkErrorKind::ThrottlingException(_))
}
}
impl std::error::Error for GetNetworkError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetNetworkErrorKind::AccessDeniedException(_inner) => Some(_inner),
GetNetworkErrorKind::InternalServiceErrorException(_inner) => Some(_inner),
GetNetworkErrorKind::InvalidRequestException(_inner) => Some(_inner),
GetNetworkErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
GetNetworkErrorKind::ThrottlingException(_inner) => Some(_inner),
GetNetworkErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetNodeError {
pub kind: GetNodeErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetNodeErrorKind {
AccessDeniedException(crate::error::AccessDeniedException),
InternalServiceErrorException(crate::error::InternalServiceErrorException),
InvalidRequestException(crate::error::InvalidRequestException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
ThrottlingException(crate::error::ThrottlingException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for GetNodeError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetNodeErrorKind::AccessDeniedException(_inner) => _inner.fmt(f),
GetNodeErrorKind::InternalServiceErrorException(_inner) => _inner.fmt(f),
GetNodeErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
GetNodeErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
GetNodeErrorKind::ThrottlingException(_inner) => _inner.fmt(f),
GetNodeErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetNodeError {
fn code(&self) -> Option<&str> {
GetNodeError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetNodeError {
pub fn new(kind: GetNodeErrorKind, 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: GetNodeErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetNodeErrorKind::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_access_denied_exception(&self) -> bool {
matches!(&self.kind, GetNodeErrorKind::AccessDeniedException(_))
}
pub fn is_internal_service_error_exception(&self) -> bool {
matches!(
&self.kind,
GetNodeErrorKind::InternalServiceErrorException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(&self.kind, GetNodeErrorKind::InvalidRequestException(_))
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(&self.kind, GetNodeErrorKind::ResourceNotFoundException(_))
}
pub fn is_throttling_exception(&self) -> bool {
matches!(&self.kind, GetNodeErrorKind::ThrottlingException(_))
}
}
impl std::error::Error for GetNodeError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetNodeErrorKind::AccessDeniedException(_inner) => Some(_inner),
GetNodeErrorKind::InternalServiceErrorException(_inner) => Some(_inner),
GetNodeErrorKind::InvalidRequestException(_inner) => Some(_inner),
GetNodeErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
GetNodeErrorKind::ThrottlingException(_inner) => Some(_inner),
GetNodeErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetProposalError {
pub kind: GetProposalErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetProposalErrorKind {
AccessDeniedException(crate::error::AccessDeniedException),
InternalServiceErrorException(crate::error::InternalServiceErrorException),
InvalidRequestException(crate::error::InvalidRequestException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
ThrottlingException(crate::error::ThrottlingException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for GetProposalError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetProposalErrorKind::AccessDeniedException(_inner) => _inner.fmt(f),
GetProposalErrorKind::InternalServiceErrorException(_inner) => _inner.fmt(f),
GetProposalErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
GetProposalErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
GetProposalErrorKind::ThrottlingException(_inner) => _inner.fmt(f),
GetProposalErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetProposalError {
fn code(&self) -> Option<&str> {
GetProposalError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetProposalError {
pub fn new(kind: GetProposalErrorKind, 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: GetProposalErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetProposalErrorKind::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_access_denied_exception(&self) -> bool {
matches!(&self.kind, GetProposalErrorKind::AccessDeniedException(_))
}
pub fn is_internal_service_error_exception(&self) -> bool {
matches!(
&self.kind,
GetProposalErrorKind::InternalServiceErrorException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(&self.kind, GetProposalErrorKind::InvalidRequestException(_))
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
GetProposalErrorKind::ResourceNotFoundException(_)
)
}
pub fn is_throttling_exception(&self) -> bool {
matches!(&self.kind, GetProposalErrorKind::ThrottlingException(_))
}
}
impl std::error::Error for GetProposalError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetProposalErrorKind::AccessDeniedException(_inner) => Some(_inner),
GetProposalErrorKind::InternalServiceErrorException(_inner) => Some(_inner),
GetProposalErrorKind::InvalidRequestException(_inner) => Some(_inner),
GetProposalErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
GetProposalErrorKind::ThrottlingException(_inner) => Some(_inner),
GetProposalErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListInvitationsError {
pub kind: ListInvitationsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListInvitationsErrorKind {
AccessDeniedException(crate::error::AccessDeniedException),
InternalServiceErrorException(crate::error::InternalServiceErrorException),
InvalidRequestException(crate::error::InvalidRequestException),
ResourceLimitExceededException(crate::error::ResourceLimitExceededException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
ThrottlingException(crate::error::ThrottlingException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for ListInvitationsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListInvitationsErrorKind::AccessDeniedException(_inner) => _inner.fmt(f),
ListInvitationsErrorKind::InternalServiceErrorException(_inner) => _inner.fmt(f),
ListInvitationsErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
ListInvitationsErrorKind::ResourceLimitExceededException(_inner) => _inner.fmt(f),
ListInvitationsErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
ListInvitationsErrorKind::ThrottlingException(_inner) => _inner.fmt(f),
ListInvitationsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListInvitationsError {
fn code(&self) -> Option<&str> {
ListInvitationsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListInvitationsError {
pub fn new(kind: ListInvitationsErrorKind, 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: ListInvitationsErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListInvitationsErrorKind::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_access_denied_exception(&self) -> bool {
matches!(
&self.kind,
ListInvitationsErrorKind::AccessDeniedException(_)
)
}
pub fn is_internal_service_error_exception(&self) -> bool {
matches!(
&self.kind,
ListInvitationsErrorKind::InternalServiceErrorException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
ListInvitationsErrorKind::InvalidRequestException(_)
)
}
pub fn is_resource_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
ListInvitationsErrorKind::ResourceLimitExceededException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
ListInvitationsErrorKind::ResourceNotFoundException(_)
)
}
pub fn is_throttling_exception(&self) -> bool {
matches!(&self.kind, ListInvitationsErrorKind::ThrottlingException(_))
}
}
impl std::error::Error for ListInvitationsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListInvitationsErrorKind::AccessDeniedException(_inner) => Some(_inner),
ListInvitationsErrorKind::InternalServiceErrorException(_inner) => Some(_inner),
ListInvitationsErrorKind::InvalidRequestException(_inner) => Some(_inner),
ListInvitationsErrorKind::ResourceLimitExceededException(_inner) => Some(_inner),
ListInvitationsErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
ListInvitationsErrorKind::ThrottlingException(_inner) => Some(_inner),
ListInvitationsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListMembersError {
pub kind: ListMembersErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListMembersErrorKind {
AccessDeniedException(crate::error::AccessDeniedException),
InternalServiceErrorException(crate::error::InternalServiceErrorException),
InvalidRequestException(crate::error::InvalidRequestException),
ThrottlingException(crate::error::ThrottlingException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for ListMembersError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListMembersErrorKind::AccessDeniedException(_inner) => _inner.fmt(f),
ListMembersErrorKind::InternalServiceErrorException(_inner) => _inner.fmt(f),
ListMembersErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
ListMembersErrorKind::ThrottlingException(_inner) => _inner.fmt(f),
ListMembersErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListMembersError {
fn code(&self) -> Option<&str> {
ListMembersError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListMembersError {
pub fn new(kind: ListMembersErrorKind, 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: ListMembersErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListMembersErrorKind::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_access_denied_exception(&self) -> bool {
matches!(&self.kind, ListMembersErrorKind::AccessDeniedException(_))
}
pub fn is_internal_service_error_exception(&self) -> bool {
matches!(
&self.kind,
ListMembersErrorKind::InternalServiceErrorException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(&self.kind, ListMembersErrorKind::InvalidRequestException(_))
}
pub fn is_throttling_exception(&self) -> bool {
matches!(&self.kind, ListMembersErrorKind::ThrottlingException(_))
}
}
impl std::error::Error for ListMembersError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListMembersErrorKind::AccessDeniedException(_inner) => Some(_inner),
ListMembersErrorKind::InternalServiceErrorException(_inner) => Some(_inner),
ListMembersErrorKind::InvalidRequestException(_inner) => Some(_inner),
ListMembersErrorKind::ThrottlingException(_inner) => Some(_inner),
ListMembersErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListNetworksError {
pub kind: ListNetworksErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListNetworksErrorKind {
AccessDeniedException(crate::error::AccessDeniedException),
InternalServiceErrorException(crate::error::InternalServiceErrorException),
InvalidRequestException(crate::error::InvalidRequestException),
ThrottlingException(crate::error::ThrottlingException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for ListNetworksError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListNetworksErrorKind::AccessDeniedException(_inner) => _inner.fmt(f),
ListNetworksErrorKind::InternalServiceErrorException(_inner) => _inner.fmt(f),
ListNetworksErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
ListNetworksErrorKind::ThrottlingException(_inner) => _inner.fmt(f),
ListNetworksErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListNetworksError {
fn code(&self) -> Option<&str> {
ListNetworksError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListNetworksError {
pub fn new(kind: ListNetworksErrorKind, 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: ListNetworksErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListNetworksErrorKind::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_access_denied_exception(&self) -> bool {
matches!(&self.kind, ListNetworksErrorKind::AccessDeniedException(_))
}
pub fn is_internal_service_error_exception(&self) -> bool {
matches!(
&self.kind,
ListNetworksErrorKind::InternalServiceErrorException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
ListNetworksErrorKind::InvalidRequestException(_)
)
}
pub fn is_throttling_exception(&self) -> bool {
matches!(&self.kind, ListNetworksErrorKind::ThrottlingException(_))
}
}
impl std::error::Error for ListNetworksError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListNetworksErrorKind::AccessDeniedException(_inner) => Some(_inner),
ListNetworksErrorKind::InternalServiceErrorException(_inner) => Some(_inner),
ListNetworksErrorKind::InvalidRequestException(_inner) => Some(_inner),
ListNetworksErrorKind::ThrottlingException(_inner) => Some(_inner),
ListNetworksErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListNodesError {
pub kind: ListNodesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListNodesErrorKind {
AccessDeniedException(crate::error::AccessDeniedException),
InternalServiceErrorException(crate::error::InternalServiceErrorException),
InvalidRequestException(crate::error::InvalidRequestException),
ThrottlingException(crate::error::ThrottlingException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for ListNodesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListNodesErrorKind::AccessDeniedException(_inner) => _inner.fmt(f),
ListNodesErrorKind::InternalServiceErrorException(_inner) => _inner.fmt(f),
ListNodesErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
ListNodesErrorKind::ThrottlingException(_inner) => _inner.fmt(f),
ListNodesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListNodesError {
fn code(&self) -> Option<&str> {
ListNodesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListNodesError {
pub fn new(kind: ListNodesErrorKind, 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: ListNodesErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListNodesErrorKind::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_access_denied_exception(&self) -> bool {
matches!(&self.kind, ListNodesErrorKind::AccessDeniedException(_))
}
pub fn is_internal_service_error_exception(&self) -> bool {
matches!(
&self.kind,
ListNodesErrorKind::InternalServiceErrorException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(&self.kind, ListNodesErrorKind::InvalidRequestException(_))
}
pub fn is_throttling_exception(&self) -> bool {
matches!(&self.kind, ListNodesErrorKind::ThrottlingException(_))
}
}
impl std::error::Error for ListNodesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListNodesErrorKind::AccessDeniedException(_inner) => Some(_inner),
ListNodesErrorKind::InternalServiceErrorException(_inner) => Some(_inner),
ListNodesErrorKind::InvalidRequestException(_inner) => Some(_inner),
ListNodesErrorKind::ThrottlingException(_inner) => Some(_inner),
ListNodesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListProposalsError {
pub kind: ListProposalsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListProposalsErrorKind {
AccessDeniedException(crate::error::AccessDeniedException),
InternalServiceErrorException(crate::error::InternalServiceErrorException),
InvalidRequestException(crate::error::InvalidRequestException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
ThrottlingException(crate::error::ThrottlingException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for ListProposalsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListProposalsErrorKind::AccessDeniedException(_inner) => _inner.fmt(f),
ListProposalsErrorKind::InternalServiceErrorException(_inner) => _inner.fmt(f),
ListProposalsErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
ListProposalsErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
ListProposalsErrorKind::ThrottlingException(_inner) => _inner.fmt(f),
ListProposalsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListProposalsError {
fn code(&self) -> Option<&str> {
ListProposalsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListProposalsError {
pub fn new(kind: ListProposalsErrorKind, 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: ListProposalsErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListProposalsErrorKind::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_access_denied_exception(&self) -> bool {
matches!(&self.kind, ListProposalsErrorKind::AccessDeniedException(_))
}
pub fn is_internal_service_error_exception(&self) -> bool {
matches!(
&self.kind,
ListProposalsErrorKind::InternalServiceErrorException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
ListProposalsErrorKind::InvalidRequestException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
ListProposalsErrorKind::ResourceNotFoundException(_)
)
}
pub fn is_throttling_exception(&self) -> bool {
matches!(&self.kind, ListProposalsErrorKind::ThrottlingException(_))
}
}
impl std::error::Error for ListProposalsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListProposalsErrorKind::AccessDeniedException(_inner) => Some(_inner),
ListProposalsErrorKind::InternalServiceErrorException(_inner) => Some(_inner),
ListProposalsErrorKind::InvalidRequestException(_inner) => Some(_inner),
ListProposalsErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
ListProposalsErrorKind::ThrottlingException(_inner) => Some(_inner),
ListProposalsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListProposalVotesError {
pub kind: ListProposalVotesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListProposalVotesErrorKind {
AccessDeniedException(crate::error::AccessDeniedException),
InternalServiceErrorException(crate::error::InternalServiceErrorException),
InvalidRequestException(crate::error::InvalidRequestException),
ThrottlingException(crate::error::ThrottlingException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for ListProposalVotesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListProposalVotesErrorKind::AccessDeniedException(_inner) => _inner.fmt(f),
ListProposalVotesErrorKind::InternalServiceErrorException(_inner) => _inner.fmt(f),
ListProposalVotesErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
ListProposalVotesErrorKind::ThrottlingException(_inner) => _inner.fmt(f),
ListProposalVotesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListProposalVotesError {
fn code(&self) -> Option<&str> {
ListProposalVotesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListProposalVotesError {
pub fn new(kind: ListProposalVotesErrorKind, 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: ListProposalVotesErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListProposalVotesErrorKind::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_access_denied_exception(&self) -> bool {
matches!(
&self.kind,
ListProposalVotesErrorKind::AccessDeniedException(_)
)
}
pub fn is_internal_service_error_exception(&self) -> bool {
matches!(
&self.kind,
ListProposalVotesErrorKind::InternalServiceErrorException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
ListProposalVotesErrorKind::InvalidRequestException(_)
)
}
pub fn is_throttling_exception(&self) -> bool {
matches!(
&self.kind,
ListProposalVotesErrorKind::ThrottlingException(_)
)
}
}
impl std::error::Error for ListProposalVotesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListProposalVotesErrorKind::AccessDeniedException(_inner) => Some(_inner),
ListProposalVotesErrorKind::InternalServiceErrorException(_inner) => Some(_inner),
ListProposalVotesErrorKind::InvalidRequestException(_inner) => Some(_inner),
ListProposalVotesErrorKind::ThrottlingException(_inner) => Some(_inner),
ListProposalVotesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListTagsForResourceError {
pub kind: ListTagsForResourceErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListTagsForResourceErrorKind {
InternalServiceErrorException(crate::error::InternalServiceErrorException),
InvalidRequestException(crate::error::InvalidRequestException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
ResourceNotReadyException(crate::error::ResourceNotReadyException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for ListTagsForResourceError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListTagsForResourceErrorKind::InternalServiceErrorException(_inner) => _inner.fmt(f),
ListTagsForResourceErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
ListTagsForResourceErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
ListTagsForResourceErrorKind::ResourceNotReadyException(_inner) => _inner.fmt(f),
ListTagsForResourceErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListTagsForResourceError {
fn code(&self) -> Option<&str> {
ListTagsForResourceError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListTagsForResourceError {
pub fn new(kind: ListTagsForResourceErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: ListTagsForResourceErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListTagsForResourceErrorKind::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_internal_service_error_exception(&self) -> bool {
matches!(
&self.kind,
ListTagsForResourceErrorKind::InternalServiceErrorException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
ListTagsForResourceErrorKind::InvalidRequestException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
ListTagsForResourceErrorKind::ResourceNotFoundException(_)
)
}
pub fn is_resource_not_ready_exception(&self) -> bool {
matches!(
&self.kind,
ListTagsForResourceErrorKind::ResourceNotReadyException(_)
)
}
}
impl std::error::Error for ListTagsForResourceError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListTagsForResourceErrorKind::InternalServiceErrorException(_inner) => Some(_inner),
ListTagsForResourceErrorKind::InvalidRequestException(_inner) => Some(_inner),
ListTagsForResourceErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
ListTagsForResourceErrorKind::ResourceNotReadyException(_inner) => Some(_inner),
ListTagsForResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct RejectInvitationError {
pub kind: RejectInvitationErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum RejectInvitationErrorKind {
AccessDeniedException(crate::error::AccessDeniedException),
IllegalActionException(crate::error::IllegalActionException),
InternalServiceErrorException(crate::error::InternalServiceErrorException),
InvalidRequestException(crate::error::InvalidRequestException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
ThrottlingException(crate::error::ThrottlingException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for RejectInvitationError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
RejectInvitationErrorKind::AccessDeniedException(_inner) => _inner.fmt(f),
RejectInvitationErrorKind::IllegalActionException(_inner) => _inner.fmt(f),
RejectInvitationErrorKind::InternalServiceErrorException(_inner) => _inner.fmt(f),
RejectInvitationErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
RejectInvitationErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
RejectInvitationErrorKind::ThrottlingException(_inner) => _inner.fmt(f),
RejectInvitationErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for RejectInvitationError {
fn code(&self) -> Option<&str> {
RejectInvitationError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl RejectInvitationError {
pub fn new(kind: RejectInvitationErrorKind, 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: RejectInvitationErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: RejectInvitationErrorKind::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_access_denied_exception(&self) -> bool {
matches!(
&self.kind,
RejectInvitationErrorKind::AccessDeniedException(_)
)
}
pub fn is_illegal_action_exception(&self) -> bool {
matches!(
&self.kind,
RejectInvitationErrorKind::IllegalActionException(_)
)
}
pub fn is_internal_service_error_exception(&self) -> bool {
matches!(
&self.kind,
RejectInvitationErrorKind::InternalServiceErrorException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
RejectInvitationErrorKind::InvalidRequestException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
RejectInvitationErrorKind::ResourceNotFoundException(_)
)
}
pub fn is_throttling_exception(&self) -> bool {
matches!(
&self.kind,
RejectInvitationErrorKind::ThrottlingException(_)
)
}
}
impl std::error::Error for RejectInvitationError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
RejectInvitationErrorKind::AccessDeniedException(_inner) => Some(_inner),
RejectInvitationErrorKind::IllegalActionException(_inner) => Some(_inner),
RejectInvitationErrorKind::InternalServiceErrorException(_inner) => Some(_inner),
RejectInvitationErrorKind::InvalidRequestException(_inner) => Some(_inner),
RejectInvitationErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
RejectInvitationErrorKind::ThrottlingException(_inner) => Some(_inner),
RejectInvitationErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct TagResourceError {
pub kind: TagResourceErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum TagResourceErrorKind {
InternalServiceErrorException(crate::error::InternalServiceErrorException),
InvalidRequestException(crate::error::InvalidRequestException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
ResourceNotReadyException(crate::error::ResourceNotReadyException),
TooManyTagsException(crate::error::TooManyTagsException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for TagResourceError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
TagResourceErrorKind::InternalServiceErrorException(_inner) => _inner.fmt(f),
TagResourceErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
TagResourceErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
TagResourceErrorKind::ResourceNotReadyException(_inner) => _inner.fmt(f),
TagResourceErrorKind::TooManyTagsException(_inner) => _inner.fmt(f),
TagResourceErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for TagResourceError {
fn code(&self) -> Option<&str> {
TagResourceError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl TagResourceError {
pub fn new(kind: TagResourceErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: TagResourceErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: TagResourceErrorKind::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_internal_service_error_exception(&self) -> bool {
matches!(
&self.kind,
TagResourceErrorKind::InternalServiceErrorException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(&self.kind, TagResourceErrorKind::InvalidRequestException(_))
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
TagResourceErrorKind::ResourceNotFoundException(_)
)
}
pub fn is_resource_not_ready_exception(&self) -> bool {
matches!(
&self.kind,
TagResourceErrorKind::ResourceNotReadyException(_)
)
}
pub fn is_too_many_tags_exception(&self) -> bool {
matches!(&self.kind, TagResourceErrorKind::TooManyTagsException(_))
}
}
impl std::error::Error for TagResourceError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
TagResourceErrorKind::InternalServiceErrorException(_inner) => Some(_inner),
TagResourceErrorKind::InvalidRequestException(_inner) => Some(_inner),
TagResourceErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
TagResourceErrorKind::ResourceNotReadyException(_inner) => Some(_inner),
TagResourceErrorKind::TooManyTagsException(_inner) => Some(_inner),
TagResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UntagResourceError {
pub kind: UntagResourceErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UntagResourceErrorKind {
InternalServiceErrorException(crate::error::InternalServiceErrorException),
InvalidRequestException(crate::error::InvalidRequestException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
ResourceNotReadyException(crate::error::ResourceNotReadyException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for UntagResourceError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UntagResourceErrorKind::InternalServiceErrorException(_inner) => _inner.fmt(f),
UntagResourceErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
UntagResourceErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
UntagResourceErrorKind::ResourceNotReadyException(_inner) => _inner.fmt(f),
UntagResourceErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UntagResourceError {
fn code(&self) -> Option<&str> {
UntagResourceError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UntagResourceError {
pub fn new(kind: UntagResourceErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: UntagResourceErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UntagResourceErrorKind::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_internal_service_error_exception(&self) -> bool {
matches!(
&self.kind,
UntagResourceErrorKind::InternalServiceErrorException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
UntagResourceErrorKind::InvalidRequestException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
UntagResourceErrorKind::ResourceNotFoundException(_)
)
}
pub fn is_resource_not_ready_exception(&self) -> bool {
matches!(
&self.kind,
UntagResourceErrorKind::ResourceNotReadyException(_)
)
}
}
impl std::error::Error for UntagResourceError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UntagResourceErrorKind::InternalServiceErrorException(_inner) => Some(_inner),
UntagResourceErrorKind::InvalidRequestException(_inner) => Some(_inner),
UntagResourceErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
UntagResourceErrorKind::ResourceNotReadyException(_inner) => Some(_inner),
UntagResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateMemberError {
pub kind: UpdateMemberErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateMemberErrorKind {
AccessDeniedException(crate::error::AccessDeniedException),
InternalServiceErrorException(crate::error::InternalServiceErrorException),
InvalidRequestException(crate::error::InvalidRequestException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
ThrottlingException(crate::error::ThrottlingException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for UpdateMemberError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateMemberErrorKind::AccessDeniedException(_inner) => _inner.fmt(f),
UpdateMemberErrorKind::InternalServiceErrorException(_inner) => _inner.fmt(f),
UpdateMemberErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
UpdateMemberErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
UpdateMemberErrorKind::ThrottlingException(_inner) => _inner.fmt(f),
UpdateMemberErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateMemberError {
fn code(&self) -> Option<&str> {
UpdateMemberError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateMemberError {
pub fn new(kind: UpdateMemberErrorKind, 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: UpdateMemberErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateMemberErrorKind::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_access_denied_exception(&self) -> bool {
matches!(&self.kind, UpdateMemberErrorKind::AccessDeniedException(_))
}
pub fn is_internal_service_error_exception(&self) -> bool {
matches!(
&self.kind,
UpdateMemberErrorKind::InternalServiceErrorException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
UpdateMemberErrorKind::InvalidRequestException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
UpdateMemberErrorKind::ResourceNotFoundException(_)
)
}
pub fn is_throttling_exception(&self) -> bool {
matches!(&self.kind, UpdateMemberErrorKind::ThrottlingException(_))
}
}
impl std::error::Error for UpdateMemberError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateMemberErrorKind::AccessDeniedException(_inner) => Some(_inner),
UpdateMemberErrorKind::InternalServiceErrorException(_inner) => Some(_inner),
UpdateMemberErrorKind::InvalidRequestException(_inner) => Some(_inner),
UpdateMemberErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
UpdateMemberErrorKind::ThrottlingException(_inner) => Some(_inner),
UpdateMemberErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateNodeError {
pub kind: UpdateNodeErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateNodeErrorKind {
AccessDeniedException(crate::error::AccessDeniedException),
InternalServiceErrorException(crate::error::InternalServiceErrorException),
InvalidRequestException(crate::error::InvalidRequestException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
ThrottlingException(crate::error::ThrottlingException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for UpdateNodeError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateNodeErrorKind::AccessDeniedException(_inner) => _inner.fmt(f),
UpdateNodeErrorKind::InternalServiceErrorException(_inner) => _inner.fmt(f),
UpdateNodeErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
UpdateNodeErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
UpdateNodeErrorKind::ThrottlingException(_inner) => _inner.fmt(f),
UpdateNodeErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateNodeError {
fn code(&self) -> Option<&str> {
UpdateNodeError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateNodeError {
pub fn new(kind: UpdateNodeErrorKind, 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: UpdateNodeErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateNodeErrorKind::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_access_denied_exception(&self) -> bool {
matches!(&self.kind, UpdateNodeErrorKind::AccessDeniedException(_))
}
pub fn is_internal_service_error_exception(&self) -> bool {
matches!(
&self.kind,
UpdateNodeErrorKind::InternalServiceErrorException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(&self.kind, UpdateNodeErrorKind::InvalidRequestException(_))
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
UpdateNodeErrorKind::ResourceNotFoundException(_)
)
}
pub fn is_throttling_exception(&self) -> bool {
matches!(&self.kind, UpdateNodeErrorKind::ThrottlingException(_))
}
}
impl std::error::Error for UpdateNodeError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateNodeErrorKind::AccessDeniedException(_inner) => Some(_inner),
UpdateNodeErrorKind::InternalServiceErrorException(_inner) => Some(_inner),
UpdateNodeErrorKind::InvalidRequestException(_inner) => Some(_inner),
UpdateNodeErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
UpdateNodeErrorKind::ThrottlingException(_inner) => Some(_inner),
UpdateNodeErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct VoteOnProposalError {
pub kind: VoteOnProposalErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum VoteOnProposalErrorKind {
AccessDeniedException(crate::error::AccessDeniedException),
IllegalActionException(crate::error::IllegalActionException),
InternalServiceErrorException(crate::error::InternalServiceErrorException),
InvalidRequestException(crate::error::InvalidRequestException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
ThrottlingException(crate::error::ThrottlingException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for VoteOnProposalError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
VoteOnProposalErrorKind::AccessDeniedException(_inner) => _inner.fmt(f),
VoteOnProposalErrorKind::IllegalActionException(_inner) => _inner.fmt(f),
VoteOnProposalErrorKind::InternalServiceErrorException(_inner) => _inner.fmt(f),
VoteOnProposalErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
VoteOnProposalErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
VoteOnProposalErrorKind::ThrottlingException(_inner) => _inner.fmt(f),
VoteOnProposalErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for VoteOnProposalError {
fn code(&self) -> Option<&str> {
VoteOnProposalError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl VoteOnProposalError {
pub fn new(kind: VoteOnProposalErrorKind, 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: VoteOnProposalErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: VoteOnProposalErrorKind::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_access_denied_exception(&self) -> bool {
matches!(
&self.kind,
VoteOnProposalErrorKind::AccessDeniedException(_)
)
}
pub fn is_illegal_action_exception(&self) -> bool {
matches!(
&self.kind,
VoteOnProposalErrorKind::IllegalActionException(_)
)
}
pub fn is_internal_service_error_exception(&self) -> bool {
matches!(
&self.kind,
VoteOnProposalErrorKind::InternalServiceErrorException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
VoteOnProposalErrorKind::InvalidRequestException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
VoteOnProposalErrorKind::ResourceNotFoundException(_)
)
}
pub fn is_throttling_exception(&self) -> bool {
matches!(&self.kind, VoteOnProposalErrorKind::ThrottlingException(_))
}
}
impl std::error::Error for VoteOnProposalError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
VoteOnProposalErrorKind::AccessDeniedException(_inner) => Some(_inner),
VoteOnProposalErrorKind::IllegalActionException(_inner) => Some(_inner),
VoteOnProposalErrorKind::InternalServiceErrorException(_inner) => Some(_inner),
VoteOnProposalErrorKind::InvalidRequestException(_inner) => Some(_inner),
VoteOnProposalErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
VoteOnProposalErrorKind::ThrottlingException(_inner) => Some(_inner),
VoteOnProposalErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[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_1) = &self.message {
write!(f, ": {}", inner_1)?;
}
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 ResourceNotFoundException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
pub resource_name: 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.field("resource_name", &self.resource_name);
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_2) = &self.message {
write!(f, ": {}", inner_2)?;
}
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>,
pub(crate) resource_name: 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 resource_name(mut self, input: impl Into<std::string::String>) -> Self {
self.resource_name = Some(input.into());
self
}
pub fn set_resource_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.resource_name = input;
self
}
pub fn build(self) -> crate::error::ResourceNotFoundException {
crate::error::ResourceNotFoundException {
message: self.message,
resource_name: self.resource_name,
}
}
}
}
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 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_3) = &self.message {
write!(f, ": {}", inner_3)?;
}
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 InternalServiceErrorException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InternalServiceErrorException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InternalServiceErrorException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InternalServiceErrorException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InternalServiceErrorException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InternalServiceErrorException")?;
if let Some(inner_4) = &self.message {
write!(f, ": {}", inner_4)?;
}
Ok(())
}
}
impl std::error::Error for InternalServiceErrorException {}
pub mod internal_service_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::InternalServiceErrorException {
crate::error::InternalServiceErrorException {
message: self.message,
}
}
}
}
impl InternalServiceErrorException {
pub fn builder() -> crate::error::internal_service_error_exception::Builder {
crate::error::internal_service_error_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct IllegalActionException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for IllegalActionException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("IllegalActionException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl IllegalActionException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for IllegalActionException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "IllegalActionException")?;
if let Some(inner_5) = &self.message {
write!(f, ": {}", inner_5)?;
}
Ok(())
}
}
impl std::error::Error for IllegalActionException {}
pub mod illegal_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::IllegalActionException {
crate::error::IllegalActionException {
message: self.message,
}
}
}
}
impl IllegalActionException {
pub fn builder() -> crate::error::illegal_action_exception::Builder {
crate::error::illegal_action_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct AccessDeniedException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for AccessDeniedException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("AccessDeniedException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl AccessDeniedException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for AccessDeniedException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "AccessDeniedException")?;
if let Some(inner_6) = &self.message {
write!(f, ": {}", inner_6)?;
}
Ok(())
}
}
impl std::error::Error for AccessDeniedException {}
pub mod access_denied_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::AccessDeniedException {
crate::error::AccessDeniedException {
message: self.message,
}
}
}
}
impl AccessDeniedException {
pub fn builder() -> crate::error::access_denied_exception::Builder {
crate::error::access_denied_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ResourceNotReadyException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for ResourceNotReadyException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ResourceNotReadyException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl ResourceNotReadyException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ResourceNotReadyException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ResourceNotReadyException")?;
if let Some(inner_7) = &self.message {
write!(f, ": {}", inner_7)?;
}
Ok(())
}
}
impl std::error::Error for ResourceNotReadyException {}
pub mod resource_not_ready_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::ResourceNotReadyException {
crate::error::ResourceNotReadyException {
message: self.message,
}
}
}
}
impl ResourceNotReadyException {
pub fn builder() -> crate::error::resource_not_ready_exception::Builder {
crate::error::resource_not_ready_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TooManyTagsException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
pub resource_name: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for TooManyTagsException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TooManyTagsException");
formatter.field("message", &self.message);
formatter.field("resource_name", &self.resource_name);
formatter.finish()
}
}
impl TooManyTagsException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManyTagsException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TooManyTagsException")?;
if let Some(inner_8) = &self.message {
write!(f, ": {}", inner_8)?;
}
Ok(())
}
}
impl std::error::Error for TooManyTagsException {}
pub mod too_many_tags_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>,
pub(crate) resource_name: 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 resource_name(mut self, input: impl Into<std::string::String>) -> Self {
self.resource_name = Some(input.into());
self
}
pub fn set_resource_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.resource_name = input;
self
}
pub fn build(self) -> crate::error::TooManyTagsException {
crate::error::TooManyTagsException {
message: self.message,
resource_name: self.resource_name,
}
}
}
}
impl TooManyTagsException {
pub fn builder() -> crate::error::too_many_tags_exception::Builder {
crate::error::too_many_tags_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ResourceLimitExceededException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for ResourceLimitExceededException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ResourceLimitExceededException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl ResourceLimitExceededException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ResourceLimitExceededException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ResourceLimitExceededException")?;
if let Some(inner_9) = &self.message {
write!(f, ": {}", inner_9)?;
}
Ok(())
}
}
impl std::error::Error for ResourceLimitExceededException {}
pub mod resource_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::ResourceLimitExceededException {
crate::error::ResourceLimitExceededException {
message: self.message,
}
}
}
}
impl ResourceLimitExceededException {
pub fn builder() -> crate::error::resource_limit_exceeded_exception::Builder {
crate::error::resource_limit_exceeded_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ResourceAlreadyExistsException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for ResourceAlreadyExistsException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ResourceAlreadyExistsException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl ResourceAlreadyExistsException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ResourceAlreadyExistsException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ResourceAlreadyExistsException")?;
if let Some(inner_10) = &self.message {
write!(f, ": {}", inner_10)?;
}
Ok(())
}
}
impl std::error::Error for ResourceAlreadyExistsException {}
pub mod resource_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::ResourceAlreadyExistsException {
crate::error::ResourceAlreadyExistsException {
message: self.message,
}
}
}
}
impl ResourceAlreadyExistsException {
pub fn builder() -> crate::error::resource_already_exists_exception::Builder {
crate::error::resource_already_exists_exception::Builder::default()
}
}