#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateSubscriptionsToEventBridgeError {
pub kind: UpdateSubscriptionsToEventBridgeErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for UpdateSubscriptionsToEventBridgeError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: UpdateSubscriptionsToEventBridgeErrorKind::Unhandled(
crate::error::Unhandled::new(source),
),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateSubscriptionsToEventBridgeErrorKind {
AccessDeniedFault(crate::error::AccessDeniedFault),
InvalidResourceStateFault(crate::error::InvalidResourceStateFault),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for UpdateSubscriptionsToEventBridgeError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateSubscriptionsToEventBridgeErrorKind::AccessDeniedFault(_inner) => _inner.fmt(f),
UpdateSubscriptionsToEventBridgeErrorKind::InvalidResourceStateFault(_inner) => {
_inner.fmt(f)
}
UpdateSubscriptionsToEventBridgeErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateSubscriptionsToEventBridgeError {
fn code(&self) -> Option<&str> {
UpdateSubscriptionsToEventBridgeError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateSubscriptionsToEventBridgeError {
pub fn new(
kind: UpdateSubscriptionsToEventBridgeErrorKind,
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: UpdateSubscriptionsToEventBridgeErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateSubscriptionsToEventBridgeErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_access_denied_fault(&self) -> bool {
matches!(
&self.kind,
UpdateSubscriptionsToEventBridgeErrorKind::AccessDeniedFault(_)
)
}
pub fn is_invalid_resource_state_fault(&self) -> bool {
matches!(
&self.kind,
UpdateSubscriptionsToEventBridgeErrorKind::InvalidResourceStateFault(_)
)
}
}
impl std::error::Error for UpdateSubscriptionsToEventBridgeError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateSubscriptionsToEventBridgeErrorKind::AccessDeniedFault(_inner) => Some(_inner),
UpdateSubscriptionsToEventBridgeErrorKind::InvalidResourceStateFault(_inner) => {
Some(_inner)
}
UpdateSubscriptionsToEventBridgeErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidResourceStateFault {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidResourceStateFault {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidResourceStateFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidResourceStateFault")?;
if let Some(inner_1) = &self.message {
{
write!(f, ": {}", inner_1)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidResourceStateFault {}
pub mod invalid_resource_state_fault {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidResourceStateFault {
crate::error::InvalidResourceStateFault {
message: self.message,
}
}
}
}
impl InvalidResourceStateFault {
pub fn builder() -> crate::error::invalid_resource_state_fault::Builder {
crate::error::invalid_resource_state_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct AccessDeniedFault {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl AccessDeniedFault {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for AccessDeniedFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "AccessDeniedFault")?;
if let Some(inner_2) = &self.message {
{
write!(f, ": {}", inner_2)?;
}
}
Ok(())
}
}
impl std::error::Error for AccessDeniedFault {}
pub mod access_denied_fault {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::AccessDeniedFault {
crate::error::AccessDeniedFault {
message: self.message,
}
}
}
}
impl AccessDeniedFault {
pub fn builder() -> crate::error::access_denied_fault::Builder {
crate::error::access_denied_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct TestConnectionError {
pub kind: TestConnectionErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for TestConnectionError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: TestConnectionErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum TestConnectionErrorKind {
AccessDeniedFault(crate::error::AccessDeniedFault),
InvalidResourceStateFault(crate::error::InvalidResourceStateFault),
KmsKeyNotAccessibleFault(crate::error::KmsKeyNotAccessibleFault),
ResourceNotFoundFault(crate::error::ResourceNotFoundFault),
ResourceQuotaExceededFault(crate::error::ResourceQuotaExceededFault),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for TestConnectionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
TestConnectionErrorKind::AccessDeniedFault(_inner) => _inner.fmt(f),
TestConnectionErrorKind::InvalidResourceStateFault(_inner) => _inner.fmt(f),
TestConnectionErrorKind::KmsKeyNotAccessibleFault(_inner) => _inner.fmt(f),
TestConnectionErrorKind::ResourceNotFoundFault(_inner) => _inner.fmt(f),
TestConnectionErrorKind::ResourceQuotaExceededFault(_inner) => _inner.fmt(f),
TestConnectionErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for TestConnectionError {
fn code(&self) -> Option<&str> {
TestConnectionError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl TestConnectionError {
pub fn new(kind: TestConnectionErrorKind, 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: TestConnectionErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: TestConnectionErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_access_denied_fault(&self) -> bool {
matches!(&self.kind, TestConnectionErrorKind::AccessDeniedFault(_))
}
pub fn is_invalid_resource_state_fault(&self) -> bool {
matches!(
&self.kind,
TestConnectionErrorKind::InvalidResourceStateFault(_)
)
}
pub fn is_kms_key_not_accessible_fault(&self) -> bool {
matches!(
&self.kind,
TestConnectionErrorKind::KmsKeyNotAccessibleFault(_)
)
}
pub fn is_resource_not_found_fault(&self) -> bool {
matches!(
&self.kind,
TestConnectionErrorKind::ResourceNotFoundFault(_)
)
}
pub fn is_resource_quota_exceeded_fault(&self) -> bool {
matches!(
&self.kind,
TestConnectionErrorKind::ResourceQuotaExceededFault(_)
)
}
}
impl std::error::Error for TestConnectionError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
TestConnectionErrorKind::AccessDeniedFault(_inner) => Some(_inner),
TestConnectionErrorKind::InvalidResourceStateFault(_inner) => Some(_inner),
TestConnectionErrorKind::KmsKeyNotAccessibleFault(_inner) => Some(_inner),
TestConnectionErrorKind::ResourceNotFoundFault(_inner) => Some(_inner),
TestConnectionErrorKind::ResourceQuotaExceededFault(_inner) => Some(_inner),
TestConnectionErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ResourceQuotaExceededFault {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl ResourceQuotaExceededFault {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ResourceQuotaExceededFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ResourceQuotaExceededFault")?;
if let Some(inner_3) = &self.message {
{
write!(f, ": {}", inner_3)?;
}
}
Ok(())
}
}
impl std::error::Error for ResourceQuotaExceededFault {}
pub mod resource_quota_exceeded_fault {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::ResourceQuotaExceededFault {
crate::error::ResourceQuotaExceededFault {
message: self.message,
}
}
}
}
impl ResourceQuotaExceededFault {
pub fn builder() -> crate::error::resource_quota_exceeded_fault::Builder {
crate::error::resource_quota_exceeded_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ResourceNotFoundFault {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl ResourceNotFoundFault {
pub fn message(&self) -> std::option::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_4) = &self.message {
{
write!(f, ": {}", inner_4)?;
}
}
Ok(())
}
}
impl std::error::Error for ResourceNotFoundFault {}
pub mod resource_not_found_fault {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::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, std::fmt::Debug)]
pub struct KmsKeyNotAccessibleFault {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl KmsKeyNotAccessibleFault {
pub fn message(&self) -> std::option::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 {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::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::fmt::Debug)]
pub struct StopReplicationTaskError {
pub kind: StopReplicationTaskErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for StopReplicationTaskError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: StopReplicationTaskErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum StopReplicationTaskErrorKind {
InvalidResourceStateFault(crate::error::InvalidResourceStateFault),
ResourceNotFoundFault(crate::error::ResourceNotFoundFault),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for StopReplicationTaskError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
StopReplicationTaskErrorKind::InvalidResourceStateFault(_inner) => _inner.fmt(f),
StopReplicationTaskErrorKind::ResourceNotFoundFault(_inner) => _inner.fmt(f),
StopReplicationTaskErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for StopReplicationTaskError {
fn code(&self) -> Option<&str> {
StopReplicationTaskError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl StopReplicationTaskError {
pub fn new(kind: StopReplicationTaskErrorKind, 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: StopReplicationTaskErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: StopReplicationTaskErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_resource_state_fault(&self) -> bool {
matches!(
&self.kind,
StopReplicationTaskErrorKind::InvalidResourceStateFault(_)
)
}
pub fn is_resource_not_found_fault(&self) -> bool {
matches!(
&self.kind,
StopReplicationTaskErrorKind::ResourceNotFoundFault(_)
)
}
}
impl std::error::Error for StopReplicationTaskError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
StopReplicationTaskErrorKind::InvalidResourceStateFault(_inner) => Some(_inner),
StopReplicationTaskErrorKind::ResourceNotFoundFault(_inner) => Some(_inner),
StopReplicationTaskErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct StartReplicationTaskAssessmentRunError {
pub kind: StartReplicationTaskAssessmentRunErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for StartReplicationTaskAssessmentRunError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: StartReplicationTaskAssessmentRunErrorKind::Unhandled(
crate::error::Unhandled::new(source),
),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum StartReplicationTaskAssessmentRunErrorKind {
AccessDeniedFault(crate::error::AccessDeniedFault),
InvalidResourceStateFault(crate::error::InvalidResourceStateFault),
KmsAccessDeniedFault(crate::error::KmsAccessDeniedFault),
KmsDisabledFault(crate::error::KmsDisabledFault),
KmsFault(crate::error::KmsFault),
KmsInvalidStateFault(crate::error::KmsInvalidStateFault),
KmsKeyNotAccessibleFault(crate::error::KmsKeyNotAccessibleFault),
KmsNotFoundFault(crate::error::KmsNotFoundFault),
ResourceAlreadyExistsFault(crate::error::ResourceAlreadyExistsFault),
ResourceNotFoundFault(crate::error::ResourceNotFoundFault),
S3AccessDeniedFault(crate::error::S3AccessDeniedFault),
S3ResourceNotFoundFault(crate::error::S3ResourceNotFoundFault),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for StartReplicationTaskAssessmentRunError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
StartReplicationTaskAssessmentRunErrorKind::AccessDeniedFault(_inner) => _inner.fmt(f),
StartReplicationTaskAssessmentRunErrorKind::InvalidResourceStateFault(_inner) => {
_inner.fmt(f)
}
StartReplicationTaskAssessmentRunErrorKind::KmsAccessDeniedFault(_inner) => {
_inner.fmt(f)
}
StartReplicationTaskAssessmentRunErrorKind::KmsDisabledFault(_inner) => _inner.fmt(f),
StartReplicationTaskAssessmentRunErrorKind::KmsFault(_inner) => _inner.fmt(f),
StartReplicationTaskAssessmentRunErrorKind::KmsInvalidStateFault(_inner) => {
_inner.fmt(f)
}
StartReplicationTaskAssessmentRunErrorKind::KmsKeyNotAccessibleFault(_inner) => {
_inner.fmt(f)
}
StartReplicationTaskAssessmentRunErrorKind::KmsNotFoundFault(_inner) => _inner.fmt(f),
StartReplicationTaskAssessmentRunErrorKind::ResourceAlreadyExistsFault(_inner) => {
_inner.fmt(f)
}
StartReplicationTaskAssessmentRunErrorKind::ResourceNotFoundFault(_inner) => {
_inner.fmt(f)
}
StartReplicationTaskAssessmentRunErrorKind::S3AccessDeniedFault(_inner) => {
_inner.fmt(f)
}
StartReplicationTaskAssessmentRunErrorKind::S3ResourceNotFoundFault(_inner) => {
_inner.fmt(f)
}
StartReplicationTaskAssessmentRunErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for StartReplicationTaskAssessmentRunError {
fn code(&self) -> Option<&str> {
StartReplicationTaskAssessmentRunError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl StartReplicationTaskAssessmentRunError {
pub fn new(
kind: StartReplicationTaskAssessmentRunErrorKind,
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: StartReplicationTaskAssessmentRunErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: StartReplicationTaskAssessmentRunErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_access_denied_fault(&self) -> bool {
matches!(
&self.kind,
StartReplicationTaskAssessmentRunErrorKind::AccessDeniedFault(_)
)
}
pub fn is_invalid_resource_state_fault(&self) -> bool {
matches!(
&self.kind,
StartReplicationTaskAssessmentRunErrorKind::InvalidResourceStateFault(_)
)
}
pub fn is_kms_access_denied_fault(&self) -> bool {
matches!(
&self.kind,
StartReplicationTaskAssessmentRunErrorKind::KmsAccessDeniedFault(_)
)
}
pub fn is_kms_disabled_fault(&self) -> bool {
matches!(
&self.kind,
StartReplicationTaskAssessmentRunErrorKind::KmsDisabledFault(_)
)
}
pub fn is_kms_fault(&self) -> bool {
matches!(
&self.kind,
StartReplicationTaskAssessmentRunErrorKind::KmsFault(_)
)
}
pub fn is_kms_invalid_state_fault(&self) -> bool {
matches!(
&self.kind,
StartReplicationTaskAssessmentRunErrorKind::KmsInvalidStateFault(_)
)
}
pub fn is_kms_key_not_accessible_fault(&self) -> bool {
matches!(
&self.kind,
StartReplicationTaskAssessmentRunErrorKind::KmsKeyNotAccessibleFault(_)
)
}
pub fn is_kms_not_found_fault(&self) -> bool {
matches!(
&self.kind,
StartReplicationTaskAssessmentRunErrorKind::KmsNotFoundFault(_)
)
}
pub fn is_resource_already_exists_fault(&self) -> bool {
matches!(
&self.kind,
StartReplicationTaskAssessmentRunErrorKind::ResourceAlreadyExistsFault(_)
)
}
pub fn is_resource_not_found_fault(&self) -> bool {
matches!(
&self.kind,
StartReplicationTaskAssessmentRunErrorKind::ResourceNotFoundFault(_)
)
}
pub fn is_s3_access_denied_fault(&self) -> bool {
matches!(
&self.kind,
StartReplicationTaskAssessmentRunErrorKind::S3AccessDeniedFault(_)
)
}
pub fn is_s3_resource_not_found_fault(&self) -> bool {
matches!(
&self.kind,
StartReplicationTaskAssessmentRunErrorKind::S3ResourceNotFoundFault(_)
)
}
}
impl std::error::Error for StartReplicationTaskAssessmentRunError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
StartReplicationTaskAssessmentRunErrorKind::AccessDeniedFault(_inner) => Some(_inner),
StartReplicationTaskAssessmentRunErrorKind::InvalidResourceStateFault(_inner) => {
Some(_inner)
}
StartReplicationTaskAssessmentRunErrorKind::KmsAccessDeniedFault(_inner) => {
Some(_inner)
}
StartReplicationTaskAssessmentRunErrorKind::KmsDisabledFault(_inner) => Some(_inner),
StartReplicationTaskAssessmentRunErrorKind::KmsFault(_inner) => Some(_inner),
StartReplicationTaskAssessmentRunErrorKind::KmsInvalidStateFault(_inner) => {
Some(_inner)
}
StartReplicationTaskAssessmentRunErrorKind::KmsKeyNotAccessibleFault(_inner) => {
Some(_inner)
}
StartReplicationTaskAssessmentRunErrorKind::KmsNotFoundFault(_inner) => Some(_inner),
StartReplicationTaskAssessmentRunErrorKind::ResourceAlreadyExistsFault(_inner) => {
Some(_inner)
}
StartReplicationTaskAssessmentRunErrorKind::ResourceNotFoundFault(_inner) => {
Some(_inner)
}
StartReplicationTaskAssessmentRunErrorKind::S3AccessDeniedFault(_inner) => Some(_inner),
StartReplicationTaskAssessmentRunErrorKind::S3ResourceNotFoundFault(_inner) => {
Some(_inner)
}
StartReplicationTaskAssessmentRunErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct S3ResourceNotFoundFault {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl S3ResourceNotFoundFault {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for S3ResourceNotFoundFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "S3ResourceNotFoundFault")?;
if let Some(inner_6) = &self.message {
{
write!(f, ": {}", inner_6)?;
}
}
Ok(())
}
}
impl std::error::Error for S3ResourceNotFoundFault {}
pub mod s3_resource_not_found_fault {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::S3ResourceNotFoundFault {
crate::error::S3ResourceNotFoundFault {
message: self.message,
}
}
}
}
impl S3ResourceNotFoundFault {
pub fn builder() -> crate::error::s3_resource_not_found_fault::Builder {
crate::error::s3_resource_not_found_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct S3AccessDeniedFault {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl S3AccessDeniedFault {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for S3AccessDeniedFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "S3AccessDeniedFault")?;
if let Some(inner_7) = &self.message {
{
write!(f, ": {}", inner_7)?;
}
}
Ok(())
}
}
impl std::error::Error for S3AccessDeniedFault {}
pub mod s3_access_denied_fault {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::S3AccessDeniedFault {
crate::error::S3AccessDeniedFault {
message: self.message,
}
}
}
}
impl S3AccessDeniedFault {
pub fn builder() -> crate::error::s3_access_denied_fault::Builder {
crate::error::s3_access_denied_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ResourceAlreadyExistsFault {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
#[allow(missing_docs)] #[doc(hidden)]
pub resource_arn: std::option::Option<std::string::String>,
}
impl ResourceAlreadyExistsFault {
#[allow(missing_docs)] pub fn resource_arn(&self) -> std::option::Option<&str> {
self.resource_arn.as_deref()
}
}
impl ResourceAlreadyExistsFault {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ResourceAlreadyExistsFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ResourceAlreadyExistsFault")?;
if let Some(inner_8) = &self.message {
{
write!(f, ": {}", inner_8)?;
}
}
Ok(())
}
}
impl std::error::Error for ResourceAlreadyExistsFault {}
pub mod resource_already_exists_fault {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
pub(crate) resource_arn: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
#[allow(missing_docs)] pub fn resource_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.resource_arn = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_resource_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.resource_arn = input;
self
}
pub fn build(self) -> crate::error::ResourceAlreadyExistsFault {
crate::error::ResourceAlreadyExistsFault {
message: self.message,
resource_arn: self.resource_arn,
}
}
}
}
impl ResourceAlreadyExistsFault {
pub fn builder() -> crate::error::resource_already_exists_fault::Builder {
crate::error::resource_already_exists_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct KmsNotFoundFault {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl KmsNotFoundFault {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for KmsNotFoundFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "KmsNotFoundFault [KMSNotFoundFault]")?;
if let Some(inner_9) = &self.message {
{
write!(f, ": {}", inner_9)?;
}
}
Ok(())
}
}
impl std::error::Error for KmsNotFoundFault {}
pub mod kms_not_found_fault {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::KmsNotFoundFault {
crate::error::KmsNotFoundFault {
message: self.message,
}
}
}
}
impl KmsNotFoundFault {
pub fn builder() -> crate::error::kms_not_found_fault::Builder {
crate::error::kms_not_found_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct KmsInvalidStateFault {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl KmsInvalidStateFault {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for KmsInvalidStateFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "KmsInvalidStateFault [KMSInvalidStateFault]")?;
if let Some(inner_10) = &self.message {
{
write!(f, ": {}", inner_10)?;
}
}
Ok(())
}
}
impl std::error::Error for KmsInvalidStateFault {}
pub mod kms_invalid_state_fault {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::KmsInvalidStateFault {
crate::error::KmsInvalidStateFault {
message: self.message,
}
}
}
}
impl KmsInvalidStateFault {
pub fn builder() -> crate::error::kms_invalid_state_fault::Builder {
crate::error::kms_invalid_state_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct KmsFault {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl KmsFault {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for KmsFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "KmsFault [KMSFault]")?;
if let Some(inner_11) = &self.message {
{
write!(f, ": {}", inner_11)?;
}
}
Ok(())
}
}
impl std::error::Error for KmsFault {}
pub mod kms_fault {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::KmsFault {
crate::error::KmsFault {
message: self.message,
}
}
}
}
impl KmsFault {
pub fn builder() -> crate::error::kms_fault::Builder {
crate::error::kms_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct KmsDisabledFault {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl KmsDisabledFault {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for KmsDisabledFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "KmsDisabledFault [KMSDisabledFault]")?;
if let Some(inner_12) = &self.message {
{
write!(f, ": {}", inner_12)?;
}
}
Ok(())
}
}
impl std::error::Error for KmsDisabledFault {}
pub mod kms_disabled_fault {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::KmsDisabledFault {
crate::error::KmsDisabledFault {
message: self.message,
}
}
}
}
impl KmsDisabledFault {
pub fn builder() -> crate::error::kms_disabled_fault::Builder {
crate::error::kms_disabled_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct KmsAccessDeniedFault {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl KmsAccessDeniedFault {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for KmsAccessDeniedFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "KmsAccessDeniedFault [KMSAccessDeniedFault]")?;
if let Some(inner_13) = &self.message {
{
write!(f, ": {}", inner_13)?;
}
}
Ok(())
}
}
impl std::error::Error for KmsAccessDeniedFault {}
pub mod kms_access_denied_fault {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::KmsAccessDeniedFault {
crate::error::KmsAccessDeniedFault {
message: self.message,
}
}
}
}
impl KmsAccessDeniedFault {
pub fn builder() -> crate::error::kms_access_denied_fault::Builder {
crate::error::kms_access_denied_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct StartReplicationTaskAssessmentError {
pub kind: StartReplicationTaskAssessmentErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for StartReplicationTaskAssessmentError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: StartReplicationTaskAssessmentErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum StartReplicationTaskAssessmentErrorKind {
InvalidResourceStateFault(crate::error::InvalidResourceStateFault),
ResourceNotFoundFault(crate::error::ResourceNotFoundFault),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for StartReplicationTaskAssessmentError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
StartReplicationTaskAssessmentErrorKind::InvalidResourceStateFault(_inner) => {
_inner.fmt(f)
}
StartReplicationTaskAssessmentErrorKind::ResourceNotFoundFault(_inner) => _inner.fmt(f),
StartReplicationTaskAssessmentErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for StartReplicationTaskAssessmentError {
fn code(&self) -> Option<&str> {
StartReplicationTaskAssessmentError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl StartReplicationTaskAssessmentError {
pub fn new(
kind: StartReplicationTaskAssessmentErrorKind,
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: StartReplicationTaskAssessmentErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: StartReplicationTaskAssessmentErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_resource_state_fault(&self) -> bool {
matches!(
&self.kind,
StartReplicationTaskAssessmentErrorKind::InvalidResourceStateFault(_)
)
}
pub fn is_resource_not_found_fault(&self) -> bool {
matches!(
&self.kind,
StartReplicationTaskAssessmentErrorKind::ResourceNotFoundFault(_)
)
}
}
impl std::error::Error for StartReplicationTaskAssessmentError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
StartReplicationTaskAssessmentErrorKind::InvalidResourceStateFault(_inner) => {
Some(_inner)
}
StartReplicationTaskAssessmentErrorKind::ResourceNotFoundFault(_inner) => Some(_inner),
StartReplicationTaskAssessmentErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct StartReplicationTaskError {
pub kind: StartReplicationTaskErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for StartReplicationTaskError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: StartReplicationTaskErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum StartReplicationTaskErrorKind {
AccessDeniedFault(crate::error::AccessDeniedFault),
InvalidResourceStateFault(crate::error::InvalidResourceStateFault),
ResourceNotFoundFault(crate::error::ResourceNotFoundFault),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for StartReplicationTaskError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
StartReplicationTaskErrorKind::AccessDeniedFault(_inner) => _inner.fmt(f),
StartReplicationTaskErrorKind::InvalidResourceStateFault(_inner) => _inner.fmt(f),
StartReplicationTaskErrorKind::ResourceNotFoundFault(_inner) => _inner.fmt(f),
StartReplicationTaskErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for StartReplicationTaskError {
fn code(&self) -> Option<&str> {
StartReplicationTaskError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl StartReplicationTaskError {
pub fn new(kind: StartReplicationTaskErrorKind, 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: StartReplicationTaskErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: StartReplicationTaskErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_access_denied_fault(&self) -> bool {
matches!(
&self.kind,
StartReplicationTaskErrorKind::AccessDeniedFault(_)
)
}
pub fn is_invalid_resource_state_fault(&self) -> bool {
matches!(
&self.kind,
StartReplicationTaskErrorKind::InvalidResourceStateFault(_)
)
}
pub fn is_resource_not_found_fault(&self) -> bool {
matches!(
&self.kind,
StartReplicationTaskErrorKind::ResourceNotFoundFault(_)
)
}
}
impl std::error::Error for StartReplicationTaskError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
StartReplicationTaskErrorKind::AccessDeniedFault(_inner) => Some(_inner),
StartReplicationTaskErrorKind::InvalidResourceStateFault(_inner) => Some(_inner),
StartReplicationTaskErrorKind::ResourceNotFoundFault(_inner) => Some(_inner),
StartReplicationTaskErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct RunFleetAdvisorLsaAnalysisError {
pub kind: RunFleetAdvisorLsaAnalysisErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for RunFleetAdvisorLsaAnalysisError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: RunFleetAdvisorLsaAnalysisErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum RunFleetAdvisorLsaAnalysisErrorKind {
InvalidResourceStateFault(crate::error::InvalidResourceStateFault),
ResourceNotFoundFault(crate::error::ResourceNotFoundFault),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for RunFleetAdvisorLsaAnalysisError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
RunFleetAdvisorLsaAnalysisErrorKind::InvalidResourceStateFault(_inner) => _inner.fmt(f),
RunFleetAdvisorLsaAnalysisErrorKind::ResourceNotFoundFault(_inner) => _inner.fmt(f),
RunFleetAdvisorLsaAnalysisErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for RunFleetAdvisorLsaAnalysisError {
fn code(&self) -> Option<&str> {
RunFleetAdvisorLsaAnalysisError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl RunFleetAdvisorLsaAnalysisError {
pub fn new(kind: RunFleetAdvisorLsaAnalysisErrorKind, 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: RunFleetAdvisorLsaAnalysisErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: RunFleetAdvisorLsaAnalysisErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_resource_state_fault(&self) -> bool {
matches!(
&self.kind,
RunFleetAdvisorLsaAnalysisErrorKind::InvalidResourceStateFault(_)
)
}
pub fn is_resource_not_found_fault(&self) -> bool {
matches!(
&self.kind,
RunFleetAdvisorLsaAnalysisErrorKind::ResourceNotFoundFault(_)
)
}
}
impl std::error::Error for RunFleetAdvisorLsaAnalysisError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
RunFleetAdvisorLsaAnalysisErrorKind::InvalidResourceStateFault(_inner) => Some(_inner),
RunFleetAdvisorLsaAnalysisErrorKind::ResourceNotFoundFault(_inner) => Some(_inner),
RunFleetAdvisorLsaAnalysisErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct RemoveTagsFromResourceError {
pub kind: RemoveTagsFromResourceErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for RemoveTagsFromResourceError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: RemoveTagsFromResourceErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum RemoveTagsFromResourceErrorKind {
ResourceNotFoundFault(crate::error::ResourceNotFoundFault),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for RemoveTagsFromResourceError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
RemoveTagsFromResourceErrorKind::ResourceNotFoundFault(_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(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: RemoveTagsFromResourceErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_resource_not_found_fault(&self) -> bool {
matches!(
&self.kind,
RemoveTagsFromResourceErrorKind::ResourceNotFoundFault(_)
)
}
}
impl std::error::Error for RemoveTagsFromResourceError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
RemoveTagsFromResourceErrorKind::ResourceNotFoundFault(_inner) => Some(_inner),
RemoveTagsFromResourceErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ReloadTablesError {
pub kind: ReloadTablesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ReloadTablesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ReloadTablesErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ReloadTablesErrorKind {
InvalidResourceStateFault(crate::error::InvalidResourceStateFault),
ResourceNotFoundFault(crate::error::ResourceNotFoundFault),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ReloadTablesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ReloadTablesErrorKind::InvalidResourceStateFault(_inner) => _inner.fmt(f),
ReloadTablesErrorKind::ResourceNotFoundFault(_inner) => _inner.fmt(f),
ReloadTablesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ReloadTablesError {
fn code(&self) -> Option<&str> {
ReloadTablesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ReloadTablesError {
pub fn new(kind: ReloadTablesErrorKind, 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: ReloadTablesErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ReloadTablesErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_resource_state_fault(&self) -> bool {
matches!(
&self.kind,
ReloadTablesErrorKind::InvalidResourceStateFault(_)
)
}
pub fn is_resource_not_found_fault(&self) -> bool {
matches!(&self.kind, ReloadTablesErrorKind::ResourceNotFoundFault(_))
}
}
impl std::error::Error for ReloadTablesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ReloadTablesErrorKind::InvalidResourceStateFault(_inner) => Some(_inner),
ReloadTablesErrorKind::ResourceNotFoundFault(_inner) => Some(_inner),
ReloadTablesErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct RefreshSchemasError {
pub kind: RefreshSchemasErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for RefreshSchemasError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: RefreshSchemasErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum RefreshSchemasErrorKind {
InvalidResourceStateFault(crate::error::InvalidResourceStateFault),
KmsKeyNotAccessibleFault(crate::error::KmsKeyNotAccessibleFault),
ResourceNotFoundFault(crate::error::ResourceNotFoundFault),
ResourceQuotaExceededFault(crate::error::ResourceQuotaExceededFault),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for RefreshSchemasError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
RefreshSchemasErrorKind::InvalidResourceStateFault(_inner) => _inner.fmt(f),
RefreshSchemasErrorKind::KmsKeyNotAccessibleFault(_inner) => _inner.fmt(f),
RefreshSchemasErrorKind::ResourceNotFoundFault(_inner) => _inner.fmt(f),
RefreshSchemasErrorKind::ResourceQuotaExceededFault(_inner) => _inner.fmt(f),
RefreshSchemasErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for RefreshSchemasError {
fn code(&self) -> Option<&str> {
RefreshSchemasError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl RefreshSchemasError {
pub fn new(kind: RefreshSchemasErrorKind, 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: RefreshSchemasErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: RefreshSchemasErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_resource_state_fault(&self) -> bool {
matches!(
&self.kind,
RefreshSchemasErrorKind::InvalidResourceStateFault(_)
)
}
pub fn is_kms_key_not_accessible_fault(&self) -> bool {
matches!(
&self.kind,
RefreshSchemasErrorKind::KmsKeyNotAccessibleFault(_)
)
}
pub fn is_resource_not_found_fault(&self) -> bool {
matches!(
&self.kind,
RefreshSchemasErrorKind::ResourceNotFoundFault(_)
)
}
pub fn is_resource_quota_exceeded_fault(&self) -> bool {
matches!(
&self.kind,
RefreshSchemasErrorKind::ResourceQuotaExceededFault(_)
)
}
}
impl std::error::Error for RefreshSchemasError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
RefreshSchemasErrorKind::InvalidResourceStateFault(_inner) => Some(_inner),
RefreshSchemasErrorKind::KmsKeyNotAccessibleFault(_inner) => Some(_inner),
RefreshSchemasErrorKind::ResourceNotFoundFault(_inner) => Some(_inner),
RefreshSchemasErrorKind::ResourceQuotaExceededFault(_inner) => Some(_inner),
RefreshSchemasErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct RebootReplicationInstanceError {
pub kind: RebootReplicationInstanceErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for RebootReplicationInstanceError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: RebootReplicationInstanceErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum RebootReplicationInstanceErrorKind {
InvalidResourceStateFault(crate::error::InvalidResourceStateFault),
ResourceNotFoundFault(crate::error::ResourceNotFoundFault),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for RebootReplicationInstanceError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
RebootReplicationInstanceErrorKind::InvalidResourceStateFault(_inner) => _inner.fmt(f),
RebootReplicationInstanceErrorKind::ResourceNotFoundFault(_inner) => _inner.fmt(f),
RebootReplicationInstanceErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for RebootReplicationInstanceError {
fn code(&self) -> Option<&str> {
RebootReplicationInstanceError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl RebootReplicationInstanceError {
pub fn new(kind: RebootReplicationInstanceErrorKind, 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: RebootReplicationInstanceErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: RebootReplicationInstanceErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_resource_state_fault(&self) -> bool {
matches!(
&self.kind,
RebootReplicationInstanceErrorKind::InvalidResourceStateFault(_)
)
}
pub fn is_resource_not_found_fault(&self) -> bool {
matches!(
&self.kind,
RebootReplicationInstanceErrorKind::ResourceNotFoundFault(_)
)
}
}
impl std::error::Error for RebootReplicationInstanceError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
RebootReplicationInstanceErrorKind::InvalidResourceStateFault(_inner) => Some(_inner),
RebootReplicationInstanceErrorKind::ResourceNotFoundFault(_inner) => Some(_inner),
RebootReplicationInstanceErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct MoveReplicationTaskError {
pub kind: MoveReplicationTaskErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for MoveReplicationTaskError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: MoveReplicationTaskErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum MoveReplicationTaskErrorKind {
AccessDeniedFault(crate::error::AccessDeniedFault),
InvalidResourceStateFault(crate::error::InvalidResourceStateFault),
KmsKeyNotAccessibleFault(crate::error::KmsKeyNotAccessibleFault),
ResourceNotFoundFault(crate::error::ResourceNotFoundFault),
ResourceQuotaExceededFault(crate::error::ResourceQuotaExceededFault),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for MoveReplicationTaskError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
MoveReplicationTaskErrorKind::AccessDeniedFault(_inner) => _inner.fmt(f),
MoveReplicationTaskErrorKind::InvalidResourceStateFault(_inner) => _inner.fmt(f),
MoveReplicationTaskErrorKind::KmsKeyNotAccessibleFault(_inner) => _inner.fmt(f),
MoveReplicationTaskErrorKind::ResourceNotFoundFault(_inner) => _inner.fmt(f),
MoveReplicationTaskErrorKind::ResourceQuotaExceededFault(_inner) => _inner.fmt(f),
MoveReplicationTaskErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for MoveReplicationTaskError {
fn code(&self) -> Option<&str> {
MoveReplicationTaskError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl MoveReplicationTaskError {
pub fn new(kind: MoveReplicationTaskErrorKind, 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: MoveReplicationTaskErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: MoveReplicationTaskErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_access_denied_fault(&self) -> bool {
matches!(
&self.kind,
MoveReplicationTaskErrorKind::AccessDeniedFault(_)
)
}
pub fn is_invalid_resource_state_fault(&self) -> bool {
matches!(
&self.kind,
MoveReplicationTaskErrorKind::InvalidResourceStateFault(_)
)
}
pub fn is_kms_key_not_accessible_fault(&self) -> bool {
matches!(
&self.kind,
MoveReplicationTaskErrorKind::KmsKeyNotAccessibleFault(_)
)
}
pub fn is_resource_not_found_fault(&self) -> bool {
matches!(
&self.kind,
MoveReplicationTaskErrorKind::ResourceNotFoundFault(_)
)
}
pub fn is_resource_quota_exceeded_fault(&self) -> bool {
matches!(
&self.kind,
MoveReplicationTaskErrorKind::ResourceQuotaExceededFault(_)
)
}
}
impl std::error::Error for MoveReplicationTaskError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
MoveReplicationTaskErrorKind::AccessDeniedFault(_inner) => Some(_inner),
MoveReplicationTaskErrorKind::InvalidResourceStateFault(_inner) => Some(_inner),
MoveReplicationTaskErrorKind::KmsKeyNotAccessibleFault(_inner) => Some(_inner),
MoveReplicationTaskErrorKind::ResourceNotFoundFault(_inner) => Some(_inner),
MoveReplicationTaskErrorKind::ResourceQuotaExceededFault(_inner) => Some(_inner),
MoveReplicationTaskErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ModifyReplicationTaskError {
pub kind: ModifyReplicationTaskErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ModifyReplicationTaskError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ModifyReplicationTaskErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ModifyReplicationTaskErrorKind {
InvalidResourceStateFault(crate::error::InvalidResourceStateFault),
KmsKeyNotAccessibleFault(crate::error::KmsKeyNotAccessibleFault),
ResourceAlreadyExistsFault(crate::error::ResourceAlreadyExistsFault),
ResourceNotFoundFault(crate::error::ResourceNotFoundFault),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ModifyReplicationTaskError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ModifyReplicationTaskErrorKind::InvalidResourceStateFault(_inner) => _inner.fmt(f),
ModifyReplicationTaskErrorKind::KmsKeyNotAccessibleFault(_inner) => _inner.fmt(f),
ModifyReplicationTaskErrorKind::ResourceAlreadyExistsFault(_inner) => _inner.fmt(f),
ModifyReplicationTaskErrorKind::ResourceNotFoundFault(_inner) => _inner.fmt(f),
ModifyReplicationTaskErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ModifyReplicationTaskError {
fn code(&self) -> Option<&str> {
ModifyReplicationTaskError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ModifyReplicationTaskError {
pub fn new(kind: ModifyReplicationTaskErrorKind, 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: ModifyReplicationTaskErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ModifyReplicationTaskErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_resource_state_fault(&self) -> bool {
matches!(
&self.kind,
ModifyReplicationTaskErrorKind::InvalidResourceStateFault(_)
)
}
pub fn is_kms_key_not_accessible_fault(&self) -> bool {
matches!(
&self.kind,
ModifyReplicationTaskErrorKind::KmsKeyNotAccessibleFault(_)
)
}
pub fn is_resource_already_exists_fault(&self) -> bool {
matches!(
&self.kind,
ModifyReplicationTaskErrorKind::ResourceAlreadyExistsFault(_)
)
}
pub fn is_resource_not_found_fault(&self) -> bool {
matches!(
&self.kind,
ModifyReplicationTaskErrorKind::ResourceNotFoundFault(_)
)
}
}
impl std::error::Error for ModifyReplicationTaskError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ModifyReplicationTaskErrorKind::InvalidResourceStateFault(_inner) => Some(_inner),
ModifyReplicationTaskErrorKind::KmsKeyNotAccessibleFault(_inner) => Some(_inner),
ModifyReplicationTaskErrorKind::ResourceAlreadyExistsFault(_inner) => Some(_inner),
ModifyReplicationTaskErrorKind::ResourceNotFoundFault(_inner) => Some(_inner),
ModifyReplicationTaskErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ModifyReplicationSubnetGroupError {
pub kind: ModifyReplicationSubnetGroupErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ModifyReplicationSubnetGroupError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ModifyReplicationSubnetGroupErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ModifyReplicationSubnetGroupErrorKind {
AccessDeniedFault(crate::error::AccessDeniedFault),
InvalidSubnet(crate::error::InvalidSubnet),
ReplicationSubnetGroupDoesNotCoverEnoughAZs(
crate::error::ReplicationSubnetGroupDoesNotCoverEnoughAZs,
),
ResourceNotFoundFault(crate::error::ResourceNotFoundFault),
ResourceQuotaExceededFault(crate::error::ResourceQuotaExceededFault),
SubnetAlreadyInUse(crate::error::SubnetAlreadyInUse),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ModifyReplicationSubnetGroupError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ModifyReplicationSubnetGroupErrorKind::AccessDeniedFault(_inner) => _inner.fmt(f),
ModifyReplicationSubnetGroupErrorKind::InvalidSubnet(_inner) => _inner.fmt(f),
ModifyReplicationSubnetGroupErrorKind::ReplicationSubnetGroupDoesNotCoverEnoughAZs(
_inner,
) => _inner.fmt(f),
ModifyReplicationSubnetGroupErrorKind::ResourceNotFoundFault(_inner) => _inner.fmt(f),
ModifyReplicationSubnetGroupErrorKind::ResourceQuotaExceededFault(_inner) => {
_inner.fmt(f)
}
ModifyReplicationSubnetGroupErrorKind::SubnetAlreadyInUse(_inner) => _inner.fmt(f),
ModifyReplicationSubnetGroupErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ModifyReplicationSubnetGroupError {
fn code(&self) -> Option<&str> {
ModifyReplicationSubnetGroupError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ModifyReplicationSubnetGroupError {
pub fn new(kind: ModifyReplicationSubnetGroupErrorKind, 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: ModifyReplicationSubnetGroupErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ModifyReplicationSubnetGroupErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_access_denied_fault(&self) -> bool {
matches!(
&self.kind,
ModifyReplicationSubnetGroupErrorKind::AccessDeniedFault(_)
)
}
pub fn is_invalid_subnet(&self) -> bool {
matches!(
&self.kind,
ModifyReplicationSubnetGroupErrorKind::InvalidSubnet(_)
)
}
pub fn is_replication_subnet_group_does_not_cover_enough_a_zs(&self) -> bool {
matches!(
&self.kind,
ModifyReplicationSubnetGroupErrorKind::ReplicationSubnetGroupDoesNotCoverEnoughAZs(_)
)
}
pub fn is_resource_not_found_fault(&self) -> bool {
matches!(
&self.kind,
ModifyReplicationSubnetGroupErrorKind::ResourceNotFoundFault(_)
)
}
pub fn is_resource_quota_exceeded_fault(&self) -> bool {
matches!(
&self.kind,
ModifyReplicationSubnetGroupErrorKind::ResourceQuotaExceededFault(_)
)
}
pub fn is_subnet_already_in_use(&self) -> bool {
matches!(
&self.kind,
ModifyReplicationSubnetGroupErrorKind::SubnetAlreadyInUse(_)
)
}
}
impl std::error::Error for ModifyReplicationSubnetGroupError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ModifyReplicationSubnetGroupErrorKind::AccessDeniedFault(_inner) => Some(_inner),
ModifyReplicationSubnetGroupErrorKind::InvalidSubnet(_inner) => Some(_inner),
ModifyReplicationSubnetGroupErrorKind::ReplicationSubnetGroupDoesNotCoverEnoughAZs(
_inner,
) => Some(_inner),
ModifyReplicationSubnetGroupErrorKind::ResourceNotFoundFault(_inner) => Some(_inner),
ModifyReplicationSubnetGroupErrorKind::ResourceQuotaExceededFault(_inner) => {
Some(_inner)
}
ModifyReplicationSubnetGroupErrorKind::SubnetAlreadyInUse(_inner) => Some(_inner),
ModifyReplicationSubnetGroupErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct SubnetAlreadyInUse {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl SubnetAlreadyInUse {
pub fn message(&self) -> std::option::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_14) = &self.message {
{
write!(f, ": {}", inner_14)?;
}
}
Ok(())
}
}
impl std::error::Error for SubnetAlreadyInUse {}
pub mod subnet_already_in_use {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::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, std::fmt::Debug)]
pub struct ReplicationSubnetGroupDoesNotCoverEnoughAZs {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl ReplicationSubnetGroupDoesNotCoverEnoughAZs {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ReplicationSubnetGroupDoesNotCoverEnoughAZs {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ReplicationSubnetGroupDoesNotCoverEnoughAZs")?;
if let Some(inner_15) = &self.message {
{
write!(f, ": {}", inner_15)?;
}
}
Ok(())
}
}
impl std::error::Error for ReplicationSubnetGroupDoesNotCoverEnoughAZs {}
pub mod replication_subnet_group_does_not_cover_enough_a_zs {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::ReplicationSubnetGroupDoesNotCoverEnoughAZs {
crate::error::ReplicationSubnetGroupDoesNotCoverEnoughAZs {
message: self.message,
}
}
}
}
impl ReplicationSubnetGroupDoesNotCoverEnoughAZs {
pub fn builder() -> crate::error::replication_subnet_group_does_not_cover_enough_a_zs::Builder {
crate::error::replication_subnet_group_does_not_cover_enough_a_zs::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidSubnet {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidSubnet {
pub fn message(&self) -> std::option::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_16) = &self.message {
{
write!(f, ": {}", inner_16)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidSubnet {}
pub mod invalid_subnet {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::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::fmt::Debug)]
pub struct ModifyReplicationInstanceError {
pub kind: ModifyReplicationInstanceErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ModifyReplicationInstanceError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ModifyReplicationInstanceErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ModifyReplicationInstanceErrorKind {
AccessDeniedFault(crate::error::AccessDeniedFault),
InsufficientResourceCapacityFault(crate::error::InsufficientResourceCapacityFault),
InvalidResourceStateFault(crate::error::InvalidResourceStateFault),
ResourceAlreadyExistsFault(crate::error::ResourceAlreadyExistsFault),
ResourceNotFoundFault(crate::error::ResourceNotFoundFault),
StorageQuotaExceededFault(crate::error::StorageQuotaExceededFault),
UpgradeDependencyFailureFault(crate::error::UpgradeDependencyFailureFault),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ModifyReplicationInstanceError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ModifyReplicationInstanceErrorKind::AccessDeniedFault(_inner) => _inner.fmt(f),
ModifyReplicationInstanceErrorKind::InsufficientResourceCapacityFault(_inner) => {
_inner.fmt(f)
}
ModifyReplicationInstanceErrorKind::InvalidResourceStateFault(_inner) => _inner.fmt(f),
ModifyReplicationInstanceErrorKind::ResourceAlreadyExistsFault(_inner) => _inner.fmt(f),
ModifyReplicationInstanceErrorKind::ResourceNotFoundFault(_inner) => _inner.fmt(f),
ModifyReplicationInstanceErrorKind::StorageQuotaExceededFault(_inner) => _inner.fmt(f),
ModifyReplicationInstanceErrorKind::UpgradeDependencyFailureFault(_inner) => {
_inner.fmt(f)
}
ModifyReplicationInstanceErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ModifyReplicationInstanceError {
fn code(&self) -> Option<&str> {
ModifyReplicationInstanceError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ModifyReplicationInstanceError {
pub fn new(kind: ModifyReplicationInstanceErrorKind, 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: ModifyReplicationInstanceErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ModifyReplicationInstanceErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_access_denied_fault(&self) -> bool {
matches!(
&self.kind,
ModifyReplicationInstanceErrorKind::AccessDeniedFault(_)
)
}
pub fn is_insufficient_resource_capacity_fault(&self) -> bool {
matches!(
&self.kind,
ModifyReplicationInstanceErrorKind::InsufficientResourceCapacityFault(_)
)
}
pub fn is_invalid_resource_state_fault(&self) -> bool {
matches!(
&self.kind,
ModifyReplicationInstanceErrorKind::InvalidResourceStateFault(_)
)
}
pub fn is_resource_already_exists_fault(&self) -> bool {
matches!(
&self.kind,
ModifyReplicationInstanceErrorKind::ResourceAlreadyExistsFault(_)
)
}
pub fn is_resource_not_found_fault(&self) -> bool {
matches!(
&self.kind,
ModifyReplicationInstanceErrorKind::ResourceNotFoundFault(_)
)
}
pub fn is_storage_quota_exceeded_fault(&self) -> bool {
matches!(
&self.kind,
ModifyReplicationInstanceErrorKind::StorageQuotaExceededFault(_)
)
}
pub fn is_upgrade_dependency_failure_fault(&self) -> bool {
matches!(
&self.kind,
ModifyReplicationInstanceErrorKind::UpgradeDependencyFailureFault(_)
)
}
}
impl std::error::Error for ModifyReplicationInstanceError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ModifyReplicationInstanceErrorKind::AccessDeniedFault(_inner) => Some(_inner),
ModifyReplicationInstanceErrorKind::InsufficientResourceCapacityFault(_inner) => {
Some(_inner)
}
ModifyReplicationInstanceErrorKind::InvalidResourceStateFault(_inner) => Some(_inner),
ModifyReplicationInstanceErrorKind::ResourceAlreadyExistsFault(_inner) => Some(_inner),
ModifyReplicationInstanceErrorKind::ResourceNotFoundFault(_inner) => Some(_inner),
ModifyReplicationInstanceErrorKind::StorageQuotaExceededFault(_inner) => Some(_inner),
ModifyReplicationInstanceErrorKind::UpgradeDependencyFailureFault(_inner) => {
Some(_inner)
}
ModifyReplicationInstanceErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UpgradeDependencyFailureFault {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl UpgradeDependencyFailureFault {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for UpgradeDependencyFailureFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "UpgradeDependencyFailureFault")?;
if let Some(inner_17) = &self.message {
{
write!(f, ": {}", inner_17)?;
}
}
Ok(())
}
}
impl std::error::Error for UpgradeDependencyFailureFault {}
pub mod upgrade_dependency_failure_fault {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::UpgradeDependencyFailureFault {
crate::error::UpgradeDependencyFailureFault {
message: self.message,
}
}
}
}
impl UpgradeDependencyFailureFault {
pub fn builder() -> crate::error::upgrade_dependency_failure_fault::Builder {
crate::error::upgrade_dependency_failure_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct StorageQuotaExceededFault {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl StorageQuotaExceededFault {
pub fn message(&self) -> std::option::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_18) = &self.message {
{
write!(f, ": {}", inner_18)?;
}
}
Ok(())
}
}
impl std::error::Error for StorageQuotaExceededFault {}
pub mod storage_quota_exceeded_fault {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::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, std::fmt::Debug)]
pub struct InsufficientResourceCapacityFault {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InsufficientResourceCapacityFault {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InsufficientResourceCapacityFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InsufficientResourceCapacityFault")?;
if let Some(inner_19) = &self.message {
{
write!(f, ": {}", inner_19)?;
}
}
Ok(())
}
}
impl std::error::Error for InsufficientResourceCapacityFault {}
pub mod insufficient_resource_capacity_fault {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InsufficientResourceCapacityFault {
crate::error::InsufficientResourceCapacityFault {
message: self.message,
}
}
}
}
impl InsufficientResourceCapacityFault {
pub fn builder() -> crate::error::insufficient_resource_capacity_fault::Builder {
crate::error::insufficient_resource_capacity_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ModifyEventSubscriptionError {
pub kind: ModifyEventSubscriptionErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ModifyEventSubscriptionError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ModifyEventSubscriptionErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ModifyEventSubscriptionErrorKind {
KmsAccessDeniedFault(crate::error::KmsAccessDeniedFault),
KmsDisabledFault(crate::error::KmsDisabledFault),
KmsInvalidStateFault(crate::error::KmsInvalidStateFault),
KmsNotFoundFault(crate::error::KmsNotFoundFault),
KmsThrottlingFault(crate::error::KmsThrottlingFault),
ResourceNotFoundFault(crate::error::ResourceNotFoundFault),
ResourceQuotaExceededFault(crate::error::ResourceQuotaExceededFault),
SnsInvalidTopicFault(crate::error::SnsInvalidTopicFault),
SnsNoAuthorizationFault(crate::error::SnsNoAuthorizationFault),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ModifyEventSubscriptionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ModifyEventSubscriptionErrorKind::KmsAccessDeniedFault(_inner) => _inner.fmt(f),
ModifyEventSubscriptionErrorKind::KmsDisabledFault(_inner) => _inner.fmt(f),
ModifyEventSubscriptionErrorKind::KmsInvalidStateFault(_inner) => _inner.fmt(f),
ModifyEventSubscriptionErrorKind::KmsNotFoundFault(_inner) => _inner.fmt(f),
ModifyEventSubscriptionErrorKind::KmsThrottlingFault(_inner) => _inner.fmt(f),
ModifyEventSubscriptionErrorKind::ResourceNotFoundFault(_inner) => _inner.fmt(f),
ModifyEventSubscriptionErrorKind::ResourceQuotaExceededFault(_inner) => _inner.fmt(f),
ModifyEventSubscriptionErrorKind::SnsInvalidTopicFault(_inner) => _inner.fmt(f),
ModifyEventSubscriptionErrorKind::SnsNoAuthorizationFault(_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(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ModifyEventSubscriptionErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_kms_access_denied_fault(&self) -> bool {
matches!(
&self.kind,
ModifyEventSubscriptionErrorKind::KmsAccessDeniedFault(_)
)
}
pub fn is_kms_disabled_fault(&self) -> bool {
matches!(
&self.kind,
ModifyEventSubscriptionErrorKind::KmsDisabledFault(_)
)
}
pub fn is_kms_invalid_state_fault(&self) -> bool {
matches!(
&self.kind,
ModifyEventSubscriptionErrorKind::KmsInvalidStateFault(_)
)
}
pub fn is_kms_not_found_fault(&self) -> bool {
matches!(
&self.kind,
ModifyEventSubscriptionErrorKind::KmsNotFoundFault(_)
)
}
pub fn is_kms_throttling_fault(&self) -> bool {
matches!(
&self.kind,
ModifyEventSubscriptionErrorKind::KmsThrottlingFault(_)
)
}
pub fn is_resource_not_found_fault(&self) -> bool {
matches!(
&self.kind,
ModifyEventSubscriptionErrorKind::ResourceNotFoundFault(_)
)
}
pub fn is_resource_quota_exceeded_fault(&self) -> bool {
matches!(
&self.kind,
ModifyEventSubscriptionErrorKind::ResourceQuotaExceededFault(_)
)
}
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(_)
)
}
}
impl std::error::Error for ModifyEventSubscriptionError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ModifyEventSubscriptionErrorKind::KmsAccessDeniedFault(_inner) => Some(_inner),
ModifyEventSubscriptionErrorKind::KmsDisabledFault(_inner) => Some(_inner),
ModifyEventSubscriptionErrorKind::KmsInvalidStateFault(_inner) => Some(_inner),
ModifyEventSubscriptionErrorKind::KmsNotFoundFault(_inner) => Some(_inner),
ModifyEventSubscriptionErrorKind::KmsThrottlingFault(_inner) => Some(_inner),
ModifyEventSubscriptionErrorKind::ResourceNotFoundFault(_inner) => Some(_inner),
ModifyEventSubscriptionErrorKind::ResourceQuotaExceededFault(_inner) => Some(_inner),
ModifyEventSubscriptionErrorKind::SnsInvalidTopicFault(_inner) => Some(_inner),
ModifyEventSubscriptionErrorKind::SnsNoAuthorizationFault(_inner) => Some(_inner),
ModifyEventSubscriptionErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct SnsNoAuthorizationFault {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl SnsNoAuthorizationFault {
pub fn message(&self) -> std::option::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_20) = &self.message {
{
write!(f, ": {}", inner_20)?;
}
}
Ok(())
}
}
impl std::error::Error for SnsNoAuthorizationFault {}
pub mod sns_no_authorization_fault {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::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, std::fmt::Debug)]
pub struct SnsInvalidTopicFault {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl SnsInvalidTopicFault {
pub fn message(&self) -> std::option::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_21) = &self.message {
{
write!(f, ": {}", inner_21)?;
}
}
Ok(())
}
}
impl std::error::Error for SnsInvalidTopicFault {}
pub mod sns_invalid_topic_fault {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::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, std::fmt::Debug)]
pub struct KmsThrottlingFault {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl KmsThrottlingFault {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for KmsThrottlingFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "KmsThrottlingFault [KMSThrottlingFault]")?;
if let Some(inner_22) = &self.message {
{
write!(f, ": {}", inner_22)?;
}
}
Ok(())
}
}
impl std::error::Error for KmsThrottlingFault {}
pub mod kms_throttling_fault {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::KmsThrottlingFault {
crate::error::KmsThrottlingFault {
message: self.message,
}
}
}
}
impl KmsThrottlingFault {
pub fn builder() -> crate::error::kms_throttling_fault::Builder {
crate::error::kms_throttling_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ModifyEndpointError {
pub kind: ModifyEndpointErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ModifyEndpointError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ModifyEndpointErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ModifyEndpointErrorKind {
AccessDeniedFault(crate::error::AccessDeniedFault),
InvalidResourceStateFault(crate::error::InvalidResourceStateFault),
KmsKeyNotAccessibleFault(crate::error::KmsKeyNotAccessibleFault),
ResourceAlreadyExistsFault(crate::error::ResourceAlreadyExistsFault),
ResourceNotFoundFault(crate::error::ResourceNotFoundFault),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ModifyEndpointError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ModifyEndpointErrorKind::AccessDeniedFault(_inner) => _inner.fmt(f),
ModifyEndpointErrorKind::InvalidResourceStateFault(_inner) => _inner.fmt(f),
ModifyEndpointErrorKind::KmsKeyNotAccessibleFault(_inner) => _inner.fmt(f),
ModifyEndpointErrorKind::ResourceAlreadyExistsFault(_inner) => _inner.fmt(f),
ModifyEndpointErrorKind::ResourceNotFoundFault(_inner) => _inner.fmt(f),
ModifyEndpointErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ModifyEndpointError {
fn code(&self) -> Option<&str> {
ModifyEndpointError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ModifyEndpointError {
pub fn new(kind: ModifyEndpointErrorKind, 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: ModifyEndpointErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ModifyEndpointErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_access_denied_fault(&self) -> bool {
matches!(&self.kind, ModifyEndpointErrorKind::AccessDeniedFault(_))
}
pub fn is_invalid_resource_state_fault(&self) -> bool {
matches!(
&self.kind,
ModifyEndpointErrorKind::InvalidResourceStateFault(_)
)
}
pub fn is_kms_key_not_accessible_fault(&self) -> bool {
matches!(
&self.kind,
ModifyEndpointErrorKind::KmsKeyNotAccessibleFault(_)
)
}
pub fn is_resource_already_exists_fault(&self) -> bool {
matches!(
&self.kind,
ModifyEndpointErrorKind::ResourceAlreadyExistsFault(_)
)
}
pub fn is_resource_not_found_fault(&self) -> bool {
matches!(
&self.kind,
ModifyEndpointErrorKind::ResourceNotFoundFault(_)
)
}
}
impl std::error::Error for ModifyEndpointError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ModifyEndpointErrorKind::AccessDeniedFault(_inner) => Some(_inner),
ModifyEndpointErrorKind::InvalidResourceStateFault(_inner) => Some(_inner),
ModifyEndpointErrorKind::KmsKeyNotAccessibleFault(_inner) => Some(_inner),
ModifyEndpointErrorKind::ResourceAlreadyExistsFault(_inner) => Some(_inner),
ModifyEndpointErrorKind::ResourceNotFoundFault(_inner) => Some(_inner),
ModifyEndpointErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListTagsForResourceError {
pub kind: ListTagsForResourceErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListTagsForResourceError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListTagsForResourceErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListTagsForResourceErrorKind {
ResourceNotFoundFault(crate::error::ResourceNotFoundFault),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListTagsForResourceError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListTagsForResourceErrorKind::ResourceNotFoundFault(_inner) => _inner.fmt(f),
ListTagsForResourceErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListTagsForResourceError {
fn code(&self) -> Option<&str> {
ListTagsForResourceError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListTagsForResourceError {
pub fn new(kind: ListTagsForResourceErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: ListTagsForResourceErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListTagsForResourceErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_resource_not_found_fault(&self) -> bool {
matches!(
&self.kind,
ListTagsForResourceErrorKind::ResourceNotFoundFault(_)
)
}
}
impl std::error::Error for ListTagsForResourceError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListTagsForResourceErrorKind::ResourceNotFoundFault(_inner) => Some(_inner),
ListTagsForResourceErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ImportCertificateError {
pub kind: ImportCertificateErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ImportCertificateError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ImportCertificateErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ImportCertificateErrorKind {
InvalidCertificateFault(crate::error::InvalidCertificateFault),
ResourceAlreadyExistsFault(crate::error::ResourceAlreadyExistsFault),
ResourceQuotaExceededFault(crate::error::ResourceQuotaExceededFault),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ImportCertificateError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ImportCertificateErrorKind::InvalidCertificateFault(_inner) => _inner.fmt(f),
ImportCertificateErrorKind::ResourceAlreadyExistsFault(_inner) => _inner.fmt(f),
ImportCertificateErrorKind::ResourceQuotaExceededFault(_inner) => _inner.fmt(f),
ImportCertificateErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ImportCertificateError {
fn code(&self) -> Option<&str> {
ImportCertificateError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ImportCertificateError {
pub fn new(kind: ImportCertificateErrorKind, 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: ImportCertificateErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ImportCertificateErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_certificate_fault(&self) -> bool {
matches!(
&self.kind,
ImportCertificateErrorKind::InvalidCertificateFault(_)
)
}
pub fn is_resource_already_exists_fault(&self) -> bool {
matches!(
&self.kind,
ImportCertificateErrorKind::ResourceAlreadyExistsFault(_)
)
}
pub fn is_resource_quota_exceeded_fault(&self) -> bool {
matches!(
&self.kind,
ImportCertificateErrorKind::ResourceQuotaExceededFault(_)
)
}
}
impl std::error::Error for ImportCertificateError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ImportCertificateErrorKind::InvalidCertificateFault(_inner) => Some(_inner),
ImportCertificateErrorKind::ResourceAlreadyExistsFault(_inner) => Some(_inner),
ImportCertificateErrorKind::ResourceQuotaExceededFault(_inner) => Some(_inner),
ImportCertificateErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidCertificateFault {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidCertificateFault {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidCertificateFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidCertificateFault")?;
if let Some(inner_23) = &self.message {
{
write!(f, ": {}", inner_23)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidCertificateFault {}
pub mod invalid_certificate_fault {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidCertificateFault {
crate::error::InvalidCertificateFault {
message: self.message,
}
}
}
}
impl InvalidCertificateFault {
pub fn builder() -> crate::error::invalid_certificate_fault::Builder {
crate::error::invalid_certificate_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeTableStatisticsError {
pub kind: DescribeTableStatisticsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeTableStatisticsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeTableStatisticsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeTableStatisticsErrorKind {
InvalidResourceStateFault(crate::error::InvalidResourceStateFault),
ResourceNotFoundFault(crate::error::ResourceNotFoundFault),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeTableStatisticsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeTableStatisticsErrorKind::InvalidResourceStateFault(_inner) => _inner.fmt(f),
DescribeTableStatisticsErrorKind::ResourceNotFoundFault(_inner) => _inner.fmt(f),
DescribeTableStatisticsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeTableStatisticsError {
fn code(&self) -> Option<&str> {
DescribeTableStatisticsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeTableStatisticsError {
pub fn new(kind: DescribeTableStatisticsErrorKind, 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: DescribeTableStatisticsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeTableStatisticsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_resource_state_fault(&self) -> bool {
matches!(
&self.kind,
DescribeTableStatisticsErrorKind::InvalidResourceStateFault(_)
)
}
pub fn is_resource_not_found_fault(&self) -> bool {
matches!(
&self.kind,
DescribeTableStatisticsErrorKind::ResourceNotFoundFault(_)
)
}
}
impl std::error::Error for DescribeTableStatisticsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeTableStatisticsErrorKind::InvalidResourceStateFault(_inner) => Some(_inner),
DescribeTableStatisticsErrorKind::ResourceNotFoundFault(_inner) => Some(_inner),
DescribeTableStatisticsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeSchemasError {
pub kind: DescribeSchemasErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeSchemasError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeSchemasErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeSchemasErrorKind {
InvalidResourceStateFault(crate::error::InvalidResourceStateFault),
ResourceNotFoundFault(crate::error::ResourceNotFoundFault),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeSchemasError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeSchemasErrorKind::InvalidResourceStateFault(_inner) => _inner.fmt(f),
DescribeSchemasErrorKind::ResourceNotFoundFault(_inner) => _inner.fmt(f),
DescribeSchemasErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeSchemasError {
fn code(&self) -> Option<&str> {
DescribeSchemasError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeSchemasError {
pub fn new(kind: DescribeSchemasErrorKind, 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: DescribeSchemasErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeSchemasErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_resource_state_fault(&self) -> bool {
matches!(
&self.kind,
DescribeSchemasErrorKind::InvalidResourceStateFault(_)
)
}
pub fn is_resource_not_found_fault(&self) -> bool {
matches!(
&self.kind,
DescribeSchemasErrorKind::ResourceNotFoundFault(_)
)
}
}
impl std::error::Error for DescribeSchemasError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeSchemasErrorKind::InvalidResourceStateFault(_inner) => Some(_inner),
DescribeSchemasErrorKind::ResourceNotFoundFault(_inner) => Some(_inner),
DescribeSchemasErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeReplicationTasksError {
pub kind: DescribeReplicationTasksErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeReplicationTasksError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeReplicationTasksErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeReplicationTasksErrorKind {
ResourceNotFoundFault(crate::error::ResourceNotFoundFault),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeReplicationTasksError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeReplicationTasksErrorKind::ResourceNotFoundFault(_inner) => _inner.fmt(f),
DescribeReplicationTasksErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeReplicationTasksError {
fn code(&self) -> Option<&str> {
DescribeReplicationTasksError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeReplicationTasksError {
pub fn new(kind: DescribeReplicationTasksErrorKind, 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: DescribeReplicationTasksErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeReplicationTasksErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_resource_not_found_fault(&self) -> bool {
matches!(
&self.kind,
DescribeReplicationTasksErrorKind::ResourceNotFoundFault(_)
)
}
}
impl std::error::Error for DescribeReplicationTasksError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeReplicationTasksErrorKind::ResourceNotFoundFault(_inner) => Some(_inner),
DescribeReplicationTasksErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeReplicationTaskIndividualAssessmentsError {
pub kind: DescribeReplicationTaskIndividualAssessmentsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError
for DescribeReplicationTaskIndividualAssessmentsError
{
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeReplicationTaskIndividualAssessmentsErrorKind::Unhandled(
crate::error::Unhandled::new(source),
),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeReplicationTaskIndividualAssessmentsErrorKind {
ResourceNotFoundFault(crate::error::ResourceNotFoundFault),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeReplicationTaskIndividualAssessmentsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeReplicationTaskIndividualAssessmentsErrorKind::ResourceNotFoundFault(
_inner,
) => _inner.fmt(f),
DescribeReplicationTaskIndividualAssessmentsErrorKind::Unhandled(_inner) => {
_inner.fmt(f)
}
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind
for DescribeReplicationTaskIndividualAssessmentsError
{
fn code(&self) -> Option<&str> {
DescribeReplicationTaskIndividualAssessmentsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeReplicationTaskIndividualAssessmentsError {
pub fn new(
kind: DescribeReplicationTaskIndividualAssessmentsErrorKind,
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: DescribeReplicationTaskIndividualAssessmentsErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeReplicationTaskIndividualAssessmentsErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_resource_not_found_fault(&self) -> bool {
matches!(
&self.kind,
DescribeReplicationTaskIndividualAssessmentsErrorKind::ResourceNotFoundFault(_)
)
}
}
impl std::error::Error for DescribeReplicationTaskIndividualAssessmentsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeReplicationTaskIndividualAssessmentsErrorKind::ResourceNotFoundFault(
_inner,
) => Some(_inner),
DescribeReplicationTaskIndividualAssessmentsErrorKind::Unhandled(_inner) => {
Some(_inner)
}
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeReplicationTaskAssessmentRunsError {
pub kind: DescribeReplicationTaskAssessmentRunsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeReplicationTaskAssessmentRunsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeReplicationTaskAssessmentRunsErrorKind::Unhandled(
crate::error::Unhandled::new(source),
),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeReplicationTaskAssessmentRunsErrorKind {
ResourceNotFoundFault(crate::error::ResourceNotFoundFault),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeReplicationTaskAssessmentRunsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeReplicationTaskAssessmentRunsErrorKind::ResourceNotFoundFault(_inner) => {
_inner.fmt(f)
}
DescribeReplicationTaskAssessmentRunsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeReplicationTaskAssessmentRunsError {
fn code(&self) -> Option<&str> {
DescribeReplicationTaskAssessmentRunsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeReplicationTaskAssessmentRunsError {
pub fn new(
kind: DescribeReplicationTaskAssessmentRunsErrorKind,
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: DescribeReplicationTaskAssessmentRunsErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeReplicationTaskAssessmentRunsErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_resource_not_found_fault(&self) -> bool {
matches!(
&self.kind,
DescribeReplicationTaskAssessmentRunsErrorKind::ResourceNotFoundFault(_)
)
}
}
impl std::error::Error for DescribeReplicationTaskAssessmentRunsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeReplicationTaskAssessmentRunsErrorKind::ResourceNotFoundFault(_inner) => {
Some(_inner)
}
DescribeReplicationTaskAssessmentRunsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeReplicationTaskAssessmentResultsError {
pub kind: DescribeReplicationTaskAssessmentResultsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError
for DescribeReplicationTaskAssessmentResultsError
{
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeReplicationTaskAssessmentResultsErrorKind::Unhandled(
crate::error::Unhandled::new(source),
),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeReplicationTaskAssessmentResultsErrorKind {
ResourceNotFoundFault(crate::error::ResourceNotFoundFault),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeReplicationTaskAssessmentResultsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeReplicationTaskAssessmentResultsErrorKind::ResourceNotFoundFault(_inner) => {
_inner.fmt(f)
}
DescribeReplicationTaskAssessmentResultsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeReplicationTaskAssessmentResultsError {
fn code(&self) -> Option<&str> {
DescribeReplicationTaskAssessmentResultsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeReplicationTaskAssessmentResultsError {
pub fn new(
kind: DescribeReplicationTaskAssessmentResultsErrorKind,
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: DescribeReplicationTaskAssessmentResultsErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeReplicationTaskAssessmentResultsErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_resource_not_found_fault(&self) -> bool {
matches!(
&self.kind,
DescribeReplicationTaskAssessmentResultsErrorKind::ResourceNotFoundFault(_)
)
}
}
impl std::error::Error for DescribeReplicationTaskAssessmentResultsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeReplicationTaskAssessmentResultsErrorKind::ResourceNotFoundFault(_inner) => {
Some(_inner)
}
DescribeReplicationTaskAssessmentResultsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeReplicationSubnetGroupsError {
pub kind: DescribeReplicationSubnetGroupsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeReplicationSubnetGroupsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeReplicationSubnetGroupsErrorKind::Unhandled(
crate::error::Unhandled::new(source),
),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeReplicationSubnetGroupsErrorKind {
ResourceNotFoundFault(crate::error::ResourceNotFoundFault),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeReplicationSubnetGroupsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeReplicationSubnetGroupsErrorKind::ResourceNotFoundFault(_inner) => {
_inner.fmt(f)
}
DescribeReplicationSubnetGroupsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeReplicationSubnetGroupsError {
fn code(&self) -> Option<&str> {
DescribeReplicationSubnetGroupsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeReplicationSubnetGroupsError {
pub fn new(
kind: DescribeReplicationSubnetGroupsErrorKind,
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: DescribeReplicationSubnetGroupsErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeReplicationSubnetGroupsErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_resource_not_found_fault(&self) -> bool {
matches!(
&self.kind,
DescribeReplicationSubnetGroupsErrorKind::ResourceNotFoundFault(_)
)
}
}
impl std::error::Error for DescribeReplicationSubnetGroupsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeReplicationSubnetGroupsErrorKind::ResourceNotFoundFault(_inner) => Some(_inner),
DescribeReplicationSubnetGroupsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeReplicationInstanceTaskLogsError {
pub kind: DescribeReplicationInstanceTaskLogsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeReplicationInstanceTaskLogsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeReplicationInstanceTaskLogsErrorKind::Unhandled(
crate::error::Unhandled::new(source),
),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeReplicationInstanceTaskLogsErrorKind {
InvalidResourceStateFault(crate::error::InvalidResourceStateFault),
ResourceNotFoundFault(crate::error::ResourceNotFoundFault),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeReplicationInstanceTaskLogsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeReplicationInstanceTaskLogsErrorKind::InvalidResourceStateFault(_inner) => {
_inner.fmt(f)
}
DescribeReplicationInstanceTaskLogsErrorKind::ResourceNotFoundFault(_inner) => {
_inner.fmt(f)
}
DescribeReplicationInstanceTaskLogsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeReplicationInstanceTaskLogsError {
fn code(&self) -> Option<&str> {
DescribeReplicationInstanceTaskLogsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeReplicationInstanceTaskLogsError {
pub fn new(
kind: DescribeReplicationInstanceTaskLogsErrorKind,
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: DescribeReplicationInstanceTaskLogsErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeReplicationInstanceTaskLogsErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_resource_state_fault(&self) -> bool {
matches!(
&self.kind,
DescribeReplicationInstanceTaskLogsErrorKind::InvalidResourceStateFault(_)
)
}
pub fn is_resource_not_found_fault(&self) -> bool {
matches!(
&self.kind,
DescribeReplicationInstanceTaskLogsErrorKind::ResourceNotFoundFault(_)
)
}
}
impl std::error::Error for DescribeReplicationInstanceTaskLogsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeReplicationInstanceTaskLogsErrorKind::InvalidResourceStateFault(_inner) => {
Some(_inner)
}
DescribeReplicationInstanceTaskLogsErrorKind::ResourceNotFoundFault(_inner) => {
Some(_inner)
}
DescribeReplicationInstanceTaskLogsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeReplicationInstancesError {
pub kind: DescribeReplicationInstancesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeReplicationInstancesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeReplicationInstancesErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeReplicationInstancesErrorKind {
ResourceNotFoundFault(crate::error::ResourceNotFoundFault),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeReplicationInstancesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeReplicationInstancesErrorKind::ResourceNotFoundFault(_inner) => _inner.fmt(f),
DescribeReplicationInstancesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeReplicationInstancesError {
fn code(&self) -> Option<&str> {
DescribeReplicationInstancesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeReplicationInstancesError {
pub fn new(kind: DescribeReplicationInstancesErrorKind, 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: DescribeReplicationInstancesErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeReplicationInstancesErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_resource_not_found_fault(&self) -> bool {
matches!(
&self.kind,
DescribeReplicationInstancesErrorKind::ResourceNotFoundFault(_)
)
}
}
impl std::error::Error for DescribeReplicationInstancesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeReplicationInstancesErrorKind::ResourceNotFoundFault(_inner) => Some(_inner),
DescribeReplicationInstancesErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeRefreshSchemasStatusError {
pub kind: DescribeRefreshSchemasStatusErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeRefreshSchemasStatusError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeRefreshSchemasStatusErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeRefreshSchemasStatusErrorKind {
InvalidResourceStateFault(crate::error::InvalidResourceStateFault),
ResourceNotFoundFault(crate::error::ResourceNotFoundFault),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeRefreshSchemasStatusError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeRefreshSchemasStatusErrorKind::InvalidResourceStateFault(_inner) => {
_inner.fmt(f)
}
DescribeRefreshSchemasStatusErrorKind::ResourceNotFoundFault(_inner) => _inner.fmt(f),
DescribeRefreshSchemasStatusErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeRefreshSchemasStatusError {
fn code(&self) -> Option<&str> {
DescribeRefreshSchemasStatusError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeRefreshSchemasStatusError {
pub fn new(kind: DescribeRefreshSchemasStatusErrorKind, 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: DescribeRefreshSchemasStatusErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeRefreshSchemasStatusErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_resource_state_fault(&self) -> bool {
matches!(
&self.kind,
DescribeRefreshSchemasStatusErrorKind::InvalidResourceStateFault(_)
)
}
pub fn is_resource_not_found_fault(&self) -> bool {
matches!(
&self.kind,
DescribeRefreshSchemasStatusErrorKind::ResourceNotFoundFault(_)
)
}
}
impl std::error::Error for DescribeRefreshSchemasStatusError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeRefreshSchemasStatusErrorKind::InvalidResourceStateFault(_inner) => {
Some(_inner)
}
DescribeRefreshSchemasStatusErrorKind::ResourceNotFoundFault(_inner) => Some(_inner),
DescribeRefreshSchemasStatusErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribePendingMaintenanceActionsError {
pub kind: DescribePendingMaintenanceActionsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribePendingMaintenanceActionsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribePendingMaintenanceActionsErrorKind::Unhandled(
crate::error::Unhandled::new(source),
),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribePendingMaintenanceActionsErrorKind {
ResourceNotFoundFault(crate::error::ResourceNotFoundFault),
Unhandled(crate::error::Unhandled),
}
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(
crate::error::Unhandled::new(err.into()),
),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribePendingMaintenanceActionsErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_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),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeOrderableReplicationInstancesError {
pub kind: DescribeOrderableReplicationInstancesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeOrderableReplicationInstancesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeOrderableReplicationInstancesErrorKind::Unhandled(
crate::error::Unhandled::new(source),
),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeOrderableReplicationInstancesErrorKind {
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeOrderableReplicationInstancesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeOrderableReplicationInstancesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeOrderableReplicationInstancesError {
fn code(&self) -> Option<&str> {
DescribeOrderableReplicationInstancesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeOrderableReplicationInstancesError {
pub fn new(
kind: DescribeOrderableReplicationInstancesErrorKind,
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: DescribeOrderableReplicationInstancesErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeOrderableReplicationInstancesErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
}
impl std::error::Error for DescribeOrderableReplicationInstancesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeOrderableReplicationInstancesErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeFleetAdvisorSchemasError {
pub kind: DescribeFleetAdvisorSchemasErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeFleetAdvisorSchemasError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeFleetAdvisorSchemasErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeFleetAdvisorSchemasErrorKind {
InvalidResourceStateFault(crate::error::InvalidResourceStateFault),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeFleetAdvisorSchemasError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeFleetAdvisorSchemasErrorKind::InvalidResourceStateFault(_inner) => {
_inner.fmt(f)
}
DescribeFleetAdvisorSchemasErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeFleetAdvisorSchemasError {
fn code(&self) -> Option<&str> {
DescribeFleetAdvisorSchemasError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeFleetAdvisorSchemasError {
pub fn new(kind: DescribeFleetAdvisorSchemasErrorKind, 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: DescribeFleetAdvisorSchemasErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeFleetAdvisorSchemasErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_resource_state_fault(&self) -> bool {
matches!(
&self.kind,
DescribeFleetAdvisorSchemasErrorKind::InvalidResourceStateFault(_)
)
}
}
impl std::error::Error for DescribeFleetAdvisorSchemasError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeFleetAdvisorSchemasErrorKind::InvalidResourceStateFault(_inner) => Some(_inner),
DescribeFleetAdvisorSchemasErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeFleetAdvisorSchemaObjectSummaryError {
pub kind: DescribeFleetAdvisorSchemaObjectSummaryErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError
for DescribeFleetAdvisorSchemaObjectSummaryError
{
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeFleetAdvisorSchemaObjectSummaryErrorKind::Unhandled(
crate::error::Unhandled::new(source),
),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeFleetAdvisorSchemaObjectSummaryErrorKind {
InvalidResourceStateFault(crate::error::InvalidResourceStateFault),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeFleetAdvisorSchemaObjectSummaryError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeFleetAdvisorSchemaObjectSummaryErrorKind::InvalidResourceStateFault(_inner) => {
_inner.fmt(f)
}
DescribeFleetAdvisorSchemaObjectSummaryErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeFleetAdvisorSchemaObjectSummaryError {
fn code(&self) -> Option<&str> {
DescribeFleetAdvisorSchemaObjectSummaryError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeFleetAdvisorSchemaObjectSummaryError {
pub fn new(
kind: DescribeFleetAdvisorSchemaObjectSummaryErrorKind,
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: DescribeFleetAdvisorSchemaObjectSummaryErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeFleetAdvisorSchemaObjectSummaryErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_resource_state_fault(&self) -> bool {
matches!(
&self.kind,
DescribeFleetAdvisorSchemaObjectSummaryErrorKind::InvalidResourceStateFault(_)
)
}
}
impl std::error::Error for DescribeFleetAdvisorSchemaObjectSummaryError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeFleetAdvisorSchemaObjectSummaryErrorKind::InvalidResourceStateFault(_inner) => {
Some(_inner)
}
DescribeFleetAdvisorSchemaObjectSummaryErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeFleetAdvisorLsaAnalysisError {
pub kind: DescribeFleetAdvisorLsaAnalysisErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeFleetAdvisorLsaAnalysisError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeFleetAdvisorLsaAnalysisErrorKind::Unhandled(
crate::error::Unhandled::new(source),
),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeFleetAdvisorLsaAnalysisErrorKind {
InvalidResourceStateFault(crate::error::InvalidResourceStateFault),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeFleetAdvisorLsaAnalysisError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeFleetAdvisorLsaAnalysisErrorKind::InvalidResourceStateFault(_inner) => {
_inner.fmt(f)
}
DescribeFleetAdvisorLsaAnalysisErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeFleetAdvisorLsaAnalysisError {
fn code(&self) -> Option<&str> {
DescribeFleetAdvisorLsaAnalysisError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeFleetAdvisorLsaAnalysisError {
pub fn new(
kind: DescribeFleetAdvisorLsaAnalysisErrorKind,
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: DescribeFleetAdvisorLsaAnalysisErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeFleetAdvisorLsaAnalysisErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_resource_state_fault(&self) -> bool {
matches!(
&self.kind,
DescribeFleetAdvisorLsaAnalysisErrorKind::InvalidResourceStateFault(_)
)
}
}
impl std::error::Error for DescribeFleetAdvisorLsaAnalysisError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeFleetAdvisorLsaAnalysisErrorKind::InvalidResourceStateFault(_inner) => {
Some(_inner)
}
DescribeFleetAdvisorLsaAnalysisErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeFleetAdvisorDatabasesError {
pub kind: DescribeFleetAdvisorDatabasesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeFleetAdvisorDatabasesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeFleetAdvisorDatabasesErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeFleetAdvisorDatabasesErrorKind {
InvalidResourceStateFault(crate::error::InvalidResourceStateFault),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeFleetAdvisorDatabasesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeFleetAdvisorDatabasesErrorKind::InvalidResourceStateFault(_inner) => {
_inner.fmt(f)
}
DescribeFleetAdvisorDatabasesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeFleetAdvisorDatabasesError {
fn code(&self) -> Option<&str> {
DescribeFleetAdvisorDatabasesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeFleetAdvisorDatabasesError {
pub fn new(
kind: DescribeFleetAdvisorDatabasesErrorKind,
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: DescribeFleetAdvisorDatabasesErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeFleetAdvisorDatabasesErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_resource_state_fault(&self) -> bool {
matches!(
&self.kind,
DescribeFleetAdvisorDatabasesErrorKind::InvalidResourceStateFault(_)
)
}
}
impl std::error::Error for DescribeFleetAdvisorDatabasesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeFleetAdvisorDatabasesErrorKind::InvalidResourceStateFault(_inner) => {
Some(_inner)
}
DescribeFleetAdvisorDatabasesErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeFleetAdvisorCollectorsError {
pub kind: DescribeFleetAdvisorCollectorsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeFleetAdvisorCollectorsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeFleetAdvisorCollectorsErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeFleetAdvisorCollectorsErrorKind {
InvalidResourceStateFault(crate::error::InvalidResourceStateFault),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeFleetAdvisorCollectorsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeFleetAdvisorCollectorsErrorKind::InvalidResourceStateFault(_inner) => {
_inner.fmt(f)
}
DescribeFleetAdvisorCollectorsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeFleetAdvisorCollectorsError {
fn code(&self) -> Option<&str> {
DescribeFleetAdvisorCollectorsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeFleetAdvisorCollectorsError {
pub fn new(
kind: DescribeFleetAdvisorCollectorsErrorKind,
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: DescribeFleetAdvisorCollectorsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeFleetAdvisorCollectorsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_resource_state_fault(&self) -> bool {
matches!(
&self.kind,
DescribeFleetAdvisorCollectorsErrorKind::InvalidResourceStateFault(_)
)
}
}
impl std::error::Error for DescribeFleetAdvisorCollectorsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeFleetAdvisorCollectorsErrorKind::InvalidResourceStateFault(_inner) => {
Some(_inner)
}
DescribeFleetAdvisorCollectorsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeEventSubscriptionsError {
pub kind: DescribeEventSubscriptionsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeEventSubscriptionsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeEventSubscriptionsErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeEventSubscriptionsErrorKind {
ResourceNotFoundFault(crate::error::ResourceNotFoundFault),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeEventSubscriptionsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeEventSubscriptionsErrorKind::ResourceNotFoundFault(_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(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeEventSubscriptionsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_resource_not_found_fault(&self) -> bool {
matches!(
&self.kind,
DescribeEventSubscriptionsErrorKind::ResourceNotFoundFault(_)
)
}
}
impl std::error::Error for DescribeEventSubscriptionsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeEventSubscriptionsErrorKind::ResourceNotFoundFault(_inner) => Some(_inner),
DescribeEventSubscriptionsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeEventsError {
pub kind: DescribeEventsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeEventsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeEventsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeEventsErrorKind {
Unhandled(crate::error::Unhandled),
}
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(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeEventsErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
}
impl std::error::Error for DescribeEventsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeEventsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeEventCategoriesError {
pub kind: DescribeEventCategoriesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeEventCategoriesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeEventCategoriesErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeEventCategoriesErrorKind {
Unhandled(crate::error::Unhandled),
}
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(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeEventCategoriesErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
}
impl std::error::Error for DescribeEventCategoriesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeEventCategoriesErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeEndpointTypesError {
pub kind: DescribeEndpointTypesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeEndpointTypesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeEndpointTypesErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeEndpointTypesErrorKind {
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeEndpointTypesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeEndpointTypesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeEndpointTypesError {
fn code(&self) -> Option<&str> {
DescribeEndpointTypesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeEndpointTypesError {
pub fn new(kind: DescribeEndpointTypesErrorKind, 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: DescribeEndpointTypesErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeEndpointTypesErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
}
impl std::error::Error for DescribeEndpointTypesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeEndpointTypesErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeEndpointSettingsError {
pub kind: DescribeEndpointSettingsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeEndpointSettingsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeEndpointSettingsErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeEndpointSettingsErrorKind {
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeEndpointSettingsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeEndpointSettingsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeEndpointSettingsError {
fn code(&self) -> Option<&str> {
DescribeEndpointSettingsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeEndpointSettingsError {
pub fn new(kind: DescribeEndpointSettingsErrorKind, 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: DescribeEndpointSettingsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeEndpointSettingsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
}
impl std::error::Error for DescribeEndpointSettingsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeEndpointSettingsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeEndpointsError {
pub kind: DescribeEndpointsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeEndpointsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeEndpointsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeEndpointsErrorKind {
ResourceNotFoundFault(crate::error::ResourceNotFoundFault),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeEndpointsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeEndpointsErrorKind::ResourceNotFoundFault(_inner) => _inner.fmt(f),
DescribeEndpointsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeEndpointsError {
fn code(&self) -> Option<&str> {
DescribeEndpointsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeEndpointsError {
pub fn new(kind: DescribeEndpointsErrorKind, 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: DescribeEndpointsErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeEndpointsErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_resource_not_found_fault(&self) -> bool {
matches!(
&self.kind,
DescribeEndpointsErrorKind::ResourceNotFoundFault(_)
)
}
}
impl std::error::Error for DescribeEndpointsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeEndpointsErrorKind::ResourceNotFoundFault(_inner) => Some(_inner),
DescribeEndpointsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeConnectionsError {
pub kind: DescribeConnectionsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeConnectionsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeConnectionsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeConnectionsErrorKind {
ResourceNotFoundFault(crate::error::ResourceNotFoundFault),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeConnectionsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeConnectionsErrorKind::ResourceNotFoundFault(_inner) => _inner.fmt(f),
DescribeConnectionsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeConnectionsError {
fn code(&self) -> Option<&str> {
DescribeConnectionsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeConnectionsError {
pub fn new(kind: DescribeConnectionsErrorKind, 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: DescribeConnectionsErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeConnectionsErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_resource_not_found_fault(&self) -> bool {
matches!(
&self.kind,
DescribeConnectionsErrorKind::ResourceNotFoundFault(_)
)
}
}
impl std::error::Error for DescribeConnectionsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeConnectionsErrorKind::ResourceNotFoundFault(_inner) => Some(_inner),
DescribeConnectionsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeCertificatesError {
pub kind: DescribeCertificatesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeCertificatesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeCertificatesErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeCertificatesErrorKind {
ResourceNotFoundFault(crate::error::ResourceNotFoundFault),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeCertificatesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeCertificatesErrorKind::ResourceNotFoundFault(_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(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeCertificatesErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_resource_not_found_fault(&self) -> bool {
matches!(
&self.kind,
DescribeCertificatesErrorKind::ResourceNotFoundFault(_)
)
}
}
impl std::error::Error for DescribeCertificatesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeCertificatesErrorKind::ResourceNotFoundFault(_inner) => Some(_inner),
DescribeCertificatesErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeApplicableIndividualAssessmentsError {
pub kind: DescribeApplicableIndividualAssessmentsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError
for DescribeApplicableIndividualAssessmentsError
{
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeApplicableIndividualAssessmentsErrorKind::Unhandled(
crate::error::Unhandled::new(source),
),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeApplicableIndividualAssessmentsErrorKind {
AccessDeniedFault(crate::error::AccessDeniedFault),
InvalidResourceStateFault(crate::error::InvalidResourceStateFault),
ResourceNotFoundFault(crate::error::ResourceNotFoundFault),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeApplicableIndividualAssessmentsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeApplicableIndividualAssessmentsErrorKind::AccessDeniedFault(_inner) => {
_inner.fmt(f)
}
DescribeApplicableIndividualAssessmentsErrorKind::InvalidResourceStateFault(_inner) => {
_inner.fmt(f)
}
DescribeApplicableIndividualAssessmentsErrorKind::ResourceNotFoundFault(_inner) => {
_inner.fmt(f)
}
DescribeApplicableIndividualAssessmentsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeApplicableIndividualAssessmentsError {
fn code(&self) -> Option<&str> {
DescribeApplicableIndividualAssessmentsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeApplicableIndividualAssessmentsError {
pub fn new(
kind: DescribeApplicableIndividualAssessmentsErrorKind,
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: DescribeApplicableIndividualAssessmentsErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeApplicableIndividualAssessmentsErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_access_denied_fault(&self) -> bool {
matches!(
&self.kind,
DescribeApplicableIndividualAssessmentsErrorKind::AccessDeniedFault(_)
)
}
pub fn is_invalid_resource_state_fault(&self) -> bool {
matches!(
&self.kind,
DescribeApplicableIndividualAssessmentsErrorKind::InvalidResourceStateFault(_)
)
}
pub fn is_resource_not_found_fault(&self) -> bool {
matches!(
&self.kind,
DescribeApplicableIndividualAssessmentsErrorKind::ResourceNotFoundFault(_)
)
}
}
impl std::error::Error for DescribeApplicableIndividualAssessmentsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeApplicableIndividualAssessmentsErrorKind::AccessDeniedFault(_inner) => {
Some(_inner)
}
DescribeApplicableIndividualAssessmentsErrorKind::InvalidResourceStateFault(_inner) => {
Some(_inner)
}
DescribeApplicableIndividualAssessmentsErrorKind::ResourceNotFoundFault(_inner) => {
Some(_inner)
}
DescribeApplicableIndividualAssessmentsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeAccountAttributesError {
pub kind: DescribeAccountAttributesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeAccountAttributesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeAccountAttributesErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeAccountAttributesErrorKind {
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeAccountAttributesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeAccountAttributesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeAccountAttributesError {
fn code(&self) -> Option<&str> {
DescribeAccountAttributesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeAccountAttributesError {
pub fn new(kind: DescribeAccountAttributesErrorKind, 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: DescribeAccountAttributesErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeAccountAttributesErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
}
impl std::error::Error for DescribeAccountAttributesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeAccountAttributesErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteReplicationTaskAssessmentRunError {
pub kind: DeleteReplicationTaskAssessmentRunErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteReplicationTaskAssessmentRunError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteReplicationTaskAssessmentRunErrorKind::Unhandled(
crate::error::Unhandled::new(source),
),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteReplicationTaskAssessmentRunErrorKind {
AccessDeniedFault(crate::error::AccessDeniedFault),
InvalidResourceStateFault(crate::error::InvalidResourceStateFault),
ResourceNotFoundFault(crate::error::ResourceNotFoundFault),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteReplicationTaskAssessmentRunError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteReplicationTaskAssessmentRunErrorKind::AccessDeniedFault(_inner) => _inner.fmt(f),
DeleteReplicationTaskAssessmentRunErrorKind::InvalidResourceStateFault(_inner) => {
_inner.fmt(f)
}
DeleteReplicationTaskAssessmentRunErrorKind::ResourceNotFoundFault(_inner) => {
_inner.fmt(f)
}
DeleteReplicationTaskAssessmentRunErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteReplicationTaskAssessmentRunError {
fn code(&self) -> Option<&str> {
DeleteReplicationTaskAssessmentRunError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteReplicationTaskAssessmentRunError {
pub fn new(
kind: DeleteReplicationTaskAssessmentRunErrorKind,
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: DeleteReplicationTaskAssessmentRunErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteReplicationTaskAssessmentRunErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_access_denied_fault(&self) -> bool {
matches!(
&self.kind,
DeleteReplicationTaskAssessmentRunErrorKind::AccessDeniedFault(_)
)
}
pub fn is_invalid_resource_state_fault(&self) -> bool {
matches!(
&self.kind,
DeleteReplicationTaskAssessmentRunErrorKind::InvalidResourceStateFault(_)
)
}
pub fn is_resource_not_found_fault(&self) -> bool {
matches!(
&self.kind,
DeleteReplicationTaskAssessmentRunErrorKind::ResourceNotFoundFault(_)
)
}
}
impl std::error::Error for DeleteReplicationTaskAssessmentRunError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteReplicationTaskAssessmentRunErrorKind::AccessDeniedFault(_inner) => Some(_inner),
DeleteReplicationTaskAssessmentRunErrorKind::InvalidResourceStateFault(_inner) => {
Some(_inner)
}
DeleteReplicationTaskAssessmentRunErrorKind::ResourceNotFoundFault(_inner) => {
Some(_inner)
}
DeleteReplicationTaskAssessmentRunErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteReplicationTaskError {
pub kind: DeleteReplicationTaskErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteReplicationTaskError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteReplicationTaskErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteReplicationTaskErrorKind {
InvalidResourceStateFault(crate::error::InvalidResourceStateFault),
ResourceNotFoundFault(crate::error::ResourceNotFoundFault),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteReplicationTaskError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteReplicationTaskErrorKind::InvalidResourceStateFault(_inner) => _inner.fmt(f),
DeleteReplicationTaskErrorKind::ResourceNotFoundFault(_inner) => _inner.fmt(f),
DeleteReplicationTaskErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteReplicationTaskError {
fn code(&self) -> Option<&str> {
DeleteReplicationTaskError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteReplicationTaskError {
pub fn new(kind: DeleteReplicationTaskErrorKind, 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: DeleteReplicationTaskErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteReplicationTaskErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_resource_state_fault(&self) -> bool {
matches!(
&self.kind,
DeleteReplicationTaskErrorKind::InvalidResourceStateFault(_)
)
}
pub fn is_resource_not_found_fault(&self) -> bool {
matches!(
&self.kind,
DeleteReplicationTaskErrorKind::ResourceNotFoundFault(_)
)
}
}
impl std::error::Error for DeleteReplicationTaskError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteReplicationTaskErrorKind::InvalidResourceStateFault(_inner) => Some(_inner),
DeleteReplicationTaskErrorKind::ResourceNotFoundFault(_inner) => Some(_inner),
DeleteReplicationTaskErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteReplicationSubnetGroupError {
pub kind: DeleteReplicationSubnetGroupErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteReplicationSubnetGroupError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteReplicationSubnetGroupErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteReplicationSubnetGroupErrorKind {
InvalidResourceStateFault(crate::error::InvalidResourceStateFault),
ResourceNotFoundFault(crate::error::ResourceNotFoundFault),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteReplicationSubnetGroupError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteReplicationSubnetGroupErrorKind::InvalidResourceStateFault(_inner) => {
_inner.fmt(f)
}
DeleteReplicationSubnetGroupErrorKind::ResourceNotFoundFault(_inner) => _inner.fmt(f),
DeleteReplicationSubnetGroupErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteReplicationSubnetGroupError {
fn code(&self) -> Option<&str> {
DeleteReplicationSubnetGroupError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteReplicationSubnetGroupError {
pub fn new(kind: DeleteReplicationSubnetGroupErrorKind, 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: DeleteReplicationSubnetGroupErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteReplicationSubnetGroupErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_resource_state_fault(&self) -> bool {
matches!(
&self.kind,
DeleteReplicationSubnetGroupErrorKind::InvalidResourceStateFault(_)
)
}
pub fn is_resource_not_found_fault(&self) -> bool {
matches!(
&self.kind,
DeleteReplicationSubnetGroupErrorKind::ResourceNotFoundFault(_)
)
}
}
impl std::error::Error for DeleteReplicationSubnetGroupError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteReplicationSubnetGroupErrorKind::InvalidResourceStateFault(_inner) => {
Some(_inner)
}
DeleteReplicationSubnetGroupErrorKind::ResourceNotFoundFault(_inner) => Some(_inner),
DeleteReplicationSubnetGroupErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteReplicationInstanceError {
pub kind: DeleteReplicationInstanceErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteReplicationInstanceError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteReplicationInstanceErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteReplicationInstanceErrorKind {
InvalidResourceStateFault(crate::error::InvalidResourceStateFault),
ResourceNotFoundFault(crate::error::ResourceNotFoundFault),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteReplicationInstanceError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteReplicationInstanceErrorKind::InvalidResourceStateFault(_inner) => _inner.fmt(f),
DeleteReplicationInstanceErrorKind::ResourceNotFoundFault(_inner) => _inner.fmt(f),
DeleteReplicationInstanceErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteReplicationInstanceError {
fn code(&self) -> Option<&str> {
DeleteReplicationInstanceError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteReplicationInstanceError {
pub fn new(kind: DeleteReplicationInstanceErrorKind, 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: DeleteReplicationInstanceErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteReplicationInstanceErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_resource_state_fault(&self) -> bool {
matches!(
&self.kind,
DeleteReplicationInstanceErrorKind::InvalidResourceStateFault(_)
)
}
pub fn is_resource_not_found_fault(&self) -> bool {
matches!(
&self.kind,
DeleteReplicationInstanceErrorKind::ResourceNotFoundFault(_)
)
}
}
impl std::error::Error for DeleteReplicationInstanceError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteReplicationInstanceErrorKind::InvalidResourceStateFault(_inner) => Some(_inner),
DeleteReplicationInstanceErrorKind::ResourceNotFoundFault(_inner) => Some(_inner),
DeleteReplicationInstanceErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteFleetAdvisorDatabasesError {
pub kind: DeleteFleetAdvisorDatabasesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteFleetAdvisorDatabasesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteFleetAdvisorDatabasesErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteFleetAdvisorDatabasesErrorKind {
InvalidOperationFault(crate::error::InvalidOperationFault),
ResourceNotFoundFault(crate::error::ResourceNotFoundFault),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteFleetAdvisorDatabasesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteFleetAdvisorDatabasesErrorKind::InvalidOperationFault(_inner) => _inner.fmt(f),
DeleteFleetAdvisorDatabasesErrorKind::ResourceNotFoundFault(_inner) => _inner.fmt(f),
DeleteFleetAdvisorDatabasesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteFleetAdvisorDatabasesError {
fn code(&self) -> Option<&str> {
DeleteFleetAdvisorDatabasesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteFleetAdvisorDatabasesError {
pub fn new(kind: DeleteFleetAdvisorDatabasesErrorKind, 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: DeleteFleetAdvisorDatabasesErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteFleetAdvisorDatabasesErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_operation_fault(&self) -> bool {
matches!(
&self.kind,
DeleteFleetAdvisorDatabasesErrorKind::InvalidOperationFault(_)
)
}
pub fn is_resource_not_found_fault(&self) -> bool {
matches!(
&self.kind,
DeleteFleetAdvisorDatabasesErrorKind::ResourceNotFoundFault(_)
)
}
}
impl std::error::Error for DeleteFleetAdvisorDatabasesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteFleetAdvisorDatabasesErrorKind::InvalidOperationFault(_inner) => Some(_inner),
DeleteFleetAdvisorDatabasesErrorKind::ResourceNotFoundFault(_inner) => Some(_inner),
DeleteFleetAdvisorDatabasesErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidOperationFault {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidOperationFault {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidOperationFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidOperationFault")?;
if let Some(inner_24) = &self.message {
{
write!(f, ": {}", inner_24)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidOperationFault {}
pub mod invalid_operation_fault {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidOperationFault {
crate::error::InvalidOperationFault {
message: self.message,
}
}
}
}
impl InvalidOperationFault {
pub fn builder() -> crate::error::invalid_operation_fault::Builder {
crate::error::invalid_operation_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteFleetAdvisorCollectorError {
pub kind: DeleteFleetAdvisorCollectorErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteFleetAdvisorCollectorError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteFleetAdvisorCollectorErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteFleetAdvisorCollectorErrorKind {
CollectorNotFoundFault(crate::error::CollectorNotFoundFault),
InvalidResourceStateFault(crate::error::InvalidResourceStateFault),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteFleetAdvisorCollectorError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteFleetAdvisorCollectorErrorKind::CollectorNotFoundFault(_inner) => _inner.fmt(f),
DeleteFleetAdvisorCollectorErrorKind::InvalidResourceStateFault(_inner) => {
_inner.fmt(f)
}
DeleteFleetAdvisorCollectorErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteFleetAdvisorCollectorError {
fn code(&self) -> Option<&str> {
DeleteFleetAdvisorCollectorError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteFleetAdvisorCollectorError {
pub fn new(kind: DeleteFleetAdvisorCollectorErrorKind, 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: DeleteFleetAdvisorCollectorErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteFleetAdvisorCollectorErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_collector_not_found_fault(&self) -> bool {
matches!(
&self.kind,
DeleteFleetAdvisorCollectorErrorKind::CollectorNotFoundFault(_)
)
}
pub fn is_invalid_resource_state_fault(&self) -> bool {
matches!(
&self.kind,
DeleteFleetAdvisorCollectorErrorKind::InvalidResourceStateFault(_)
)
}
}
impl std::error::Error for DeleteFleetAdvisorCollectorError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteFleetAdvisorCollectorErrorKind::CollectorNotFoundFault(_inner) => Some(_inner),
DeleteFleetAdvisorCollectorErrorKind::InvalidResourceStateFault(_inner) => Some(_inner),
DeleteFleetAdvisorCollectorErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct CollectorNotFoundFault {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl CollectorNotFoundFault {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for CollectorNotFoundFault {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "CollectorNotFoundFault")?;
if let Some(inner_25) = &self.message {
{
write!(f, ": {}", inner_25)?;
}
}
Ok(())
}
}
impl std::error::Error for CollectorNotFoundFault {}
pub mod collector_not_found_fault {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::CollectorNotFoundFault {
crate::error::CollectorNotFoundFault {
message: self.message,
}
}
}
}
impl CollectorNotFoundFault {
pub fn builder() -> crate::error::collector_not_found_fault::Builder {
crate::error::collector_not_found_fault::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteEventSubscriptionError {
pub kind: DeleteEventSubscriptionErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteEventSubscriptionError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteEventSubscriptionErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteEventSubscriptionErrorKind {
InvalidResourceStateFault(crate::error::InvalidResourceStateFault),
ResourceNotFoundFault(crate::error::ResourceNotFoundFault),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteEventSubscriptionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteEventSubscriptionErrorKind::InvalidResourceStateFault(_inner) => _inner.fmt(f),
DeleteEventSubscriptionErrorKind::ResourceNotFoundFault(_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(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteEventSubscriptionErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_resource_state_fault(&self) -> bool {
matches!(
&self.kind,
DeleteEventSubscriptionErrorKind::InvalidResourceStateFault(_)
)
}
pub fn is_resource_not_found_fault(&self) -> bool {
matches!(
&self.kind,
DeleteEventSubscriptionErrorKind::ResourceNotFoundFault(_)
)
}
}
impl std::error::Error for DeleteEventSubscriptionError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteEventSubscriptionErrorKind::InvalidResourceStateFault(_inner) => Some(_inner),
DeleteEventSubscriptionErrorKind::ResourceNotFoundFault(_inner) => Some(_inner),
DeleteEventSubscriptionErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteEndpointError {
pub kind: DeleteEndpointErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteEndpointError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteEndpointErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteEndpointErrorKind {
InvalidResourceStateFault(crate::error::InvalidResourceStateFault),
ResourceNotFoundFault(crate::error::ResourceNotFoundFault),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteEndpointError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteEndpointErrorKind::InvalidResourceStateFault(_inner) => _inner.fmt(f),
DeleteEndpointErrorKind::ResourceNotFoundFault(_inner) => _inner.fmt(f),
DeleteEndpointErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteEndpointError {
fn code(&self) -> Option<&str> {
DeleteEndpointError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteEndpointError {
pub fn new(kind: DeleteEndpointErrorKind, 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: DeleteEndpointErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteEndpointErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_resource_state_fault(&self) -> bool {
matches!(
&self.kind,
DeleteEndpointErrorKind::InvalidResourceStateFault(_)
)
}
pub fn is_resource_not_found_fault(&self) -> bool {
matches!(
&self.kind,
DeleteEndpointErrorKind::ResourceNotFoundFault(_)
)
}
}
impl std::error::Error for DeleteEndpointError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteEndpointErrorKind::InvalidResourceStateFault(_inner) => Some(_inner),
DeleteEndpointErrorKind::ResourceNotFoundFault(_inner) => Some(_inner),
DeleteEndpointErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteConnectionError {
pub kind: DeleteConnectionErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteConnectionError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteConnectionErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteConnectionErrorKind {
AccessDeniedFault(crate::error::AccessDeniedFault),
InvalidResourceStateFault(crate::error::InvalidResourceStateFault),
ResourceNotFoundFault(crate::error::ResourceNotFoundFault),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteConnectionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteConnectionErrorKind::AccessDeniedFault(_inner) => _inner.fmt(f),
DeleteConnectionErrorKind::InvalidResourceStateFault(_inner) => _inner.fmt(f),
DeleteConnectionErrorKind::ResourceNotFoundFault(_inner) => _inner.fmt(f),
DeleteConnectionErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteConnectionError {
fn code(&self) -> Option<&str> {
DeleteConnectionError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteConnectionError {
pub fn new(kind: DeleteConnectionErrorKind, 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: DeleteConnectionErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteConnectionErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_access_denied_fault(&self) -> bool {
matches!(&self.kind, DeleteConnectionErrorKind::AccessDeniedFault(_))
}
pub fn is_invalid_resource_state_fault(&self) -> bool {
matches!(
&self.kind,
DeleteConnectionErrorKind::InvalidResourceStateFault(_)
)
}
pub fn is_resource_not_found_fault(&self) -> bool {
matches!(
&self.kind,
DeleteConnectionErrorKind::ResourceNotFoundFault(_)
)
}
}
impl std::error::Error for DeleteConnectionError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteConnectionErrorKind::AccessDeniedFault(_inner) => Some(_inner),
DeleteConnectionErrorKind::InvalidResourceStateFault(_inner) => Some(_inner),
DeleteConnectionErrorKind::ResourceNotFoundFault(_inner) => Some(_inner),
DeleteConnectionErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteCertificateError {
pub kind: DeleteCertificateErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteCertificateError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteCertificateErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteCertificateErrorKind {
InvalidResourceStateFault(crate::error::InvalidResourceStateFault),
ResourceNotFoundFault(crate::error::ResourceNotFoundFault),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteCertificateError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteCertificateErrorKind::InvalidResourceStateFault(_inner) => _inner.fmt(f),
DeleteCertificateErrorKind::ResourceNotFoundFault(_inner) => _inner.fmt(f),
DeleteCertificateErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteCertificateError {
fn code(&self) -> Option<&str> {
DeleteCertificateError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteCertificateError {
pub fn new(kind: DeleteCertificateErrorKind, 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: DeleteCertificateErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteCertificateErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_resource_state_fault(&self) -> bool {
matches!(
&self.kind,
DeleteCertificateErrorKind::InvalidResourceStateFault(_)
)
}
pub fn is_resource_not_found_fault(&self) -> bool {
matches!(
&self.kind,
DeleteCertificateErrorKind::ResourceNotFoundFault(_)
)
}
}
impl std::error::Error for DeleteCertificateError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteCertificateErrorKind::InvalidResourceStateFault(_inner) => Some(_inner),
DeleteCertificateErrorKind::ResourceNotFoundFault(_inner) => Some(_inner),
DeleteCertificateErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateReplicationTaskError {
pub kind: CreateReplicationTaskErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for CreateReplicationTaskError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CreateReplicationTaskErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateReplicationTaskErrorKind {
AccessDeniedFault(crate::error::AccessDeniedFault),
InvalidResourceStateFault(crate::error::InvalidResourceStateFault),
KmsKeyNotAccessibleFault(crate::error::KmsKeyNotAccessibleFault),
ResourceAlreadyExistsFault(crate::error::ResourceAlreadyExistsFault),
ResourceNotFoundFault(crate::error::ResourceNotFoundFault),
ResourceQuotaExceededFault(crate::error::ResourceQuotaExceededFault),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CreateReplicationTaskError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateReplicationTaskErrorKind::AccessDeniedFault(_inner) => _inner.fmt(f),
CreateReplicationTaskErrorKind::InvalidResourceStateFault(_inner) => _inner.fmt(f),
CreateReplicationTaskErrorKind::KmsKeyNotAccessibleFault(_inner) => _inner.fmt(f),
CreateReplicationTaskErrorKind::ResourceAlreadyExistsFault(_inner) => _inner.fmt(f),
CreateReplicationTaskErrorKind::ResourceNotFoundFault(_inner) => _inner.fmt(f),
CreateReplicationTaskErrorKind::ResourceQuotaExceededFault(_inner) => _inner.fmt(f),
CreateReplicationTaskErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateReplicationTaskError {
fn code(&self) -> Option<&str> {
CreateReplicationTaskError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateReplicationTaskError {
pub fn new(kind: CreateReplicationTaskErrorKind, 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: CreateReplicationTaskErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateReplicationTaskErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_access_denied_fault(&self) -> bool {
matches!(
&self.kind,
CreateReplicationTaskErrorKind::AccessDeniedFault(_)
)
}
pub fn is_invalid_resource_state_fault(&self) -> bool {
matches!(
&self.kind,
CreateReplicationTaskErrorKind::InvalidResourceStateFault(_)
)
}
pub fn is_kms_key_not_accessible_fault(&self) -> bool {
matches!(
&self.kind,
CreateReplicationTaskErrorKind::KmsKeyNotAccessibleFault(_)
)
}
pub fn is_resource_already_exists_fault(&self) -> bool {
matches!(
&self.kind,
CreateReplicationTaskErrorKind::ResourceAlreadyExistsFault(_)
)
}
pub fn is_resource_not_found_fault(&self) -> bool {
matches!(
&self.kind,
CreateReplicationTaskErrorKind::ResourceNotFoundFault(_)
)
}
pub fn is_resource_quota_exceeded_fault(&self) -> bool {
matches!(
&self.kind,
CreateReplicationTaskErrorKind::ResourceQuotaExceededFault(_)
)
}
}
impl std::error::Error for CreateReplicationTaskError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateReplicationTaskErrorKind::AccessDeniedFault(_inner) => Some(_inner),
CreateReplicationTaskErrorKind::InvalidResourceStateFault(_inner) => Some(_inner),
CreateReplicationTaskErrorKind::KmsKeyNotAccessibleFault(_inner) => Some(_inner),
CreateReplicationTaskErrorKind::ResourceAlreadyExistsFault(_inner) => Some(_inner),
CreateReplicationTaskErrorKind::ResourceNotFoundFault(_inner) => Some(_inner),
CreateReplicationTaskErrorKind::ResourceQuotaExceededFault(_inner) => Some(_inner),
CreateReplicationTaskErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateReplicationSubnetGroupError {
pub kind: CreateReplicationSubnetGroupErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for CreateReplicationSubnetGroupError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CreateReplicationSubnetGroupErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateReplicationSubnetGroupErrorKind {
AccessDeniedFault(crate::error::AccessDeniedFault),
InvalidSubnet(crate::error::InvalidSubnet),
ReplicationSubnetGroupDoesNotCoverEnoughAZs(
crate::error::ReplicationSubnetGroupDoesNotCoverEnoughAZs,
),
ResourceAlreadyExistsFault(crate::error::ResourceAlreadyExistsFault),
ResourceNotFoundFault(crate::error::ResourceNotFoundFault),
ResourceQuotaExceededFault(crate::error::ResourceQuotaExceededFault),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CreateReplicationSubnetGroupError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateReplicationSubnetGroupErrorKind::AccessDeniedFault(_inner) => _inner.fmt(f),
CreateReplicationSubnetGroupErrorKind::InvalidSubnet(_inner) => _inner.fmt(f),
CreateReplicationSubnetGroupErrorKind::ReplicationSubnetGroupDoesNotCoverEnoughAZs(
_inner,
) => _inner.fmt(f),
CreateReplicationSubnetGroupErrorKind::ResourceAlreadyExistsFault(_inner) => {
_inner.fmt(f)
}
CreateReplicationSubnetGroupErrorKind::ResourceNotFoundFault(_inner) => _inner.fmt(f),
CreateReplicationSubnetGroupErrorKind::ResourceQuotaExceededFault(_inner) => {
_inner.fmt(f)
}
CreateReplicationSubnetGroupErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateReplicationSubnetGroupError {
fn code(&self) -> Option<&str> {
CreateReplicationSubnetGroupError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateReplicationSubnetGroupError {
pub fn new(kind: CreateReplicationSubnetGroupErrorKind, 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: CreateReplicationSubnetGroupErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateReplicationSubnetGroupErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_access_denied_fault(&self) -> bool {
matches!(
&self.kind,
CreateReplicationSubnetGroupErrorKind::AccessDeniedFault(_)
)
}
pub fn is_invalid_subnet(&self) -> bool {
matches!(
&self.kind,
CreateReplicationSubnetGroupErrorKind::InvalidSubnet(_)
)
}
pub fn is_replication_subnet_group_does_not_cover_enough_a_zs(&self) -> bool {
matches!(
&self.kind,
CreateReplicationSubnetGroupErrorKind::ReplicationSubnetGroupDoesNotCoverEnoughAZs(_)
)
}
pub fn is_resource_already_exists_fault(&self) -> bool {
matches!(
&self.kind,
CreateReplicationSubnetGroupErrorKind::ResourceAlreadyExistsFault(_)
)
}
pub fn is_resource_not_found_fault(&self) -> bool {
matches!(
&self.kind,
CreateReplicationSubnetGroupErrorKind::ResourceNotFoundFault(_)
)
}
pub fn is_resource_quota_exceeded_fault(&self) -> bool {
matches!(
&self.kind,
CreateReplicationSubnetGroupErrorKind::ResourceQuotaExceededFault(_)
)
}
}
impl std::error::Error for CreateReplicationSubnetGroupError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateReplicationSubnetGroupErrorKind::AccessDeniedFault(_inner) => Some(_inner),
CreateReplicationSubnetGroupErrorKind::InvalidSubnet(_inner) => Some(_inner),
CreateReplicationSubnetGroupErrorKind::ReplicationSubnetGroupDoesNotCoverEnoughAZs(
_inner,
) => Some(_inner),
CreateReplicationSubnetGroupErrorKind::ResourceAlreadyExistsFault(_inner) => {
Some(_inner)
}
CreateReplicationSubnetGroupErrorKind::ResourceNotFoundFault(_inner) => Some(_inner),
CreateReplicationSubnetGroupErrorKind::ResourceQuotaExceededFault(_inner) => {
Some(_inner)
}
CreateReplicationSubnetGroupErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateReplicationInstanceError {
pub kind: CreateReplicationInstanceErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for CreateReplicationInstanceError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CreateReplicationInstanceErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateReplicationInstanceErrorKind {
AccessDeniedFault(crate::error::AccessDeniedFault),
InsufficientResourceCapacityFault(crate::error::InsufficientResourceCapacityFault),
InvalidResourceStateFault(crate::error::InvalidResourceStateFault),
InvalidSubnet(crate::error::InvalidSubnet),
KmsKeyNotAccessibleFault(crate::error::KmsKeyNotAccessibleFault),
ReplicationSubnetGroupDoesNotCoverEnoughAZs(
crate::error::ReplicationSubnetGroupDoesNotCoverEnoughAZs,
),
ResourceAlreadyExistsFault(crate::error::ResourceAlreadyExistsFault),
ResourceNotFoundFault(crate::error::ResourceNotFoundFault),
ResourceQuotaExceededFault(crate::error::ResourceQuotaExceededFault),
StorageQuotaExceededFault(crate::error::StorageQuotaExceededFault),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CreateReplicationInstanceError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateReplicationInstanceErrorKind::AccessDeniedFault(_inner) => _inner.fmt(f),
CreateReplicationInstanceErrorKind::InsufficientResourceCapacityFault(_inner) => {
_inner.fmt(f)
}
CreateReplicationInstanceErrorKind::InvalidResourceStateFault(_inner) => _inner.fmt(f),
CreateReplicationInstanceErrorKind::InvalidSubnet(_inner) => _inner.fmt(f),
CreateReplicationInstanceErrorKind::KmsKeyNotAccessibleFault(_inner) => _inner.fmt(f),
CreateReplicationInstanceErrorKind::ReplicationSubnetGroupDoesNotCoverEnoughAZs(
_inner,
) => _inner.fmt(f),
CreateReplicationInstanceErrorKind::ResourceAlreadyExistsFault(_inner) => _inner.fmt(f),
CreateReplicationInstanceErrorKind::ResourceNotFoundFault(_inner) => _inner.fmt(f),
CreateReplicationInstanceErrorKind::ResourceQuotaExceededFault(_inner) => _inner.fmt(f),
CreateReplicationInstanceErrorKind::StorageQuotaExceededFault(_inner) => _inner.fmt(f),
CreateReplicationInstanceErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateReplicationInstanceError {
fn code(&self) -> Option<&str> {
CreateReplicationInstanceError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateReplicationInstanceError {
pub fn new(kind: CreateReplicationInstanceErrorKind, 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: CreateReplicationInstanceErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateReplicationInstanceErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_access_denied_fault(&self) -> bool {
matches!(
&self.kind,
CreateReplicationInstanceErrorKind::AccessDeniedFault(_)
)
}
pub fn is_insufficient_resource_capacity_fault(&self) -> bool {
matches!(
&self.kind,
CreateReplicationInstanceErrorKind::InsufficientResourceCapacityFault(_)
)
}
pub fn is_invalid_resource_state_fault(&self) -> bool {
matches!(
&self.kind,
CreateReplicationInstanceErrorKind::InvalidResourceStateFault(_)
)
}
pub fn is_invalid_subnet(&self) -> bool {
matches!(
&self.kind,
CreateReplicationInstanceErrorKind::InvalidSubnet(_)
)
}
pub fn is_kms_key_not_accessible_fault(&self) -> bool {
matches!(
&self.kind,
CreateReplicationInstanceErrorKind::KmsKeyNotAccessibleFault(_)
)
}
pub fn is_replication_subnet_group_does_not_cover_enough_a_zs(&self) -> bool {
matches!(
&self.kind,
CreateReplicationInstanceErrorKind::ReplicationSubnetGroupDoesNotCoverEnoughAZs(_)
)
}
pub fn is_resource_already_exists_fault(&self) -> bool {
matches!(
&self.kind,
CreateReplicationInstanceErrorKind::ResourceAlreadyExistsFault(_)
)
}
pub fn is_resource_not_found_fault(&self) -> bool {
matches!(
&self.kind,
CreateReplicationInstanceErrorKind::ResourceNotFoundFault(_)
)
}
pub fn is_resource_quota_exceeded_fault(&self) -> bool {
matches!(
&self.kind,
CreateReplicationInstanceErrorKind::ResourceQuotaExceededFault(_)
)
}
pub fn is_storage_quota_exceeded_fault(&self) -> bool {
matches!(
&self.kind,
CreateReplicationInstanceErrorKind::StorageQuotaExceededFault(_)
)
}
}
impl std::error::Error for CreateReplicationInstanceError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateReplicationInstanceErrorKind::AccessDeniedFault(_inner) => Some(_inner),
CreateReplicationInstanceErrorKind::InsufficientResourceCapacityFault(_inner) => {
Some(_inner)
}
CreateReplicationInstanceErrorKind::InvalidResourceStateFault(_inner) => Some(_inner),
CreateReplicationInstanceErrorKind::InvalidSubnet(_inner) => Some(_inner),
CreateReplicationInstanceErrorKind::KmsKeyNotAccessibleFault(_inner) => Some(_inner),
CreateReplicationInstanceErrorKind::ReplicationSubnetGroupDoesNotCoverEnoughAZs(
_inner,
) => Some(_inner),
CreateReplicationInstanceErrorKind::ResourceAlreadyExistsFault(_inner) => Some(_inner),
CreateReplicationInstanceErrorKind::ResourceNotFoundFault(_inner) => Some(_inner),
CreateReplicationInstanceErrorKind::ResourceQuotaExceededFault(_inner) => Some(_inner),
CreateReplicationInstanceErrorKind::StorageQuotaExceededFault(_inner) => Some(_inner),
CreateReplicationInstanceErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateFleetAdvisorCollectorError {
pub kind: CreateFleetAdvisorCollectorErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for CreateFleetAdvisorCollectorError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CreateFleetAdvisorCollectorErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateFleetAdvisorCollectorErrorKind {
AccessDeniedFault(crate::error::AccessDeniedFault),
InvalidResourceStateFault(crate::error::InvalidResourceStateFault),
ResourceQuotaExceededFault(crate::error::ResourceQuotaExceededFault),
S3AccessDeniedFault(crate::error::S3AccessDeniedFault),
S3ResourceNotFoundFault(crate::error::S3ResourceNotFoundFault),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CreateFleetAdvisorCollectorError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateFleetAdvisorCollectorErrorKind::AccessDeniedFault(_inner) => _inner.fmt(f),
CreateFleetAdvisorCollectorErrorKind::InvalidResourceStateFault(_inner) => {
_inner.fmt(f)
}
CreateFleetAdvisorCollectorErrorKind::ResourceQuotaExceededFault(_inner) => {
_inner.fmt(f)
}
CreateFleetAdvisorCollectorErrorKind::S3AccessDeniedFault(_inner) => _inner.fmt(f),
CreateFleetAdvisorCollectorErrorKind::S3ResourceNotFoundFault(_inner) => _inner.fmt(f),
CreateFleetAdvisorCollectorErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateFleetAdvisorCollectorError {
fn code(&self) -> Option<&str> {
CreateFleetAdvisorCollectorError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateFleetAdvisorCollectorError {
pub fn new(kind: CreateFleetAdvisorCollectorErrorKind, 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: CreateFleetAdvisorCollectorErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateFleetAdvisorCollectorErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_access_denied_fault(&self) -> bool {
matches!(
&self.kind,
CreateFleetAdvisorCollectorErrorKind::AccessDeniedFault(_)
)
}
pub fn is_invalid_resource_state_fault(&self) -> bool {
matches!(
&self.kind,
CreateFleetAdvisorCollectorErrorKind::InvalidResourceStateFault(_)
)
}
pub fn is_resource_quota_exceeded_fault(&self) -> bool {
matches!(
&self.kind,
CreateFleetAdvisorCollectorErrorKind::ResourceQuotaExceededFault(_)
)
}
pub fn is_s3_access_denied_fault(&self) -> bool {
matches!(
&self.kind,
CreateFleetAdvisorCollectorErrorKind::S3AccessDeniedFault(_)
)
}
pub fn is_s3_resource_not_found_fault(&self) -> bool {
matches!(
&self.kind,
CreateFleetAdvisorCollectorErrorKind::S3ResourceNotFoundFault(_)
)
}
}
impl std::error::Error for CreateFleetAdvisorCollectorError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateFleetAdvisorCollectorErrorKind::AccessDeniedFault(_inner) => Some(_inner),
CreateFleetAdvisorCollectorErrorKind::InvalidResourceStateFault(_inner) => Some(_inner),
CreateFleetAdvisorCollectorErrorKind::ResourceQuotaExceededFault(_inner) => {
Some(_inner)
}
CreateFleetAdvisorCollectorErrorKind::S3AccessDeniedFault(_inner) => Some(_inner),
CreateFleetAdvisorCollectorErrorKind::S3ResourceNotFoundFault(_inner) => Some(_inner),
CreateFleetAdvisorCollectorErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateEventSubscriptionError {
pub kind: CreateEventSubscriptionErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for CreateEventSubscriptionError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CreateEventSubscriptionErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateEventSubscriptionErrorKind {
KmsAccessDeniedFault(crate::error::KmsAccessDeniedFault),
KmsDisabledFault(crate::error::KmsDisabledFault),
KmsInvalidStateFault(crate::error::KmsInvalidStateFault),
KmsNotFoundFault(crate::error::KmsNotFoundFault),
KmsThrottlingFault(crate::error::KmsThrottlingFault),
ResourceAlreadyExistsFault(crate::error::ResourceAlreadyExistsFault),
ResourceNotFoundFault(crate::error::ResourceNotFoundFault),
ResourceQuotaExceededFault(crate::error::ResourceQuotaExceededFault),
SnsInvalidTopicFault(crate::error::SnsInvalidTopicFault),
SnsNoAuthorizationFault(crate::error::SnsNoAuthorizationFault),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CreateEventSubscriptionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateEventSubscriptionErrorKind::KmsAccessDeniedFault(_inner) => _inner.fmt(f),
CreateEventSubscriptionErrorKind::KmsDisabledFault(_inner) => _inner.fmt(f),
CreateEventSubscriptionErrorKind::KmsInvalidStateFault(_inner) => _inner.fmt(f),
CreateEventSubscriptionErrorKind::KmsNotFoundFault(_inner) => _inner.fmt(f),
CreateEventSubscriptionErrorKind::KmsThrottlingFault(_inner) => _inner.fmt(f),
CreateEventSubscriptionErrorKind::ResourceAlreadyExistsFault(_inner) => _inner.fmt(f),
CreateEventSubscriptionErrorKind::ResourceNotFoundFault(_inner) => _inner.fmt(f),
CreateEventSubscriptionErrorKind::ResourceQuotaExceededFault(_inner) => _inner.fmt(f),
CreateEventSubscriptionErrorKind::SnsInvalidTopicFault(_inner) => _inner.fmt(f),
CreateEventSubscriptionErrorKind::SnsNoAuthorizationFault(_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(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateEventSubscriptionErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_kms_access_denied_fault(&self) -> bool {
matches!(
&self.kind,
CreateEventSubscriptionErrorKind::KmsAccessDeniedFault(_)
)
}
pub fn is_kms_disabled_fault(&self) -> bool {
matches!(
&self.kind,
CreateEventSubscriptionErrorKind::KmsDisabledFault(_)
)
}
pub fn is_kms_invalid_state_fault(&self) -> bool {
matches!(
&self.kind,
CreateEventSubscriptionErrorKind::KmsInvalidStateFault(_)
)
}
pub fn is_kms_not_found_fault(&self) -> bool {
matches!(
&self.kind,
CreateEventSubscriptionErrorKind::KmsNotFoundFault(_)
)
}
pub fn is_kms_throttling_fault(&self) -> bool {
matches!(
&self.kind,
CreateEventSubscriptionErrorKind::KmsThrottlingFault(_)
)
}
pub fn is_resource_already_exists_fault(&self) -> bool {
matches!(
&self.kind,
CreateEventSubscriptionErrorKind::ResourceAlreadyExistsFault(_)
)
}
pub fn is_resource_not_found_fault(&self) -> bool {
matches!(
&self.kind,
CreateEventSubscriptionErrorKind::ResourceNotFoundFault(_)
)
}
pub fn is_resource_quota_exceeded_fault(&self) -> bool {
matches!(
&self.kind,
CreateEventSubscriptionErrorKind::ResourceQuotaExceededFault(_)
)
}
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(_)
)
}
}
impl std::error::Error for CreateEventSubscriptionError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateEventSubscriptionErrorKind::KmsAccessDeniedFault(_inner) => Some(_inner),
CreateEventSubscriptionErrorKind::KmsDisabledFault(_inner) => Some(_inner),
CreateEventSubscriptionErrorKind::KmsInvalidStateFault(_inner) => Some(_inner),
CreateEventSubscriptionErrorKind::KmsNotFoundFault(_inner) => Some(_inner),
CreateEventSubscriptionErrorKind::KmsThrottlingFault(_inner) => Some(_inner),
CreateEventSubscriptionErrorKind::ResourceAlreadyExistsFault(_inner) => Some(_inner),
CreateEventSubscriptionErrorKind::ResourceNotFoundFault(_inner) => Some(_inner),
CreateEventSubscriptionErrorKind::ResourceQuotaExceededFault(_inner) => Some(_inner),
CreateEventSubscriptionErrorKind::SnsInvalidTopicFault(_inner) => Some(_inner),
CreateEventSubscriptionErrorKind::SnsNoAuthorizationFault(_inner) => Some(_inner),
CreateEventSubscriptionErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateEndpointError {
pub kind: CreateEndpointErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for CreateEndpointError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CreateEndpointErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateEndpointErrorKind {
AccessDeniedFault(crate::error::AccessDeniedFault),
InvalidResourceStateFault(crate::error::InvalidResourceStateFault),
KmsKeyNotAccessibleFault(crate::error::KmsKeyNotAccessibleFault),
ResourceAlreadyExistsFault(crate::error::ResourceAlreadyExistsFault),
ResourceNotFoundFault(crate::error::ResourceNotFoundFault),
ResourceQuotaExceededFault(crate::error::ResourceQuotaExceededFault),
S3AccessDeniedFault(crate::error::S3AccessDeniedFault),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CreateEndpointError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateEndpointErrorKind::AccessDeniedFault(_inner) => _inner.fmt(f),
CreateEndpointErrorKind::InvalidResourceStateFault(_inner) => _inner.fmt(f),
CreateEndpointErrorKind::KmsKeyNotAccessibleFault(_inner) => _inner.fmt(f),
CreateEndpointErrorKind::ResourceAlreadyExistsFault(_inner) => _inner.fmt(f),
CreateEndpointErrorKind::ResourceNotFoundFault(_inner) => _inner.fmt(f),
CreateEndpointErrorKind::ResourceQuotaExceededFault(_inner) => _inner.fmt(f),
CreateEndpointErrorKind::S3AccessDeniedFault(_inner) => _inner.fmt(f),
CreateEndpointErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateEndpointError {
fn code(&self) -> Option<&str> {
CreateEndpointError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateEndpointError {
pub fn new(kind: CreateEndpointErrorKind, 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: CreateEndpointErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateEndpointErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_access_denied_fault(&self) -> bool {
matches!(&self.kind, CreateEndpointErrorKind::AccessDeniedFault(_))
}
pub fn is_invalid_resource_state_fault(&self) -> bool {
matches!(
&self.kind,
CreateEndpointErrorKind::InvalidResourceStateFault(_)
)
}
pub fn is_kms_key_not_accessible_fault(&self) -> bool {
matches!(
&self.kind,
CreateEndpointErrorKind::KmsKeyNotAccessibleFault(_)
)
}
pub fn is_resource_already_exists_fault(&self) -> bool {
matches!(
&self.kind,
CreateEndpointErrorKind::ResourceAlreadyExistsFault(_)
)
}
pub fn is_resource_not_found_fault(&self) -> bool {
matches!(
&self.kind,
CreateEndpointErrorKind::ResourceNotFoundFault(_)
)
}
pub fn is_resource_quota_exceeded_fault(&self) -> bool {
matches!(
&self.kind,
CreateEndpointErrorKind::ResourceQuotaExceededFault(_)
)
}
pub fn is_s3_access_denied_fault(&self) -> bool {
matches!(&self.kind, CreateEndpointErrorKind::S3AccessDeniedFault(_))
}
}
impl std::error::Error for CreateEndpointError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateEndpointErrorKind::AccessDeniedFault(_inner) => Some(_inner),
CreateEndpointErrorKind::InvalidResourceStateFault(_inner) => Some(_inner),
CreateEndpointErrorKind::KmsKeyNotAccessibleFault(_inner) => Some(_inner),
CreateEndpointErrorKind::ResourceAlreadyExistsFault(_inner) => Some(_inner),
CreateEndpointErrorKind::ResourceNotFoundFault(_inner) => Some(_inner),
CreateEndpointErrorKind::ResourceQuotaExceededFault(_inner) => Some(_inner),
CreateEndpointErrorKind::S3AccessDeniedFault(_inner) => Some(_inner),
CreateEndpointErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CancelReplicationTaskAssessmentRunError {
pub kind: CancelReplicationTaskAssessmentRunErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for CancelReplicationTaskAssessmentRunError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CancelReplicationTaskAssessmentRunErrorKind::Unhandled(
crate::error::Unhandled::new(source),
),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CancelReplicationTaskAssessmentRunErrorKind {
AccessDeniedFault(crate::error::AccessDeniedFault),
InvalidResourceStateFault(crate::error::InvalidResourceStateFault),
ResourceNotFoundFault(crate::error::ResourceNotFoundFault),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CancelReplicationTaskAssessmentRunError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CancelReplicationTaskAssessmentRunErrorKind::AccessDeniedFault(_inner) => _inner.fmt(f),
CancelReplicationTaskAssessmentRunErrorKind::InvalidResourceStateFault(_inner) => {
_inner.fmt(f)
}
CancelReplicationTaskAssessmentRunErrorKind::ResourceNotFoundFault(_inner) => {
_inner.fmt(f)
}
CancelReplicationTaskAssessmentRunErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CancelReplicationTaskAssessmentRunError {
fn code(&self) -> Option<&str> {
CancelReplicationTaskAssessmentRunError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CancelReplicationTaskAssessmentRunError {
pub fn new(
kind: CancelReplicationTaskAssessmentRunErrorKind,
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: CancelReplicationTaskAssessmentRunErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CancelReplicationTaskAssessmentRunErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_access_denied_fault(&self) -> bool {
matches!(
&self.kind,
CancelReplicationTaskAssessmentRunErrorKind::AccessDeniedFault(_)
)
}
pub fn is_invalid_resource_state_fault(&self) -> bool {
matches!(
&self.kind,
CancelReplicationTaskAssessmentRunErrorKind::InvalidResourceStateFault(_)
)
}
pub fn is_resource_not_found_fault(&self) -> bool {
matches!(
&self.kind,
CancelReplicationTaskAssessmentRunErrorKind::ResourceNotFoundFault(_)
)
}
}
impl std::error::Error for CancelReplicationTaskAssessmentRunError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CancelReplicationTaskAssessmentRunErrorKind::AccessDeniedFault(_inner) => Some(_inner),
CancelReplicationTaskAssessmentRunErrorKind::InvalidResourceStateFault(_inner) => {
Some(_inner)
}
CancelReplicationTaskAssessmentRunErrorKind::ResourceNotFoundFault(_inner) => {
Some(_inner)
}
CancelReplicationTaskAssessmentRunErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ApplyPendingMaintenanceActionError {
pub kind: ApplyPendingMaintenanceActionErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ApplyPendingMaintenanceActionError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ApplyPendingMaintenanceActionErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ApplyPendingMaintenanceActionErrorKind {
ResourceNotFoundFault(crate::error::ResourceNotFoundFault),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ApplyPendingMaintenanceActionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
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(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ApplyPendingMaintenanceActionErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_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::ResourceNotFoundFault(_inner) => Some(_inner),
ApplyPendingMaintenanceActionErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct AddTagsToResourceError {
pub kind: AddTagsToResourceErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for AddTagsToResourceError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: AddTagsToResourceErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum AddTagsToResourceErrorKind {
ResourceNotFoundFault(crate::error::ResourceNotFoundFault),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for AddTagsToResourceError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
AddTagsToResourceErrorKind::ResourceNotFoundFault(_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(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: AddTagsToResourceErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_resource_not_found_fault(&self) -> bool {
matches!(
&self.kind,
AddTagsToResourceErrorKind::ResourceNotFoundFault(_)
)
}
}
impl std::error::Error for AddTagsToResourceError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
AddTagsToResourceErrorKind::ResourceNotFoundFault(_inner) => Some(_inner),
AddTagsToResourceErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[derive(Debug)]
pub struct Unhandled {
source: Box<dyn std::error::Error + Send + Sync + 'static>,
}
impl Unhandled {
#[allow(unused)]
pub(crate) fn new(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self { source }
}
}
impl std::fmt::Display for Unhandled {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
write!(f, "unhandled error")
}
}
impl std::error::Error for Unhandled {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
Some(self.source.as_ref() as _)
}
}