#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct AddSourceIdentifierToSubscriptionError {
pub kind: AddSourceIdentifierToSubscriptionErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum AddSourceIdentifierToSubscriptionErrorKind {
SourceNotFoundFault(crate::error::SourceNotFoundFault),
SubscriptionNotFoundFault(crate::error::SubscriptionNotFoundFault),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for AddSourceIdentifierToSubscriptionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
AddSourceIdentifierToSubscriptionErrorKind::SourceNotFoundFault(_inner) => {
_inner.fmt(f)
}
AddSourceIdentifierToSubscriptionErrorKind::SubscriptionNotFoundFault(_inner) => {
_inner.fmt(f)
}
AddSourceIdentifierToSubscriptionErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for AddSourceIdentifierToSubscriptionError {
fn code(&self) -> Option<&str> {
AddSourceIdentifierToSubscriptionError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl AddSourceIdentifierToSubscriptionError {
pub fn new(
kind: AddSourceIdentifierToSubscriptionErrorKind,
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: AddSourceIdentifierToSubscriptionErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: AddSourceIdentifierToSubscriptionErrorKind::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_source_not_found_fault(&self) -> bool {
matches!(
&self.kind,
AddSourceIdentifierToSubscriptionErrorKind::SourceNotFoundFault(_)
)
}
pub fn is_subscription_not_found_fault(&self) -> bool {
matches!(
&self.kind,
AddSourceIdentifierToSubscriptionErrorKind::SubscriptionNotFoundFault(_)
)
}
}
impl std::error::Error for AddSourceIdentifierToSubscriptionError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
AddSourceIdentifierToSubscriptionErrorKind::SourceNotFoundFault(_inner) => Some(_inner),
AddSourceIdentifierToSubscriptionErrorKind::SubscriptionNotFoundFault(_inner) => {
Some(_inner)
}
AddSourceIdentifierToSubscriptionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct AddTagsToResourceError {
pub kind: AddTagsToResourceErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum AddTagsToResourceErrorKind {
DbClusterNotFoundFault(crate::error::DbClusterNotFoundFault),
DbInstanceNotFoundFault(crate::error::DbInstanceNotFoundFault),
DbSnapshotNotFoundFault(crate::error::DbSnapshotNotFoundFault),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for AddTagsToResourceError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
AddTagsToResourceErrorKind::DbClusterNotFoundFault(_inner) => _inner.fmt(f),
AddTagsToResourceErrorKind::DbInstanceNotFoundFault(_inner) => _inner.fmt(f),
AddTagsToResourceErrorKind::DbSnapshotNotFoundFault(_inner) => _inner.fmt(f),
AddTagsToResourceErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for AddTagsToResourceError {
fn code(&self) -> Option<&str> {
AddTagsToResourceError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl AddTagsToResourceError {
pub fn new(kind: AddTagsToResourceErrorKind, 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: AddTagsToResourceErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: AddTagsToResourceErrorKind::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_db_cluster_not_found_fault(&self) -> bool {
matches!(
&self.kind,
AddTagsToResourceErrorKind::DbClusterNotFoundFault(_)
)
}
pub fn is_db_instance_not_found_fault(&self) -> bool {
matches!(
&self.kind,
AddTagsToResourceErrorKind::DbInstanceNotFoundFault(_)
)
}
pub fn is_db_snapshot_not_found_fault(&self) -> bool {
matches!(
&self.kind,
AddTagsToResourceErrorKind::DbSnapshotNotFoundFault(_)
)
}
}
impl std::error::Error for AddTagsToResourceError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
AddTagsToResourceErrorKind::DbClusterNotFoundFault(_inner) => Some(_inner),
AddTagsToResourceErrorKind::DbInstanceNotFoundFault(_inner) => Some(_inner),
AddTagsToResourceErrorKind::DbSnapshotNotFoundFault(_inner) => Some(_inner),
AddTagsToResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ApplyPendingMaintenanceActionError {
pub kind: ApplyPendingMaintenanceActionErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ApplyPendingMaintenanceActionErrorKind {
InvalidDbClusterStateFault(crate::error::InvalidDbClusterStateFault),
InvalidDbInstanceStateFault(crate::error::InvalidDbInstanceStateFault),
ResourceNotFoundFault(crate::error::ResourceNotFoundFault),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for ApplyPendingMaintenanceActionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ApplyPendingMaintenanceActionErrorKind::InvalidDbClusterStateFault(_inner) => {
_inner.fmt(f)
}
ApplyPendingMaintenanceActionErrorKind::InvalidDbInstanceStateFault(_inner) => {
_inner.fmt(f)
}
ApplyPendingMaintenanceActionErrorKind::ResourceNotFoundFault(_inner) => _inner.fmt(f),
ApplyPendingMaintenanceActionErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ApplyPendingMaintenanceActionError {
fn code(&self) -> Option<&str> {
ApplyPendingMaintenanceActionError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ApplyPendingMaintenanceActionError {
pub fn new(
kind: ApplyPendingMaintenanceActionErrorKind,
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: ApplyPendingMaintenanceActionErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ApplyPendingMaintenanceActionErrorKind::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_invalid_db_cluster_state_fault(&self) -> bool {
matches!(
&self.kind,
ApplyPendingMaintenanceActionErrorKind::InvalidDbClusterStateFault(_)
)
}
pub fn is_invalid_db_instance_state_fault(&self) -> bool {
matches!(
&self.kind,
ApplyPendingMaintenanceActionErrorKind::InvalidDbInstanceStateFault(_)
)
}
pub fn is_resource_not_found_fault(&self) -> bool {
matches!(
&self.kind,
ApplyPendingMaintenanceActionErrorKind::ResourceNotFoundFault(_)
)
}
}
impl std::error::Error for ApplyPendingMaintenanceActionError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ApplyPendingMaintenanceActionErrorKind::InvalidDbClusterStateFault(_inner) => {
Some(_inner)
}
ApplyPendingMaintenanceActionErrorKind::InvalidDbInstanceStateFault(_inner) => {
Some(_inner)
}
ApplyPendingMaintenanceActionErrorKind::ResourceNotFoundFault(_inner) => Some(_inner),
ApplyPendingMaintenanceActionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CopyDBClusterParameterGroupError {
pub kind: CopyDBClusterParameterGroupErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CopyDBClusterParameterGroupErrorKind {
DbParameterGroupAlreadyExistsFault(crate::error::DbParameterGroupAlreadyExistsFault),
DbParameterGroupNotFoundFault(crate::error::DbParameterGroupNotFoundFault),
DbParameterGroupQuotaExceededFault(crate::error::DbParameterGroupQuotaExceededFault),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for CopyDBClusterParameterGroupError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CopyDBClusterParameterGroupErrorKind::DbParameterGroupAlreadyExistsFault(_inner) => {
_inner.fmt(f)
}
CopyDBClusterParameterGroupErrorKind::DbParameterGroupNotFoundFault(_inner) => {
_inner.fmt(f)
}
CopyDBClusterParameterGroupErrorKind::DbParameterGroupQuotaExceededFault(_inner) => {
_inner.fmt(f)
}
CopyDBClusterParameterGroupErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CopyDBClusterParameterGroupError {
fn code(&self) -> Option<&str> {
CopyDBClusterParameterGroupError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CopyDBClusterParameterGroupError {
pub fn new(kind: CopyDBClusterParameterGroupErrorKind, 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: CopyDBClusterParameterGroupErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CopyDBClusterParameterGroupErrorKind::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_db_parameter_group_already_exists_fault(&self) -> bool {
matches!(
&self.kind,
CopyDBClusterParameterGroupErrorKind::DbParameterGroupAlreadyExistsFault(_)
)
}
pub fn is_db_parameter_group_not_found_fault(&self) -> bool {
matches!(
&self.kind,
CopyDBClusterParameterGroupErrorKind::DbParameterGroupNotFoundFault(_)
)
}
pub fn is_db_parameter_group_quota_exceeded_fault(&self) -> bool {
matches!(
&self.kind,
CopyDBClusterParameterGroupErrorKind::DbParameterGroupQuotaExceededFault(_)
)
}
}
impl std::error::Error for CopyDBClusterParameterGroupError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CopyDBClusterParameterGroupErrorKind::DbParameterGroupAlreadyExistsFault(_inner) => {
Some(_inner)
}
CopyDBClusterParameterGroupErrorKind::DbParameterGroupNotFoundFault(_inner) => {
Some(_inner)
}
CopyDBClusterParameterGroupErrorKind::DbParameterGroupQuotaExceededFault(_inner) => {
Some(_inner)
}
CopyDBClusterParameterGroupErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CopyDBClusterSnapshotError {
pub kind: CopyDBClusterSnapshotErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CopyDBClusterSnapshotErrorKind {
DbClusterSnapshotAlreadyExistsFault(crate::error::DbClusterSnapshotAlreadyExistsFault),
DbClusterSnapshotNotFoundFault(crate::error::DbClusterSnapshotNotFoundFault),
InvalidDbClusterSnapshotStateFault(crate::error::InvalidDbClusterSnapshotStateFault),
InvalidDbClusterStateFault(crate::error::InvalidDbClusterStateFault),
KmsKeyNotAccessibleFault(crate::error::KmsKeyNotAccessibleFault),
SnapshotQuotaExceededFault(crate::error::SnapshotQuotaExceededFault),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for CopyDBClusterSnapshotError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CopyDBClusterSnapshotErrorKind::DbClusterSnapshotAlreadyExistsFault(_inner) => {
_inner.fmt(f)
}
CopyDBClusterSnapshotErrorKind::DbClusterSnapshotNotFoundFault(_inner) => _inner.fmt(f),
CopyDBClusterSnapshotErrorKind::InvalidDbClusterSnapshotStateFault(_inner) => {
_inner.fmt(f)
}
CopyDBClusterSnapshotErrorKind::InvalidDbClusterStateFault(_inner) => _inner.fmt(f),
CopyDBClusterSnapshotErrorKind::KmsKeyNotAccessibleFault(_inner) => _inner.fmt(f),
CopyDBClusterSnapshotErrorKind::SnapshotQuotaExceededFault(_inner) => _inner.fmt(f),
CopyDBClusterSnapshotErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CopyDBClusterSnapshotError {
fn code(&self) -> Option<&str> {
CopyDBClusterSnapshotError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CopyDBClusterSnapshotError {
pub fn new(kind: CopyDBClusterSnapshotErrorKind, 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: CopyDBClusterSnapshotErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CopyDBClusterSnapshotErrorKind::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_db_cluster_snapshot_already_exists_fault(&self) -> bool {
matches!(
&self.kind,
CopyDBClusterSnapshotErrorKind::DbClusterSnapshotAlreadyExistsFault(_)
)
}
pub fn is_db_cluster_snapshot_not_found_fault(&self) -> bool {
matches!(
&self.kind,
CopyDBClusterSnapshotErrorKind::DbClusterSnapshotNotFoundFault(_)
)
}
pub fn is_invalid_db_cluster_snapshot_state_fault(&self) -> bool {
matches!(
&self.kind,
CopyDBClusterSnapshotErrorKind::InvalidDbClusterSnapshotStateFault(_)
)
}
pub fn is_invalid_db_cluster_state_fault(&self) -> bool {
matches!(
&self.kind,
CopyDBClusterSnapshotErrorKind::InvalidDbClusterStateFault(_)
)
}
pub fn is_kms_key_not_accessible_fault(&self) -> bool {
matches!(
&self.kind,
CopyDBClusterSnapshotErrorKind::KmsKeyNotAccessibleFault(_)
)
}
pub fn is_snapshot_quota_exceeded_fault(&self) -> bool {
matches!(
&self.kind,
CopyDBClusterSnapshotErrorKind::SnapshotQuotaExceededFault(_)
)
}
}
impl std::error::Error for CopyDBClusterSnapshotError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CopyDBClusterSnapshotErrorKind::DbClusterSnapshotAlreadyExistsFault(_inner) => {
Some(_inner)
}
CopyDBClusterSnapshotErrorKind::DbClusterSnapshotNotFoundFault(_inner) => Some(_inner),
CopyDBClusterSnapshotErrorKind::InvalidDbClusterSnapshotStateFault(_inner) => {
Some(_inner)
}
CopyDBClusterSnapshotErrorKind::InvalidDbClusterStateFault(_inner) => Some(_inner),
CopyDBClusterSnapshotErrorKind::KmsKeyNotAccessibleFault(_inner) => Some(_inner),
CopyDBClusterSnapshotErrorKind::SnapshotQuotaExceededFault(_inner) => Some(_inner),
CopyDBClusterSnapshotErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateDBClusterError {
pub kind: CreateDBClusterErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateDBClusterErrorKind {
DbClusterAlreadyExistsFault(crate::error::DbClusterAlreadyExistsFault),
DbClusterNotFoundFault(crate::error::DbClusterNotFoundFault),
DbClusterParameterGroupNotFoundFault(crate::error::DbClusterParameterGroupNotFoundFault),
DbClusterQuotaExceededFault(crate::error::DbClusterQuotaExceededFault),
DbInstanceNotFoundFault(crate::error::DbInstanceNotFoundFault),
DbSubnetGroupDoesNotCoverEnoughAZs(crate::error::DbSubnetGroupDoesNotCoverEnoughAZs),
DbSubnetGroupNotFoundFault(crate::error::DbSubnetGroupNotFoundFault),
GlobalClusterNotFoundFault(crate::error::GlobalClusterNotFoundFault),
InsufficientStorageClusterCapacityFault(crate::error::InsufficientStorageClusterCapacityFault),
InvalidDbClusterStateFault(crate::error::InvalidDbClusterStateFault),
InvalidDbInstanceStateFault(crate::error::InvalidDbInstanceStateFault),
InvalidDbSubnetGroupStateFault(crate::error::InvalidDbSubnetGroupStateFault),
InvalidGlobalClusterStateFault(crate::error::InvalidGlobalClusterStateFault),
InvalidSubnet(crate::error::InvalidSubnet),
InvalidVpcNetworkStateFault(crate::error::InvalidVpcNetworkStateFault),
KmsKeyNotAccessibleFault(crate::error::KmsKeyNotAccessibleFault),
StorageQuotaExceededFault(crate::error::StorageQuotaExceededFault),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for CreateDBClusterError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateDBClusterErrorKind::DbClusterAlreadyExistsFault(_inner) => _inner.fmt(f),
CreateDBClusterErrorKind::DbClusterNotFoundFault(_inner) => _inner.fmt(f),
CreateDBClusterErrorKind::DbClusterParameterGroupNotFoundFault(_inner) => _inner.fmt(f),
CreateDBClusterErrorKind::DbClusterQuotaExceededFault(_inner) => _inner.fmt(f),
CreateDBClusterErrorKind::DbInstanceNotFoundFault(_inner) => _inner.fmt(f),
CreateDBClusterErrorKind::DbSubnetGroupDoesNotCoverEnoughAZs(_inner) => _inner.fmt(f),
CreateDBClusterErrorKind::DbSubnetGroupNotFoundFault(_inner) => _inner.fmt(f),
CreateDBClusterErrorKind::GlobalClusterNotFoundFault(_inner) => _inner.fmt(f),
CreateDBClusterErrorKind::InsufficientStorageClusterCapacityFault(_inner) => {
_inner.fmt(f)
}
CreateDBClusterErrorKind::InvalidDbClusterStateFault(_inner) => _inner.fmt(f),
CreateDBClusterErrorKind::InvalidDbInstanceStateFault(_inner) => _inner.fmt(f),
CreateDBClusterErrorKind::InvalidDbSubnetGroupStateFault(_inner) => _inner.fmt(f),
CreateDBClusterErrorKind::InvalidGlobalClusterStateFault(_inner) => _inner.fmt(f),
CreateDBClusterErrorKind::InvalidSubnet(_inner) => _inner.fmt(f),
CreateDBClusterErrorKind::InvalidVpcNetworkStateFault(_inner) => _inner.fmt(f),
CreateDBClusterErrorKind::KmsKeyNotAccessibleFault(_inner) => _inner.fmt(f),
CreateDBClusterErrorKind::StorageQuotaExceededFault(_inner) => _inner.fmt(f),
CreateDBClusterErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateDBClusterError {
fn code(&self) -> Option<&str> {
CreateDBClusterError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateDBClusterError {
pub fn new(kind: CreateDBClusterErrorKind, 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: CreateDBClusterErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateDBClusterErrorKind::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_db_cluster_already_exists_fault(&self) -> bool {
matches!(
&self.kind,
CreateDBClusterErrorKind::DbClusterAlreadyExistsFault(_)
)
}
pub fn is_db_cluster_not_found_fault(&self) -> bool {
matches!(
&self.kind,
CreateDBClusterErrorKind::DbClusterNotFoundFault(_)
)
}
pub fn is_db_cluster_parameter_group_not_found_fault(&self) -> bool {
matches!(
&self.kind,
CreateDBClusterErrorKind::DbClusterParameterGroupNotFoundFault(_)
)
}
pub fn is_db_cluster_quota_exceeded_fault(&self) -> bool {
matches!(
&self.kind,
CreateDBClusterErrorKind::DbClusterQuotaExceededFault(_)
)
}
pub fn is_db_instance_not_found_fault(&self) -> bool {
matches!(
&self.kind,
CreateDBClusterErrorKind::DbInstanceNotFoundFault(_)
)
}
pub fn is_db_subnet_group_does_not_cover_enough_a_zs(&self) -> bool {
matches!(
&self.kind,
CreateDBClusterErrorKind::DbSubnetGroupDoesNotCoverEnoughAZs(_)
)
}
pub fn is_db_subnet_group_not_found_fault(&self) -> bool {
matches!(
&self.kind,
CreateDBClusterErrorKind::DbSubnetGroupNotFoundFault(_)
)
}
pub fn is_global_cluster_not_found_fault(&self) -> bool {
matches!(
&self.kind,
CreateDBClusterErrorKind::GlobalClusterNotFoundFault(_)
)
}
pub fn is_insufficient_storage_cluster_capacity_fault(&self) -> bool {
matches!(
&self.kind,
CreateDBClusterErrorKind::InsufficientStorageClusterCapacityFault(_)
)
}
pub fn is_invalid_db_cluster_state_fault(&self) -> bool {
matches!(
&self.kind,
CreateDBClusterErrorKind::InvalidDbClusterStateFault(_)
)
}
pub fn is_invalid_db_instance_state_fault(&self) -> bool {
matches!(
&self.kind,
CreateDBClusterErrorKind::InvalidDbInstanceStateFault(_)
)
}
pub fn is_invalid_db_subnet_group_state_fault(&self) -> bool {
matches!(
&self.kind,
CreateDBClusterErrorKind::InvalidDbSubnetGroupStateFault(_)
)
}
pub fn is_invalid_global_cluster_state_fault(&self) -> bool {
matches!(
&self.kind,
CreateDBClusterErrorKind::InvalidGlobalClusterStateFault(_)
)
}
pub fn is_invalid_subnet(&self) -> bool {
matches!(&self.kind, CreateDBClusterErrorKind::InvalidSubnet(_))
}
pub fn is_invalid_vpc_network_state_fault(&self) -> bool {
matches!(
&self.kind,
CreateDBClusterErrorKind::InvalidVpcNetworkStateFault(_)
)
}
pub fn is_kms_key_not_accessible_fault(&self) -> bool {
matches!(
&self.kind,
CreateDBClusterErrorKind::KmsKeyNotAccessibleFault(_)
)
}
pub fn is_storage_quota_exceeded_fault(&self) -> bool {
matches!(
&self.kind,
CreateDBClusterErrorKind::StorageQuotaExceededFault(_)
)
}
}
impl std::error::Error for CreateDBClusterError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateDBClusterErrorKind::DbClusterAlreadyExistsFault(_inner) => Some(_inner),
CreateDBClusterErrorKind::DbClusterNotFoundFault(_inner) => Some(_inner),
CreateDBClusterErrorKind::DbClusterParameterGroupNotFoundFault(_inner) => Some(_inner),
CreateDBClusterErrorKind::DbClusterQuotaExceededFault(_inner) => Some(_inner),
CreateDBClusterErrorKind::DbInstanceNotFoundFault(_inner) => Some(_inner),
CreateDBClusterErrorKind::DbSubnetGroupDoesNotCoverEnoughAZs(_inner) => Some(_inner),
CreateDBClusterErrorKind::DbSubnetGroupNotFoundFault(_inner) => Some(_inner),
CreateDBClusterErrorKind::GlobalClusterNotFoundFault(_inner) => Some(_inner),
CreateDBClusterErrorKind::InsufficientStorageClusterCapacityFault(_inner) => {
Some(_inner)
}
CreateDBClusterErrorKind::InvalidDbClusterStateFault(_inner) => Some(_inner),
CreateDBClusterErrorKind::InvalidDbInstanceStateFault(_inner) => Some(_inner),
CreateDBClusterErrorKind::InvalidDbSubnetGroupStateFault(_inner) => Some(_inner),
CreateDBClusterErrorKind::InvalidGlobalClusterStateFault(_inner) => Some(_inner),
CreateDBClusterErrorKind::InvalidSubnet(_inner) => Some(_inner),
CreateDBClusterErrorKind::InvalidVpcNetworkStateFault(_inner) => Some(_inner),
CreateDBClusterErrorKind::KmsKeyNotAccessibleFault(_inner) => Some(_inner),
CreateDBClusterErrorKind::StorageQuotaExceededFault(_inner) => Some(_inner),
CreateDBClusterErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateDBClusterParameterGroupError {
pub kind: CreateDBClusterParameterGroupErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateDBClusterParameterGroupErrorKind {
DbParameterGroupAlreadyExistsFault(crate::error::DbParameterGroupAlreadyExistsFault),
DbParameterGroupQuotaExceededFault(crate::error::DbParameterGroupQuotaExceededFault),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for CreateDBClusterParameterGroupError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateDBClusterParameterGroupErrorKind::DbParameterGroupAlreadyExistsFault(_inner) => {
_inner.fmt(f)
}
CreateDBClusterParameterGroupErrorKind::DbParameterGroupQuotaExceededFault(_inner) => {
_inner.fmt(f)
}
CreateDBClusterParameterGroupErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateDBClusterParameterGroupError {
fn code(&self) -> Option<&str> {
CreateDBClusterParameterGroupError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateDBClusterParameterGroupError {
pub fn new(
kind: CreateDBClusterParameterGroupErrorKind,
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: CreateDBClusterParameterGroupErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateDBClusterParameterGroupErrorKind::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_db_parameter_group_already_exists_fault(&self) -> bool {
matches!(
&self.kind,
CreateDBClusterParameterGroupErrorKind::DbParameterGroupAlreadyExistsFault(_)
)
}
pub fn is_db_parameter_group_quota_exceeded_fault(&self) -> bool {
matches!(
&self.kind,
CreateDBClusterParameterGroupErrorKind::DbParameterGroupQuotaExceededFault(_)
)
}
}
impl std::error::Error for CreateDBClusterParameterGroupError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateDBClusterParameterGroupErrorKind::DbParameterGroupAlreadyExistsFault(_inner) => {
Some(_inner)
}
CreateDBClusterParameterGroupErrorKind::DbParameterGroupQuotaExceededFault(_inner) => {
Some(_inner)
}
CreateDBClusterParameterGroupErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateDBClusterSnapshotError {
pub kind: CreateDBClusterSnapshotErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateDBClusterSnapshotErrorKind {
DbClusterNotFoundFault(crate::error::DbClusterNotFoundFault),
DbClusterSnapshotAlreadyExistsFault(crate::error::DbClusterSnapshotAlreadyExistsFault),
InvalidDbClusterSnapshotStateFault(crate::error::InvalidDbClusterSnapshotStateFault),
InvalidDbClusterStateFault(crate::error::InvalidDbClusterStateFault),
SnapshotQuotaExceededFault(crate::error::SnapshotQuotaExceededFault),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for CreateDBClusterSnapshotError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateDBClusterSnapshotErrorKind::DbClusterNotFoundFault(_inner) => _inner.fmt(f),
CreateDBClusterSnapshotErrorKind::DbClusterSnapshotAlreadyExistsFault(_inner) => {
_inner.fmt(f)
}
CreateDBClusterSnapshotErrorKind::InvalidDbClusterSnapshotStateFault(_inner) => {
_inner.fmt(f)
}
CreateDBClusterSnapshotErrorKind::InvalidDbClusterStateFault(_inner) => _inner.fmt(f),
CreateDBClusterSnapshotErrorKind::SnapshotQuotaExceededFault(_inner) => _inner.fmt(f),
CreateDBClusterSnapshotErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateDBClusterSnapshotError {
fn code(&self) -> Option<&str> {
CreateDBClusterSnapshotError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateDBClusterSnapshotError {
pub fn new(kind: CreateDBClusterSnapshotErrorKind, 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: CreateDBClusterSnapshotErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateDBClusterSnapshotErrorKind::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_db_cluster_not_found_fault(&self) -> bool {
matches!(
&self.kind,
CreateDBClusterSnapshotErrorKind::DbClusterNotFoundFault(_)
)
}
pub fn is_db_cluster_snapshot_already_exists_fault(&self) -> bool {
matches!(
&self.kind,
CreateDBClusterSnapshotErrorKind::DbClusterSnapshotAlreadyExistsFault(_)
)
}
pub fn is_invalid_db_cluster_snapshot_state_fault(&self) -> bool {
matches!(
&self.kind,
CreateDBClusterSnapshotErrorKind::InvalidDbClusterSnapshotStateFault(_)
)
}
pub fn is_invalid_db_cluster_state_fault(&self) -> bool {
matches!(
&self.kind,
CreateDBClusterSnapshotErrorKind::InvalidDbClusterStateFault(_)
)
}
pub fn is_snapshot_quota_exceeded_fault(&self) -> bool {
matches!(
&self.kind,
CreateDBClusterSnapshotErrorKind::SnapshotQuotaExceededFault(_)
)
}
}
impl std::error::Error for CreateDBClusterSnapshotError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateDBClusterSnapshotErrorKind::DbClusterNotFoundFault(_inner) => Some(_inner),
CreateDBClusterSnapshotErrorKind::DbClusterSnapshotAlreadyExistsFault(_inner) => {
Some(_inner)
}
CreateDBClusterSnapshotErrorKind::InvalidDbClusterSnapshotStateFault(_inner) => {
Some(_inner)
}
CreateDBClusterSnapshotErrorKind::InvalidDbClusterStateFault(_inner) => Some(_inner),
CreateDBClusterSnapshotErrorKind::SnapshotQuotaExceededFault(_inner) => Some(_inner),
CreateDBClusterSnapshotErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateDBInstanceError {
pub kind: CreateDBInstanceErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateDBInstanceErrorKind {
AuthorizationNotFoundFault(crate::error::AuthorizationNotFoundFault),
DbClusterNotFoundFault(crate::error::DbClusterNotFoundFault),
DbInstanceAlreadyExistsFault(crate::error::DbInstanceAlreadyExistsFault),
DbParameterGroupNotFoundFault(crate::error::DbParameterGroupNotFoundFault),
DbSecurityGroupNotFoundFault(crate::error::DbSecurityGroupNotFoundFault),
DbSubnetGroupDoesNotCoverEnoughAZs(crate::error::DbSubnetGroupDoesNotCoverEnoughAZs),
DbSubnetGroupNotFoundFault(crate::error::DbSubnetGroupNotFoundFault),
InstanceQuotaExceededFault(crate::error::InstanceQuotaExceededFault),
InsufficientDbInstanceCapacityFault(crate::error::InsufficientDbInstanceCapacityFault),
InvalidDbClusterStateFault(crate::error::InvalidDbClusterStateFault),
InvalidSubnet(crate::error::InvalidSubnet),
InvalidVpcNetworkStateFault(crate::error::InvalidVpcNetworkStateFault),
KmsKeyNotAccessibleFault(crate::error::KmsKeyNotAccessibleFault),
StorageQuotaExceededFault(crate::error::StorageQuotaExceededFault),
StorageTypeNotSupportedFault(crate::error::StorageTypeNotSupportedFault),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for CreateDBInstanceError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateDBInstanceErrorKind::AuthorizationNotFoundFault(_inner) => _inner.fmt(f),
CreateDBInstanceErrorKind::DbClusterNotFoundFault(_inner) => _inner.fmt(f),
CreateDBInstanceErrorKind::DbInstanceAlreadyExistsFault(_inner) => _inner.fmt(f),
CreateDBInstanceErrorKind::DbParameterGroupNotFoundFault(_inner) => _inner.fmt(f),
CreateDBInstanceErrorKind::DbSecurityGroupNotFoundFault(_inner) => _inner.fmt(f),
CreateDBInstanceErrorKind::DbSubnetGroupDoesNotCoverEnoughAZs(_inner) => _inner.fmt(f),
CreateDBInstanceErrorKind::DbSubnetGroupNotFoundFault(_inner) => _inner.fmt(f),
CreateDBInstanceErrorKind::InstanceQuotaExceededFault(_inner) => _inner.fmt(f),
CreateDBInstanceErrorKind::InsufficientDbInstanceCapacityFault(_inner) => _inner.fmt(f),
CreateDBInstanceErrorKind::InvalidDbClusterStateFault(_inner) => _inner.fmt(f),
CreateDBInstanceErrorKind::InvalidSubnet(_inner) => _inner.fmt(f),
CreateDBInstanceErrorKind::InvalidVpcNetworkStateFault(_inner) => _inner.fmt(f),
CreateDBInstanceErrorKind::KmsKeyNotAccessibleFault(_inner) => _inner.fmt(f),
CreateDBInstanceErrorKind::StorageQuotaExceededFault(_inner) => _inner.fmt(f),
CreateDBInstanceErrorKind::StorageTypeNotSupportedFault(_inner) => _inner.fmt(f),
CreateDBInstanceErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateDBInstanceError {
fn code(&self) -> Option<&str> {
CreateDBInstanceError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateDBInstanceError {
pub fn new(kind: CreateDBInstanceErrorKind, 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: CreateDBInstanceErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateDBInstanceErrorKind::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_authorization_not_found_fault(&self) -> bool {
matches!(
&self.kind,
CreateDBInstanceErrorKind::AuthorizationNotFoundFault(_)
)
}
pub fn is_db_cluster_not_found_fault(&self) -> bool {
matches!(
&self.kind,
CreateDBInstanceErrorKind::DbClusterNotFoundFault(_)
)
}
pub fn is_db_instance_already_exists_fault(&self) -> bool {
matches!(
&self.kind,
CreateDBInstanceErrorKind::DbInstanceAlreadyExistsFault(_)
)
}
pub fn is_db_parameter_group_not_found_fault(&self) -> bool {
matches!(
&self.kind,
CreateDBInstanceErrorKind::DbParameterGroupNotFoundFault(_)
)
}
pub fn is_db_security_group_not_found_fault(&self) -> bool {
matches!(
&self.kind,
CreateDBInstanceErrorKind::DbSecurityGroupNotFoundFault(_)
)
}
pub fn is_db_subnet_group_does_not_cover_enough_a_zs(&self) -> bool {
matches!(
&self.kind,
CreateDBInstanceErrorKind::DbSubnetGroupDoesNotCoverEnoughAZs(_)
)
}
pub fn is_db_subnet_group_not_found_fault(&self) -> bool {
matches!(
&self.kind,
CreateDBInstanceErrorKind::DbSubnetGroupNotFoundFault(_)
)
}
pub fn is_instance_quota_exceeded_fault(&self) -> bool {
matches!(
&self.kind,
CreateDBInstanceErrorKind::InstanceQuotaExceededFault(_)
)
}
pub fn is_insufficient_db_instance_capacity_fault(&self) -> bool {
matches!(
&self.kind,
CreateDBInstanceErrorKind::InsufficientDbInstanceCapacityFault(_)
)
}
pub fn is_invalid_db_cluster_state_fault(&self) -> bool {
matches!(
&self.kind,
CreateDBInstanceErrorKind::InvalidDbClusterStateFault(_)
)
}
pub fn is_invalid_subnet(&self) -> bool {
matches!(&self.kind, CreateDBInstanceErrorKind::InvalidSubnet(_))
}
pub fn is_invalid_vpc_network_state_fault(&self) -> bool {
matches!(
&self.kind,
CreateDBInstanceErrorKind::InvalidVpcNetworkStateFault(_)
)
}
pub fn is_kms_key_not_accessible_fault(&self) -> bool {
matches!(
&self.kind,
CreateDBInstanceErrorKind::KmsKeyNotAccessibleFault(_)
)
}
pub fn is_storage_quota_exceeded_fault(&self) -> bool {
matches!(
&self.kind,
CreateDBInstanceErrorKind::StorageQuotaExceededFault(_)
)
}
pub fn is_storage_type_not_supported_fault(&self) -> bool {
matches!(
&self.kind,
CreateDBInstanceErrorKind::StorageTypeNotSupportedFault(_)
)
}
}
impl std::error::Error for CreateDBInstanceError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateDBInstanceErrorKind::AuthorizationNotFoundFault(_inner) => Some(_inner),
CreateDBInstanceErrorKind::DbClusterNotFoundFault(_inner) => Some(_inner),
CreateDBInstanceErrorKind::DbInstanceAlreadyExistsFault(_inner) => Some(_inner),
CreateDBInstanceErrorKind::DbParameterGroupNotFoundFault(_inner) => Some(_inner),
CreateDBInstanceErrorKind::DbSecurityGroupNotFoundFault(_inner) => Some(_inner),
CreateDBInstanceErrorKind::DbSubnetGroupDoesNotCoverEnoughAZs(_inner) => Some(_inner),
CreateDBInstanceErrorKind::DbSubnetGroupNotFoundFault(_inner) => Some(_inner),
CreateDBInstanceErrorKind::InstanceQuotaExceededFault(_inner) => Some(_inner),
CreateDBInstanceErrorKind::InsufficientDbInstanceCapacityFault(_inner) => Some(_inner),
CreateDBInstanceErrorKind::InvalidDbClusterStateFault(_inner) => Some(_inner),
CreateDBInstanceErrorKind::InvalidSubnet(_inner) => Some(_inner),
CreateDBInstanceErrorKind::InvalidVpcNetworkStateFault(_inner) => Some(_inner),
CreateDBInstanceErrorKind::KmsKeyNotAccessibleFault(_inner) => Some(_inner),
CreateDBInstanceErrorKind::StorageQuotaExceededFault(_inner) => Some(_inner),
CreateDBInstanceErrorKind::StorageTypeNotSupportedFault(_inner) => Some(_inner),
CreateDBInstanceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateDBSubnetGroupError {
pub kind: CreateDBSubnetGroupErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateDBSubnetGroupErrorKind {
DbSubnetGroupAlreadyExistsFault(crate::error::DbSubnetGroupAlreadyExistsFault),
DbSubnetGroupDoesNotCoverEnoughAZs(crate::error::DbSubnetGroupDoesNotCoverEnoughAZs),
DbSubnetGroupQuotaExceededFault(crate::error::DbSubnetGroupQuotaExceededFault),
DbSubnetQuotaExceededFault(crate::error::DbSubnetQuotaExceededFault),
InvalidSubnet(crate::error::InvalidSubnet),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for CreateDBSubnetGroupError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateDBSubnetGroupErrorKind::DbSubnetGroupAlreadyExistsFault(_inner) => _inner.fmt(f),
CreateDBSubnetGroupErrorKind::DbSubnetGroupDoesNotCoverEnoughAZs(_inner) => {
_inner.fmt(f)
}
CreateDBSubnetGroupErrorKind::DbSubnetGroupQuotaExceededFault(_inner) => _inner.fmt(f),
CreateDBSubnetGroupErrorKind::DbSubnetQuotaExceededFault(_inner) => _inner.fmt(f),
CreateDBSubnetGroupErrorKind::InvalidSubnet(_inner) => _inner.fmt(f),
CreateDBSubnetGroupErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateDBSubnetGroupError {
fn code(&self) -> Option<&str> {
CreateDBSubnetGroupError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateDBSubnetGroupError {
pub fn new(kind: CreateDBSubnetGroupErrorKind, 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: CreateDBSubnetGroupErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateDBSubnetGroupErrorKind::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_db_subnet_group_already_exists_fault(&self) -> bool {
matches!(
&self.kind,
CreateDBSubnetGroupErrorKind::DbSubnetGroupAlreadyExistsFault(_)
)
}
pub fn is_db_subnet_group_does_not_cover_enough_a_zs(&self) -> bool {
matches!(
&self.kind,
CreateDBSubnetGroupErrorKind::DbSubnetGroupDoesNotCoverEnoughAZs(_)
)
}
pub fn is_db_subnet_group_quota_exceeded_fault(&self) -> bool {
matches!(
&self.kind,
CreateDBSubnetGroupErrorKind::DbSubnetGroupQuotaExceededFault(_)
)
}
pub fn is_db_subnet_quota_exceeded_fault(&self) -> bool {
matches!(
&self.kind,
CreateDBSubnetGroupErrorKind::DbSubnetQuotaExceededFault(_)
)
}
pub fn is_invalid_subnet(&self) -> bool {
matches!(&self.kind, CreateDBSubnetGroupErrorKind::InvalidSubnet(_))
}
}
impl std::error::Error for CreateDBSubnetGroupError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateDBSubnetGroupErrorKind::DbSubnetGroupAlreadyExistsFault(_inner) => Some(_inner),
CreateDBSubnetGroupErrorKind::DbSubnetGroupDoesNotCoverEnoughAZs(_inner) => {
Some(_inner)
}
CreateDBSubnetGroupErrorKind::DbSubnetGroupQuotaExceededFault(_inner) => Some(_inner),
CreateDBSubnetGroupErrorKind::DbSubnetQuotaExceededFault(_inner) => Some(_inner),
CreateDBSubnetGroupErrorKind::InvalidSubnet(_inner) => Some(_inner),
CreateDBSubnetGroupErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateEventSubscriptionError {
pub kind: CreateEventSubscriptionErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateEventSubscriptionErrorKind {
EventSubscriptionQuotaExceededFault(crate::error::EventSubscriptionQuotaExceededFault),
SnsInvalidTopicFault(crate::error::SnsInvalidTopicFault),
SnsNoAuthorizationFault(crate::error::SnsNoAuthorizationFault),
SnsTopicArnNotFoundFault(crate::error::SnsTopicArnNotFoundFault),
SourceNotFoundFault(crate::error::SourceNotFoundFault),
SubscriptionAlreadyExistFault(crate::error::SubscriptionAlreadyExistFault),
SubscriptionCategoryNotFoundFault(crate::error::SubscriptionCategoryNotFoundFault),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for CreateEventSubscriptionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateEventSubscriptionErrorKind::EventSubscriptionQuotaExceededFault(_inner) => {
_inner.fmt(f)
}
CreateEventSubscriptionErrorKind::SnsInvalidTopicFault(_inner) => _inner.fmt(f),
CreateEventSubscriptionErrorKind::SnsNoAuthorizationFault(_inner) => _inner.fmt(f),
CreateEventSubscriptionErrorKind::SnsTopicArnNotFoundFault(_inner) => _inner.fmt(f),
CreateEventSubscriptionErrorKind::SourceNotFoundFault(_inner) => _inner.fmt(f),
CreateEventSubscriptionErrorKind::SubscriptionAlreadyExistFault(_inner) => {
_inner.fmt(f)
}
CreateEventSubscriptionErrorKind::SubscriptionCategoryNotFoundFault(_inner) => {
_inner.fmt(f)
}
CreateEventSubscriptionErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateEventSubscriptionError {
fn code(&self) -> Option<&str> {
CreateEventSubscriptionError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateEventSubscriptionError {
pub fn new(kind: CreateEventSubscriptionErrorKind, 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: CreateEventSubscriptionErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateEventSubscriptionErrorKind::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_event_subscription_quota_exceeded_fault(&self) -> bool {
matches!(
&self.kind,
CreateEventSubscriptionErrorKind::EventSubscriptionQuotaExceededFault(_)
)
}
pub fn is_sns_invalid_topic_fault(&self) -> bool {
matches!(
&self.kind,
CreateEventSubscriptionErrorKind::SnsInvalidTopicFault(_)
)
}
pub fn is_sns_no_authorization_fault(&self) -> bool {
matches!(
&self.kind,
CreateEventSubscriptionErrorKind::SnsNoAuthorizationFault(_)
)
}
pub fn is_sns_topic_arn_not_found_fault(&self) -> bool {
matches!(
&self.kind,
CreateEventSubscriptionErrorKind::SnsTopicArnNotFoundFault(_)
)
}
pub fn is_source_not_found_fault(&self) -> bool {
matches!(
&self.kind,
CreateEventSubscriptionErrorKind::SourceNotFoundFault(_)
)
}
pub fn is_subscription_already_exist_fault(&self) -> bool {
matches!(
&self.kind,
CreateEventSubscriptionErrorKind::SubscriptionAlreadyExistFault(_)
)
}
pub fn is_subscription_category_not_found_fault(&self) -> bool {
matches!(
&self.kind,
CreateEventSubscriptionErrorKind::SubscriptionCategoryNotFoundFault(_)
)
}
}
impl std::error::Error for CreateEventSubscriptionError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateEventSubscriptionErrorKind::EventSubscriptionQuotaExceededFault(_inner) => {
Some(_inner)
}
CreateEventSubscriptionErrorKind::SnsInvalidTopicFault(_inner) => Some(_inner),
CreateEventSubscriptionErrorKind::SnsNoAuthorizationFault(_inner) => Some(_inner),
CreateEventSubscriptionErrorKind::SnsTopicArnNotFoundFault(_inner) => Some(_inner),
CreateEventSubscriptionErrorKind::SourceNotFoundFault(_inner) => Some(_inner),
CreateEventSubscriptionErrorKind::SubscriptionAlreadyExistFault(_inner) => Some(_inner),
CreateEventSubscriptionErrorKind::SubscriptionCategoryNotFoundFault(_inner) => {
Some(_inner)
}
CreateEventSubscriptionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateGlobalClusterError {
pub kind: CreateGlobalClusterErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateGlobalClusterErrorKind {
DbClusterNotFoundFault(crate::error::DbClusterNotFoundFault),
GlobalClusterAlreadyExistsFault(crate::error::GlobalClusterAlreadyExistsFault),
GlobalClusterQuotaExceededFault(crate::error::GlobalClusterQuotaExceededFault),
InvalidDbClusterStateFault(crate::error::InvalidDbClusterStateFault),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for CreateGlobalClusterError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateGlobalClusterErrorKind::DbClusterNotFoundFault(_inner) => _inner.fmt(f),
CreateGlobalClusterErrorKind::GlobalClusterAlreadyExistsFault(_inner) => _inner.fmt(f),
CreateGlobalClusterErrorKind::GlobalClusterQuotaExceededFault(_inner) => _inner.fmt(f),
CreateGlobalClusterErrorKind::InvalidDbClusterStateFault(_inner) => _inner.fmt(f),
CreateGlobalClusterErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateGlobalClusterError {
fn code(&self) -> Option<&str> {
CreateGlobalClusterError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateGlobalClusterError {
pub fn new(kind: CreateGlobalClusterErrorKind, 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: CreateGlobalClusterErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateGlobalClusterErrorKind::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_db_cluster_not_found_fault(&self) -> bool {
matches!(
&self.kind,
CreateGlobalClusterErrorKind::DbClusterNotFoundFault(_)
)
}
pub fn is_global_cluster_already_exists_fault(&self) -> bool {
matches!(
&self.kind,
CreateGlobalClusterErrorKind::GlobalClusterAlreadyExistsFault(_)
)
}
pub fn is_global_cluster_quota_exceeded_fault(&self) -> bool {
matches!(
&self.kind,
CreateGlobalClusterErrorKind::GlobalClusterQuotaExceededFault(_)
)
}
pub fn is_invalid_db_cluster_state_fault(&self) -> bool {
matches!(
&self.kind,
CreateGlobalClusterErrorKind::InvalidDbClusterStateFault(_)
)
}
}
impl std::error::Error for CreateGlobalClusterError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateGlobalClusterErrorKind::DbClusterNotFoundFault(_inner) => Some(_inner),
CreateGlobalClusterErrorKind::GlobalClusterAlreadyExistsFault(_inner) => Some(_inner),
CreateGlobalClusterErrorKind::GlobalClusterQuotaExceededFault(_inner) => Some(_inner),
CreateGlobalClusterErrorKind::InvalidDbClusterStateFault(_inner) => Some(_inner),
CreateGlobalClusterErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteDBClusterError {
pub kind: DeleteDBClusterErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteDBClusterErrorKind {
DbClusterNotFoundFault(crate::error::DbClusterNotFoundFault),
DbClusterSnapshotAlreadyExistsFault(crate::error::DbClusterSnapshotAlreadyExistsFault),
InvalidDbClusterSnapshotStateFault(crate::error::InvalidDbClusterSnapshotStateFault),
InvalidDbClusterStateFault(crate::error::InvalidDbClusterStateFault),
SnapshotQuotaExceededFault(crate::error::SnapshotQuotaExceededFault),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DeleteDBClusterError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteDBClusterErrorKind::DbClusterNotFoundFault(_inner) => _inner.fmt(f),
DeleteDBClusterErrorKind::DbClusterSnapshotAlreadyExistsFault(_inner) => _inner.fmt(f),
DeleteDBClusterErrorKind::InvalidDbClusterSnapshotStateFault(_inner) => _inner.fmt(f),
DeleteDBClusterErrorKind::InvalidDbClusterStateFault(_inner) => _inner.fmt(f),
DeleteDBClusterErrorKind::SnapshotQuotaExceededFault(_inner) => _inner.fmt(f),
DeleteDBClusterErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteDBClusterError {
fn code(&self) -> Option<&str> {
DeleteDBClusterError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteDBClusterError {
pub fn new(kind: DeleteDBClusterErrorKind, 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: DeleteDBClusterErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteDBClusterErrorKind::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_db_cluster_not_found_fault(&self) -> bool {
matches!(
&self.kind,
DeleteDBClusterErrorKind::DbClusterNotFoundFault(_)
)
}
pub fn is_db_cluster_snapshot_already_exists_fault(&self) -> bool {
matches!(
&self.kind,
DeleteDBClusterErrorKind::DbClusterSnapshotAlreadyExistsFault(_)
)
}
pub fn is_invalid_db_cluster_snapshot_state_fault(&self) -> bool {
matches!(
&self.kind,
DeleteDBClusterErrorKind::InvalidDbClusterSnapshotStateFault(_)
)
}
pub fn is_invalid_db_cluster_state_fault(&self) -> bool {
matches!(
&self.kind,
DeleteDBClusterErrorKind::InvalidDbClusterStateFault(_)
)
}
pub fn is_snapshot_quota_exceeded_fault(&self) -> bool {
matches!(
&self.kind,
DeleteDBClusterErrorKind::SnapshotQuotaExceededFault(_)
)
}
}
impl std::error::Error for DeleteDBClusterError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteDBClusterErrorKind::DbClusterNotFoundFault(_inner) => Some(_inner),
DeleteDBClusterErrorKind::DbClusterSnapshotAlreadyExistsFault(_inner) => Some(_inner),
DeleteDBClusterErrorKind::InvalidDbClusterSnapshotStateFault(_inner) => Some(_inner),
DeleteDBClusterErrorKind::InvalidDbClusterStateFault(_inner) => Some(_inner),
DeleteDBClusterErrorKind::SnapshotQuotaExceededFault(_inner) => Some(_inner),
DeleteDBClusterErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteDBClusterParameterGroupError {
pub kind: DeleteDBClusterParameterGroupErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteDBClusterParameterGroupErrorKind {
DbParameterGroupNotFoundFault(crate::error::DbParameterGroupNotFoundFault),
InvalidDbParameterGroupStateFault(crate::error::InvalidDbParameterGroupStateFault),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DeleteDBClusterParameterGroupError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteDBClusterParameterGroupErrorKind::DbParameterGroupNotFoundFault(_inner) => {
_inner.fmt(f)
}
DeleteDBClusterParameterGroupErrorKind::InvalidDbParameterGroupStateFault(_inner) => {
_inner.fmt(f)
}
DeleteDBClusterParameterGroupErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteDBClusterParameterGroupError {
fn code(&self) -> Option<&str> {
DeleteDBClusterParameterGroupError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteDBClusterParameterGroupError {
pub fn new(
kind: DeleteDBClusterParameterGroupErrorKind,
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: DeleteDBClusterParameterGroupErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteDBClusterParameterGroupErrorKind::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_db_parameter_group_not_found_fault(&self) -> bool {
matches!(
&self.kind,
DeleteDBClusterParameterGroupErrorKind::DbParameterGroupNotFoundFault(_)
)
}
pub fn is_invalid_db_parameter_group_state_fault(&self) -> bool {
matches!(
&self.kind,
DeleteDBClusterParameterGroupErrorKind::InvalidDbParameterGroupStateFault(_)
)
}
}
impl std::error::Error for DeleteDBClusterParameterGroupError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteDBClusterParameterGroupErrorKind::DbParameterGroupNotFoundFault(_inner) => {
Some(_inner)
}
DeleteDBClusterParameterGroupErrorKind::InvalidDbParameterGroupStateFault(_inner) => {
Some(_inner)
}
DeleteDBClusterParameterGroupErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteDBClusterSnapshotError {
pub kind: DeleteDBClusterSnapshotErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteDBClusterSnapshotErrorKind {
DbClusterSnapshotNotFoundFault(crate::error::DbClusterSnapshotNotFoundFault),
InvalidDbClusterSnapshotStateFault(crate::error::InvalidDbClusterSnapshotStateFault),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DeleteDBClusterSnapshotError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteDBClusterSnapshotErrorKind::DbClusterSnapshotNotFoundFault(_inner) => {
_inner.fmt(f)
}
DeleteDBClusterSnapshotErrorKind::InvalidDbClusterSnapshotStateFault(_inner) => {
_inner.fmt(f)
}
DeleteDBClusterSnapshotErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteDBClusterSnapshotError {
fn code(&self) -> Option<&str> {
DeleteDBClusterSnapshotError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteDBClusterSnapshotError {
pub fn new(kind: DeleteDBClusterSnapshotErrorKind, 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: DeleteDBClusterSnapshotErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteDBClusterSnapshotErrorKind::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_db_cluster_snapshot_not_found_fault(&self) -> bool {
matches!(
&self.kind,
DeleteDBClusterSnapshotErrorKind::DbClusterSnapshotNotFoundFault(_)
)
}
pub fn is_invalid_db_cluster_snapshot_state_fault(&self) -> bool {
matches!(
&self.kind,
DeleteDBClusterSnapshotErrorKind::InvalidDbClusterSnapshotStateFault(_)
)
}
}
impl std::error::Error for DeleteDBClusterSnapshotError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteDBClusterSnapshotErrorKind::DbClusterSnapshotNotFoundFault(_inner) => {
Some(_inner)
}
DeleteDBClusterSnapshotErrorKind::InvalidDbClusterSnapshotStateFault(_inner) => {
Some(_inner)
}
DeleteDBClusterSnapshotErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteDBInstanceError {
pub kind: DeleteDBInstanceErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteDBInstanceErrorKind {
DbInstanceNotFoundFault(crate::error::DbInstanceNotFoundFault),
DbSnapshotAlreadyExistsFault(crate::error::DbSnapshotAlreadyExistsFault),
InvalidDbClusterStateFault(crate::error::InvalidDbClusterStateFault),
InvalidDbInstanceStateFault(crate::error::InvalidDbInstanceStateFault),
SnapshotQuotaExceededFault(crate::error::SnapshotQuotaExceededFault),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DeleteDBInstanceError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteDBInstanceErrorKind::DbInstanceNotFoundFault(_inner) => _inner.fmt(f),
DeleteDBInstanceErrorKind::DbSnapshotAlreadyExistsFault(_inner) => _inner.fmt(f),
DeleteDBInstanceErrorKind::InvalidDbClusterStateFault(_inner) => _inner.fmt(f),
DeleteDBInstanceErrorKind::InvalidDbInstanceStateFault(_inner) => _inner.fmt(f),
DeleteDBInstanceErrorKind::SnapshotQuotaExceededFault(_inner) => _inner.fmt(f),
DeleteDBInstanceErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteDBInstanceError {
fn code(&self) -> Option<&str> {
DeleteDBInstanceError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteDBInstanceError {
pub fn new(kind: DeleteDBInstanceErrorKind, 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: DeleteDBInstanceErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteDBInstanceErrorKind::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_db_instance_not_found_fault(&self) -> bool {
matches!(
&self.kind,
DeleteDBInstanceErrorKind::DbInstanceNotFoundFault(_)
)
}
pub fn is_db_snapshot_already_exists_fault(&self) -> bool {
matches!(
&self.kind,
DeleteDBInstanceErrorKind::DbSnapshotAlreadyExistsFault(_)
)
}
pub fn is_invalid_db_cluster_state_fault(&self) -> bool {
matches!(
&self.kind,
DeleteDBInstanceErrorKind::InvalidDbClusterStateFault(_)
)
}
pub fn is_invalid_db_instance_state_fault(&self) -> bool {
matches!(
&self.kind,
DeleteDBInstanceErrorKind::InvalidDbInstanceStateFault(_)
)
}
pub fn is_snapshot_quota_exceeded_fault(&self) -> bool {
matches!(
&self.kind,
DeleteDBInstanceErrorKind::SnapshotQuotaExceededFault(_)
)
}
}
impl std::error::Error for DeleteDBInstanceError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteDBInstanceErrorKind::DbInstanceNotFoundFault(_inner) => Some(_inner),
DeleteDBInstanceErrorKind::DbSnapshotAlreadyExistsFault(_inner) => Some(_inner),
DeleteDBInstanceErrorKind::InvalidDbClusterStateFault(_inner) => Some(_inner),
DeleteDBInstanceErrorKind::InvalidDbInstanceStateFault(_inner) => Some(_inner),
DeleteDBInstanceErrorKind::SnapshotQuotaExceededFault(_inner) => Some(_inner),
DeleteDBInstanceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteDBSubnetGroupError {
pub kind: DeleteDBSubnetGroupErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteDBSubnetGroupErrorKind {
DbSubnetGroupNotFoundFault(crate::error::DbSubnetGroupNotFoundFault),
InvalidDbSubnetGroupStateFault(crate::error::InvalidDbSubnetGroupStateFault),
InvalidDbSubnetStateFault(crate::error::InvalidDbSubnetStateFault),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DeleteDBSubnetGroupError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteDBSubnetGroupErrorKind::DbSubnetGroupNotFoundFault(_inner) => _inner.fmt(f),
DeleteDBSubnetGroupErrorKind::InvalidDbSubnetGroupStateFault(_inner) => _inner.fmt(f),
DeleteDBSubnetGroupErrorKind::InvalidDbSubnetStateFault(_inner) => _inner.fmt(f),
DeleteDBSubnetGroupErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteDBSubnetGroupError {
fn code(&self) -> Option<&str> {
DeleteDBSubnetGroupError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteDBSubnetGroupError {
pub fn new(kind: DeleteDBSubnetGroupErrorKind, 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: DeleteDBSubnetGroupErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteDBSubnetGroupErrorKind::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_db_subnet_group_not_found_fault(&self) -> bool {
matches!(
&self.kind,
DeleteDBSubnetGroupErrorKind::DbSubnetGroupNotFoundFault(_)
)
}
pub fn is_invalid_db_subnet_group_state_fault(&self) -> bool {
matches!(
&self.kind,
DeleteDBSubnetGroupErrorKind::InvalidDbSubnetGroupStateFault(_)
)
}
pub fn is_invalid_db_subnet_state_fault(&self) -> bool {
matches!(
&self.kind,
DeleteDBSubnetGroupErrorKind::InvalidDbSubnetStateFault(_)
)
}
}
impl std::error::Error for DeleteDBSubnetGroupError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteDBSubnetGroupErrorKind::DbSubnetGroupNotFoundFault(_inner) => Some(_inner),
DeleteDBSubnetGroupErrorKind::InvalidDbSubnetGroupStateFault(_inner) => Some(_inner),
DeleteDBSubnetGroupErrorKind::InvalidDbSubnetStateFault(_inner) => Some(_inner),
DeleteDBSubnetGroupErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteEventSubscriptionError {
pub kind: DeleteEventSubscriptionErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteEventSubscriptionErrorKind {
InvalidEventSubscriptionStateFault(crate::error::InvalidEventSubscriptionStateFault),
SubscriptionNotFoundFault(crate::error::SubscriptionNotFoundFault),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DeleteEventSubscriptionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteEventSubscriptionErrorKind::InvalidEventSubscriptionStateFault(_inner) => {
_inner.fmt(f)
}
DeleteEventSubscriptionErrorKind::SubscriptionNotFoundFault(_inner) => _inner.fmt(f),
DeleteEventSubscriptionErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteEventSubscriptionError {
fn code(&self) -> Option<&str> {
DeleteEventSubscriptionError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteEventSubscriptionError {
pub fn new(kind: DeleteEventSubscriptionErrorKind, 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: DeleteEventSubscriptionErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteEventSubscriptionErrorKind::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_invalid_event_subscription_state_fault(&self) -> bool {
matches!(
&self.kind,
DeleteEventSubscriptionErrorKind::InvalidEventSubscriptionStateFault(_)
)
}
pub fn is_subscription_not_found_fault(&self) -> bool {
matches!(
&self.kind,
DeleteEventSubscriptionErrorKind::SubscriptionNotFoundFault(_)
)
}
}
impl std::error::Error for DeleteEventSubscriptionError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteEventSubscriptionErrorKind::InvalidEventSubscriptionStateFault(_inner) => {
Some(_inner)
}
DeleteEventSubscriptionErrorKind::SubscriptionNotFoundFault(_inner) => Some(_inner),
DeleteEventSubscriptionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteGlobalClusterError {
pub kind: DeleteGlobalClusterErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteGlobalClusterErrorKind {
GlobalClusterNotFoundFault(crate::error::GlobalClusterNotFoundFault),
InvalidGlobalClusterStateFault(crate::error::InvalidGlobalClusterStateFault),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DeleteGlobalClusterError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteGlobalClusterErrorKind::GlobalClusterNotFoundFault(_inner) => _inner.fmt(f),
DeleteGlobalClusterErrorKind::InvalidGlobalClusterStateFault(_inner) => _inner.fmt(f),
DeleteGlobalClusterErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteGlobalClusterError {
fn code(&self) -> Option<&str> {
DeleteGlobalClusterError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteGlobalClusterError {
pub fn new(kind: DeleteGlobalClusterErrorKind, 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: DeleteGlobalClusterErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteGlobalClusterErrorKind::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_global_cluster_not_found_fault(&self) -> bool {
matches!(
&self.kind,
DeleteGlobalClusterErrorKind::GlobalClusterNotFoundFault(_)
)
}
pub fn is_invalid_global_cluster_state_fault(&self) -> bool {
matches!(
&self.kind,
DeleteGlobalClusterErrorKind::InvalidGlobalClusterStateFault(_)
)
}
}
impl std::error::Error for DeleteGlobalClusterError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteGlobalClusterErrorKind::GlobalClusterNotFoundFault(_inner) => Some(_inner),
DeleteGlobalClusterErrorKind::InvalidGlobalClusterStateFault(_inner) => Some(_inner),
DeleteGlobalClusterErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeCertificatesError {
pub kind: DescribeCertificatesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeCertificatesErrorKind {
CertificateNotFoundFault(crate::error::CertificateNotFoundFault),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DescribeCertificatesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeCertificatesErrorKind::CertificateNotFoundFault(_inner) => _inner.fmt(f),
DescribeCertificatesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeCertificatesError {
fn code(&self) -> Option<&str> {
DescribeCertificatesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeCertificatesError {
pub fn new(kind: DescribeCertificatesErrorKind, 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: DescribeCertificatesErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeCertificatesErrorKind::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_certificate_not_found_fault(&self) -> bool {
matches!(
&self.kind,
DescribeCertificatesErrorKind::CertificateNotFoundFault(_)
)
}
}
impl std::error::Error for DescribeCertificatesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeCertificatesErrorKind::CertificateNotFoundFault(_inner) => Some(_inner),
DescribeCertificatesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeDBClusterParameterGroupsError {
pub kind: DescribeDBClusterParameterGroupsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeDBClusterParameterGroupsErrorKind {
DbParameterGroupNotFoundFault(crate::error::DbParameterGroupNotFoundFault),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DescribeDBClusterParameterGroupsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeDBClusterParameterGroupsErrorKind::DbParameterGroupNotFoundFault(_inner) => {
_inner.fmt(f)
}
DescribeDBClusterParameterGroupsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeDBClusterParameterGroupsError {
fn code(&self) -> Option<&str> {
DescribeDBClusterParameterGroupsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeDBClusterParameterGroupsError {
pub fn new(
kind: DescribeDBClusterParameterGroupsErrorKind,
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: DescribeDBClusterParameterGroupsErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeDBClusterParameterGroupsErrorKind::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_db_parameter_group_not_found_fault(&self) -> bool {
matches!(
&self.kind,
DescribeDBClusterParameterGroupsErrorKind::DbParameterGroupNotFoundFault(_)
)
}
}
impl std::error::Error for DescribeDBClusterParameterGroupsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeDBClusterParameterGroupsErrorKind::DbParameterGroupNotFoundFault(_inner) => {
Some(_inner)
}
DescribeDBClusterParameterGroupsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeDBClusterParametersError {
pub kind: DescribeDBClusterParametersErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeDBClusterParametersErrorKind {
DbParameterGroupNotFoundFault(crate::error::DbParameterGroupNotFoundFault),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DescribeDBClusterParametersError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeDBClusterParametersErrorKind::DbParameterGroupNotFoundFault(_inner) => {
_inner.fmt(f)
}
DescribeDBClusterParametersErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeDBClusterParametersError {
fn code(&self) -> Option<&str> {
DescribeDBClusterParametersError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeDBClusterParametersError {
pub fn new(kind: DescribeDBClusterParametersErrorKind, 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: DescribeDBClusterParametersErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeDBClusterParametersErrorKind::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_db_parameter_group_not_found_fault(&self) -> bool {
matches!(
&self.kind,
DescribeDBClusterParametersErrorKind::DbParameterGroupNotFoundFault(_)
)
}
}
impl std::error::Error for DescribeDBClusterParametersError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeDBClusterParametersErrorKind::DbParameterGroupNotFoundFault(_inner) => {
Some(_inner)
}
DescribeDBClusterParametersErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeDBClustersError {
pub kind: DescribeDBClustersErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeDBClustersErrorKind {
DbClusterNotFoundFault(crate::error::DbClusterNotFoundFault),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DescribeDBClustersError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeDBClustersErrorKind::DbClusterNotFoundFault(_inner) => _inner.fmt(f),
DescribeDBClustersErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeDBClustersError {
fn code(&self) -> Option<&str> {
DescribeDBClustersError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeDBClustersError {
pub fn new(kind: DescribeDBClustersErrorKind, 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: DescribeDBClustersErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeDBClustersErrorKind::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_db_cluster_not_found_fault(&self) -> bool {
matches!(
&self.kind,
DescribeDBClustersErrorKind::DbClusterNotFoundFault(_)
)
}
}
impl std::error::Error for DescribeDBClustersError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeDBClustersErrorKind::DbClusterNotFoundFault(_inner) => Some(_inner),
DescribeDBClustersErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeDBClusterSnapshotAttributesError {
pub kind: DescribeDBClusterSnapshotAttributesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeDBClusterSnapshotAttributesErrorKind {
DbClusterSnapshotNotFoundFault(crate::error::DbClusterSnapshotNotFoundFault),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DescribeDBClusterSnapshotAttributesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeDBClusterSnapshotAttributesErrorKind::DbClusterSnapshotNotFoundFault(
_inner,
) => _inner.fmt(f),
DescribeDBClusterSnapshotAttributesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeDBClusterSnapshotAttributesError {
fn code(&self) -> Option<&str> {
DescribeDBClusterSnapshotAttributesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeDBClusterSnapshotAttributesError {
pub fn new(
kind: DescribeDBClusterSnapshotAttributesErrorKind,
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: DescribeDBClusterSnapshotAttributesErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeDBClusterSnapshotAttributesErrorKind::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_db_cluster_snapshot_not_found_fault(&self) -> bool {
matches!(
&self.kind,
DescribeDBClusterSnapshotAttributesErrorKind::DbClusterSnapshotNotFoundFault(_)
)
}
}
impl std::error::Error for DescribeDBClusterSnapshotAttributesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeDBClusterSnapshotAttributesErrorKind::DbClusterSnapshotNotFoundFault(
_inner,
) => Some(_inner),
DescribeDBClusterSnapshotAttributesErrorKind::Unhandled(_inner) => {
Some(_inner.as_ref())
}
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeDBClusterSnapshotsError {
pub kind: DescribeDBClusterSnapshotsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeDBClusterSnapshotsErrorKind {
DbClusterSnapshotNotFoundFault(crate::error::DbClusterSnapshotNotFoundFault),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DescribeDBClusterSnapshotsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeDBClusterSnapshotsErrorKind::DbClusterSnapshotNotFoundFault(_inner) => {
_inner.fmt(f)
}
DescribeDBClusterSnapshotsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeDBClusterSnapshotsError {
fn code(&self) -> Option<&str> {
DescribeDBClusterSnapshotsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeDBClusterSnapshotsError {
pub fn new(kind: DescribeDBClusterSnapshotsErrorKind, 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: DescribeDBClusterSnapshotsErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeDBClusterSnapshotsErrorKind::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_db_cluster_snapshot_not_found_fault(&self) -> bool {
matches!(
&self.kind,
DescribeDBClusterSnapshotsErrorKind::DbClusterSnapshotNotFoundFault(_)
)
}
}
impl std::error::Error for DescribeDBClusterSnapshotsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeDBClusterSnapshotsErrorKind::DbClusterSnapshotNotFoundFault(_inner) => {
Some(_inner)
}
DescribeDBClusterSnapshotsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeDBEngineVersionsError {
pub kind: DescribeDBEngineVersionsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeDBEngineVersionsErrorKind {
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DescribeDBEngineVersionsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeDBEngineVersionsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeDBEngineVersionsError {
fn code(&self) -> Option<&str> {
DescribeDBEngineVersionsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeDBEngineVersionsError {
pub fn new(kind: DescribeDBEngineVersionsErrorKind, 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: DescribeDBEngineVersionsErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeDBEngineVersionsErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
}
impl std::error::Error for DescribeDBEngineVersionsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeDBEngineVersionsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeDBInstancesError {
pub kind: DescribeDBInstancesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeDBInstancesErrorKind {
DbInstanceNotFoundFault(crate::error::DbInstanceNotFoundFault),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DescribeDBInstancesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeDBInstancesErrorKind::DbInstanceNotFoundFault(_inner) => _inner.fmt(f),
DescribeDBInstancesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeDBInstancesError {
fn code(&self) -> Option<&str> {
DescribeDBInstancesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeDBInstancesError {
pub fn new(kind: DescribeDBInstancesErrorKind, 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: DescribeDBInstancesErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeDBInstancesErrorKind::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_db_instance_not_found_fault(&self) -> bool {
matches!(
&self.kind,
DescribeDBInstancesErrorKind::DbInstanceNotFoundFault(_)
)
}
}
impl std::error::Error for DescribeDBInstancesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeDBInstancesErrorKind::DbInstanceNotFoundFault(_inner) => Some(_inner),
DescribeDBInstancesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeDBSubnetGroupsError {
pub kind: DescribeDBSubnetGroupsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeDBSubnetGroupsErrorKind {
DbSubnetGroupNotFoundFault(crate::error::DbSubnetGroupNotFoundFault),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DescribeDBSubnetGroupsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeDBSubnetGroupsErrorKind::DbSubnetGroupNotFoundFault(_inner) => _inner.fmt(f),
DescribeDBSubnetGroupsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeDBSubnetGroupsError {
fn code(&self) -> Option<&str> {
DescribeDBSubnetGroupsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeDBSubnetGroupsError {
pub fn new(kind: DescribeDBSubnetGroupsErrorKind, 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: DescribeDBSubnetGroupsErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeDBSubnetGroupsErrorKind::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_db_subnet_group_not_found_fault(&self) -> bool {
matches!(
&self.kind,
DescribeDBSubnetGroupsErrorKind::DbSubnetGroupNotFoundFault(_)
)
}
}
impl std::error::Error for DescribeDBSubnetGroupsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeDBSubnetGroupsErrorKind::DbSubnetGroupNotFoundFault(_inner) => Some(_inner),
DescribeDBSubnetGroupsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeEngineDefaultClusterParametersError {
pub kind: DescribeEngineDefaultClusterParametersErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeEngineDefaultClusterParametersErrorKind {
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DescribeEngineDefaultClusterParametersError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeEngineDefaultClusterParametersErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeEngineDefaultClusterParametersError {
fn code(&self) -> Option<&str> {
DescribeEngineDefaultClusterParametersError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeEngineDefaultClusterParametersError {
pub fn new(
kind: DescribeEngineDefaultClusterParametersErrorKind,
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: DescribeEngineDefaultClusterParametersErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeEngineDefaultClusterParametersErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
}
impl std::error::Error for DescribeEngineDefaultClusterParametersError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeEngineDefaultClusterParametersErrorKind::Unhandled(_inner) => {
Some(_inner.as_ref())
}
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeEventCategoriesError {
pub kind: DescribeEventCategoriesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeEventCategoriesErrorKind {
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DescribeEventCategoriesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeEventCategoriesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeEventCategoriesError {
fn code(&self) -> Option<&str> {
DescribeEventCategoriesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeEventCategoriesError {
pub fn new(kind: DescribeEventCategoriesErrorKind, 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: DescribeEventCategoriesErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeEventCategoriesErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
}
impl std::error::Error for DescribeEventCategoriesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeEventCategoriesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeEventsError {
pub kind: DescribeEventsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeEventsErrorKind {
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DescribeEventsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeEventsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeEventsError {
fn code(&self) -> Option<&str> {
DescribeEventsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeEventsError {
pub fn new(kind: DescribeEventsErrorKind, 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: DescribeEventsErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeEventsErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
}
impl std::error::Error for DescribeEventsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeEventsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeEventSubscriptionsError {
pub kind: DescribeEventSubscriptionsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeEventSubscriptionsErrorKind {
SubscriptionNotFoundFault(crate::error::SubscriptionNotFoundFault),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DescribeEventSubscriptionsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeEventSubscriptionsErrorKind::SubscriptionNotFoundFault(_inner) => _inner.fmt(f),
DescribeEventSubscriptionsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeEventSubscriptionsError {
fn code(&self) -> Option<&str> {
DescribeEventSubscriptionsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeEventSubscriptionsError {
pub fn new(kind: DescribeEventSubscriptionsErrorKind, 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: DescribeEventSubscriptionsErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeEventSubscriptionsErrorKind::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_subscription_not_found_fault(&self) -> bool {
matches!(
&self.kind,
DescribeEventSubscriptionsErrorKind::SubscriptionNotFoundFault(_)
)
}
}
impl std::error::Error for DescribeEventSubscriptionsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeEventSubscriptionsErrorKind::SubscriptionNotFoundFault(_inner) => Some(_inner),
DescribeEventSubscriptionsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeGlobalClustersError {
pub kind: DescribeGlobalClustersErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeGlobalClustersErrorKind {
GlobalClusterNotFoundFault(crate::error::GlobalClusterNotFoundFault),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DescribeGlobalClustersError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeGlobalClustersErrorKind::GlobalClusterNotFoundFault(_inner) => _inner.fmt(f),
DescribeGlobalClustersErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeGlobalClustersError {
fn code(&self) -> Option<&str> {
DescribeGlobalClustersError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeGlobalClustersError {
pub fn new(kind: DescribeGlobalClustersErrorKind, 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: DescribeGlobalClustersErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeGlobalClustersErrorKind::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_global_cluster_not_found_fault(&self) -> bool {
matches!(
&self.kind,
DescribeGlobalClustersErrorKind::GlobalClusterNotFoundFault(_)
)
}
}
impl std::error::Error for DescribeGlobalClustersError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeGlobalClustersErrorKind::GlobalClusterNotFoundFault(_inner) => Some(_inner),
DescribeGlobalClustersErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeOrderableDBInstanceOptionsError {
pub kind: DescribeOrderableDBInstanceOptionsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeOrderableDBInstanceOptionsErrorKind {
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DescribeOrderableDBInstanceOptionsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeOrderableDBInstanceOptionsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeOrderableDBInstanceOptionsError {
fn code(&self) -> Option<&str> {
DescribeOrderableDBInstanceOptionsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeOrderableDBInstanceOptionsError {
pub fn new(
kind: DescribeOrderableDBInstanceOptionsErrorKind,
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: DescribeOrderableDBInstanceOptionsErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeOrderableDBInstanceOptionsErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
}
impl std::error::Error for DescribeOrderableDBInstanceOptionsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeOrderableDBInstanceOptionsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribePendingMaintenanceActionsError {
pub kind: DescribePendingMaintenanceActionsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribePendingMaintenanceActionsErrorKind {
ResourceNotFoundFault(crate::error::ResourceNotFoundFault),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DescribePendingMaintenanceActionsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribePendingMaintenanceActionsErrorKind::ResourceNotFoundFault(_inner) => {
_inner.fmt(f)
}
DescribePendingMaintenanceActionsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribePendingMaintenanceActionsError {
fn code(&self) -> Option<&str> {
DescribePendingMaintenanceActionsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribePendingMaintenanceActionsError {
pub fn new(
kind: DescribePendingMaintenanceActionsErrorKind,
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: DescribePendingMaintenanceActionsErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribePendingMaintenanceActionsErrorKind::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_resource_not_found_fault(&self) -> bool {
matches!(
&self.kind,
DescribePendingMaintenanceActionsErrorKind::ResourceNotFoundFault(_)
)
}
}
impl std::error::Error for DescribePendingMaintenanceActionsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribePendingMaintenanceActionsErrorKind::ResourceNotFoundFault(_inner) => {
Some(_inner)
}
DescribePendingMaintenanceActionsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct FailoverDBClusterError {
pub kind: FailoverDBClusterErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum FailoverDBClusterErrorKind {
DbClusterNotFoundFault(crate::error::DbClusterNotFoundFault),
InvalidDbClusterStateFault(crate::error::InvalidDbClusterStateFault),
InvalidDbInstanceStateFault(crate::error::InvalidDbInstanceStateFault),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for FailoverDBClusterError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
FailoverDBClusterErrorKind::DbClusterNotFoundFault(_inner) => _inner.fmt(f),
FailoverDBClusterErrorKind::InvalidDbClusterStateFault(_inner) => _inner.fmt(f),
FailoverDBClusterErrorKind::InvalidDbInstanceStateFault(_inner) => _inner.fmt(f),
FailoverDBClusterErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for FailoverDBClusterError {
fn code(&self) -> Option<&str> {
FailoverDBClusterError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl FailoverDBClusterError {
pub fn new(kind: FailoverDBClusterErrorKind, 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: FailoverDBClusterErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: FailoverDBClusterErrorKind::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_db_cluster_not_found_fault(&self) -> bool {
matches!(
&self.kind,
FailoverDBClusterErrorKind::DbClusterNotFoundFault(_)
)
}
pub fn is_invalid_db_cluster_state_fault(&self) -> bool {
matches!(
&self.kind,
FailoverDBClusterErrorKind::InvalidDbClusterStateFault(_)
)
}
pub fn is_invalid_db_instance_state_fault(&self) -> bool {
matches!(
&self.kind,
FailoverDBClusterErrorKind::InvalidDbInstanceStateFault(_)
)
}
}
impl std::error::Error for FailoverDBClusterError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
FailoverDBClusterErrorKind::DbClusterNotFoundFault(_inner) => Some(_inner),
FailoverDBClusterErrorKind::InvalidDbClusterStateFault(_inner) => Some(_inner),
FailoverDBClusterErrorKind::InvalidDbInstanceStateFault(_inner) => Some(_inner),
FailoverDBClusterErrorKind::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 {
DbClusterNotFoundFault(crate::error::DbClusterNotFoundFault),
DbInstanceNotFoundFault(crate::error::DbInstanceNotFoundFault),
DbSnapshotNotFoundFault(crate::error::DbSnapshotNotFoundFault),
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::DbClusterNotFoundFault(_inner) => _inner.fmt(f),
ListTagsForResourceErrorKind::DbInstanceNotFoundFault(_inner) => _inner.fmt(f),
ListTagsForResourceErrorKind::DbSnapshotNotFoundFault(_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_db_cluster_not_found_fault(&self) -> bool {
matches!(
&self.kind,
ListTagsForResourceErrorKind::DbClusterNotFoundFault(_)
)
}
pub fn is_db_instance_not_found_fault(&self) -> bool {
matches!(
&self.kind,
ListTagsForResourceErrorKind::DbInstanceNotFoundFault(_)
)
}
pub fn is_db_snapshot_not_found_fault(&self) -> bool {
matches!(
&self.kind,
ListTagsForResourceErrorKind::DbSnapshotNotFoundFault(_)
)
}
}
impl std::error::Error for ListTagsForResourceError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListTagsForResourceErrorKind::DbClusterNotFoundFault(_inner) => Some(_inner),
ListTagsForResourceErrorKind::DbInstanceNotFoundFault(_inner) => Some(_inner),
ListTagsForResourceErrorKind::DbSnapshotNotFoundFault(_inner) => Some(_inner),
ListTagsForResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ModifyDBClusterError {
pub kind: ModifyDBClusterErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ModifyDBClusterErrorKind {
DbClusterAlreadyExistsFault(crate::error::DbClusterAlreadyExistsFault),
DbClusterNotFoundFault(crate::error::DbClusterNotFoundFault),
DbClusterParameterGroupNotFoundFault(crate::error::DbClusterParameterGroupNotFoundFault),
DbSubnetGroupNotFoundFault(crate::error::DbSubnetGroupNotFoundFault),
InvalidDbClusterStateFault(crate::error::InvalidDbClusterStateFault),
InvalidDbInstanceStateFault(crate::error::InvalidDbInstanceStateFault),
InvalidDbSecurityGroupStateFault(crate::error::InvalidDbSecurityGroupStateFault),
InvalidDbSubnetGroupStateFault(crate::error::InvalidDbSubnetGroupStateFault),
InvalidSubnet(crate::error::InvalidSubnet),
InvalidVpcNetworkStateFault(crate::error::InvalidVpcNetworkStateFault),
StorageQuotaExceededFault(crate::error::StorageQuotaExceededFault),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for ModifyDBClusterError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ModifyDBClusterErrorKind::DbClusterAlreadyExistsFault(_inner) => _inner.fmt(f),
ModifyDBClusterErrorKind::DbClusterNotFoundFault(_inner) => _inner.fmt(f),
ModifyDBClusterErrorKind::DbClusterParameterGroupNotFoundFault(_inner) => _inner.fmt(f),
ModifyDBClusterErrorKind::DbSubnetGroupNotFoundFault(_inner) => _inner.fmt(f),
ModifyDBClusterErrorKind::InvalidDbClusterStateFault(_inner) => _inner.fmt(f),
ModifyDBClusterErrorKind::InvalidDbInstanceStateFault(_inner) => _inner.fmt(f),
ModifyDBClusterErrorKind::InvalidDbSecurityGroupStateFault(_inner) => _inner.fmt(f),
ModifyDBClusterErrorKind::InvalidDbSubnetGroupStateFault(_inner) => _inner.fmt(f),
ModifyDBClusterErrorKind::InvalidSubnet(_inner) => _inner.fmt(f),
ModifyDBClusterErrorKind::InvalidVpcNetworkStateFault(_inner) => _inner.fmt(f),
ModifyDBClusterErrorKind::StorageQuotaExceededFault(_inner) => _inner.fmt(f),
ModifyDBClusterErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ModifyDBClusterError {
fn code(&self) -> Option<&str> {
ModifyDBClusterError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ModifyDBClusterError {
pub fn new(kind: ModifyDBClusterErrorKind, 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: ModifyDBClusterErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ModifyDBClusterErrorKind::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_db_cluster_already_exists_fault(&self) -> bool {
matches!(
&self.kind,
ModifyDBClusterErrorKind::DbClusterAlreadyExistsFault(_)
)
}
pub fn is_db_cluster_not_found_fault(&self) -> bool {
matches!(
&self.kind,
ModifyDBClusterErrorKind::DbClusterNotFoundFault(_)
)
}
pub fn is_db_cluster_parameter_group_not_found_fault(&self) -> bool {
matches!(
&self.kind,
ModifyDBClusterErrorKind::DbClusterParameterGroupNotFoundFault(_)
)
}
pub fn is_db_subnet_group_not_found_fault(&self) -> bool {
matches!(
&self.kind,
ModifyDBClusterErrorKind::DbSubnetGroupNotFoundFault(_)
)
}
pub fn is_invalid_db_cluster_state_fault(&self) -> bool {
matches!(
&self.kind,
ModifyDBClusterErrorKind::InvalidDbClusterStateFault(_)
)
}
pub fn is_invalid_db_instance_state_fault(&self) -> bool {
matches!(
&self.kind,
ModifyDBClusterErrorKind::InvalidDbInstanceStateFault(_)
)
}
pub fn is_invalid_db_security_group_state_fault(&self) -> bool {
matches!(
&self.kind,
ModifyDBClusterErrorKind::InvalidDbSecurityGroupStateFault(_)
)
}
pub fn is_invalid_db_subnet_group_state_fault(&self) -> bool {
matches!(
&self.kind,
ModifyDBClusterErrorKind::InvalidDbSubnetGroupStateFault(_)
)
}
pub fn is_invalid_subnet(&self) -> bool {
matches!(&self.kind, ModifyDBClusterErrorKind::InvalidSubnet(_))
}
pub fn is_invalid_vpc_network_state_fault(&self) -> bool {
matches!(
&self.kind,
ModifyDBClusterErrorKind::InvalidVpcNetworkStateFault(_)
)
}
pub fn is_storage_quota_exceeded_fault(&self) -> bool {
matches!(
&self.kind,
ModifyDBClusterErrorKind::StorageQuotaExceededFault(_)
)
}
}
impl std::error::Error for ModifyDBClusterError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ModifyDBClusterErrorKind::DbClusterAlreadyExistsFault(_inner) => Some(_inner),
ModifyDBClusterErrorKind::DbClusterNotFoundFault(_inner) => Some(_inner),
ModifyDBClusterErrorKind::DbClusterParameterGroupNotFoundFault(_inner) => Some(_inner),
ModifyDBClusterErrorKind::DbSubnetGroupNotFoundFault(_inner) => Some(_inner),
ModifyDBClusterErrorKind::InvalidDbClusterStateFault(_inner) => Some(_inner),
ModifyDBClusterErrorKind::InvalidDbInstanceStateFault(_inner) => Some(_inner),
ModifyDBClusterErrorKind::InvalidDbSecurityGroupStateFault(_inner) => Some(_inner),
ModifyDBClusterErrorKind::InvalidDbSubnetGroupStateFault(_inner) => Some(_inner),
ModifyDBClusterErrorKind::InvalidSubnet(_inner) => Some(_inner),
ModifyDBClusterErrorKind::InvalidVpcNetworkStateFault(_inner) => Some(_inner),
ModifyDBClusterErrorKind::StorageQuotaExceededFault(_inner) => Some(_inner),
ModifyDBClusterErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ModifyDBClusterParameterGroupError {
pub kind: ModifyDBClusterParameterGroupErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ModifyDBClusterParameterGroupErrorKind {
DbParameterGroupNotFoundFault(crate::error::DbParameterGroupNotFoundFault),
InvalidDbParameterGroupStateFault(crate::error::InvalidDbParameterGroupStateFault),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for ModifyDBClusterParameterGroupError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ModifyDBClusterParameterGroupErrorKind::DbParameterGroupNotFoundFault(_inner) => {
_inner.fmt(f)
}
ModifyDBClusterParameterGroupErrorKind::InvalidDbParameterGroupStateFault(_inner) => {
_inner.fmt(f)
}
ModifyDBClusterParameterGroupErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ModifyDBClusterParameterGroupError {
fn code(&self) -> Option<&str> {
ModifyDBClusterParameterGroupError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ModifyDBClusterParameterGroupError {
pub fn new(
kind: ModifyDBClusterParameterGroupErrorKind,
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: ModifyDBClusterParameterGroupErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ModifyDBClusterParameterGroupErrorKind::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_db_parameter_group_not_found_fault(&self) -> bool {
matches!(
&self.kind,
ModifyDBClusterParameterGroupErrorKind::DbParameterGroupNotFoundFault(_)
)
}
pub fn is_invalid_db_parameter_group_state_fault(&self) -> bool {
matches!(
&self.kind,
ModifyDBClusterParameterGroupErrorKind::InvalidDbParameterGroupStateFault(_)
)
}
}
impl std::error::Error for ModifyDBClusterParameterGroupError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ModifyDBClusterParameterGroupErrorKind::DbParameterGroupNotFoundFault(_inner) => {
Some(_inner)
}
ModifyDBClusterParameterGroupErrorKind::InvalidDbParameterGroupStateFault(_inner) => {
Some(_inner)
}
ModifyDBClusterParameterGroupErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ModifyDBClusterSnapshotAttributeError {
pub kind: ModifyDBClusterSnapshotAttributeErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ModifyDBClusterSnapshotAttributeErrorKind {
DbClusterSnapshotNotFoundFault(crate::error::DbClusterSnapshotNotFoundFault),
InvalidDbClusterSnapshotStateFault(crate::error::InvalidDbClusterSnapshotStateFault),
SharedSnapshotQuotaExceededFault(crate::error::SharedSnapshotQuotaExceededFault),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for ModifyDBClusterSnapshotAttributeError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ModifyDBClusterSnapshotAttributeErrorKind::DbClusterSnapshotNotFoundFault(_inner) => {
_inner.fmt(f)
}
ModifyDBClusterSnapshotAttributeErrorKind::InvalidDbClusterSnapshotStateFault(
_inner,
) => _inner.fmt(f),
ModifyDBClusterSnapshotAttributeErrorKind::SharedSnapshotQuotaExceededFault(_inner) => {
_inner.fmt(f)
}
ModifyDBClusterSnapshotAttributeErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ModifyDBClusterSnapshotAttributeError {
fn code(&self) -> Option<&str> {
ModifyDBClusterSnapshotAttributeError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ModifyDBClusterSnapshotAttributeError {
pub fn new(
kind: ModifyDBClusterSnapshotAttributeErrorKind,
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: ModifyDBClusterSnapshotAttributeErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ModifyDBClusterSnapshotAttributeErrorKind::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_db_cluster_snapshot_not_found_fault(&self) -> bool {
matches!(
&self.kind,
ModifyDBClusterSnapshotAttributeErrorKind::DbClusterSnapshotNotFoundFault(_)
)
}
pub fn is_invalid_db_cluster_snapshot_state_fault(&self) -> bool {
matches!(
&self.kind,
ModifyDBClusterSnapshotAttributeErrorKind::InvalidDbClusterSnapshotStateFault(_)
)
}
pub fn is_shared_snapshot_quota_exceeded_fault(&self) -> bool {
matches!(
&self.kind,
ModifyDBClusterSnapshotAttributeErrorKind::SharedSnapshotQuotaExceededFault(_)
)
}
}
impl std::error::Error for ModifyDBClusterSnapshotAttributeError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ModifyDBClusterSnapshotAttributeErrorKind::DbClusterSnapshotNotFoundFault(_inner) => {
Some(_inner)
}
ModifyDBClusterSnapshotAttributeErrorKind::InvalidDbClusterSnapshotStateFault(
_inner,
) => Some(_inner),
ModifyDBClusterSnapshotAttributeErrorKind::SharedSnapshotQuotaExceededFault(_inner) => {
Some(_inner)
}
ModifyDBClusterSnapshotAttributeErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ModifyDBInstanceError {
pub kind: ModifyDBInstanceErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ModifyDBInstanceErrorKind {
AuthorizationNotFoundFault(crate::error::AuthorizationNotFoundFault),
CertificateNotFoundFault(crate::error::CertificateNotFoundFault),
DbInstanceAlreadyExistsFault(crate::error::DbInstanceAlreadyExistsFault),
DbInstanceNotFoundFault(crate::error::DbInstanceNotFoundFault),
DbParameterGroupNotFoundFault(crate::error::DbParameterGroupNotFoundFault),
DbSecurityGroupNotFoundFault(crate::error::DbSecurityGroupNotFoundFault),
DbUpgradeDependencyFailureFault(crate::error::DbUpgradeDependencyFailureFault),
InsufficientDbInstanceCapacityFault(crate::error::InsufficientDbInstanceCapacityFault),
InvalidDbInstanceStateFault(crate::error::InvalidDbInstanceStateFault),
InvalidDbSecurityGroupStateFault(crate::error::InvalidDbSecurityGroupStateFault),
InvalidVpcNetworkStateFault(crate::error::InvalidVpcNetworkStateFault),
StorageQuotaExceededFault(crate::error::StorageQuotaExceededFault),
StorageTypeNotSupportedFault(crate::error::StorageTypeNotSupportedFault),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for ModifyDBInstanceError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ModifyDBInstanceErrorKind::AuthorizationNotFoundFault(_inner) => _inner.fmt(f),
ModifyDBInstanceErrorKind::CertificateNotFoundFault(_inner) => _inner.fmt(f),
ModifyDBInstanceErrorKind::DbInstanceAlreadyExistsFault(_inner) => _inner.fmt(f),
ModifyDBInstanceErrorKind::DbInstanceNotFoundFault(_inner) => _inner.fmt(f),
ModifyDBInstanceErrorKind::DbParameterGroupNotFoundFault(_inner) => _inner.fmt(f),
ModifyDBInstanceErrorKind::DbSecurityGroupNotFoundFault(_inner) => _inner.fmt(f),
ModifyDBInstanceErrorKind::DbUpgradeDependencyFailureFault(_inner) => _inner.fmt(f),
ModifyDBInstanceErrorKind::InsufficientDbInstanceCapacityFault(_inner) => _inner.fmt(f),
ModifyDBInstanceErrorKind::InvalidDbInstanceStateFault(_inner) => _inner.fmt(f),
ModifyDBInstanceErrorKind::InvalidDbSecurityGroupStateFault(_inner) => _inner.fmt(f),
ModifyDBInstanceErrorKind::InvalidVpcNetworkStateFault(_inner) => _inner.fmt(f),
ModifyDBInstanceErrorKind::StorageQuotaExceededFault(_inner) => _inner.fmt(f),
ModifyDBInstanceErrorKind::StorageTypeNotSupportedFault(_inner) => _inner.fmt(f),
ModifyDBInstanceErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ModifyDBInstanceError {
fn code(&self) -> Option<&str> {
ModifyDBInstanceError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ModifyDBInstanceError {
pub fn new(kind: ModifyDBInstanceErrorKind, 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: ModifyDBInstanceErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ModifyDBInstanceErrorKind::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_authorization_not_found_fault(&self) -> bool {
matches!(
&self.kind,
ModifyDBInstanceErrorKind::AuthorizationNotFoundFault(_)
)
}
pub fn is_certificate_not_found_fault(&self) -> bool {
matches!(
&self.kind,
ModifyDBInstanceErrorKind::CertificateNotFoundFault(_)
)
}
pub fn is_db_instance_already_exists_fault(&self) -> bool {
matches!(
&self.kind,
ModifyDBInstanceErrorKind::DbInstanceAlreadyExistsFault(_)
)
}
pub fn is_db_instance_not_found_fault(&self) -> bool {
matches!(
&self.kind,
ModifyDBInstanceErrorKind::DbInstanceNotFoundFault(_)
)
}
pub fn is_db_parameter_group_not_found_fault(&self) -> bool {
matches!(
&self.kind,
ModifyDBInstanceErrorKind::DbParameterGroupNotFoundFault(_)
)
}
pub fn is_db_security_group_not_found_fault(&self) -> bool {
matches!(
&self.kind,
ModifyDBInstanceErrorKind::DbSecurityGroupNotFoundFault(_)
)
}
pub fn is_db_upgrade_dependency_failure_fault(&self) -> bool {
matches!(
&self.kind,
ModifyDBInstanceErrorKind::DbUpgradeDependencyFailureFault(_)
)
}
pub fn is_insufficient_db_instance_capacity_fault(&self) -> bool {
matches!(
&self.kind,
ModifyDBInstanceErrorKind::InsufficientDbInstanceCapacityFault(_)
)
}
pub fn is_invalid_db_instance_state_fault(&self) -> bool {
matches!(
&self.kind,
ModifyDBInstanceErrorKind::InvalidDbInstanceStateFault(_)
)
}
pub fn is_invalid_db_security_group_state_fault(&self) -> bool {
matches!(
&self.kind,
ModifyDBInstanceErrorKind::InvalidDbSecurityGroupStateFault(_)
)
}
pub fn is_invalid_vpc_network_state_fault(&self) -> bool {
matches!(
&self.kind,
ModifyDBInstanceErrorKind::InvalidVpcNetworkStateFault(_)
)
}
pub fn is_storage_quota_exceeded_fault(&self) -> bool {
matches!(
&self.kind,
ModifyDBInstanceErrorKind::StorageQuotaExceededFault(_)
)
}
pub fn is_storage_type_not_supported_fault(&self) -> bool {
matches!(
&self.kind,
ModifyDBInstanceErrorKind::StorageTypeNotSupportedFault(_)
)
}
}
impl std::error::Error for ModifyDBInstanceError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ModifyDBInstanceErrorKind::AuthorizationNotFoundFault(_inner) => Some(_inner),
ModifyDBInstanceErrorKind::CertificateNotFoundFault(_inner) => Some(_inner),
ModifyDBInstanceErrorKind::DbInstanceAlreadyExistsFault(_inner) => Some(_inner),
ModifyDBInstanceErrorKind::DbInstanceNotFoundFault(_inner) => Some(_inner),
ModifyDBInstanceErrorKind::DbParameterGroupNotFoundFault(_inner) => Some(_inner),
ModifyDBInstanceErrorKind::DbSecurityGroupNotFoundFault(_inner) => Some(_inner),
ModifyDBInstanceErrorKind::DbUpgradeDependencyFailureFault(_inner) => Some(_inner),
ModifyDBInstanceErrorKind::InsufficientDbInstanceCapacityFault(_inner) => Some(_inner),
ModifyDBInstanceErrorKind::InvalidDbInstanceStateFault(_inner) => Some(_inner),
ModifyDBInstanceErrorKind::InvalidDbSecurityGroupStateFault(_inner) => Some(_inner),
ModifyDBInstanceErrorKind::InvalidVpcNetworkStateFault(_inner) => Some(_inner),
ModifyDBInstanceErrorKind::StorageQuotaExceededFault(_inner) => Some(_inner),
ModifyDBInstanceErrorKind::StorageTypeNotSupportedFault(_inner) => Some(_inner),
ModifyDBInstanceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ModifyDBSubnetGroupError {
pub kind: ModifyDBSubnetGroupErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ModifyDBSubnetGroupErrorKind {
DbSubnetGroupDoesNotCoverEnoughAZs(crate::error::DbSubnetGroupDoesNotCoverEnoughAZs),
DbSubnetGroupNotFoundFault(crate::error::DbSubnetGroupNotFoundFault),
DbSubnetQuotaExceededFault(crate::error::DbSubnetQuotaExceededFault),
InvalidSubnet(crate::error::InvalidSubnet),
SubnetAlreadyInUse(crate::error::SubnetAlreadyInUse),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for ModifyDBSubnetGroupError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ModifyDBSubnetGroupErrorKind::DbSubnetGroupDoesNotCoverEnoughAZs(_inner) => {
_inner.fmt(f)
}
ModifyDBSubnetGroupErrorKind::DbSubnetGroupNotFoundFault(_inner) => _inner.fmt(f),
ModifyDBSubnetGroupErrorKind::DbSubnetQuotaExceededFault(_inner) => _inner.fmt(f),
ModifyDBSubnetGroupErrorKind::InvalidSubnet(_inner) => _inner.fmt(f),
ModifyDBSubnetGroupErrorKind::SubnetAlreadyInUse(_inner) => _inner.fmt(f),
ModifyDBSubnetGroupErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ModifyDBSubnetGroupError {
fn code(&self) -> Option<&str> {
ModifyDBSubnetGroupError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ModifyDBSubnetGroupError {
pub fn new(kind: ModifyDBSubnetGroupErrorKind, 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: ModifyDBSubnetGroupErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ModifyDBSubnetGroupErrorKind::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_db_subnet_group_does_not_cover_enough_a_zs(&self) -> bool {
matches!(
&self.kind,
ModifyDBSubnetGroupErrorKind::DbSubnetGroupDoesNotCoverEnoughAZs(_)
)
}
pub fn is_db_subnet_group_not_found_fault(&self) -> bool {
matches!(
&self.kind,
ModifyDBSubnetGroupErrorKind::DbSubnetGroupNotFoundFault(_)
)
}
pub fn is_db_subnet_quota_exceeded_fault(&self) -> bool {
matches!(
&self.kind,
ModifyDBSubnetGroupErrorKind::DbSubnetQuotaExceededFault(_)
)
}
pub fn is_invalid_subnet(&self) -> bool {
matches!(&self.kind, ModifyDBSubnetGroupErrorKind::InvalidSubnet(_))
}
pub fn is_subnet_already_in_use(&self) -> bool {
matches!(
&self.kind,
ModifyDBSubnetGroupErrorKind::SubnetAlreadyInUse(_)
)
}
}
impl std::error::Error for ModifyDBSubnetGroupError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ModifyDBSubnetGroupErrorKind::DbSubnetGroupDoesNotCoverEnoughAZs(_inner) => {
Some(_inner)
}
ModifyDBSubnetGroupErrorKind::DbSubnetGroupNotFoundFault(_inner) => Some(_inner),
ModifyDBSubnetGroupErrorKind::DbSubnetQuotaExceededFault(_inner) => Some(_inner),
ModifyDBSubnetGroupErrorKind::InvalidSubnet(_inner) => Some(_inner),
ModifyDBSubnetGroupErrorKind::SubnetAlreadyInUse(_inner) => Some(_inner),
ModifyDBSubnetGroupErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ModifyEventSubscriptionError {
pub kind: ModifyEventSubscriptionErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ModifyEventSubscriptionErrorKind {
EventSubscriptionQuotaExceededFault(crate::error::EventSubscriptionQuotaExceededFault),
SnsInvalidTopicFault(crate::error::SnsInvalidTopicFault),
SnsNoAuthorizationFault(crate::error::SnsNoAuthorizationFault),
SnsTopicArnNotFoundFault(crate::error::SnsTopicArnNotFoundFault),
SubscriptionCategoryNotFoundFault(crate::error::SubscriptionCategoryNotFoundFault),
SubscriptionNotFoundFault(crate::error::SubscriptionNotFoundFault),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for ModifyEventSubscriptionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ModifyEventSubscriptionErrorKind::EventSubscriptionQuotaExceededFault(_inner) => {
_inner.fmt(f)
}
ModifyEventSubscriptionErrorKind::SnsInvalidTopicFault(_inner) => _inner.fmt(f),
ModifyEventSubscriptionErrorKind::SnsNoAuthorizationFault(_inner) => _inner.fmt(f),
ModifyEventSubscriptionErrorKind::SnsTopicArnNotFoundFault(_inner) => _inner.fmt(f),
ModifyEventSubscriptionErrorKind::SubscriptionCategoryNotFoundFault(_inner) => {
_inner.fmt(f)
}
ModifyEventSubscriptionErrorKind::SubscriptionNotFoundFault(_inner) => _inner.fmt(f),
ModifyEventSubscriptionErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ModifyEventSubscriptionError {
fn code(&self) -> Option<&str> {
ModifyEventSubscriptionError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ModifyEventSubscriptionError {
pub fn new(kind: ModifyEventSubscriptionErrorKind, 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: ModifyEventSubscriptionErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ModifyEventSubscriptionErrorKind::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_event_subscription_quota_exceeded_fault(&self) -> bool {
matches!(
&self.kind,
ModifyEventSubscriptionErrorKind::EventSubscriptionQuotaExceededFault(_)
)
}
pub fn is_sns_invalid_topic_fault(&self) -> bool {
matches!(
&self.kind,
ModifyEventSubscriptionErrorKind::SnsInvalidTopicFault(_)
)
}
pub fn is_sns_no_authorization_fault(&self) -> bool {
matches!(
&self.kind,
ModifyEventSubscriptionErrorKind::SnsNoAuthorizationFault(_)
)
}
pub fn is_sns_topic_arn_not_found_fault(&self) -> bool {
matches!(
&self.kind,
ModifyEventSubscriptionErrorKind::SnsTopicArnNotFoundFault(_)
)
}
pub fn is_subscription_category_not_found_fault(&self) -> bool {
matches!(
&self.kind,
ModifyEventSubscriptionErrorKind::SubscriptionCategoryNotFoundFault(_)
)
}
pub fn is_subscription_not_found_fault(&self) -> bool {
matches!(
&self.kind,
ModifyEventSubscriptionErrorKind::SubscriptionNotFoundFault(_)
)
}
}
impl std::error::Error for ModifyEventSubscriptionError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ModifyEventSubscriptionErrorKind::EventSubscriptionQuotaExceededFault(_inner) => {
Some(_inner)
}
ModifyEventSubscriptionErrorKind::SnsInvalidTopicFault(_inner) => Some(_inner),
ModifyEventSubscriptionErrorKind::SnsNoAuthorizationFault(_inner) => Some(_inner),
ModifyEventSubscriptionErrorKind::SnsTopicArnNotFoundFault(_inner) => Some(_inner),
ModifyEventSubscriptionErrorKind::SubscriptionCategoryNotFoundFault(_inner) => {
Some(_inner)
}
ModifyEventSubscriptionErrorKind::SubscriptionNotFoundFault(_inner) => Some(_inner),
ModifyEventSubscriptionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ModifyGlobalClusterError {
pub kind: ModifyGlobalClusterErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ModifyGlobalClusterErrorKind {
GlobalClusterNotFoundFault(crate::error::GlobalClusterNotFoundFault),
InvalidGlobalClusterStateFault(crate::error::InvalidGlobalClusterStateFault),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for ModifyGlobalClusterError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ModifyGlobalClusterErrorKind::GlobalClusterNotFoundFault(_inner) => _inner.fmt(f),
ModifyGlobalClusterErrorKind::InvalidGlobalClusterStateFault(_inner) => _inner.fmt(f),
ModifyGlobalClusterErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ModifyGlobalClusterError {
fn code(&self) -> Option<&str> {
ModifyGlobalClusterError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ModifyGlobalClusterError {
pub fn new(kind: ModifyGlobalClusterErrorKind, 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: ModifyGlobalClusterErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ModifyGlobalClusterErrorKind::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_global_cluster_not_found_fault(&self) -> bool {
matches!(
&self.kind,
ModifyGlobalClusterErrorKind::GlobalClusterNotFoundFault(_)
)
}
pub fn is_invalid_global_cluster_state_fault(&self) -> bool {
matches!(
&self.kind,
ModifyGlobalClusterErrorKind::InvalidGlobalClusterStateFault(_)
)
}
}
impl std::error::Error for ModifyGlobalClusterError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ModifyGlobalClusterErrorKind::GlobalClusterNotFoundFault(_inner) => Some(_inner),
ModifyGlobalClusterErrorKind::InvalidGlobalClusterStateFault(_inner) => Some(_inner),
ModifyGlobalClusterErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct RebootDBInstanceError {
pub kind: RebootDBInstanceErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum RebootDBInstanceErrorKind {
DbInstanceNotFoundFault(crate::error::DbInstanceNotFoundFault),
InvalidDbInstanceStateFault(crate::error::InvalidDbInstanceStateFault),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for RebootDBInstanceError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
RebootDBInstanceErrorKind::DbInstanceNotFoundFault(_inner) => _inner.fmt(f),
RebootDBInstanceErrorKind::InvalidDbInstanceStateFault(_inner) => _inner.fmt(f),
RebootDBInstanceErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for RebootDBInstanceError {
fn code(&self) -> Option<&str> {
RebootDBInstanceError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl RebootDBInstanceError {
pub fn new(kind: RebootDBInstanceErrorKind, 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: RebootDBInstanceErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: RebootDBInstanceErrorKind::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_db_instance_not_found_fault(&self) -> bool {
matches!(
&self.kind,
RebootDBInstanceErrorKind::DbInstanceNotFoundFault(_)
)
}
pub fn is_invalid_db_instance_state_fault(&self) -> bool {
matches!(
&self.kind,
RebootDBInstanceErrorKind::InvalidDbInstanceStateFault(_)
)
}
}
impl std::error::Error for RebootDBInstanceError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
RebootDBInstanceErrorKind::DbInstanceNotFoundFault(_inner) => Some(_inner),
RebootDBInstanceErrorKind::InvalidDbInstanceStateFault(_inner) => Some(_inner),
RebootDBInstanceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct RemoveFromGlobalClusterError {
pub kind: RemoveFromGlobalClusterErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum RemoveFromGlobalClusterErrorKind {
DbClusterNotFoundFault(crate::error::DbClusterNotFoundFault),
GlobalClusterNotFoundFault(crate::error::GlobalClusterNotFoundFault),
InvalidGlobalClusterStateFault(crate::error::InvalidGlobalClusterStateFault),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for RemoveFromGlobalClusterError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
RemoveFromGlobalClusterErrorKind::DbClusterNotFoundFault(_inner) => _inner.fmt(f),
RemoveFromGlobalClusterErrorKind::GlobalClusterNotFoundFault(_inner) => _inner.fmt(f),
RemoveFromGlobalClusterErrorKind::InvalidGlobalClusterStateFault(_inner) => {
_inner.fmt(f)
}
RemoveFromGlobalClusterErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for RemoveFromGlobalClusterError {
fn code(&self) -> Option<&str> {
RemoveFromGlobalClusterError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl RemoveFromGlobalClusterError {
pub fn new(kind: RemoveFromGlobalClusterErrorKind, 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: RemoveFromGlobalClusterErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: RemoveFromGlobalClusterErrorKind::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_db_cluster_not_found_fault(&self) -> bool {
matches!(
&self.kind,
RemoveFromGlobalClusterErrorKind::DbClusterNotFoundFault(_)
)
}
pub fn is_global_cluster_not_found_fault(&self) -> bool {
matches!(
&self.kind,
RemoveFromGlobalClusterErrorKind::GlobalClusterNotFoundFault(_)
)
}
pub fn is_invalid_global_cluster_state_fault(&self) -> bool {
matches!(
&self.kind,
RemoveFromGlobalClusterErrorKind::InvalidGlobalClusterStateFault(_)
)
}
}
impl std::error::Error for RemoveFromGlobalClusterError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
RemoveFromGlobalClusterErrorKind::DbClusterNotFoundFault(_inner) => Some(_inner),
RemoveFromGlobalClusterErrorKind::GlobalClusterNotFoundFault(_inner) => Some(_inner),
RemoveFromGlobalClusterErrorKind::InvalidGlobalClusterStateFault(_inner) => {
Some(_inner)
}
RemoveFromGlobalClusterErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct RemoveSourceIdentifierFromSubscriptionError {
pub kind: RemoveSourceIdentifierFromSubscriptionErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum RemoveSourceIdentifierFromSubscriptionErrorKind {
SourceNotFoundFault(crate::error::SourceNotFoundFault),
SubscriptionNotFoundFault(crate::error::SubscriptionNotFoundFault),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for RemoveSourceIdentifierFromSubscriptionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
RemoveSourceIdentifierFromSubscriptionErrorKind::SourceNotFoundFault(_inner) => {
_inner.fmt(f)
}
RemoveSourceIdentifierFromSubscriptionErrorKind::SubscriptionNotFoundFault(_inner) => {
_inner.fmt(f)
}
RemoveSourceIdentifierFromSubscriptionErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for RemoveSourceIdentifierFromSubscriptionError {
fn code(&self) -> Option<&str> {
RemoveSourceIdentifierFromSubscriptionError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl RemoveSourceIdentifierFromSubscriptionError {
pub fn new(
kind: RemoveSourceIdentifierFromSubscriptionErrorKind,
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: RemoveSourceIdentifierFromSubscriptionErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: RemoveSourceIdentifierFromSubscriptionErrorKind::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_source_not_found_fault(&self) -> bool {
matches!(
&self.kind,
RemoveSourceIdentifierFromSubscriptionErrorKind::SourceNotFoundFault(_)
)
}
pub fn is_subscription_not_found_fault(&self) -> bool {
matches!(
&self.kind,
RemoveSourceIdentifierFromSubscriptionErrorKind::SubscriptionNotFoundFault(_)
)
}
}
impl std::error::Error for RemoveSourceIdentifierFromSubscriptionError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
RemoveSourceIdentifierFromSubscriptionErrorKind::SourceNotFoundFault(_inner) => {
Some(_inner)
}
RemoveSourceIdentifierFromSubscriptionErrorKind::SubscriptionNotFoundFault(_inner) => {
Some(_inner)
}
RemoveSourceIdentifierFromSubscriptionErrorKind::Unhandled(_inner) => {
Some(_inner.as_ref())
}
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct RemoveTagsFromResourceError {
pub kind: RemoveTagsFromResourceErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum RemoveTagsFromResourceErrorKind {
DbClusterNotFoundFault(crate::error::DbClusterNotFoundFault),
DbInstanceNotFoundFault(crate::error::DbInstanceNotFoundFault),
DbSnapshotNotFoundFault(crate::error::DbSnapshotNotFoundFault),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for RemoveTagsFromResourceError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
RemoveTagsFromResourceErrorKind::DbClusterNotFoundFault(_inner) => _inner.fmt(f),
RemoveTagsFromResourceErrorKind::DbInstanceNotFoundFault(_inner) => _inner.fmt(f),
RemoveTagsFromResourceErrorKind::DbSnapshotNotFoundFault(_inner) => _inner.fmt(f),
RemoveTagsFromResourceErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for RemoveTagsFromResourceError {
fn code(&self) -> Option<&str> {
RemoveTagsFromResourceError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl RemoveTagsFromResourceError {
pub fn new(kind: RemoveTagsFromResourceErrorKind, 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: RemoveTagsFromResourceErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: RemoveTagsFromResourceErrorKind::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_db_cluster_not_found_fault(&self) -> bool {
matches!(
&self.kind,
RemoveTagsFromResourceErrorKind::DbClusterNotFoundFault(_)
)
}
pub fn is_db_instance_not_found_fault(&self) -> bool {
matches!(
&self.kind,
RemoveTagsFromResourceErrorKind::DbInstanceNotFoundFault(_)
)
}
pub fn is_db_snapshot_not_found_fault(&self) -> bool {
matches!(
&self.kind,
RemoveTagsFromResourceErrorKind::DbSnapshotNotFoundFault(_)
)
}
}
impl std::error::Error for RemoveTagsFromResourceError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
RemoveTagsFromResourceErrorKind::DbClusterNotFoundFault(_inner) => Some(_inner),
RemoveTagsFromResourceErrorKind::DbInstanceNotFoundFault(_inner) => Some(_inner),
RemoveTagsFromResourceErrorKind::DbSnapshotNotFoundFault(_inner) => Some(_inner),
RemoveTagsFromResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ResetDBClusterParameterGroupError {
pub kind: ResetDBClusterParameterGroupErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ResetDBClusterParameterGroupErrorKind {
DbParameterGroupNotFoundFault(crate::error::DbParameterGroupNotFoundFault),
InvalidDbParameterGroupStateFault(crate::error::InvalidDbParameterGroupStateFault),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for ResetDBClusterParameterGroupError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ResetDBClusterParameterGroupErrorKind::DbParameterGroupNotFoundFault(_inner) => {
_inner.fmt(f)
}
ResetDBClusterParameterGroupErrorKind::InvalidDbParameterGroupStateFault(_inner) => {
_inner.fmt(f)
}
ResetDBClusterParameterGroupErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ResetDBClusterParameterGroupError {
fn code(&self) -> Option<&str> {
ResetDBClusterParameterGroupError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ResetDBClusterParameterGroupError {
pub fn new(kind: ResetDBClusterParameterGroupErrorKind, 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: ResetDBClusterParameterGroupErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ResetDBClusterParameterGroupErrorKind::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_db_parameter_group_not_found_fault(&self) -> bool {
matches!(
&self.kind,
ResetDBClusterParameterGroupErrorKind::DbParameterGroupNotFoundFault(_)
)
}
pub fn is_invalid_db_parameter_group_state_fault(&self) -> bool {
matches!(
&self.kind,
ResetDBClusterParameterGroupErrorKind::InvalidDbParameterGroupStateFault(_)
)
}
}
impl std::error::Error for ResetDBClusterParameterGroupError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ResetDBClusterParameterGroupErrorKind::DbParameterGroupNotFoundFault(_inner) => {
Some(_inner)
}
ResetDBClusterParameterGroupErrorKind::InvalidDbParameterGroupStateFault(_inner) => {
Some(_inner)
}
ResetDBClusterParameterGroupErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct RestoreDBClusterFromSnapshotError {
pub kind: RestoreDBClusterFromSnapshotErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum RestoreDBClusterFromSnapshotErrorKind {
DbClusterAlreadyExistsFault(crate::error::DbClusterAlreadyExistsFault),
DbClusterQuotaExceededFault(crate::error::DbClusterQuotaExceededFault),
DbClusterSnapshotNotFoundFault(crate::error::DbClusterSnapshotNotFoundFault),
DbSnapshotNotFoundFault(crate::error::DbSnapshotNotFoundFault),
DbSubnetGroupNotFoundFault(crate::error::DbSubnetGroupNotFoundFault),
InsufficientDbClusterCapacityFault(crate::error::InsufficientDbClusterCapacityFault),
InsufficientStorageClusterCapacityFault(crate::error::InsufficientStorageClusterCapacityFault),
InvalidDbClusterSnapshotStateFault(crate::error::InvalidDbClusterSnapshotStateFault),
InvalidDbSnapshotStateFault(crate::error::InvalidDbSnapshotStateFault),
InvalidRestoreFault(crate::error::InvalidRestoreFault),
InvalidSubnet(crate::error::InvalidSubnet),
InvalidVpcNetworkStateFault(crate::error::InvalidVpcNetworkStateFault),
KmsKeyNotAccessibleFault(crate::error::KmsKeyNotAccessibleFault),
StorageQuotaExceededFault(crate::error::StorageQuotaExceededFault),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for RestoreDBClusterFromSnapshotError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
RestoreDBClusterFromSnapshotErrorKind::DbClusterAlreadyExistsFault(_inner) => {
_inner.fmt(f)
}
RestoreDBClusterFromSnapshotErrorKind::DbClusterQuotaExceededFault(_inner) => {
_inner.fmt(f)
}
RestoreDBClusterFromSnapshotErrorKind::DbClusterSnapshotNotFoundFault(_inner) => {
_inner.fmt(f)
}
RestoreDBClusterFromSnapshotErrorKind::DbSnapshotNotFoundFault(_inner) => _inner.fmt(f),
RestoreDBClusterFromSnapshotErrorKind::DbSubnetGroupNotFoundFault(_inner) => {
_inner.fmt(f)
}
RestoreDBClusterFromSnapshotErrorKind::InsufficientDbClusterCapacityFault(_inner) => {
_inner.fmt(f)
}
RestoreDBClusterFromSnapshotErrorKind::InsufficientStorageClusterCapacityFault(
_inner,
) => _inner.fmt(f),
RestoreDBClusterFromSnapshotErrorKind::InvalidDbClusterSnapshotStateFault(_inner) => {
_inner.fmt(f)
}
RestoreDBClusterFromSnapshotErrorKind::InvalidDbSnapshotStateFault(_inner) => {
_inner.fmt(f)
}
RestoreDBClusterFromSnapshotErrorKind::InvalidRestoreFault(_inner) => _inner.fmt(f),
RestoreDBClusterFromSnapshotErrorKind::InvalidSubnet(_inner) => _inner.fmt(f),
RestoreDBClusterFromSnapshotErrorKind::InvalidVpcNetworkStateFault(_inner) => {
_inner.fmt(f)
}
RestoreDBClusterFromSnapshotErrorKind::KmsKeyNotAccessibleFault(_inner) => {
_inner.fmt(f)
}
RestoreDBClusterFromSnapshotErrorKind::StorageQuotaExceededFault(_inner) => {
_inner.fmt(f)
}
RestoreDBClusterFromSnapshotErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for RestoreDBClusterFromSnapshotError {
fn code(&self) -> Option<&str> {
RestoreDBClusterFromSnapshotError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl RestoreDBClusterFromSnapshotError {
pub fn new(kind: RestoreDBClusterFromSnapshotErrorKind, 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: RestoreDBClusterFromSnapshotErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: RestoreDBClusterFromSnapshotErrorKind::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_db_cluster_already_exists_fault(&self) -> bool {
matches!(
&self.kind,
RestoreDBClusterFromSnapshotErrorKind::DbClusterAlreadyExistsFault(_)
)
}
pub fn is_db_cluster_quota_exceeded_fault(&self) -> bool {
matches!(
&self.kind,
RestoreDBClusterFromSnapshotErrorKind::DbClusterQuotaExceededFault(_)
)
}
pub fn is_db_cluster_snapshot_not_found_fault(&self) -> bool {
matches!(
&self.kind,
RestoreDBClusterFromSnapshotErrorKind::DbClusterSnapshotNotFoundFault(_)
)
}
pub fn is_db_snapshot_not_found_fault(&self) -> bool {
matches!(
&self.kind,
RestoreDBClusterFromSnapshotErrorKind::DbSnapshotNotFoundFault(_)
)
}
pub fn is_db_subnet_group_not_found_fault(&self) -> bool {
matches!(
&self.kind,
RestoreDBClusterFromSnapshotErrorKind::DbSubnetGroupNotFoundFault(_)
)
}
pub fn is_insufficient_db_cluster_capacity_fault(&self) -> bool {
matches!(
&self.kind,
RestoreDBClusterFromSnapshotErrorKind::InsufficientDbClusterCapacityFault(_)
)
}
pub fn is_insufficient_storage_cluster_capacity_fault(&self) -> bool {
matches!(
&self.kind,
RestoreDBClusterFromSnapshotErrorKind::InsufficientStorageClusterCapacityFault(_)
)
}
pub fn is_invalid_db_cluster_snapshot_state_fault(&self) -> bool {
matches!(
&self.kind,
RestoreDBClusterFromSnapshotErrorKind::InvalidDbClusterSnapshotStateFault(_)
)
}
pub fn is_invalid_db_snapshot_state_fault(&self) -> bool {
matches!(
&self.kind,
RestoreDBClusterFromSnapshotErrorKind::InvalidDbSnapshotStateFault(_)
)
}
pub fn is_invalid_restore_fault(&self) -> bool {
matches!(
&self.kind,
RestoreDBClusterFromSnapshotErrorKind::InvalidRestoreFault(_)
)
}
pub fn is_invalid_subnet(&self) -> bool {
matches!(
&self.kind,
RestoreDBClusterFromSnapshotErrorKind::InvalidSubnet(_)
)
}
pub fn is_invalid_vpc_network_state_fault(&self) -> bool {
matches!(
&self.kind,
RestoreDBClusterFromSnapshotErrorKind::InvalidVpcNetworkStateFault(_)
)
}
pub fn is_kms_key_not_accessible_fault(&self) -> bool {
matches!(
&self.kind,
RestoreDBClusterFromSnapshotErrorKind::KmsKeyNotAccessibleFault(_)
)
}
pub fn is_storage_quota_exceeded_fault(&self) -> bool {
matches!(
&self.kind,
RestoreDBClusterFromSnapshotErrorKind::StorageQuotaExceededFault(_)
)
}
}
impl std::error::Error for RestoreDBClusterFromSnapshotError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
RestoreDBClusterFromSnapshotErrorKind::DbClusterAlreadyExistsFault(_inner) => {
Some(_inner)
}
RestoreDBClusterFromSnapshotErrorKind::DbClusterQuotaExceededFault(_inner) => {
Some(_inner)
}
RestoreDBClusterFromSnapshotErrorKind::DbClusterSnapshotNotFoundFault(_inner) => {
Some(_inner)
}
RestoreDBClusterFromSnapshotErrorKind::DbSnapshotNotFoundFault(_inner) => Some(_inner),
RestoreDBClusterFromSnapshotErrorKind::DbSubnetGroupNotFoundFault(_inner) => {
Some(_inner)
}
RestoreDBClusterFromSnapshotErrorKind::InsufficientDbClusterCapacityFault(_inner) => {
Some(_inner)
}
RestoreDBClusterFromSnapshotErrorKind::InsufficientStorageClusterCapacityFault(
_inner,
) => Some(_inner),
RestoreDBClusterFromSnapshotErrorKind::InvalidDbClusterSnapshotStateFault(_inner) => {
Some(_inner)
}
RestoreDBClusterFromSnapshotErrorKind::InvalidDbSnapshotStateFault(_inner) => {
Some(_inner)
}
RestoreDBClusterFromSnapshotErrorKind::InvalidRestoreFault(_inner) => Some(_inner),
RestoreDBClusterFromSnapshotErrorKind::InvalidSubnet(_inner) => Some(_inner),
RestoreDBClusterFromSnapshotErrorKind::InvalidVpcNetworkStateFault(_inner) => {
Some(_inner)
}
RestoreDBClusterFromSnapshotErrorKind::KmsKeyNotAccessibleFault(_inner) => Some(_inner),
RestoreDBClusterFromSnapshotErrorKind::StorageQuotaExceededFault(_inner) => {
Some(_inner)
}
RestoreDBClusterFromSnapshotErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct RestoreDBClusterToPointInTimeError {
pub kind: RestoreDBClusterToPointInTimeErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum RestoreDBClusterToPointInTimeErrorKind {
DbClusterAlreadyExistsFault(crate::error::DbClusterAlreadyExistsFault),
DbClusterNotFoundFault(crate::error::DbClusterNotFoundFault),
DbClusterQuotaExceededFault(crate::error::DbClusterQuotaExceededFault),
DbClusterSnapshotNotFoundFault(crate::error::DbClusterSnapshotNotFoundFault),
DbSubnetGroupNotFoundFault(crate::error::DbSubnetGroupNotFoundFault),
InsufficientDbClusterCapacityFault(crate::error::InsufficientDbClusterCapacityFault),
InsufficientStorageClusterCapacityFault(crate::error::InsufficientStorageClusterCapacityFault),
InvalidDbClusterSnapshotStateFault(crate::error::InvalidDbClusterSnapshotStateFault),
InvalidDbClusterStateFault(crate::error::InvalidDbClusterStateFault),
InvalidDbSnapshotStateFault(crate::error::InvalidDbSnapshotStateFault),
InvalidRestoreFault(crate::error::InvalidRestoreFault),
InvalidSubnet(crate::error::InvalidSubnet),
InvalidVpcNetworkStateFault(crate::error::InvalidVpcNetworkStateFault),
KmsKeyNotAccessibleFault(crate::error::KmsKeyNotAccessibleFault),
StorageQuotaExceededFault(crate::error::StorageQuotaExceededFault),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for RestoreDBClusterToPointInTimeError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
RestoreDBClusterToPointInTimeErrorKind::DbClusterAlreadyExistsFault(_inner) => {
_inner.fmt(f)
}
RestoreDBClusterToPointInTimeErrorKind::DbClusterNotFoundFault(_inner) => _inner.fmt(f),
RestoreDBClusterToPointInTimeErrorKind::DbClusterQuotaExceededFault(_inner) => {
_inner.fmt(f)
}
RestoreDBClusterToPointInTimeErrorKind::DbClusterSnapshotNotFoundFault(_inner) => {
_inner.fmt(f)
}
RestoreDBClusterToPointInTimeErrorKind::DbSubnetGroupNotFoundFault(_inner) => {
_inner.fmt(f)
}
RestoreDBClusterToPointInTimeErrorKind::InsufficientDbClusterCapacityFault(_inner) => {
_inner.fmt(f)
}
RestoreDBClusterToPointInTimeErrorKind::InsufficientStorageClusterCapacityFault(
_inner,
) => _inner.fmt(f),
RestoreDBClusterToPointInTimeErrorKind::InvalidDbClusterSnapshotStateFault(_inner) => {
_inner.fmt(f)
}
RestoreDBClusterToPointInTimeErrorKind::InvalidDbClusterStateFault(_inner) => {
_inner.fmt(f)
}
RestoreDBClusterToPointInTimeErrorKind::InvalidDbSnapshotStateFault(_inner) => {
_inner.fmt(f)
}
RestoreDBClusterToPointInTimeErrorKind::InvalidRestoreFault(_inner) => _inner.fmt(f),
RestoreDBClusterToPointInTimeErrorKind::InvalidSubnet(_inner) => _inner.fmt(f),
RestoreDBClusterToPointInTimeErrorKind::InvalidVpcNetworkStateFault(_inner) => {
_inner.fmt(f)
}
RestoreDBClusterToPointInTimeErrorKind::KmsKeyNotAccessibleFault(_inner) => {
_inner.fmt(f)
}
RestoreDBClusterToPointInTimeErrorKind::StorageQuotaExceededFault(_inner) => {
_inner.fmt(f)
}
RestoreDBClusterToPointInTimeErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for RestoreDBClusterToPointInTimeError {
fn code(&self) -> Option<&str> {
RestoreDBClusterToPointInTimeError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl RestoreDBClusterToPointInTimeError {
pub fn new(
kind: RestoreDBClusterToPointInTimeErrorKind,
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: RestoreDBClusterToPointInTimeErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: RestoreDBClusterToPointInTimeErrorKind::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_db_cluster_already_exists_fault(&self) -> bool {
matches!(
&self.kind,
RestoreDBClusterToPointInTimeErrorKind::DbClusterAlreadyExistsFault(_)
)
}
pub fn is_db_cluster_not_found_fault(&self) -> bool {
matches!(
&self.kind,
RestoreDBClusterToPointInTimeErrorKind::DbClusterNotFoundFault(_)
)
}
pub fn is_db_cluster_quota_exceeded_fault(&self) -> bool {
matches!(
&self.kind,
RestoreDBClusterToPointInTimeErrorKind::DbClusterQuotaExceededFault(_)
)
}
pub fn is_db_cluster_snapshot_not_found_fault(&self) -> bool {
matches!(
&self.kind,
RestoreDBClusterToPointInTimeErrorKind::DbClusterSnapshotNotFoundFault(_)
)
}
pub fn is_db_subnet_group_not_found_fault(&self) -> bool {
matches!(
&self.kind,
RestoreDBClusterToPointInTimeErrorKind::DbSubnetGroupNotFoundFault(_)
)
}
pub fn is_insufficient_db_cluster_capacity_fault(&self) -> bool {
matches!(
&self.kind,
RestoreDBClusterToPointInTimeErrorKind::InsufficientDbClusterCapacityFault(_)
)
}
pub fn is_insufficient_storage_cluster_capacity_fault(&self) -> bool {
matches!(
&self.kind,
RestoreDBClusterToPointInTimeErrorKind::InsufficientStorageClusterCapacityFault(_)
)
}
pub fn is_invalid_db_cluster_snapshot_state_fault(&self) -> bool {
matches!(
&self.kind,
RestoreDBClusterToPointInTimeErrorKind::InvalidDbClusterSnapshotStateFault(_)
)
}
pub fn is_invalid_db_cluster_state_fault(&self) -> bool {
matches!(
&self.kind,
RestoreDBClusterToPointInTimeErrorKind::InvalidDbClusterStateFault(_)
)
}
pub fn is_invalid_db_snapshot_state_fault(&self) -> bool {
matches!(
&self.kind,
RestoreDBClusterToPointInTimeErrorKind::InvalidDbSnapshotStateFault(_)
)
}
pub fn is_invalid_restore_fault(&self) -> bool {
matches!(
&self.kind,
RestoreDBClusterToPointInTimeErrorKind::InvalidRestoreFault(_)
)
}
pub fn is_invalid_subnet(&self) -> bool {
matches!(
&self.kind,
RestoreDBClusterToPointInTimeErrorKind::InvalidSubnet(_)
)
}
pub fn is_invalid_vpc_network_state_fault(&self) -> bool {
matches!(
&self.kind,
RestoreDBClusterToPointInTimeErrorKind::InvalidVpcNetworkStateFault(_)
)
}
pub fn is_kms_key_not_accessible_fault(&self) -> bool {
matches!(
&self.kind,
RestoreDBClusterToPointInTimeErrorKind::KmsKeyNotAccessibleFault(_)
)
}
pub fn is_storage_quota_exceeded_fault(&self) -> bool {
matches!(
&self.kind,
RestoreDBClusterToPointInTimeErrorKind::StorageQuotaExceededFault(_)
)
}
}
impl std::error::Error for RestoreDBClusterToPointInTimeError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
RestoreDBClusterToPointInTimeErrorKind::DbClusterAlreadyExistsFault(_inner) => {
Some(_inner)
}
RestoreDBClusterToPointInTimeErrorKind::DbClusterNotFoundFault(_inner) => Some(_inner),
RestoreDBClusterToPointInTimeErrorKind::DbClusterQuotaExceededFault(_inner) => {
Some(_inner)
}
RestoreDBClusterToPointInTimeErrorKind::DbClusterSnapshotNotFoundFault(_inner) => {
Some(_inner)
}
RestoreDBClusterToPointInTimeErrorKind::DbSubnetGroupNotFoundFault(_inner) => {
Some(_inner)
}
RestoreDBClusterToPointInTimeErrorKind::InsufficientDbClusterCapacityFault(_inner) => {
Some(_inner)
}
RestoreDBClusterToPointInTimeErrorKind::InsufficientStorageClusterCapacityFault(
_inner,
) => Some(_inner),
RestoreDBClusterToPointInTimeErrorKind::InvalidDbClusterSnapshotStateFault(_inner) => {
Some(_inner)
}
RestoreDBClusterToPointInTimeErrorKind::InvalidDbClusterStateFault(_inner) => {
Some(_inner)
}
RestoreDBClusterToPointInTimeErrorKind::InvalidDbSnapshotStateFault(_inner) => {
Some(_inner)
}
RestoreDBClusterToPointInTimeErrorKind::InvalidRestoreFault(_inner) => Some(_inner),
RestoreDBClusterToPointInTimeErrorKind::InvalidSubnet(_inner) => Some(_inner),
RestoreDBClusterToPointInTimeErrorKind::InvalidVpcNetworkStateFault(_inner) => {
Some(_inner)
}
RestoreDBClusterToPointInTimeErrorKind::KmsKeyNotAccessibleFault(_inner) => {
Some(_inner)
}
RestoreDBClusterToPointInTimeErrorKind::StorageQuotaExceededFault(_inner) => {
Some(_inner)
}
RestoreDBClusterToPointInTimeErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct StartDBClusterError {
pub kind: StartDBClusterErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum StartDBClusterErrorKind {
DbClusterNotFoundFault(crate::error::DbClusterNotFoundFault),
InvalidDbClusterStateFault(crate::error::InvalidDbClusterStateFault),
InvalidDbInstanceStateFault(crate::error::InvalidDbInstanceStateFault),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for StartDBClusterError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
StartDBClusterErrorKind::DbClusterNotFoundFault(_inner) => _inner.fmt(f),
StartDBClusterErrorKind::InvalidDbClusterStateFault(_inner) => _inner.fmt(f),
StartDBClusterErrorKind::InvalidDbInstanceStateFault(_inner) => _inner.fmt(f),
StartDBClusterErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for StartDBClusterError {
fn code(&self) -> Option<&str> {
StartDBClusterError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl StartDBClusterError {
pub fn new(kind: StartDBClusterErrorKind, 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: StartDBClusterErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: StartDBClusterErrorKind::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_db_cluster_not_found_fault(&self) -> bool {
matches!(
&self.kind,
StartDBClusterErrorKind::DbClusterNotFoundFault(_)
)
}
pub fn is_invalid_db_cluster_state_fault(&self) -> bool {
matches!(
&self.kind,
StartDBClusterErrorKind::InvalidDbClusterStateFault(_)
)
}
pub fn is_invalid_db_instance_state_fault(&self) -> bool {
matches!(
&self.kind,
StartDBClusterErrorKind::InvalidDbInstanceStateFault(_)
)
}
}
impl std::error::Error for StartDBClusterError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
StartDBClusterErrorKind::DbClusterNotFoundFault(_inner) => Some(_inner),
StartDBClusterErrorKind::InvalidDbClusterStateFault(_inner) => Some(_inner),
StartDBClusterErrorKind::InvalidDbInstanceStateFault(_inner) => Some(_inner),
StartDBClusterErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct StopDBClusterError {
pub kind: StopDBClusterErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum StopDBClusterErrorKind {
DbClusterNotFoundFault(crate::error::DbClusterNotFoundFault),
InvalidDbClusterStateFault(crate::error::InvalidDbClusterStateFault),
InvalidDbInstanceStateFault(crate::error::InvalidDbInstanceStateFault),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for StopDBClusterError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
StopDBClusterErrorKind::DbClusterNotFoundFault(_inner) => _inner.fmt(f),
StopDBClusterErrorKind::InvalidDbClusterStateFault(_inner) => _inner.fmt(f),
StopDBClusterErrorKind::InvalidDbInstanceStateFault(_inner) => _inner.fmt(f),
StopDBClusterErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for StopDBClusterError {
fn code(&self) -> Option<&str> {
StopDBClusterError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl StopDBClusterError {
pub fn new(kind: StopDBClusterErrorKind, 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: StopDBClusterErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: StopDBClusterErrorKind::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_db_cluster_not_found_fault(&self) -> bool {
matches!(
&self.kind,
StopDBClusterErrorKind::DbClusterNotFoundFault(_)
)
}
pub fn is_invalid_db_cluster_state_fault(&self) -> bool {
matches!(
&self.kind,
StopDBClusterErrorKind::InvalidDbClusterStateFault(_)
)
}
pub fn is_invalid_db_instance_state_fault(&self) -> bool {
matches!(
&self.kind,
StopDBClusterErrorKind::InvalidDbInstanceStateFault(_)
)
}
}
impl std::error::Error for StopDBClusterError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
StopDBClusterErrorKind::DbClusterNotFoundFault(_inner) => Some(_inner),
StopDBClusterErrorKind::InvalidDbClusterStateFault(_inner) => Some(_inner),
StopDBClusterErrorKind::InvalidDbInstanceStateFault(_inner) => Some(_inner),
StopDBClusterErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InvalidDbInstanceStateFault {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InvalidDbInstanceStateFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InvalidDbInstanceStateFault");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InvalidDbInstanceStateFault {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidDbInstanceStateFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(
f,
"InvalidDbInstanceStateFault [InvalidDBInstanceStateFault]"
)?;
if let Some(inner_1) = &self.message {
write!(f, ": {}", inner_1)?;
}
Ok(())
}
}
impl std::error::Error for InvalidDbInstanceStateFault {}
pub mod invalid_db_instance_state_fault {
#[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::InvalidDbInstanceStateFault {
crate::error::InvalidDbInstanceStateFault {
message: self.message,
}
}
}
}
impl InvalidDbInstanceStateFault {
pub fn builder() -> crate::error::invalid_db_instance_state_fault::Builder {
crate::error::invalid_db_instance_state_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InvalidDbClusterStateFault {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InvalidDbClusterStateFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InvalidDbClusterStateFault");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InvalidDbClusterStateFault {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidDbClusterStateFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidDbClusterStateFault [InvalidDBClusterStateFault]")?;
if let Some(inner_2) = &self.message {
write!(f, ": {}", inner_2)?;
}
Ok(())
}
}
impl std::error::Error for InvalidDbClusterStateFault {}
pub mod invalid_db_cluster_state_fault {
#[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::InvalidDbClusterStateFault {
crate::error::InvalidDbClusterStateFault {
message: self.message,
}
}
}
}
impl InvalidDbClusterStateFault {
pub fn builder() -> crate::error::invalid_db_cluster_state_fault::Builder {
crate::error::invalid_db_cluster_state_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DbClusterNotFoundFault {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for DbClusterNotFoundFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DbClusterNotFoundFault");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl DbClusterNotFoundFault {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for DbClusterNotFoundFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "DbClusterNotFoundFault [DBClusterNotFoundFault]")?;
if let Some(inner_3) = &self.message {
write!(f, ": {}", inner_3)?;
}
Ok(())
}
}
impl std::error::Error for DbClusterNotFoundFault {}
pub mod db_cluster_not_found_fault {
#[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::DbClusterNotFoundFault {
crate::error::DbClusterNotFoundFault {
message: self.message,
}
}
}
}
impl DbClusterNotFoundFault {
pub fn builder() -> crate::error::db_cluster_not_found_fault::Builder {
crate::error::db_cluster_not_found_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct StorageQuotaExceededFault {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for StorageQuotaExceededFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("StorageQuotaExceededFault");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl StorageQuotaExceededFault {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for StorageQuotaExceededFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "StorageQuotaExceededFault")?;
if let Some(inner_4) = &self.message {
write!(f, ": {}", inner_4)?;
}
Ok(())
}
}
impl std::error::Error for StorageQuotaExceededFault {}
pub mod storage_quota_exceeded_fault {
#[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::StorageQuotaExceededFault {
crate::error::StorageQuotaExceededFault {
message: self.message,
}
}
}
}
impl StorageQuotaExceededFault {
pub fn builder() -> crate::error::storage_quota_exceeded_fault::Builder {
crate::error::storage_quota_exceeded_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct KmsKeyNotAccessibleFault {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for KmsKeyNotAccessibleFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("KmsKeyNotAccessibleFault");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl KmsKeyNotAccessibleFault {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for KmsKeyNotAccessibleFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "KmsKeyNotAccessibleFault [KMSKeyNotAccessibleFault]")?;
if let Some(inner_5) = &self.message {
write!(f, ": {}", inner_5)?;
}
Ok(())
}
}
impl std::error::Error for KmsKeyNotAccessibleFault {}
pub mod kms_key_not_accessible_fault {
#[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::KmsKeyNotAccessibleFault {
crate::error::KmsKeyNotAccessibleFault {
message: self.message,
}
}
}
}
impl KmsKeyNotAccessibleFault {
pub fn builder() -> crate::error::kms_key_not_accessible_fault::Builder {
crate::error::kms_key_not_accessible_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InvalidVpcNetworkStateFault {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InvalidVpcNetworkStateFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InvalidVpcNetworkStateFault");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InvalidVpcNetworkStateFault {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidVpcNetworkStateFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(
f,
"InvalidVpcNetworkStateFault [InvalidVPCNetworkStateFault]"
)?;
if let Some(inner_6) = &self.message {
write!(f, ": {}", inner_6)?;
}
Ok(())
}
}
impl std::error::Error for InvalidVpcNetworkStateFault {}
pub mod invalid_vpc_network_state_fault {
#[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::InvalidVpcNetworkStateFault {
crate::error::InvalidVpcNetworkStateFault {
message: self.message,
}
}
}
}
impl InvalidVpcNetworkStateFault {
pub fn builder() -> crate::error::invalid_vpc_network_state_fault::Builder {
crate::error::invalid_vpc_network_state_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InvalidSubnet {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InvalidSubnet {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InvalidSubnet");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InvalidSubnet {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidSubnet {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidSubnet")?;
if let Some(inner_7) = &self.message {
write!(f, ": {}", inner_7)?;
}
Ok(())
}
}
impl std::error::Error for InvalidSubnet {}
pub mod invalid_subnet {
#[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::InvalidSubnet {
crate::error::InvalidSubnet {
message: self.message,
}
}
}
}
impl InvalidSubnet {
pub fn builder() -> crate::error::invalid_subnet::Builder {
crate::error::invalid_subnet::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InvalidRestoreFault {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InvalidRestoreFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InvalidRestoreFault");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InvalidRestoreFault {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidRestoreFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidRestoreFault")?;
if let Some(inner_8) = &self.message {
write!(f, ": {}", inner_8)?;
}
Ok(())
}
}
impl std::error::Error for InvalidRestoreFault {}
pub mod invalid_restore_fault {
#[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::InvalidRestoreFault {
crate::error::InvalidRestoreFault {
message: self.message,
}
}
}
}
impl InvalidRestoreFault {
pub fn builder() -> crate::error::invalid_restore_fault::Builder {
crate::error::invalid_restore_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InvalidDbSnapshotStateFault {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InvalidDbSnapshotStateFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InvalidDbSnapshotStateFault");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InvalidDbSnapshotStateFault {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidDbSnapshotStateFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(
f,
"InvalidDbSnapshotStateFault [InvalidDBSnapshotStateFault]"
)?;
if let Some(inner_9) = &self.message {
write!(f, ": {}", inner_9)?;
}
Ok(())
}
}
impl std::error::Error for InvalidDbSnapshotStateFault {}
pub mod invalid_db_snapshot_state_fault {
#[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::InvalidDbSnapshotStateFault {
crate::error::InvalidDbSnapshotStateFault {
message: self.message,
}
}
}
}
impl InvalidDbSnapshotStateFault {
pub fn builder() -> crate::error::invalid_db_snapshot_state_fault::Builder {
crate::error::invalid_db_snapshot_state_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InvalidDbClusterSnapshotStateFault {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InvalidDbClusterSnapshotStateFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InvalidDbClusterSnapshotStateFault");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InvalidDbClusterSnapshotStateFault {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidDbClusterSnapshotStateFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(
f,
"InvalidDbClusterSnapshotStateFault [InvalidDBClusterSnapshotStateFault]"
)?;
if let Some(inner_10) = &self.message {
write!(f, ": {}", inner_10)?;
}
Ok(())
}
}
impl std::error::Error for InvalidDbClusterSnapshotStateFault {}
pub mod invalid_db_cluster_snapshot_state_fault {
#[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::InvalidDbClusterSnapshotStateFault {
crate::error::InvalidDbClusterSnapshotStateFault {
message: self.message,
}
}
}
}
impl InvalidDbClusterSnapshotStateFault {
pub fn builder() -> crate::error::invalid_db_cluster_snapshot_state_fault::Builder {
crate::error::invalid_db_cluster_snapshot_state_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InsufficientStorageClusterCapacityFault {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InsufficientStorageClusterCapacityFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InsufficientStorageClusterCapacityFault");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InsufficientStorageClusterCapacityFault {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InsufficientStorageClusterCapacityFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InsufficientStorageClusterCapacityFault")?;
if let Some(inner_11) = &self.message {
write!(f, ": {}", inner_11)?;
}
Ok(())
}
}
impl std::error::Error for InsufficientStorageClusterCapacityFault {}
pub mod insufficient_storage_cluster_capacity_fault {
#[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::InsufficientStorageClusterCapacityFault {
crate::error::InsufficientStorageClusterCapacityFault {
message: self.message,
}
}
}
}
impl InsufficientStorageClusterCapacityFault {
pub fn builder() -> crate::error::insufficient_storage_cluster_capacity_fault::Builder {
crate::error::insufficient_storage_cluster_capacity_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InsufficientDbClusterCapacityFault {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InsufficientDbClusterCapacityFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InsufficientDbClusterCapacityFault");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InsufficientDbClusterCapacityFault {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InsufficientDbClusterCapacityFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(
f,
"InsufficientDbClusterCapacityFault [InsufficientDBClusterCapacityFault]"
)?;
if let Some(inner_12) = &self.message {
write!(f, ": {}", inner_12)?;
}
Ok(())
}
}
impl std::error::Error for InsufficientDbClusterCapacityFault {}
pub mod insufficient_db_cluster_capacity_fault {
#[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::InsufficientDbClusterCapacityFault {
crate::error::InsufficientDbClusterCapacityFault {
message: self.message,
}
}
}
}
impl InsufficientDbClusterCapacityFault {
pub fn builder() -> crate::error::insufficient_db_cluster_capacity_fault::Builder {
crate::error::insufficient_db_cluster_capacity_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DbSubnetGroupNotFoundFault {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for DbSubnetGroupNotFoundFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DbSubnetGroupNotFoundFault");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl DbSubnetGroupNotFoundFault {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for DbSubnetGroupNotFoundFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "DbSubnetGroupNotFoundFault [DBSubnetGroupNotFoundFault]")?;
if let Some(inner_13) = &self.message {
write!(f, ": {}", inner_13)?;
}
Ok(())
}
}
impl std::error::Error for DbSubnetGroupNotFoundFault {}
pub mod db_subnet_group_not_found_fault {
#[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::DbSubnetGroupNotFoundFault {
crate::error::DbSubnetGroupNotFoundFault {
message: self.message,
}
}
}
}
impl DbSubnetGroupNotFoundFault {
pub fn builder() -> crate::error::db_subnet_group_not_found_fault::Builder {
crate::error::db_subnet_group_not_found_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DbClusterSnapshotNotFoundFault {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for DbClusterSnapshotNotFoundFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DbClusterSnapshotNotFoundFault");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl DbClusterSnapshotNotFoundFault {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for DbClusterSnapshotNotFoundFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(
f,
"DbClusterSnapshotNotFoundFault [DBClusterSnapshotNotFoundFault]"
)?;
if let Some(inner_14) = &self.message {
write!(f, ": {}", inner_14)?;
}
Ok(())
}
}
impl std::error::Error for DbClusterSnapshotNotFoundFault {}
pub mod db_cluster_snapshot_not_found_fault {
#[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::DbClusterSnapshotNotFoundFault {
crate::error::DbClusterSnapshotNotFoundFault {
message: self.message,
}
}
}
}
impl DbClusterSnapshotNotFoundFault {
pub fn builder() -> crate::error::db_cluster_snapshot_not_found_fault::Builder {
crate::error::db_cluster_snapshot_not_found_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DbClusterQuotaExceededFault {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for DbClusterQuotaExceededFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DbClusterQuotaExceededFault");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl DbClusterQuotaExceededFault {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for DbClusterQuotaExceededFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(
f,
"DbClusterQuotaExceededFault [DBClusterQuotaExceededFault]"
)?;
if let Some(inner_15) = &self.message {
write!(f, ": {}", inner_15)?;
}
Ok(())
}
}
impl std::error::Error for DbClusterQuotaExceededFault {}
pub mod db_cluster_quota_exceeded_fault {
#[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::DbClusterQuotaExceededFault {
crate::error::DbClusterQuotaExceededFault {
message: self.message,
}
}
}
}
impl DbClusterQuotaExceededFault {
pub fn builder() -> crate::error::db_cluster_quota_exceeded_fault::Builder {
crate::error::db_cluster_quota_exceeded_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DbClusterAlreadyExistsFault {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for DbClusterAlreadyExistsFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DbClusterAlreadyExistsFault");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl DbClusterAlreadyExistsFault {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for DbClusterAlreadyExistsFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(
f,
"DbClusterAlreadyExistsFault [DBClusterAlreadyExistsFault]"
)?;
if let Some(inner_16) = &self.message {
write!(f, ": {}", inner_16)?;
}
Ok(())
}
}
impl std::error::Error for DbClusterAlreadyExistsFault {}
pub mod db_cluster_already_exists_fault {
#[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::DbClusterAlreadyExistsFault {
crate::error::DbClusterAlreadyExistsFault {
message: self.message,
}
}
}
}
impl DbClusterAlreadyExistsFault {
pub fn builder() -> crate::error::db_cluster_already_exists_fault::Builder {
crate::error::db_cluster_already_exists_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DbSnapshotNotFoundFault {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for DbSnapshotNotFoundFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DbSnapshotNotFoundFault");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl DbSnapshotNotFoundFault {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for DbSnapshotNotFoundFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "DbSnapshotNotFoundFault [DBSnapshotNotFoundFault]")?;
if let Some(inner_17) = &self.message {
write!(f, ": {}", inner_17)?;
}
Ok(())
}
}
impl std::error::Error for DbSnapshotNotFoundFault {}
pub mod db_snapshot_not_found_fault {
#[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::DbSnapshotNotFoundFault {
crate::error::DbSnapshotNotFoundFault {
message: self.message,
}
}
}
}
impl DbSnapshotNotFoundFault {
pub fn builder() -> crate::error::db_snapshot_not_found_fault::Builder {
crate::error::db_snapshot_not_found_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InvalidDbParameterGroupStateFault {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InvalidDbParameterGroupStateFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InvalidDbParameterGroupStateFault");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InvalidDbParameterGroupStateFault {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidDbParameterGroupStateFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(
f,
"InvalidDbParameterGroupStateFault [InvalidDBParameterGroupStateFault]"
)?;
if let Some(inner_18) = &self.message {
write!(f, ": {}", inner_18)?;
}
Ok(())
}
}
impl std::error::Error for InvalidDbParameterGroupStateFault {}
pub mod invalid_db_parameter_group_state_fault {
#[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::InvalidDbParameterGroupStateFault {
crate::error::InvalidDbParameterGroupStateFault {
message: self.message,
}
}
}
}
impl InvalidDbParameterGroupStateFault {
pub fn builder() -> crate::error::invalid_db_parameter_group_state_fault::Builder {
crate::error::invalid_db_parameter_group_state_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DbParameterGroupNotFoundFault {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for DbParameterGroupNotFoundFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DbParameterGroupNotFoundFault");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl DbParameterGroupNotFoundFault {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for DbParameterGroupNotFoundFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(
f,
"DbParameterGroupNotFoundFault [DBParameterGroupNotFoundFault]"
)?;
if let Some(inner_19) = &self.message {
write!(f, ": {}", inner_19)?;
}
Ok(())
}
}
impl std::error::Error for DbParameterGroupNotFoundFault {}
pub mod db_parameter_group_not_found_fault {
#[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::DbParameterGroupNotFoundFault {
crate::error::DbParameterGroupNotFoundFault {
message: self.message,
}
}
}
}
impl DbParameterGroupNotFoundFault {
pub fn builder() -> crate::error::db_parameter_group_not_found_fault::Builder {
crate::error::db_parameter_group_not_found_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DbInstanceNotFoundFault {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for DbInstanceNotFoundFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DbInstanceNotFoundFault");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl DbInstanceNotFoundFault {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for DbInstanceNotFoundFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "DbInstanceNotFoundFault [DBInstanceNotFoundFault]")?;
if let Some(inner_20) = &self.message {
write!(f, ": {}", inner_20)?;
}
Ok(())
}
}
impl std::error::Error for DbInstanceNotFoundFault {}
pub mod db_instance_not_found_fault {
#[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::DbInstanceNotFoundFault {
crate::error::DbInstanceNotFoundFault {
message: self.message,
}
}
}
}
impl DbInstanceNotFoundFault {
pub fn builder() -> crate::error::db_instance_not_found_fault::Builder {
crate::error::db_instance_not_found_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct SubscriptionNotFoundFault {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for SubscriptionNotFoundFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("SubscriptionNotFoundFault");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl SubscriptionNotFoundFault {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for SubscriptionNotFoundFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "SubscriptionNotFoundFault")?;
if let Some(inner_21) = &self.message {
write!(f, ": {}", inner_21)?;
}
Ok(())
}
}
impl std::error::Error for SubscriptionNotFoundFault {}
pub mod subscription_not_found_fault {
#[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::SubscriptionNotFoundFault {
crate::error::SubscriptionNotFoundFault {
message: self.message,
}
}
}
}
impl SubscriptionNotFoundFault {
pub fn builder() -> crate::error::subscription_not_found_fault::Builder {
crate::error::subscription_not_found_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct SourceNotFoundFault {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for SourceNotFoundFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("SourceNotFoundFault");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl SourceNotFoundFault {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for SourceNotFoundFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "SourceNotFoundFault")?;
if let Some(inner_22) = &self.message {
write!(f, ": {}", inner_22)?;
}
Ok(())
}
}
impl std::error::Error for SourceNotFoundFault {}
pub mod source_not_found_fault {
#[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::SourceNotFoundFault {
crate::error::SourceNotFoundFault {
message: self.message,
}
}
}
}
impl SourceNotFoundFault {
pub fn builder() -> crate::error::source_not_found_fault::Builder {
crate::error::source_not_found_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InvalidGlobalClusterStateFault {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InvalidGlobalClusterStateFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InvalidGlobalClusterStateFault");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InvalidGlobalClusterStateFault {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidGlobalClusterStateFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidGlobalClusterStateFault")?;
if let Some(inner_23) = &self.message {
write!(f, ": {}", inner_23)?;
}
Ok(())
}
}
impl std::error::Error for InvalidGlobalClusterStateFault {}
pub mod invalid_global_cluster_state_fault {
#[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::InvalidGlobalClusterStateFault {
crate::error::InvalidGlobalClusterStateFault {
message: self.message,
}
}
}
}
impl InvalidGlobalClusterStateFault {
pub fn builder() -> crate::error::invalid_global_cluster_state_fault::Builder {
crate::error::invalid_global_cluster_state_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct GlobalClusterNotFoundFault {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for GlobalClusterNotFoundFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("GlobalClusterNotFoundFault");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl GlobalClusterNotFoundFault {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for GlobalClusterNotFoundFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "GlobalClusterNotFoundFault")?;
if let Some(inner_24) = &self.message {
write!(f, ": {}", inner_24)?;
}
Ok(())
}
}
impl std::error::Error for GlobalClusterNotFoundFault {}
pub mod global_cluster_not_found_fault {
#[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::GlobalClusterNotFoundFault {
crate::error::GlobalClusterNotFoundFault {
message: self.message,
}
}
}
}
impl GlobalClusterNotFoundFault {
pub fn builder() -> crate::error::global_cluster_not_found_fault::Builder {
crate::error::global_cluster_not_found_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct SubscriptionCategoryNotFoundFault {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for SubscriptionCategoryNotFoundFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("SubscriptionCategoryNotFoundFault");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl SubscriptionCategoryNotFoundFault {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for SubscriptionCategoryNotFoundFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "SubscriptionCategoryNotFoundFault")?;
if let Some(inner_25) = &self.message {
write!(f, ": {}", inner_25)?;
}
Ok(())
}
}
impl std::error::Error for SubscriptionCategoryNotFoundFault {}
pub mod subscription_category_not_found_fault {
#[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::SubscriptionCategoryNotFoundFault {
crate::error::SubscriptionCategoryNotFoundFault {
message: self.message,
}
}
}
}
impl SubscriptionCategoryNotFoundFault {
pub fn builder() -> crate::error::subscription_category_not_found_fault::Builder {
crate::error::subscription_category_not_found_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct SnsTopicArnNotFoundFault {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for SnsTopicArnNotFoundFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("SnsTopicArnNotFoundFault");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl SnsTopicArnNotFoundFault {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for SnsTopicArnNotFoundFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "SnsTopicArnNotFoundFault [SNSTopicArnNotFoundFault]")?;
if let Some(inner_26) = &self.message {
write!(f, ": {}", inner_26)?;
}
Ok(())
}
}
impl std::error::Error for SnsTopicArnNotFoundFault {}
pub mod sns_topic_arn_not_found_fault {
#[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::SnsTopicArnNotFoundFault {
crate::error::SnsTopicArnNotFoundFault {
message: self.message,
}
}
}
}
impl SnsTopicArnNotFoundFault {
pub fn builder() -> crate::error::sns_topic_arn_not_found_fault::Builder {
crate::error::sns_topic_arn_not_found_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct SnsNoAuthorizationFault {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for SnsNoAuthorizationFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("SnsNoAuthorizationFault");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl SnsNoAuthorizationFault {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for SnsNoAuthorizationFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "SnsNoAuthorizationFault [SNSNoAuthorizationFault]")?;
if let Some(inner_27) = &self.message {
write!(f, ": {}", inner_27)?;
}
Ok(())
}
}
impl std::error::Error for SnsNoAuthorizationFault {}
pub mod sns_no_authorization_fault {
#[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::SnsNoAuthorizationFault {
crate::error::SnsNoAuthorizationFault {
message: self.message,
}
}
}
}
impl SnsNoAuthorizationFault {
pub fn builder() -> crate::error::sns_no_authorization_fault::Builder {
crate::error::sns_no_authorization_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct SnsInvalidTopicFault {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for SnsInvalidTopicFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("SnsInvalidTopicFault");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl SnsInvalidTopicFault {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for SnsInvalidTopicFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "SnsInvalidTopicFault [SNSInvalidTopicFault]")?;
if let Some(inner_28) = &self.message {
write!(f, ": {}", inner_28)?;
}
Ok(())
}
}
impl std::error::Error for SnsInvalidTopicFault {}
pub mod sns_invalid_topic_fault {
#[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::SnsInvalidTopicFault {
crate::error::SnsInvalidTopicFault {
message: self.message,
}
}
}
}
impl SnsInvalidTopicFault {
pub fn builder() -> crate::error::sns_invalid_topic_fault::Builder {
crate::error::sns_invalid_topic_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct EventSubscriptionQuotaExceededFault {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for EventSubscriptionQuotaExceededFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("EventSubscriptionQuotaExceededFault");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl EventSubscriptionQuotaExceededFault {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for EventSubscriptionQuotaExceededFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "EventSubscriptionQuotaExceededFault")?;
if let Some(inner_29) = &self.message {
write!(f, ": {}", inner_29)?;
}
Ok(())
}
}
impl std::error::Error for EventSubscriptionQuotaExceededFault {}
pub mod event_subscription_quota_exceeded_fault {
#[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::EventSubscriptionQuotaExceededFault {
crate::error::EventSubscriptionQuotaExceededFault {
message: self.message,
}
}
}
}
impl EventSubscriptionQuotaExceededFault {
pub fn builder() -> crate::error::event_subscription_quota_exceeded_fault::Builder {
crate::error::event_subscription_quota_exceeded_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct SubnetAlreadyInUse {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for SubnetAlreadyInUse {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("SubnetAlreadyInUse");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl SubnetAlreadyInUse {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for SubnetAlreadyInUse {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "SubnetAlreadyInUse")?;
if let Some(inner_30) = &self.message {
write!(f, ": {}", inner_30)?;
}
Ok(())
}
}
impl std::error::Error for SubnetAlreadyInUse {}
pub mod subnet_already_in_use {
#[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::SubnetAlreadyInUse {
crate::error::SubnetAlreadyInUse {
message: self.message,
}
}
}
}
impl SubnetAlreadyInUse {
pub fn builder() -> crate::error::subnet_already_in_use::Builder {
crate::error::subnet_already_in_use::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DbSubnetQuotaExceededFault {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for DbSubnetQuotaExceededFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DbSubnetQuotaExceededFault");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl DbSubnetQuotaExceededFault {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for DbSubnetQuotaExceededFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "DbSubnetQuotaExceededFault [DBSubnetQuotaExceededFault]")?;
if let Some(inner_31) = &self.message {
write!(f, ": {}", inner_31)?;
}
Ok(())
}
}
impl std::error::Error for DbSubnetQuotaExceededFault {}
pub mod db_subnet_quota_exceeded_fault {
#[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::DbSubnetQuotaExceededFault {
crate::error::DbSubnetQuotaExceededFault {
message: self.message,
}
}
}
}
impl DbSubnetQuotaExceededFault {
pub fn builder() -> crate::error::db_subnet_quota_exceeded_fault::Builder {
crate::error::db_subnet_quota_exceeded_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DbSubnetGroupDoesNotCoverEnoughAZs {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for DbSubnetGroupDoesNotCoverEnoughAZs {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DbSubnetGroupDoesNotCoverEnoughAZs");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl DbSubnetGroupDoesNotCoverEnoughAZs {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for DbSubnetGroupDoesNotCoverEnoughAZs {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(
f,
"DbSubnetGroupDoesNotCoverEnoughAZs [DBSubnetGroupDoesNotCoverEnoughAZs]"
)?;
if let Some(inner_32) = &self.message {
write!(f, ": {}", inner_32)?;
}
Ok(())
}
}
impl std::error::Error for DbSubnetGroupDoesNotCoverEnoughAZs {}
pub mod db_subnet_group_does_not_cover_enough_a_zs {
#[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::DbSubnetGroupDoesNotCoverEnoughAZs {
crate::error::DbSubnetGroupDoesNotCoverEnoughAZs {
message: self.message,
}
}
}
}
impl DbSubnetGroupDoesNotCoverEnoughAZs {
pub fn builder() -> crate::error::db_subnet_group_does_not_cover_enough_a_zs::Builder {
crate::error::db_subnet_group_does_not_cover_enough_a_zs::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct StorageTypeNotSupportedFault {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for StorageTypeNotSupportedFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("StorageTypeNotSupportedFault");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl StorageTypeNotSupportedFault {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for StorageTypeNotSupportedFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "StorageTypeNotSupportedFault")?;
if let Some(inner_33) = &self.message {
write!(f, ": {}", inner_33)?;
}
Ok(())
}
}
impl std::error::Error for StorageTypeNotSupportedFault {}
pub mod storage_type_not_supported_fault {
#[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::StorageTypeNotSupportedFault {
crate::error::StorageTypeNotSupportedFault {
message: self.message,
}
}
}
}
impl StorageTypeNotSupportedFault {
pub fn builder() -> crate::error::storage_type_not_supported_fault::Builder {
crate::error::storage_type_not_supported_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InvalidDbSecurityGroupStateFault {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InvalidDbSecurityGroupStateFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InvalidDbSecurityGroupStateFault");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InvalidDbSecurityGroupStateFault {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidDbSecurityGroupStateFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(
f,
"InvalidDbSecurityGroupStateFault [InvalidDBSecurityGroupStateFault]"
)?;
if let Some(inner_34) = &self.message {
write!(f, ": {}", inner_34)?;
}
Ok(())
}
}
impl std::error::Error for InvalidDbSecurityGroupStateFault {}
pub mod invalid_db_security_group_state_fault {
#[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::InvalidDbSecurityGroupStateFault {
crate::error::InvalidDbSecurityGroupStateFault {
message: self.message,
}
}
}
}
impl InvalidDbSecurityGroupStateFault {
pub fn builder() -> crate::error::invalid_db_security_group_state_fault::Builder {
crate::error::invalid_db_security_group_state_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InsufficientDbInstanceCapacityFault {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InsufficientDbInstanceCapacityFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InsufficientDbInstanceCapacityFault");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InsufficientDbInstanceCapacityFault {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InsufficientDbInstanceCapacityFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(
f,
"InsufficientDbInstanceCapacityFault [InsufficientDBInstanceCapacityFault]"
)?;
if let Some(inner_35) = &self.message {
write!(f, ": {}", inner_35)?;
}
Ok(())
}
}
impl std::error::Error for InsufficientDbInstanceCapacityFault {}
pub mod insufficient_db_instance_capacity_fault {
#[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::InsufficientDbInstanceCapacityFault {
crate::error::InsufficientDbInstanceCapacityFault {
message: self.message,
}
}
}
}
impl InsufficientDbInstanceCapacityFault {
pub fn builder() -> crate::error::insufficient_db_instance_capacity_fault::Builder {
crate::error::insufficient_db_instance_capacity_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DbUpgradeDependencyFailureFault {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for DbUpgradeDependencyFailureFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DbUpgradeDependencyFailureFault");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl DbUpgradeDependencyFailureFault {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for DbUpgradeDependencyFailureFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(
f,
"DbUpgradeDependencyFailureFault [DBUpgradeDependencyFailureFault]"
)?;
if let Some(inner_36) = &self.message {
write!(f, ": {}", inner_36)?;
}
Ok(())
}
}
impl std::error::Error for DbUpgradeDependencyFailureFault {}
pub mod db_upgrade_dependency_failure_fault {
#[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::DbUpgradeDependencyFailureFault {
crate::error::DbUpgradeDependencyFailureFault {
message: self.message,
}
}
}
}
impl DbUpgradeDependencyFailureFault {
pub fn builder() -> crate::error::db_upgrade_dependency_failure_fault::Builder {
crate::error::db_upgrade_dependency_failure_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DbSecurityGroupNotFoundFault {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for DbSecurityGroupNotFoundFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DbSecurityGroupNotFoundFault");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl DbSecurityGroupNotFoundFault {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for DbSecurityGroupNotFoundFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(
f,
"DbSecurityGroupNotFoundFault [DBSecurityGroupNotFoundFault]"
)?;
if let Some(inner_37) = &self.message {
write!(f, ": {}", inner_37)?;
}
Ok(())
}
}
impl std::error::Error for DbSecurityGroupNotFoundFault {}
pub mod db_security_group_not_found_fault {
#[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::DbSecurityGroupNotFoundFault {
crate::error::DbSecurityGroupNotFoundFault {
message: self.message,
}
}
}
}
impl DbSecurityGroupNotFoundFault {
pub fn builder() -> crate::error::db_security_group_not_found_fault::Builder {
crate::error::db_security_group_not_found_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DbInstanceAlreadyExistsFault {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for DbInstanceAlreadyExistsFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DbInstanceAlreadyExistsFault");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl DbInstanceAlreadyExistsFault {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for DbInstanceAlreadyExistsFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(
f,
"DbInstanceAlreadyExistsFault [DBInstanceAlreadyExistsFault]"
)?;
if let Some(inner_38) = &self.message {
write!(f, ": {}", inner_38)?;
}
Ok(())
}
}
impl std::error::Error for DbInstanceAlreadyExistsFault {}
pub mod db_instance_already_exists_fault {
#[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::DbInstanceAlreadyExistsFault {
crate::error::DbInstanceAlreadyExistsFault {
message: self.message,
}
}
}
}
impl DbInstanceAlreadyExistsFault {
pub fn builder() -> crate::error::db_instance_already_exists_fault::Builder {
crate::error::db_instance_already_exists_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct CertificateNotFoundFault {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for CertificateNotFoundFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("CertificateNotFoundFault");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl CertificateNotFoundFault {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for CertificateNotFoundFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "CertificateNotFoundFault")?;
if let Some(inner_39) = &self.message {
write!(f, ": {}", inner_39)?;
}
Ok(())
}
}
impl std::error::Error for CertificateNotFoundFault {}
pub mod certificate_not_found_fault {
#[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::CertificateNotFoundFault {
crate::error::CertificateNotFoundFault {
message: self.message,
}
}
}
}
impl CertificateNotFoundFault {
pub fn builder() -> crate::error::certificate_not_found_fault::Builder {
crate::error::certificate_not_found_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct AuthorizationNotFoundFault {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for AuthorizationNotFoundFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("AuthorizationNotFoundFault");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl AuthorizationNotFoundFault {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for AuthorizationNotFoundFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "AuthorizationNotFoundFault")?;
if let Some(inner_40) = &self.message {
write!(f, ": {}", inner_40)?;
}
Ok(())
}
}
impl std::error::Error for AuthorizationNotFoundFault {}
pub mod authorization_not_found_fault {
#[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::AuthorizationNotFoundFault {
crate::error::AuthorizationNotFoundFault {
message: self.message,
}
}
}
}
impl AuthorizationNotFoundFault {
pub fn builder() -> crate::error::authorization_not_found_fault::Builder {
crate::error::authorization_not_found_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct SharedSnapshotQuotaExceededFault {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for SharedSnapshotQuotaExceededFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("SharedSnapshotQuotaExceededFault");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl SharedSnapshotQuotaExceededFault {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for SharedSnapshotQuotaExceededFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "SharedSnapshotQuotaExceededFault")?;
if let Some(inner_41) = &self.message {
write!(f, ": {}", inner_41)?;
}
Ok(())
}
}
impl std::error::Error for SharedSnapshotQuotaExceededFault {}
pub mod shared_snapshot_quota_exceeded_fault {
#[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::SharedSnapshotQuotaExceededFault {
crate::error::SharedSnapshotQuotaExceededFault {
message: self.message,
}
}
}
}
impl SharedSnapshotQuotaExceededFault {
pub fn builder() -> crate::error::shared_snapshot_quota_exceeded_fault::Builder {
crate::error::shared_snapshot_quota_exceeded_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InvalidDbSubnetGroupStateFault {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InvalidDbSubnetGroupStateFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InvalidDbSubnetGroupStateFault");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InvalidDbSubnetGroupStateFault {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidDbSubnetGroupStateFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(
f,
"InvalidDbSubnetGroupStateFault [InvalidDBSubnetGroupStateFault]"
)?;
if let Some(inner_42) = &self.message {
write!(f, ": {}", inner_42)?;
}
Ok(())
}
}
impl std::error::Error for InvalidDbSubnetGroupStateFault {}
pub mod invalid_db_subnet_group_state_fault {
#[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::InvalidDbSubnetGroupStateFault {
crate::error::InvalidDbSubnetGroupStateFault {
message: self.message,
}
}
}
}
impl InvalidDbSubnetGroupStateFault {
pub fn builder() -> crate::error::invalid_db_subnet_group_state_fault::Builder {
crate::error::invalid_db_subnet_group_state_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DbClusterParameterGroupNotFoundFault {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for DbClusterParameterGroupNotFoundFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DbClusterParameterGroupNotFoundFault");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl DbClusterParameterGroupNotFoundFault {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for DbClusterParameterGroupNotFoundFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(
f,
"DbClusterParameterGroupNotFoundFault [DBClusterParameterGroupNotFoundFault]"
)?;
if let Some(inner_43) = &self.message {
write!(f, ": {}", inner_43)?;
}
Ok(())
}
}
impl std::error::Error for DbClusterParameterGroupNotFoundFault {}
pub mod db_cluster_parameter_group_not_found_fault {
#[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::DbClusterParameterGroupNotFoundFault {
crate::error::DbClusterParameterGroupNotFoundFault {
message: self.message,
}
}
}
}
impl DbClusterParameterGroupNotFoundFault {
pub fn builder() -> crate::error::db_cluster_parameter_group_not_found_fault::Builder {
crate::error::db_cluster_parameter_group_not_found_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ResourceNotFoundFault {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for ResourceNotFoundFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ResourceNotFoundFault");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl ResourceNotFoundFault {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ResourceNotFoundFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ResourceNotFoundFault")?;
if let Some(inner_44) = &self.message {
write!(f, ": {}", inner_44)?;
}
Ok(())
}
}
impl std::error::Error for ResourceNotFoundFault {}
pub mod resource_not_found_fault {
#[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::ResourceNotFoundFault {
crate::error::ResourceNotFoundFault {
message: self.message,
}
}
}
}
impl ResourceNotFoundFault {
pub fn builder() -> crate::error::resource_not_found_fault::Builder {
crate::error::resource_not_found_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InvalidEventSubscriptionStateFault {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InvalidEventSubscriptionStateFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InvalidEventSubscriptionStateFault");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InvalidEventSubscriptionStateFault {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidEventSubscriptionStateFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidEventSubscriptionStateFault")?;
if let Some(inner_45) = &self.message {
write!(f, ": {}", inner_45)?;
}
Ok(())
}
}
impl std::error::Error for InvalidEventSubscriptionStateFault {}
pub mod invalid_event_subscription_state_fault {
#[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::InvalidEventSubscriptionStateFault {
crate::error::InvalidEventSubscriptionStateFault {
message: self.message,
}
}
}
}
impl InvalidEventSubscriptionStateFault {
pub fn builder() -> crate::error::invalid_event_subscription_state_fault::Builder {
crate::error::invalid_event_subscription_state_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InvalidDbSubnetStateFault {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InvalidDbSubnetStateFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InvalidDbSubnetStateFault");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InvalidDbSubnetStateFault {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidDbSubnetStateFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidDbSubnetStateFault [InvalidDBSubnetStateFault]")?;
if let Some(inner_46) = &self.message {
write!(f, ": {}", inner_46)?;
}
Ok(())
}
}
impl std::error::Error for InvalidDbSubnetStateFault {}
pub mod invalid_db_subnet_state_fault {
#[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::InvalidDbSubnetStateFault {
crate::error::InvalidDbSubnetStateFault {
message: self.message,
}
}
}
}
impl InvalidDbSubnetStateFault {
pub fn builder() -> crate::error::invalid_db_subnet_state_fault::Builder {
crate::error::invalid_db_subnet_state_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct SnapshotQuotaExceededFault {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for SnapshotQuotaExceededFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("SnapshotQuotaExceededFault");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl SnapshotQuotaExceededFault {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for SnapshotQuotaExceededFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "SnapshotQuotaExceededFault")?;
if let Some(inner_47) = &self.message {
write!(f, ": {}", inner_47)?;
}
Ok(())
}
}
impl std::error::Error for SnapshotQuotaExceededFault {}
pub mod snapshot_quota_exceeded_fault {
#[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::SnapshotQuotaExceededFault {
crate::error::SnapshotQuotaExceededFault {
message: self.message,
}
}
}
}
impl SnapshotQuotaExceededFault {
pub fn builder() -> crate::error::snapshot_quota_exceeded_fault::Builder {
crate::error::snapshot_quota_exceeded_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DbSnapshotAlreadyExistsFault {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for DbSnapshotAlreadyExistsFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DbSnapshotAlreadyExistsFault");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl DbSnapshotAlreadyExistsFault {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for DbSnapshotAlreadyExistsFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(
f,
"DbSnapshotAlreadyExistsFault [DBSnapshotAlreadyExistsFault]"
)?;
if let Some(inner_48) = &self.message {
write!(f, ": {}", inner_48)?;
}
Ok(())
}
}
impl std::error::Error for DbSnapshotAlreadyExistsFault {}
pub mod db_snapshot_already_exists_fault {
#[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::DbSnapshotAlreadyExistsFault {
crate::error::DbSnapshotAlreadyExistsFault {
message: self.message,
}
}
}
}
impl DbSnapshotAlreadyExistsFault {
pub fn builder() -> crate::error::db_snapshot_already_exists_fault::Builder {
crate::error::db_snapshot_already_exists_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DbClusterSnapshotAlreadyExistsFault {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for DbClusterSnapshotAlreadyExistsFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DbClusterSnapshotAlreadyExistsFault");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl DbClusterSnapshotAlreadyExistsFault {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for DbClusterSnapshotAlreadyExistsFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(
f,
"DbClusterSnapshotAlreadyExistsFault [DBClusterSnapshotAlreadyExistsFault]"
)?;
if let Some(inner_49) = &self.message {
write!(f, ": {}", inner_49)?;
}
Ok(())
}
}
impl std::error::Error for DbClusterSnapshotAlreadyExistsFault {}
pub mod db_cluster_snapshot_already_exists_fault {
#[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::DbClusterSnapshotAlreadyExistsFault {
crate::error::DbClusterSnapshotAlreadyExistsFault {
message: self.message,
}
}
}
}
impl DbClusterSnapshotAlreadyExistsFault {
pub fn builder() -> crate::error::db_cluster_snapshot_already_exists_fault::Builder {
crate::error::db_cluster_snapshot_already_exists_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct GlobalClusterQuotaExceededFault {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for GlobalClusterQuotaExceededFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("GlobalClusterQuotaExceededFault");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl GlobalClusterQuotaExceededFault {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for GlobalClusterQuotaExceededFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "GlobalClusterQuotaExceededFault")?;
if let Some(inner_50) = &self.message {
write!(f, ": {}", inner_50)?;
}
Ok(())
}
}
impl std::error::Error for GlobalClusterQuotaExceededFault {}
pub mod global_cluster_quota_exceeded_fault {
#[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::GlobalClusterQuotaExceededFault {
crate::error::GlobalClusterQuotaExceededFault {
message: self.message,
}
}
}
}
impl GlobalClusterQuotaExceededFault {
pub fn builder() -> crate::error::global_cluster_quota_exceeded_fault::Builder {
crate::error::global_cluster_quota_exceeded_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct GlobalClusterAlreadyExistsFault {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for GlobalClusterAlreadyExistsFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("GlobalClusterAlreadyExistsFault");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl GlobalClusterAlreadyExistsFault {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for GlobalClusterAlreadyExistsFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "GlobalClusterAlreadyExistsFault")?;
if let Some(inner_51) = &self.message {
write!(f, ": {}", inner_51)?;
}
Ok(())
}
}
impl std::error::Error for GlobalClusterAlreadyExistsFault {}
pub mod global_cluster_already_exists_fault {
#[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::GlobalClusterAlreadyExistsFault {
crate::error::GlobalClusterAlreadyExistsFault {
message: self.message,
}
}
}
}
impl GlobalClusterAlreadyExistsFault {
pub fn builder() -> crate::error::global_cluster_already_exists_fault::Builder {
crate::error::global_cluster_already_exists_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct SubscriptionAlreadyExistFault {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for SubscriptionAlreadyExistFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("SubscriptionAlreadyExistFault");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl SubscriptionAlreadyExistFault {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for SubscriptionAlreadyExistFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "SubscriptionAlreadyExistFault")?;
if let Some(inner_52) = &self.message {
write!(f, ": {}", inner_52)?;
}
Ok(())
}
}
impl std::error::Error for SubscriptionAlreadyExistFault {}
pub mod subscription_already_exist_fault {
#[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::SubscriptionAlreadyExistFault {
crate::error::SubscriptionAlreadyExistFault {
message: self.message,
}
}
}
}
impl SubscriptionAlreadyExistFault {
pub fn builder() -> crate::error::subscription_already_exist_fault::Builder {
crate::error::subscription_already_exist_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DbSubnetGroupQuotaExceededFault {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for DbSubnetGroupQuotaExceededFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DbSubnetGroupQuotaExceededFault");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl DbSubnetGroupQuotaExceededFault {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for DbSubnetGroupQuotaExceededFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(
f,
"DbSubnetGroupQuotaExceededFault [DBSubnetGroupQuotaExceededFault]"
)?;
if let Some(inner_53) = &self.message {
write!(f, ": {}", inner_53)?;
}
Ok(())
}
}
impl std::error::Error for DbSubnetGroupQuotaExceededFault {}
pub mod db_subnet_group_quota_exceeded_fault {
#[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::DbSubnetGroupQuotaExceededFault {
crate::error::DbSubnetGroupQuotaExceededFault {
message: self.message,
}
}
}
}
impl DbSubnetGroupQuotaExceededFault {
pub fn builder() -> crate::error::db_subnet_group_quota_exceeded_fault::Builder {
crate::error::db_subnet_group_quota_exceeded_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DbSubnetGroupAlreadyExistsFault {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for DbSubnetGroupAlreadyExistsFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DbSubnetGroupAlreadyExistsFault");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl DbSubnetGroupAlreadyExistsFault {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for DbSubnetGroupAlreadyExistsFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(
f,
"DbSubnetGroupAlreadyExistsFault [DBSubnetGroupAlreadyExistsFault]"
)?;
if let Some(inner_54) = &self.message {
write!(f, ": {}", inner_54)?;
}
Ok(())
}
}
impl std::error::Error for DbSubnetGroupAlreadyExistsFault {}
pub mod db_subnet_group_already_exists_fault {
#[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::DbSubnetGroupAlreadyExistsFault {
crate::error::DbSubnetGroupAlreadyExistsFault {
message: self.message,
}
}
}
}
impl DbSubnetGroupAlreadyExistsFault {
pub fn builder() -> crate::error::db_subnet_group_already_exists_fault::Builder {
crate::error::db_subnet_group_already_exists_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InstanceQuotaExceededFault {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InstanceQuotaExceededFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InstanceQuotaExceededFault");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InstanceQuotaExceededFault {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InstanceQuotaExceededFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InstanceQuotaExceededFault")?;
if let Some(inner_55) = &self.message {
write!(f, ": {}", inner_55)?;
}
Ok(())
}
}
impl std::error::Error for InstanceQuotaExceededFault {}
pub mod instance_quota_exceeded_fault {
#[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::InstanceQuotaExceededFault {
crate::error::InstanceQuotaExceededFault {
message: self.message,
}
}
}
}
impl InstanceQuotaExceededFault {
pub fn builder() -> crate::error::instance_quota_exceeded_fault::Builder {
crate::error::instance_quota_exceeded_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DbParameterGroupQuotaExceededFault {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for DbParameterGroupQuotaExceededFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DbParameterGroupQuotaExceededFault");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl DbParameterGroupQuotaExceededFault {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for DbParameterGroupQuotaExceededFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(
f,
"DbParameterGroupQuotaExceededFault [DBParameterGroupQuotaExceededFault]"
)?;
if let Some(inner_56) = &self.message {
write!(f, ": {}", inner_56)?;
}
Ok(())
}
}
impl std::error::Error for DbParameterGroupQuotaExceededFault {}
pub mod db_parameter_group_quota_exceeded_fault {
#[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::DbParameterGroupQuotaExceededFault {
crate::error::DbParameterGroupQuotaExceededFault {
message: self.message,
}
}
}
}
impl DbParameterGroupQuotaExceededFault {
pub fn builder() -> crate::error::db_parameter_group_quota_exceeded_fault::Builder {
crate::error::db_parameter_group_quota_exceeded_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DbParameterGroupAlreadyExistsFault {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for DbParameterGroupAlreadyExistsFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DbParameterGroupAlreadyExistsFault");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl DbParameterGroupAlreadyExistsFault {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for DbParameterGroupAlreadyExistsFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(
f,
"DbParameterGroupAlreadyExistsFault [DBParameterGroupAlreadyExistsFault]"
)?;
if let Some(inner_57) = &self.message {
write!(f, ": {}", inner_57)?;
}
Ok(())
}
}
impl std::error::Error for DbParameterGroupAlreadyExistsFault {}
pub mod db_parameter_group_already_exists_fault {
#[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::DbParameterGroupAlreadyExistsFault {
crate::error::DbParameterGroupAlreadyExistsFault {
message: self.message,
}
}
}
}
impl DbParameterGroupAlreadyExistsFault {
pub fn builder() -> crate::error::db_parameter_group_already_exists_fault::Builder {
crate::error::db_parameter_group_already_exists_fault::Builder::default()
}
}