#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateAppError {
pub kind: CreateAppErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateAppErrorKind {
InternalError(crate::error::InternalError),
InvalidParameterException(crate::error::InvalidParameterException),
MissingRequiredParameterException(crate::error::MissingRequiredParameterException),
OperationNotPermittedException(crate::error::OperationNotPermittedException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for CreateAppError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateAppErrorKind::InternalError(_inner) => _inner.fmt(f),
CreateAppErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
CreateAppErrorKind::MissingRequiredParameterException(_inner) => _inner.fmt(f),
CreateAppErrorKind::OperationNotPermittedException(_inner) => _inner.fmt(f),
CreateAppErrorKind::UnauthorizedOperationException(_inner) => _inner.fmt(f),
CreateAppErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateAppError {
fn code(&self) -> Option<&str> {
CreateAppError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateAppError {
pub fn new(kind: CreateAppErrorKind, 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: CreateAppErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateAppErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_internal_error(&self) -> bool {
matches!(&self.kind, CreateAppErrorKind::InternalError(_))
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(&self.kind, CreateAppErrorKind::InvalidParameterException(_))
}
pub fn is_missing_required_parameter_exception(&self) -> bool {
matches!(
&self.kind,
CreateAppErrorKind::MissingRequiredParameterException(_)
)
}
pub fn is_operation_not_permitted_exception(&self) -> bool {
matches!(
&self.kind,
CreateAppErrorKind::OperationNotPermittedException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
CreateAppErrorKind::UnauthorizedOperationException(_)
)
}
}
impl std::error::Error for CreateAppError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateAppErrorKind::InternalError(_inner) => Some(_inner),
CreateAppErrorKind::InvalidParameterException(_inner) => Some(_inner),
CreateAppErrorKind::MissingRequiredParameterException(_inner) => Some(_inner),
CreateAppErrorKind::OperationNotPermittedException(_inner) => Some(_inner),
CreateAppErrorKind::UnauthorizedOperationException(_inner) => Some(_inner),
CreateAppErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateReplicationJobError {
pub kind: CreateReplicationJobErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateReplicationJobErrorKind {
InternalError(crate::error::InternalError),
InvalidParameterException(crate::error::InvalidParameterException),
MissingRequiredParameterException(crate::error::MissingRequiredParameterException),
NoConnectorsAvailableException(crate::error::NoConnectorsAvailableException),
OperationNotPermittedException(crate::error::OperationNotPermittedException),
ReplicationJobAlreadyExistsException(crate::error::ReplicationJobAlreadyExistsException),
ServerCannotBeReplicatedException(crate::error::ServerCannotBeReplicatedException),
TemporarilyUnavailableException(crate::error::TemporarilyUnavailableException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for CreateReplicationJobError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateReplicationJobErrorKind::InternalError(_inner) => _inner.fmt(f),
CreateReplicationJobErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
CreateReplicationJobErrorKind::MissingRequiredParameterException(_inner) => {
_inner.fmt(f)
}
CreateReplicationJobErrorKind::NoConnectorsAvailableException(_inner) => _inner.fmt(f),
CreateReplicationJobErrorKind::OperationNotPermittedException(_inner) => _inner.fmt(f),
CreateReplicationJobErrorKind::ReplicationJobAlreadyExistsException(_inner) => {
_inner.fmt(f)
}
CreateReplicationJobErrorKind::ServerCannotBeReplicatedException(_inner) => {
_inner.fmt(f)
}
CreateReplicationJobErrorKind::TemporarilyUnavailableException(_inner) => _inner.fmt(f),
CreateReplicationJobErrorKind::UnauthorizedOperationException(_inner) => _inner.fmt(f),
CreateReplicationJobErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateReplicationJobError {
fn code(&self) -> Option<&str> {
CreateReplicationJobError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateReplicationJobError {
pub fn new(kind: CreateReplicationJobErrorKind, 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: CreateReplicationJobErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateReplicationJobErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_internal_error(&self) -> bool {
matches!(&self.kind, CreateReplicationJobErrorKind::InternalError(_))
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
CreateReplicationJobErrorKind::InvalidParameterException(_)
)
}
pub fn is_missing_required_parameter_exception(&self) -> bool {
matches!(
&self.kind,
CreateReplicationJobErrorKind::MissingRequiredParameterException(_)
)
}
pub fn is_no_connectors_available_exception(&self) -> bool {
matches!(
&self.kind,
CreateReplicationJobErrorKind::NoConnectorsAvailableException(_)
)
}
pub fn is_operation_not_permitted_exception(&self) -> bool {
matches!(
&self.kind,
CreateReplicationJobErrorKind::OperationNotPermittedException(_)
)
}
pub fn is_replication_job_already_exists_exception(&self) -> bool {
matches!(
&self.kind,
CreateReplicationJobErrorKind::ReplicationJobAlreadyExistsException(_)
)
}
pub fn is_server_cannot_be_replicated_exception(&self) -> bool {
matches!(
&self.kind,
CreateReplicationJobErrorKind::ServerCannotBeReplicatedException(_)
)
}
pub fn is_temporarily_unavailable_exception(&self) -> bool {
matches!(
&self.kind,
CreateReplicationJobErrorKind::TemporarilyUnavailableException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
CreateReplicationJobErrorKind::UnauthorizedOperationException(_)
)
}
}
impl std::error::Error for CreateReplicationJobError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateReplicationJobErrorKind::InternalError(_inner) => Some(_inner),
CreateReplicationJobErrorKind::InvalidParameterException(_inner) => Some(_inner),
CreateReplicationJobErrorKind::MissingRequiredParameterException(_inner) => {
Some(_inner)
}
CreateReplicationJobErrorKind::NoConnectorsAvailableException(_inner) => Some(_inner),
CreateReplicationJobErrorKind::OperationNotPermittedException(_inner) => Some(_inner),
CreateReplicationJobErrorKind::ReplicationJobAlreadyExistsException(_inner) => {
Some(_inner)
}
CreateReplicationJobErrorKind::ServerCannotBeReplicatedException(_inner) => {
Some(_inner)
}
CreateReplicationJobErrorKind::TemporarilyUnavailableException(_inner) => Some(_inner),
CreateReplicationJobErrorKind::UnauthorizedOperationException(_inner) => Some(_inner),
CreateReplicationJobErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteAppError {
pub kind: DeleteAppErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteAppErrorKind {
InternalError(crate::error::InternalError),
InvalidParameterException(crate::error::InvalidParameterException),
MissingRequiredParameterException(crate::error::MissingRequiredParameterException),
OperationNotPermittedException(crate::error::OperationNotPermittedException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DeleteAppError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteAppErrorKind::InternalError(_inner) => _inner.fmt(f),
DeleteAppErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
DeleteAppErrorKind::MissingRequiredParameterException(_inner) => _inner.fmt(f),
DeleteAppErrorKind::OperationNotPermittedException(_inner) => _inner.fmt(f),
DeleteAppErrorKind::UnauthorizedOperationException(_inner) => _inner.fmt(f),
DeleteAppErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteAppError {
fn code(&self) -> Option<&str> {
DeleteAppError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteAppError {
pub fn new(kind: DeleteAppErrorKind, 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: DeleteAppErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteAppErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_internal_error(&self) -> bool {
matches!(&self.kind, DeleteAppErrorKind::InternalError(_))
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(&self.kind, DeleteAppErrorKind::InvalidParameterException(_))
}
pub fn is_missing_required_parameter_exception(&self) -> bool {
matches!(
&self.kind,
DeleteAppErrorKind::MissingRequiredParameterException(_)
)
}
pub fn is_operation_not_permitted_exception(&self) -> bool {
matches!(
&self.kind,
DeleteAppErrorKind::OperationNotPermittedException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
DeleteAppErrorKind::UnauthorizedOperationException(_)
)
}
}
impl std::error::Error for DeleteAppError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteAppErrorKind::InternalError(_inner) => Some(_inner),
DeleteAppErrorKind::InvalidParameterException(_inner) => Some(_inner),
DeleteAppErrorKind::MissingRequiredParameterException(_inner) => Some(_inner),
DeleteAppErrorKind::OperationNotPermittedException(_inner) => Some(_inner),
DeleteAppErrorKind::UnauthorizedOperationException(_inner) => Some(_inner),
DeleteAppErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteAppLaunchConfigurationError {
pub kind: DeleteAppLaunchConfigurationErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteAppLaunchConfigurationErrorKind {
InternalError(crate::error::InternalError),
InvalidParameterException(crate::error::InvalidParameterException),
MissingRequiredParameterException(crate::error::MissingRequiredParameterException),
OperationNotPermittedException(crate::error::OperationNotPermittedException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DeleteAppLaunchConfigurationError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteAppLaunchConfigurationErrorKind::InternalError(_inner) => _inner.fmt(f),
DeleteAppLaunchConfigurationErrorKind::InvalidParameterException(_inner) => {
_inner.fmt(f)
}
DeleteAppLaunchConfigurationErrorKind::MissingRequiredParameterException(_inner) => {
_inner.fmt(f)
}
DeleteAppLaunchConfigurationErrorKind::OperationNotPermittedException(_inner) => {
_inner.fmt(f)
}
DeleteAppLaunchConfigurationErrorKind::UnauthorizedOperationException(_inner) => {
_inner.fmt(f)
}
DeleteAppLaunchConfigurationErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteAppLaunchConfigurationError {
fn code(&self) -> Option<&str> {
DeleteAppLaunchConfigurationError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteAppLaunchConfigurationError {
pub fn new(kind: DeleteAppLaunchConfigurationErrorKind, 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: DeleteAppLaunchConfigurationErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteAppLaunchConfigurationErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_internal_error(&self) -> bool {
matches!(
&self.kind,
DeleteAppLaunchConfigurationErrorKind::InternalError(_)
)
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
DeleteAppLaunchConfigurationErrorKind::InvalidParameterException(_)
)
}
pub fn is_missing_required_parameter_exception(&self) -> bool {
matches!(
&self.kind,
DeleteAppLaunchConfigurationErrorKind::MissingRequiredParameterException(_)
)
}
pub fn is_operation_not_permitted_exception(&self) -> bool {
matches!(
&self.kind,
DeleteAppLaunchConfigurationErrorKind::OperationNotPermittedException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
DeleteAppLaunchConfigurationErrorKind::UnauthorizedOperationException(_)
)
}
}
impl std::error::Error for DeleteAppLaunchConfigurationError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteAppLaunchConfigurationErrorKind::InternalError(_inner) => Some(_inner),
DeleteAppLaunchConfigurationErrorKind::InvalidParameterException(_inner) => {
Some(_inner)
}
DeleteAppLaunchConfigurationErrorKind::MissingRequiredParameterException(_inner) => {
Some(_inner)
}
DeleteAppLaunchConfigurationErrorKind::OperationNotPermittedException(_inner) => {
Some(_inner)
}
DeleteAppLaunchConfigurationErrorKind::UnauthorizedOperationException(_inner) => {
Some(_inner)
}
DeleteAppLaunchConfigurationErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteAppReplicationConfigurationError {
pub kind: DeleteAppReplicationConfigurationErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteAppReplicationConfigurationErrorKind {
InternalError(crate::error::InternalError),
InvalidParameterException(crate::error::InvalidParameterException),
MissingRequiredParameterException(crate::error::MissingRequiredParameterException),
OperationNotPermittedException(crate::error::OperationNotPermittedException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DeleteAppReplicationConfigurationError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteAppReplicationConfigurationErrorKind::InternalError(_inner) => _inner.fmt(f),
DeleteAppReplicationConfigurationErrorKind::InvalidParameterException(_inner) => {
_inner.fmt(f)
}
DeleteAppReplicationConfigurationErrorKind::MissingRequiredParameterException(
_inner,
) => _inner.fmt(f),
DeleteAppReplicationConfigurationErrorKind::OperationNotPermittedException(_inner) => {
_inner.fmt(f)
}
DeleteAppReplicationConfigurationErrorKind::UnauthorizedOperationException(_inner) => {
_inner.fmt(f)
}
DeleteAppReplicationConfigurationErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteAppReplicationConfigurationError {
fn code(&self) -> Option<&str> {
DeleteAppReplicationConfigurationError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteAppReplicationConfigurationError {
pub fn new(
kind: DeleteAppReplicationConfigurationErrorKind,
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: DeleteAppReplicationConfigurationErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteAppReplicationConfigurationErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_internal_error(&self) -> bool {
matches!(
&self.kind,
DeleteAppReplicationConfigurationErrorKind::InternalError(_)
)
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
DeleteAppReplicationConfigurationErrorKind::InvalidParameterException(_)
)
}
pub fn is_missing_required_parameter_exception(&self) -> bool {
matches!(
&self.kind,
DeleteAppReplicationConfigurationErrorKind::MissingRequiredParameterException(_)
)
}
pub fn is_operation_not_permitted_exception(&self) -> bool {
matches!(
&self.kind,
DeleteAppReplicationConfigurationErrorKind::OperationNotPermittedException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
DeleteAppReplicationConfigurationErrorKind::UnauthorizedOperationException(_)
)
}
}
impl std::error::Error for DeleteAppReplicationConfigurationError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteAppReplicationConfigurationErrorKind::InternalError(_inner) => Some(_inner),
DeleteAppReplicationConfigurationErrorKind::InvalidParameterException(_inner) => {
Some(_inner)
}
DeleteAppReplicationConfigurationErrorKind::MissingRequiredParameterException(
_inner,
) => Some(_inner),
DeleteAppReplicationConfigurationErrorKind::OperationNotPermittedException(_inner) => {
Some(_inner)
}
DeleteAppReplicationConfigurationErrorKind::UnauthorizedOperationException(_inner) => {
Some(_inner)
}
DeleteAppReplicationConfigurationErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteAppValidationConfigurationError {
pub kind: DeleteAppValidationConfigurationErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteAppValidationConfigurationErrorKind {
InternalError(crate::error::InternalError),
InvalidParameterException(crate::error::InvalidParameterException),
MissingRequiredParameterException(crate::error::MissingRequiredParameterException),
OperationNotPermittedException(crate::error::OperationNotPermittedException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DeleteAppValidationConfigurationError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteAppValidationConfigurationErrorKind::InternalError(_inner) => _inner.fmt(f),
DeleteAppValidationConfigurationErrorKind::InvalidParameterException(_inner) => {
_inner.fmt(f)
}
DeleteAppValidationConfigurationErrorKind::MissingRequiredParameterException(
_inner,
) => _inner.fmt(f),
DeleteAppValidationConfigurationErrorKind::OperationNotPermittedException(_inner) => {
_inner.fmt(f)
}
DeleteAppValidationConfigurationErrorKind::UnauthorizedOperationException(_inner) => {
_inner.fmt(f)
}
DeleteAppValidationConfigurationErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteAppValidationConfigurationError {
fn code(&self) -> Option<&str> {
DeleteAppValidationConfigurationError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteAppValidationConfigurationError {
pub fn new(
kind: DeleteAppValidationConfigurationErrorKind,
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: DeleteAppValidationConfigurationErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteAppValidationConfigurationErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_internal_error(&self) -> bool {
matches!(
&self.kind,
DeleteAppValidationConfigurationErrorKind::InternalError(_)
)
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
DeleteAppValidationConfigurationErrorKind::InvalidParameterException(_)
)
}
pub fn is_missing_required_parameter_exception(&self) -> bool {
matches!(
&self.kind,
DeleteAppValidationConfigurationErrorKind::MissingRequiredParameterException(_)
)
}
pub fn is_operation_not_permitted_exception(&self) -> bool {
matches!(
&self.kind,
DeleteAppValidationConfigurationErrorKind::OperationNotPermittedException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
DeleteAppValidationConfigurationErrorKind::UnauthorizedOperationException(_)
)
}
}
impl std::error::Error for DeleteAppValidationConfigurationError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteAppValidationConfigurationErrorKind::InternalError(_inner) => Some(_inner),
DeleteAppValidationConfigurationErrorKind::InvalidParameterException(_inner) => {
Some(_inner)
}
DeleteAppValidationConfigurationErrorKind::MissingRequiredParameterException(
_inner,
) => Some(_inner),
DeleteAppValidationConfigurationErrorKind::OperationNotPermittedException(_inner) => {
Some(_inner)
}
DeleteAppValidationConfigurationErrorKind::UnauthorizedOperationException(_inner) => {
Some(_inner)
}
DeleteAppValidationConfigurationErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteReplicationJobError {
pub kind: DeleteReplicationJobErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteReplicationJobErrorKind {
InvalidParameterException(crate::error::InvalidParameterException),
MissingRequiredParameterException(crate::error::MissingRequiredParameterException),
OperationNotPermittedException(crate::error::OperationNotPermittedException),
ReplicationJobNotFoundException(crate::error::ReplicationJobNotFoundException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DeleteReplicationJobError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteReplicationJobErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
DeleteReplicationJobErrorKind::MissingRequiredParameterException(_inner) => {
_inner.fmt(f)
}
DeleteReplicationJobErrorKind::OperationNotPermittedException(_inner) => _inner.fmt(f),
DeleteReplicationJobErrorKind::ReplicationJobNotFoundException(_inner) => _inner.fmt(f),
DeleteReplicationJobErrorKind::UnauthorizedOperationException(_inner) => _inner.fmt(f),
DeleteReplicationJobErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteReplicationJobError {
fn code(&self) -> Option<&str> {
DeleteReplicationJobError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteReplicationJobError {
pub fn new(kind: DeleteReplicationJobErrorKind, 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: DeleteReplicationJobErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteReplicationJobErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
DeleteReplicationJobErrorKind::InvalidParameterException(_)
)
}
pub fn is_missing_required_parameter_exception(&self) -> bool {
matches!(
&self.kind,
DeleteReplicationJobErrorKind::MissingRequiredParameterException(_)
)
}
pub fn is_operation_not_permitted_exception(&self) -> bool {
matches!(
&self.kind,
DeleteReplicationJobErrorKind::OperationNotPermittedException(_)
)
}
pub fn is_replication_job_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DeleteReplicationJobErrorKind::ReplicationJobNotFoundException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
DeleteReplicationJobErrorKind::UnauthorizedOperationException(_)
)
}
}
impl std::error::Error for DeleteReplicationJobError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteReplicationJobErrorKind::InvalidParameterException(_inner) => Some(_inner),
DeleteReplicationJobErrorKind::MissingRequiredParameterException(_inner) => {
Some(_inner)
}
DeleteReplicationJobErrorKind::OperationNotPermittedException(_inner) => Some(_inner),
DeleteReplicationJobErrorKind::ReplicationJobNotFoundException(_inner) => Some(_inner),
DeleteReplicationJobErrorKind::UnauthorizedOperationException(_inner) => Some(_inner),
DeleteReplicationJobErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteServerCatalogError {
pub kind: DeleteServerCatalogErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteServerCatalogErrorKind {
InvalidParameterException(crate::error::InvalidParameterException),
MissingRequiredParameterException(crate::error::MissingRequiredParameterException),
OperationNotPermittedException(crate::error::OperationNotPermittedException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DeleteServerCatalogError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteServerCatalogErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
DeleteServerCatalogErrorKind::MissingRequiredParameterException(_inner) => {
_inner.fmt(f)
}
DeleteServerCatalogErrorKind::OperationNotPermittedException(_inner) => _inner.fmt(f),
DeleteServerCatalogErrorKind::UnauthorizedOperationException(_inner) => _inner.fmt(f),
DeleteServerCatalogErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteServerCatalogError {
fn code(&self) -> Option<&str> {
DeleteServerCatalogError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteServerCatalogError {
pub fn new(kind: DeleteServerCatalogErrorKind, 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: DeleteServerCatalogErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteServerCatalogErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
DeleteServerCatalogErrorKind::InvalidParameterException(_)
)
}
pub fn is_missing_required_parameter_exception(&self) -> bool {
matches!(
&self.kind,
DeleteServerCatalogErrorKind::MissingRequiredParameterException(_)
)
}
pub fn is_operation_not_permitted_exception(&self) -> bool {
matches!(
&self.kind,
DeleteServerCatalogErrorKind::OperationNotPermittedException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
DeleteServerCatalogErrorKind::UnauthorizedOperationException(_)
)
}
}
impl std::error::Error for DeleteServerCatalogError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteServerCatalogErrorKind::InvalidParameterException(_inner) => Some(_inner),
DeleteServerCatalogErrorKind::MissingRequiredParameterException(_inner) => Some(_inner),
DeleteServerCatalogErrorKind::OperationNotPermittedException(_inner) => Some(_inner),
DeleteServerCatalogErrorKind::UnauthorizedOperationException(_inner) => Some(_inner),
DeleteServerCatalogErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DisassociateConnectorError {
pub kind: DisassociateConnectorErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DisassociateConnectorErrorKind {
InvalidParameterException(crate::error::InvalidParameterException),
MissingRequiredParameterException(crate::error::MissingRequiredParameterException),
OperationNotPermittedException(crate::error::OperationNotPermittedException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DisassociateConnectorError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DisassociateConnectorErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
DisassociateConnectorErrorKind::MissingRequiredParameterException(_inner) => {
_inner.fmt(f)
}
DisassociateConnectorErrorKind::OperationNotPermittedException(_inner) => _inner.fmt(f),
DisassociateConnectorErrorKind::UnauthorizedOperationException(_inner) => _inner.fmt(f),
DisassociateConnectorErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DisassociateConnectorError {
fn code(&self) -> Option<&str> {
DisassociateConnectorError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DisassociateConnectorError {
pub fn new(kind: DisassociateConnectorErrorKind, 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: DisassociateConnectorErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DisassociateConnectorErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
DisassociateConnectorErrorKind::InvalidParameterException(_)
)
}
pub fn is_missing_required_parameter_exception(&self) -> bool {
matches!(
&self.kind,
DisassociateConnectorErrorKind::MissingRequiredParameterException(_)
)
}
pub fn is_operation_not_permitted_exception(&self) -> bool {
matches!(
&self.kind,
DisassociateConnectorErrorKind::OperationNotPermittedException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
DisassociateConnectorErrorKind::UnauthorizedOperationException(_)
)
}
}
impl std::error::Error for DisassociateConnectorError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DisassociateConnectorErrorKind::InvalidParameterException(_inner) => Some(_inner),
DisassociateConnectorErrorKind::MissingRequiredParameterException(_inner) => {
Some(_inner)
}
DisassociateConnectorErrorKind::OperationNotPermittedException(_inner) => Some(_inner),
DisassociateConnectorErrorKind::UnauthorizedOperationException(_inner) => Some(_inner),
DisassociateConnectorErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GenerateChangeSetError {
pub kind: GenerateChangeSetErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GenerateChangeSetErrorKind {
InternalError(crate::error::InternalError),
InvalidParameterException(crate::error::InvalidParameterException),
MissingRequiredParameterException(crate::error::MissingRequiredParameterException),
OperationNotPermittedException(crate::error::OperationNotPermittedException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for GenerateChangeSetError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GenerateChangeSetErrorKind::InternalError(_inner) => _inner.fmt(f),
GenerateChangeSetErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
GenerateChangeSetErrorKind::MissingRequiredParameterException(_inner) => _inner.fmt(f),
GenerateChangeSetErrorKind::OperationNotPermittedException(_inner) => _inner.fmt(f),
GenerateChangeSetErrorKind::UnauthorizedOperationException(_inner) => _inner.fmt(f),
GenerateChangeSetErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GenerateChangeSetError {
fn code(&self) -> Option<&str> {
GenerateChangeSetError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GenerateChangeSetError {
pub fn new(kind: GenerateChangeSetErrorKind, 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: GenerateChangeSetErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GenerateChangeSetErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_internal_error(&self) -> bool {
matches!(&self.kind, GenerateChangeSetErrorKind::InternalError(_))
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
GenerateChangeSetErrorKind::InvalidParameterException(_)
)
}
pub fn is_missing_required_parameter_exception(&self) -> bool {
matches!(
&self.kind,
GenerateChangeSetErrorKind::MissingRequiredParameterException(_)
)
}
pub fn is_operation_not_permitted_exception(&self) -> bool {
matches!(
&self.kind,
GenerateChangeSetErrorKind::OperationNotPermittedException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
GenerateChangeSetErrorKind::UnauthorizedOperationException(_)
)
}
}
impl std::error::Error for GenerateChangeSetError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GenerateChangeSetErrorKind::InternalError(_inner) => Some(_inner),
GenerateChangeSetErrorKind::InvalidParameterException(_inner) => Some(_inner),
GenerateChangeSetErrorKind::MissingRequiredParameterException(_inner) => Some(_inner),
GenerateChangeSetErrorKind::OperationNotPermittedException(_inner) => Some(_inner),
GenerateChangeSetErrorKind::UnauthorizedOperationException(_inner) => Some(_inner),
GenerateChangeSetErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GenerateTemplateError {
pub kind: GenerateTemplateErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GenerateTemplateErrorKind {
InternalError(crate::error::InternalError),
InvalidParameterException(crate::error::InvalidParameterException),
MissingRequiredParameterException(crate::error::MissingRequiredParameterException),
OperationNotPermittedException(crate::error::OperationNotPermittedException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for GenerateTemplateError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GenerateTemplateErrorKind::InternalError(_inner) => _inner.fmt(f),
GenerateTemplateErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
GenerateTemplateErrorKind::MissingRequiredParameterException(_inner) => _inner.fmt(f),
GenerateTemplateErrorKind::OperationNotPermittedException(_inner) => _inner.fmt(f),
GenerateTemplateErrorKind::UnauthorizedOperationException(_inner) => _inner.fmt(f),
GenerateTemplateErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GenerateTemplateError {
fn code(&self) -> Option<&str> {
GenerateTemplateError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GenerateTemplateError {
pub fn new(kind: GenerateTemplateErrorKind, 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: GenerateTemplateErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GenerateTemplateErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_internal_error(&self) -> bool {
matches!(&self.kind, GenerateTemplateErrorKind::InternalError(_))
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
GenerateTemplateErrorKind::InvalidParameterException(_)
)
}
pub fn is_missing_required_parameter_exception(&self) -> bool {
matches!(
&self.kind,
GenerateTemplateErrorKind::MissingRequiredParameterException(_)
)
}
pub fn is_operation_not_permitted_exception(&self) -> bool {
matches!(
&self.kind,
GenerateTemplateErrorKind::OperationNotPermittedException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
GenerateTemplateErrorKind::UnauthorizedOperationException(_)
)
}
}
impl std::error::Error for GenerateTemplateError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GenerateTemplateErrorKind::InternalError(_inner) => Some(_inner),
GenerateTemplateErrorKind::InvalidParameterException(_inner) => Some(_inner),
GenerateTemplateErrorKind::MissingRequiredParameterException(_inner) => Some(_inner),
GenerateTemplateErrorKind::OperationNotPermittedException(_inner) => Some(_inner),
GenerateTemplateErrorKind::UnauthorizedOperationException(_inner) => Some(_inner),
GenerateTemplateErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetAppError {
pub kind: GetAppErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetAppErrorKind {
InternalError(crate::error::InternalError),
InvalidParameterException(crate::error::InvalidParameterException),
MissingRequiredParameterException(crate::error::MissingRequiredParameterException),
OperationNotPermittedException(crate::error::OperationNotPermittedException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for GetAppError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetAppErrorKind::InternalError(_inner) => _inner.fmt(f),
GetAppErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
GetAppErrorKind::MissingRequiredParameterException(_inner) => _inner.fmt(f),
GetAppErrorKind::OperationNotPermittedException(_inner) => _inner.fmt(f),
GetAppErrorKind::UnauthorizedOperationException(_inner) => _inner.fmt(f),
GetAppErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetAppError {
fn code(&self) -> Option<&str> {
GetAppError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetAppError {
pub fn new(kind: GetAppErrorKind, 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: GetAppErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetAppErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_internal_error(&self) -> bool {
matches!(&self.kind, GetAppErrorKind::InternalError(_))
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(&self.kind, GetAppErrorKind::InvalidParameterException(_))
}
pub fn is_missing_required_parameter_exception(&self) -> bool {
matches!(
&self.kind,
GetAppErrorKind::MissingRequiredParameterException(_)
)
}
pub fn is_operation_not_permitted_exception(&self) -> bool {
matches!(
&self.kind,
GetAppErrorKind::OperationNotPermittedException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
GetAppErrorKind::UnauthorizedOperationException(_)
)
}
}
impl std::error::Error for GetAppError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetAppErrorKind::InternalError(_inner) => Some(_inner),
GetAppErrorKind::InvalidParameterException(_inner) => Some(_inner),
GetAppErrorKind::MissingRequiredParameterException(_inner) => Some(_inner),
GetAppErrorKind::OperationNotPermittedException(_inner) => Some(_inner),
GetAppErrorKind::UnauthorizedOperationException(_inner) => Some(_inner),
GetAppErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetAppLaunchConfigurationError {
pub kind: GetAppLaunchConfigurationErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetAppLaunchConfigurationErrorKind {
InternalError(crate::error::InternalError),
InvalidParameterException(crate::error::InvalidParameterException),
MissingRequiredParameterException(crate::error::MissingRequiredParameterException),
OperationNotPermittedException(crate::error::OperationNotPermittedException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for GetAppLaunchConfigurationError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetAppLaunchConfigurationErrorKind::InternalError(_inner) => _inner.fmt(f),
GetAppLaunchConfigurationErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
GetAppLaunchConfigurationErrorKind::MissingRequiredParameterException(_inner) => {
_inner.fmt(f)
}
GetAppLaunchConfigurationErrorKind::OperationNotPermittedException(_inner) => {
_inner.fmt(f)
}
GetAppLaunchConfigurationErrorKind::UnauthorizedOperationException(_inner) => {
_inner.fmt(f)
}
GetAppLaunchConfigurationErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetAppLaunchConfigurationError {
fn code(&self) -> Option<&str> {
GetAppLaunchConfigurationError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetAppLaunchConfigurationError {
pub fn new(kind: GetAppLaunchConfigurationErrorKind, 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: GetAppLaunchConfigurationErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetAppLaunchConfigurationErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_internal_error(&self) -> bool {
matches!(
&self.kind,
GetAppLaunchConfigurationErrorKind::InternalError(_)
)
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
GetAppLaunchConfigurationErrorKind::InvalidParameterException(_)
)
}
pub fn is_missing_required_parameter_exception(&self) -> bool {
matches!(
&self.kind,
GetAppLaunchConfigurationErrorKind::MissingRequiredParameterException(_)
)
}
pub fn is_operation_not_permitted_exception(&self) -> bool {
matches!(
&self.kind,
GetAppLaunchConfigurationErrorKind::OperationNotPermittedException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
GetAppLaunchConfigurationErrorKind::UnauthorizedOperationException(_)
)
}
}
impl std::error::Error for GetAppLaunchConfigurationError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetAppLaunchConfigurationErrorKind::InternalError(_inner) => Some(_inner),
GetAppLaunchConfigurationErrorKind::InvalidParameterException(_inner) => Some(_inner),
GetAppLaunchConfigurationErrorKind::MissingRequiredParameterException(_inner) => {
Some(_inner)
}
GetAppLaunchConfigurationErrorKind::OperationNotPermittedException(_inner) => {
Some(_inner)
}
GetAppLaunchConfigurationErrorKind::UnauthorizedOperationException(_inner) => {
Some(_inner)
}
GetAppLaunchConfigurationErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetAppReplicationConfigurationError {
pub kind: GetAppReplicationConfigurationErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetAppReplicationConfigurationErrorKind {
InternalError(crate::error::InternalError),
InvalidParameterException(crate::error::InvalidParameterException),
MissingRequiredParameterException(crate::error::MissingRequiredParameterException),
OperationNotPermittedException(crate::error::OperationNotPermittedException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for GetAppReplicationConfigurationError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetAppReplicationConfigurationErrorKind::InternalError(_inner) => _inner.fmt(f),
GetAppReplicationConfigurationErrorKind::InvalidParameterException(_inner) => {
_inner.fmt(f)
}
GetAppReplicationConfigurationErrorKind::MissingRequiredParameterException(_inner) => {
_inner.fmt(f)
}
GetAppReplicationConfigurationErrorKind::OperationNotPermittedException(_inner) => {
_inner.fmt(f)
}
GetAppReplicationConfigurationErrorKind::UnauthorizedOperationException(_inner) => {
_inner.fmt(f)
}
GetAppReplicationConfigurationErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetAppReplicationConfigurationError {
fn code(&self) -> Option<&str> {
GetAppReplicationConfigurationError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetAppReplicationConfigurationError {
pub fn new(
kind: GetAppReplicationConfigurationErrorKind,
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: GetAppReplicationConfigurationErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetAppReplicationConfigurationErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_internal_error(&self) -> bool {
matches!(
&self.kind,
GetAppReplicationConfigurationErrorKind::InternalError(_)
)
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
GetAppReplicationConfigurationErrorKind::InvalidParameterException(_)
)
}
pub fn is_missing_required_parameter_exception(&self) -> bool {
matches!(
&self.kind,
GetAppReplicationConfigurationErrorKind::MissingRequiredParameterException(_)
)
}
pub fn is_operation_not_permitted_exception(&self) -> bool {
matches!(
&self.kind,
GetAppReplicationConfigurationErrorKind::OperationNotPermittedException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
GetAppReplicationConfigurationErrorKind::UnauthorizedOperationException(_)
)
}
}
impl std::error::Error for GetAppReplicationConfigurationError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetAppReplicationConfigurationErrorKind::InternalError(_inner) => Some(_inner),
GetAppReplicationConfigurationErrorKind::InvalidParameterException(_inner) => {
Some(_inner)
}
GetAppReplicationConfigurationErrorKind::MissingRequiredParameterException(_inner) => {
Some(_inner)
}
GetAppReplicationConfigurationErrorKind::OperationNotPermittedException(_inner) => {
Some(_inner)
}
GetAppReplicationConfigurationErrorKind::UnauthorizedOperationException(_inner) => {
Some(_inner)
}
GetAppReplicationConfigurationErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetAppValidationConfigurationError {
pub kind: GetAppValidationConfigurationErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetAppValidationConfigurationErrorKind {
InternalError(crate::error::InternalError),
InvalidParameterException(crate::error::InvalidParameterException),
MissingRequiredParameterException(crate::error::MissingRequiredParameterException),
OperationNotPermittedException(crate::error::OperationNotPermittedException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for GetAppValidationConfigurationError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetAppValidationConfigurationErrorKind::InternalError(_inner) => _inner.fmt(f),
GetAppValidationConfigurationErrorKind::InvalidParameterException(_inner) => {
_inner.fmt(f)
}
GetAppValidationConfigurationErrorKind::MissingRequiredParameterException(_inner) => {
_inner.fmt(f)
}
GetAppValidationConfigurationErrorKind::OperationNotPermittedException(_inner) => {
_inner.fmt(f)
}
GetAppValidationConfigurationErrorKind::UnauthorizedOperationException(_inner) => {
_inner.fmt(f)
}
GetAppValidationConfigurationErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetAppValidationConfigurationError {
fn code(&self) -> Option<&str> {
GetAppValidationConfigurationError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetAppValidationConfigurationError {
pub fn new(
kind: GetAppValidationConfigurationErrorKind,
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: GetAppValidationConfigurationErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetAppValidationConfigurationErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_internal_error(&self) -> bool {
matches!(
&self.kind,
GetAppValidationConfigurationErrorKind::InternalError(_)
)
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
GetAppValidationConfigurationErrorKind::InvalidParameterException(_)
)
}
pub fn is_missing_required_parameter_exception(&self) -> bool {
matches!(
&self.kind,
GetAppValidationConfigurationErrorKind::MissingRequiredParameterException(_)
)
}
pub fn is_operation_not_permitted_exception(&self) -> bool {
matches!(
&self.kind,
GetAppValidationConfigurationErrorKind::OperationNotPermittedException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
GetAppValidationConfigurationErrorKind::UnauthorizedOperationException(_)
)
}
}
impl std::error::Error for GetAppValidationConfigurationError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetAppValidationConfigurationErrorKind::InternalError(_inner) => Some(_inner),
GetAppValidationConfigurationErrorKind::InvalidParameterException(_inner) => {
Some(_inner)
}
GetAppValidationConfigurationErrorKind::MissingRequiredParameterException(_inner) => {
Some(_inner)
}
GetAppValidationConfigurationErrorKind::OperationNotPermittedException(_inner) => {
Some(_inner)
}
GetAppValidationConfigurationErrorKind::UnauthorizedOperationException(_inner) => {
Some(_inner)
}
GetAppValidationConfigurationErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetAppValidationOutputError {
pub kind: GetAppValidationOutputErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetAppValidationOutputErrorKind {
InternalError(crate::error::InternalError),
InvalidParameterException(crate::error::InvalidParameterException),
MissingRequiredParameterException(crate::error::MissingRequiredParameterException),
OperationNotPermittedException(crate::error::OperationNotPermittedException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for GetAppValidationOutputError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetAppValidationOutputErrorKind::InternalError(_inner) => _inner.fmt(f),
GetAppValidationOutputErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
GetAppValidationOutputErrorKind::MissingRequiredParameterException(_inner) => {
_inner.fmt(f)
}
GetAppValidationOutputErrorKind::OperationNotPermittedException(_inner) => {
_inner.fmt(f)
}
GetAppValidationOutputErrorKind::UnauthorizedOperationException(_inner) => {
_inner.fmt(f)
}
GetAppValidationOutputErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetAppValidationOutputError {
fn code(&self) -> Option<&str> {
GetAppValidationOutputError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetAppValidationOutputError {
pub fn new(kind: GetAppValidationOutputErrorKind, 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: GetAppValidationOutputErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetAppValidationOutputErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_internal_error(&self) -> bool {
matches!(
&self.kind,
GetAppValidationOutputErrorKind::InternalError(_)
)
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
GetAppValidationOutputErrorKind::InvalidParameterException(_)
)
}
pub fn is_missing_required_parameter_exception(&self) -> bool {
matches!(
&self.kind,
GetAppValidationOutputErrorKind::MissingRequiredParameterException(_)
)
}
pub fn is_operation_not_permitted_exception(&self) -> bool {
matches!(
&self.kind,
GetAppValidationOutputErrorKind::OperationNotPermittedException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
GetAppValidationOutputErrorKind::UnauthorizedOperationException(_)
)
}
}
impl std::error::Error for GetAppValidationOutputError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetAppValidationOutputErrorKind::InternalError(_inner) => Some(_inner),
GetAppValidationOutputErrorKind::InvalidParameterException(_inner) => Some(_inner),
GetAppValidationOutputErrorKind::MissingRequiredParameterException(_inner) => {
Some(_inner)
}
GetAppValidationOutputErrorKind::OperationNotPermittedException(_inner) => Some(_inner),
GetAppValidationOutputErrorKind::UnauthorizedOperationException(_inner) => Some(_inner),
GetAppValidationOutputErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetConnectorsError {
pub kind: GetConnectorsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetConnectorsErrorKind {
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for GetConnectorsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetConnectorsErrorKind::UnauthorizedOperationException(_inner) => _inner.fmt(f),
GetConnectorsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetConnectorsError {
fn code(&self) -> Option<&str> {
GetConnectorsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetConnectorsError {
pub fn new(kind: GetConnectorsErrorKind, 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: GetConnectorsErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetConnectorsErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
GetConnectorsErrorKind::UnauthorizedOperationException(_)
)
}
}
impl std::error::Error for GetConnectorsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetConnectorsErrorKind::UnauthorizedOperationException(_inner) => Some(_inner),
GetConnectorsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetReplicationJobsError {
pub kind: GetReplicationJobsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetReplicationJobsErrorKind {
InvalidParameterException(crate::error::InvalidParameterException),
MissingRequiredParameterException(crate::error::MissingRequiredParameterException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for GetReplicationJobsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetReplicationJobsErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
GetReplicationJobsErrorKind::MissingRequiredParameterException(_inner) => _inner.fmt(f),
GetReplicationJobsErrorKind::UnauthorizedOperationException(_inner) => _inner.fmt(f),
GetReplicationJobsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetReplicationJobsError {
fn code(&self) -> Option<&str> {
GetReplicationJobsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetReplicationJobsError {
pub fn new(kind: GetReplicationJobsErrorKind, 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: GetReplicationJobsErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetReplicationJobsErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
GetReplicationJobsErrorKind::InvalidParameterException(_)
)
}
pub fn is_missing_required_parameter_exception(&self) -> bool {
matches!(
&self.kind,
GetReplicationJobsErrorKind::MissingRequiredParameterException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
GetReplicationJobsErrorKind::UnauthorizedOperationException(_)
)
}
}
impl std::error::Error for GetReplicationJobsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetReplicationJobsErrorKind::InvalidParameterException(_inner) => Some(_inner),
GetReplicationJobsErrorKind::MissingRequiredParameterException(_inner) => Some(_inner),
GetReplicationJobsErrorKind::UnauthorizedOperationException(_inner) => Some(_inner),
GetReplicationJobsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetReplicationRunsError {
pub kind: GetReplicationRunsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetReplicationRunsErrorKind {
InvalidParameterException(crate::error::InvalidParameterException),
MissingRequiredParameterException(crate::error::MissingRequiredParameterException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for GetReplicationRunsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetReplicationRunsErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
GetReplicationRunsErrorKind::MissingRequiredParameterException(_inner) => _inner.fmt(f),
GetReplicationRunsErrorKind::UnauthorizedOperationException(_inner) => _inner.fmt(f),
GetReplicationRunsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetReplicationRunsError {
fn code(&self) -> Option<&str> {
GetReplicationRunsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetReplicationRunsError {
pub fn new(kind: GetReplicationRunsErrorKind, 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: GetReplicationRunsErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetReplicationRunsErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
GetReplicationRunsErrorKind::InvalidParameterException(_)
)
}
pub fn is_missing_required_parameter_exception(&self) -> bool {
matches!(
&self.kind,
GetReplicationRunsErrorKind::MissingRequiredParameterException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
GetReplicationRunsErrorKind::UnauthorizedOperationException(_)
)
}
}
impl std::error::Error for GetReplicationRunsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetReplicationRunsErrorKind::InvalidParameterException(_inner) => Some(_inner),
GetReplicationRunsErrorKind::MissingRequiredParameterException(_inner) => Some(_inner),
GetReplicationRunsErrorKind::UnauthorizedOperationException(_inner) => Some(_inner),
GetReplicationRunsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetServersError {
pub kind: GetServersErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetServersErrorKind {
InternalError(crate::error::InternalError),
InvalidParameterException(crate::error::InvalidParameterException),
MissingRequiredParameterException(crate::error::MissingRequiredParameterException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for GetServersError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetServersErrorKind::InternalError(_inner) => _inner.fmt(f),
GetServersErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
GetServersErrorKind::MissingRequiredParameterException(_inner) => _inner.fmt(f),
GetServersErrorKind::UnauthorizedOperationException(_inner) => _inner.fmt(f),
GetServersErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetServersError {
fn code(&self) -> Option<&str> {
GetServersError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetServersError {
pub fn new(kind: GetServersErrorKind, 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: GetServersErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetServersErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_internal_error(&self) -> bool {
matches!(&self.kind, GetServersErrorKind::InternalError(_))
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
GetServersErrorKind::InvalidParameterException(_)
)
}
pub fn is_missing_required_parameter_exception(&self) -> bool {
matches!(
&self.kind,
GetServersErrorKind::MissingRequiredParameterException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
GetServersErrorKind::UnauthorizedOperationException(_)
)
}
}
impl std::error::Error for GetServersError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetServersErrorKind::InternalError(_inner) => Some(_inner),
GetServersErrorKind::InvalidParameterException(_inner) => Some(_inner),
GetServersErrorKind::MissingRequiredParameterException(_inner) => Some(_inner),
GetServersErrorKind::UnauthorizedOperationException(_inner) => Some(_inner),
GetServersErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ImportAppCatalogError {
pub kind: ImportAppCatalogErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ImportAppCatalogErrorKind {
InternalError(crate::error::InternalError),
InvalidParameterException(crate::error::InvalidParameterException),
MissingRequiredParameterException(crate::error::MissingRequiredParameterException),
OperationNotPermittedException(crate::error::OperationNotPermittedException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for ImportAppCatalogError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ImportAppCatalogErrorKind::InternalError(_inner) => _inner.fmt(f),
ImportAppCatalogErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
ImportAppCatalogErrorKind::MissingRequiredParameterException(_inner) => _inner.fmt(f),
ImportAppCatalogErrorKind::OperationNotPermittedException(_inner) => _inner.fmt(f),
ImportAppCatalogErrorKind::UnauthorizedOperationException(_inner) => _inner.fmt(f),
ImportAppCatalogErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ImportAppCatalogError {
fn code(&self) -> Option<&str> {
ImportAppCatalogError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ImportAppCatalogError {
pub fn new(kind: ImportAppCatalogErrorKind, 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: ImportAppCatalogErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ImportAppCatalogErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_internal_error(&self) -> bool {
matches!(&self.kind, ImportAppCatalogErrorKind::InternalError(_))
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
ImportAppCatalogErrorKind::InvalidParameterException(_)
)
}
pub fn is_missing_required_parameter_exception(&self) -> bool {
matches!(
&self.kind,
ImportAppCatalogErrorKind::MissingRequiredParameterException(_)
)
}
pub fn is_operation_not_permitted_exception(&self) -> bool {
matches!(
&self.kind,
ImportAppCatalogErrorKind::OperationNotPermittedException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
ImportAppCatalogErrorKind::UnauthorizedOperationException(_)
)
}
}
impl std::error::Error for ImportAppCatalogError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ImportAppCatalogErrorKind::InternalError(_inner) => Some(_inner),
ImportAppCatalogErrorKind::InvalidParameterException(_inner) => Some(_inner),
ImportAppCatalogErrorKind::MissingRequiredParameterException(_inner) => Some(_inner),
ImportAppCatalogErrorKind::OperationNotPermittedException(_inner) => Some(_inner),
ImportAppCatalogErrorKind::UnauthorizedOperationException(_inner) => Some(_inner),
ImportAppCatalogErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ImportServerCatalogError {
pub kind: ImportServerCatalogErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ImportServerCatalogErrorKind {
InvalidParameterException(crate::error::InvalidParameterException),
MissingRequiredParameterException(crate::error::MissingRequiredParameterException),
NoConnectorsAvailableException(crate::error::NoConnectorsAvailableException),
OperationNotPermittedException(crate::error::OperationNotPermittedException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for ImportServerCatalogError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ImportServerCatalogErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
ImportServerCatalogErrorKind::MissingRequiredParameterException(_inner) => {
_inner.fmt(f)
}
ImportServerCatalogErrorKind::NoConnectorsAvailableException(_inner) => _inner.fmt(f),
ImportServerCatalogErrorKind::OperationNotPermittedException(_inner) => _inner.fmt(f),
ImportServerCatalogErrorKind::UnauthorizedOperationException(_inner) => _inner.fmt(f),
ImportServerCatalogErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ImportServerCatalogError {
fn code(&self) -> Option<&str> {
ImportServerCatalogError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ImportServerCatalogError {
pub fn new(kind: ImportServerCatalogErrorKind, 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: ImportServerCatalogErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ImportServerCatalogErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
ImportServerCatalogErrorKind::InvalidParameterException(_)
)
}
pub fn is_missing_required_parameter_exception(&self) -> bool {
matches!(
&self.kind,
ImportServerCatalogErrorKind::MissingRequiredParameterException(_)
)
}
pub fn is_no_connectors_available_exception(&self) -> bool {
matches!(
&self.kind,
ImportServerCatalogErrorKind::NoConnectorsAvailableException(_)
)
}
pub fn is_operation_not_permitted_exception(&self) -> bool {
matches!(
&self.kind,
ImportServerCatalogErrorKind::OperationNotPermittedException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
ImportServerCatalogErrorKind::UnauthorizedOperationException(_)
)
}
}
impl std::error::Error for ImportServerCatalogError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ImportServerCatalogErrorKind::InvalidParameterException(_inner) => Some(_inner),
ImportServerCatalogErrorKind::MissingRequiredParameterException(_inner) => Some(_inner),
ImportServerCatalogErrorKind::NoConnectorsAvailableException(_inner) => Some(_inner),
ImportServerCatalogErrorKind::OperationNotPermittedException(_inner) => Some(_inner),
ImportServerCatalogErrorKind::UnauthorizedOperationException(_inner) => Some(_inner),
ImportServerCatalogErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct LaunchAppError {
pub kind: LaunchAppErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum LaunchAppErrorKind {
InternalError(crate::error::InternalError),
InvalidParameterException(crate::error::InvalidParameterException),
MissingRequiredParameterException(crate::error::MissingRequiredParameterException),
OperationNotPermittedException(crate::error::OperationNotPermittedException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for LaunchAppError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
LaunchAppErrorKind::InternalError(_inner) => _inner.fmt(f),
LaunchAppErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
LaunchAppErrorKind::MissingRequiredParameterException(_inner) => _inner.fmt(f),
LaunchAppErrorKind::OperationNotPermittedException(_inner) => _inner.fmt(f),
LaunchAppErrorKind::UnauthorizedOperationException(_inner) => _inner.fmt(f),
LaunchAppErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for LaunchAppError {
fn code(&self) -> Option<&str> {
LaunchAppError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl LaunchAppError {
pub fn new(kind: LaunchAppErrorKind, 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: LaunchAppErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: LaunchAppErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_internal_error(&self) -> bool {
matches!(&self.kind, LaunchAppErrorKind::InternalError(_))
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(&self.kind, LaunchAppErrorKind::InvalidParameterException(_))
}
pub fn is_missing_required_parameter_exception(&self) -> bool {
matches!(
&self.kind,
LaunchAppErrorKind::MissingRequiredParameterException(_)
)
}
pub fn is_operation_not_permitted_exception(&self) -> bool {
matches!(
&self.kind,
LaunchAppErrorKind::OperationNotPermittedException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
LaunchAppErrorKind::UnauthorizedOperationException(_)
)
}
}
impl std::error::Error for LaunchAppError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
LaunchAppErrorKind::InternalError(_inner) => Some(_inner),
LaunchAppErrorKind::InvalidParameterException(_inner) => Some(_inner),
LaunchAppErrorKind::MissingRequiredParameterException(_inner) => Some(_inner),
LaunchAppErrorKind::OperationNotPermittedException(_inner) => Some(_inner),
LaunchAppErrorKind::UnauthorizedOperationException(_inner) => Some(_inner),
LaunchAppErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListAppsError {
pub kind: ListAppsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListAppsErrorKind {
InternalError(crate::error::InternalError),
InvalidParameterException(crate::error::InvalidParameterException),
MissingRequiredParameterException(crate::error::MissingRequiredParameterException),
OperationNotPermittedException(crate::error::OperationNotPermittedException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for ListAppsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListAppsErrorKind::InternalError(_inner) => _inner.fmt(f),
ListAppsErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
ListAppsErrorKind::MissingRequiredParameterException(_inner) => _inner.fmt(f),
ListAppsErrorKind::OperationNotPermittedException(_inner) => _inner.fmt(f),
ListAppsErrorKind::UnauthorizedOperationException(_inner) => _inner.fmt(f),
ListAppsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListAppsError {
fn code(&self) -> Option<&str> {
ListAppsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListAppsError {
pub fn new(kind: ListAppsErrorKind, 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: ListAppsErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListAppsErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_internal_error(&self) -> bool {
matches!(&self.kind, ListAppsErrorKind::InternalError(_))
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(&self.kind, ListAppsErrorKind::InvalidParameterException(_))
}
pub fn is_missing_required_parameter_exception(&self) -> bool {
matches!(
&self.kind,
ListAppsErrorKind::MissingRequiredParameterException(_)
)
}
pub fn is_operation_not_permitted_exception(&self) -> bool {
matches!(
&self.kind,
ListAppsErrorKind::OperationNotPermittedException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
ListAppsErrorKind::UnauthorizedOperationException(_)
)
}
}
impl std::error::Error for ListAppsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListAppsErrorKind::InternalError(_inner) => Some(_inner),
ListAppsErrorKind::InvalidParameterException(_inner) => Some(_inner),
ListAppsErrorKind::MissingRequiredParameterException(_inner) => Some(_inner),
ListAppsErrorKind::OperationNotPermittedException(_inner) => Some(_inner),
ListAppsErrorKind::UnauthorizedOperationException(_inner) => Some(_inner),
ListAppsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct NotifyAppValidationOutputError {
pub kind: NotifyAppValidationOutputErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum NotifyAppValidationOutputErrorKind {
InternalError(crate::error::InternalError),
InvalidParameterException(crate::error::InvalidParameterException),
MissingRequiredParameterException(crate::error::MissingRequiredParameterException),
OperationNotPermittedException(crate::error::OperationNotPermittedException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for NotifyAppValidationOutputError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
NotifyAppValidationOutputErrorKind::InternalError(_inner) => _inner.fmt(f),
NotifyAppValidationOutputErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
NotifyAppValidationOutputErrorKind::MissingRequiredParameterException(_inner) => {
_inner.fmt(f)
}
NotifyAppValidationOutputErrorKind::OperationNotPermittedException(_inner) => {
_inner.fmt(f)
}
NotifyAppValidationOutputErrorKind::UnauthorizedOperationException(_inner) => {
_inner.fmt(f)
}
NotifyAppValidationOutputErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for NotifyAppValidationOutputError {
fn code(&self) -> Option<&str> {
NotifyAppValidationOutputError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl NotifyAppValidationOutputError {
pub fn new(kind: NotifyAppValidationOutputErrorKind, 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: NotifyAppValidationOutputErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: NotifyAppValidationOutputErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_internal_error(&self) -> bool {
matches!(
&self.kind,
NotifyAppValidationOutputErrorKind::InternalError(_)
)
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
NotifyAppValidationOutputErrorKind::InvalidParameterException(_)
)
}
pub fn is_missing_required_parameter_exception(&self) -> bool {
matches!(
&self.kind,
NotifyAppValidationOutputErrorKind::MissingRequiredParameterException(_)
)
}
pub fn is_operation_not_permitted_exception(&self) -> bool {
matches!(
&self.kind,
NotifyAppValidationOutputErrorKind::OperationNotPermittedException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
NotifyAppValidationOutputErrorKind::UnauthorizedOperationException(_)
)
}
}
impl std::error::Error for NotifyAppValidationOutputError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
NotifyAppValidationOutputErrorKind::InternalError(_inner) => Some(_inner),
NotifyAppValidationOutputErrorKind::InvalidParameterException(_inner) => Some(_inner),
NotifyAppValidationOutputErrorKind::MissingRequiredParameterException(_inner) => {
Some(_inner)
}
NotifyAppValidationOutputErrorKind::OperationNotPermittedException(_inner) => {
Some(_inner)
}
NotifyAppValidationOutputErrorKind::UnauthorizedOperationException(_inner) => {
Some(_inner)
}
NotifyAppValidationOutputErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct PutAppLaunchConfigurationError {
pub kind: PutAppLaunchConfigurationErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum PutAppLaunchConfigurationErrorKind {
InternalError(crate::error::InternalError),
InvalidParameterException(crate::error::InvalidParameterException),
MissingRequiredParameterException(crate::error::MissingRequiredParameterException),
OperationNotPermittedException(crate::error::OperationNotPermittedException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for PutAppLaunchConfigurationError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
PutAppLaunchConfigurationErrorKind::InternalError(_inner) => _inner.fmt(f),
PutAppLaunchConfigurationErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
PutAppLaunchConfigurationErrorKind::MissingRequiredParameterException(_inner) => {
_inner.fmt(f)
}
PutAppLaunchConfigurationErrorKind::OperationNotPermittedException(_inner) => {
_inner.fmt(f)
}
PutAppLaunchConfigurationErrorKind::UnauthorizedOperationException(_inner) => {
_inner.fmt(f)
}
PutAppLaunchConfigurationErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for PutAppLaunchConfigurationError {
fn code(&self) -> Option<&str> {
PutAppLaunchConfigurationError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl PutAppLaunchConfigurationError {
pub fn new(kind: PutAppLaunchConfigurationErrorKind, 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: PutAppLaunchConfigurationErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: PutAppLaunchConfigurationErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_internal_error(&self) -> bool {
matches!(
&self.kind,
PutAppLaunchConfigurationErrorKind::InternalError(_)
)
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
PutAppLaunchConfigurationErrorKind::InvalidParameterException(_)
)
}
pub fn is_missing_required_parameter_exception(&self) -> bool {
matches!(
&self.kind,
PutAppLaunchConfigurationErrorKind::MissingRequiredParameterException(_)
)
}
pub fn is_operation_not_permitted_exception(&self) -> bool {
matches!(
&self.kind,
PutAppLaunchConfigurationErrorKind::OperationNotPermittedException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
PutAppLaunchConfigurationErrorKind::UnauthorizedOperationException(_)
)
}
}
impl std::error::Error for PutAppLaunchConfigurationError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
PutAppLaunchConfigurationErrorKind::InternalError(_inner) => Some(_inner),
PutAppLaunchConfigurationErrorKind::InvalidParameterException(_inner) => Some(_inner),
PutAppLaunchConfigurationErrorKind::MissingRequiredParameterException(_inner) => {
Some(_inner)
}
PutAppLaunchConfigurationErrorKind::OperationNotPermittedException(_inner) => {
Some(_inner)
}
PutAppLaunchConfigurationErrorKind::UnauthorizedOperationException(_inner) => {
Some(_inner)
}
PutAppLaunchConfigurationErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct PutAppReplicationConfigurationError {
pub kind: PutAppReplicationConfigurationErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum PutAppReplicationConfigurationErrorKind {
InternalError(crate::error::InternalError),
InvalidParameterException(crate::error::InvalidParameterException),
MissingRequiredParameterException(crate::error::MissingRequiredParameterException),
OperationNotPermittedException(crate::error::OperationNotPermittedException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for PutAppReplicationConfigurationError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
PutAppReplicationConfigurationErrorKind::InternalError(_inner) => _inner.fmt(f),
PutAppReplicationConfigurationErrorKind::InvalidParameterException(_inner) => {
_inner.fmt(f)
}
PutAppReplicationConfigurationErrorKind::MissingRequiredParameterException(_inner) => {
_inner.fmt(f)
}
PutAppReplicationConfigurationErrorKind::OperationNotPermittedException(_inner) => {
_inner.fmt(f)
}
PutAppReplicationConfigurationErrorKind::UnauthorizedOperationException(_inner) => {
_inner.fmt(f)
}
PutAppReplicationConfigurationErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for PutAppReplicationConfigurationError {
fn code(&self) -> Option<&str> {
PutAppReplicationConfigurationError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl PutAppReplicationConfigurationError {
pub fn new(
kind: PutAppReplicationConfigurationErrorKind,
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: PutAppReplicationConfigurationErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: PutAppReplicationConfigurationErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_internal_error(&self) -> bool {
matches!(
&self.kind,
PutAppReplicationConfigurationErrorKind::InternalError(_)
)
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
PutAppReplicationConfigurationErrorKind::InvalidParameterException(_)
)
}
pub fn is_missing_required_parameter_exception(&self) -> bool {
matches!(
&self.kind,
PutAppReplicationConfigurationErrorKind::MissingRequiredParameterException(_)
)
}
pub fn is_operation_not_permitted_exception(&self) -> bool {
matches!(
&self.kind,
PutAppReplicationConfigurationErrorKind::OperationNotPermittedException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
PutAppReplicationConfigurationErrorKind::UnauthorizedOperationException(_)
)
}
}
impl std::error::Error for PutAppReplicationConfigurationError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
PutAppReplicationConfigurationErrorKind::InternalError(_inner) => Some(_inner),
PutAppReplicationConfigurationErrorKind::InvalidParameterException(_inner) => {
Some(_inner)
}
PutAppReplicationConfigurationErrorKind::MissingRequiredParameterException(_inner) => {
Some(_inner)
}
PutAppReplicationConfigurationErrorKind::OperationNotPermittedException(_inner) => {
Some(_inner)
}
PutAppReplicationConfigurationErrorKind::UnauthorizedOperationException(_inner) => {
Some(_inner)
}
PutAppReplicationConfigurationErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct PutAppValidationConfigurationError {
pub kind: PutAppValidationConfigurationErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum PutAppValidationConfigurationErrorKind {
InternalError(crate::error::InternalError),
InvalidParameterException(crate::error::InvalidParameterException),
MissingRequiredParameterException(crate::error::MissingRequiredParameterException),
OperationNotPermittedException(crate::error::OperationNotPermittedException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for PutAppValidationConfigurationError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
PutAppValidationConfigurationErrorKind::InternalError(_inner) => _inner.fmt(f),
PutAppValidationConfigurationErrorKind::InvalidParameterException(_inner) => {
_inner.fmt(f)
}
PutAppValidationConfigurationErrorKind::MissingRequiredParameterException(_inner) => {
_inner.fmt(f)
}
PutAppValidationConfigurationErrorKind::OperationNotPermittedException(_inner) => {
_inner.fmt(f)
}
PutAppValidationConfigurationErrorKind::UnauthorizedOperationException(_inner) => {
_inner.fmt(f)
}
PutAppValidationConfigurationErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for PutAppValidationConfigurationError {
fn code(&self) -> Option<&str> {
PutAppValidationConfigurationError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl PutAppValidationConfigurationError {
pub fn new(
kind: PutAppValidationConfigurationErrorKind,
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: PutAppValidationConfigurationErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: PutAppValidationConfigurationErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_internal_error(&self) -> bool {
matches!(
&self.kind,
PutAppValidationConfigurationErrorKind::InternalError(_)
)
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
PutAppValidationConfigurationErrorKind::InvalidParameterException(_)
)
}
pub fn is_missing_required_parameter_exception(&self) -> bool {
matches!(
&self.kind,
PutAppValidationConfigurationErrorKind::MissingRequiredParameterException(_)
)
}
pub fn is_operation_not_permitted_exception(&self) -> bool {
matches!(
&self.kind,
PutAppValidationConfigurationErrorKind::OperationNotPermittedException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
PutAppValidationConfigurationErrorKind::UnauthorizedOperationException(_)
)
}
}
impl std::error::Error for PutAppValidationConfigurationError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
PutAppValidationConfigurationErrorKind::InternalError(_inner) => Some(_inner),
PutAppValidationConfigurationErrorKind::InvalidParameterException(_inner) => {
Some(_inner)
}
PutAppValidationConfigurationErrorKind::MissingRequiredParameterException(_inner) => {
Some(_inner)
}
PutAppValidationConfigurationErrorKind::OperationNotPermittedException(_inner) => {
Some(_inner)
}
PutAppValidationConfigurationErrorKind::UnauthorizedOperationException(_inner) => {
Some(_inner)
}
PutAppValidationConfigurationErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct StartAppReplicationError {
pub kind: StartAppReplicationErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum StartAppReplicationErrorKind {
InternalError(crate::error::InternalError),
InvalidParameterException(crate::error::InvalidParameterException),
MissingRequiredParameterException(crate::error::MissingRequiredParameterException),
OperationNotPermittedException(crate::error::OperationNotPermittedException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for StartAppReplicationError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
StartAppReplicationErrorKind::InternalError(_inner) => _inner.fmt(f),
StartAppReplicationErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
StartAppReplicationErrorKind::MissingRequiredParameterException(_inner) => {
_inner.fmt(f)
}
StartAppReplicationErrorKind::OperationNotPermittedException(_inner) => _inner.fmt(f),
StartAppReplicationErrorKind::UnauthorizedOperationException(_inner) => _inner.fmt(f),
StartAppReplicationErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for StartAppReplicationError {
fn code(&self) -> Option<&str> {
StartAppReplicationError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl StartAppReplicationError {
pub fn new(kind: StartAppReplicationErrorKind, 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: StartAppReplicationErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: StartAppReplicationErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_internal_error(&self) -> bool {
matches!(&self.kind, StartAppReplicationErrorKind::InternalError(_))
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
StartAppReplicationErrorKind::InvalidParameterException(_)
)
}
pub fn is_missing_required_parameter_exception(&self) -> bool {
matches!(
&self.kind,
StartAppReplicationErrorKind::MissingRequiredParameterException(_)
)
}
pub fn is_operation_not_permitted_exception(&self) -> bool {
matches!(
&self.kind,
StartAppReplicationErrorKind::OperationNotPermittedException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
StartAppReplicationErrorKind::UnauthorizedOperationException(_)
)
}
}
impl std::error::Error for StartAppReplicationError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
StartAppReplicationErrorKind::InternalError(_inner) => Some(_inner),
StartAppReplicationErrorKind::InvalidParameterException(_inner) => Some(_inner),
StartAppReplicationErrorKind::MissingRequiredParameterException(_inner) => Some(_inner),
StartAppReplicationErrorKind::OperationNotPermittedException(_inner) => Some(_inner),
StartAppReplicationErrorKind::UnauthorizedOperationException(_inner) => Some(_inner),
StartAppReplicationErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct StartOnDemandAppReplicationError {
pub kind: StartOnDemandAppReplicationErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum StartOnDemandAppReplicationErrorKind {
InternalError(crate::error::InternalError),
InvalidParameterException(crate::error::InvalidParameterException),
MissingRequiredParameterException(crate::error::MissingRequiredParameterException),
OperationNotPermittedException(crate::error::OperationNotPermittedException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for StartOnDemandAppReplicationError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
StartOnDemandAppReplicationErrorKind::InternalError(_inner) => _inner.fmt(f),
StartOnDemandAppReplicationErrorKind::InvalidParameterException(_inner) => {
_inner.fmt(f)
}
StartOnDemandAppReplicationErrorKind::MissingRequiredParameterException(_inner) => {
_inner.fmt(f)
}
StartOnDemandAppReplicationErrorKind::OperationNotPermittedException(_inner) => {
_inner.fmt(f)
}
StartOnDemandAppReplicationErrorKind::UnauthorizedOperationException(_inner) => {
_inner.fmt(f)
}
StartOnDemandAppReplicationErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for StartOnDemandAppReplicationError {
fn code(&self) -> Option<&str> {
StartOnDemandAppReplicationError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl StartOnDemandAppReplicationError {
pub fn new(kind: StartOnDemandAppReplicationErrorKind, 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: StartOnDemandAppReplicationErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: StartOnDemandAppReplicationErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_internal_error(&self) -> bool {
matches!(
&self.kind,
StartOnDemandAppReplicationErrorKind::InternalError(_)
)
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
StartOnDemandAppReplicationErrorKind::InvalidParameterException(_)
)
}
pub fn is_missing_required_parameter_exception(&self) -> bool {
matches!(
&self.kind,
StartOnDemandAppReplicationErrorKind::MissingRequiredParameterException(_)
)
}
pub fn is_operation_not_permitted_exception(&self) -> bool {
matches!(
&self.kind,
StartOnDemandAppReplicationErrorKind::OperationNotPermittedException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
StartOnDemandAppReplicationErrorKind::UnauthorizedOperationException(_)
)
}
}
impl std::error::Error for StartOnDemandAppReplicationError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
StartOnDemandAppReplicationErrorKind::InternalError(_inner) => Some(_inner),
StartOnDemandAppReplicationErrorKind::InvalidParameterException(_inner) => Some(_inner),
StartOnDemandAppReplicationErrorKind::MissingRequiredParameterException(_inner) => {
Some(_inner)
}
StartOnDemandAppReplicationErrorKind::OperationNotPermittedException(_inner) => {
Some(_inner)
}
StartOnDemandAppReplicationErrorKind::UnauthorizedOperationException(_inner) => {
Some(_inner)
}
StartOnDemandAppReplicationErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct StartOnDemandReplicationRunError {
pub kind: StartOnDemandReplicationRunErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum StartOnDemandReplicationRunErrorKind {
DryRunOperationException(crate::error::DryRunOperationException),
InvalidParameterException(crate::error::InvalidParameterException),
MissingRequiredParameterException(crate::error::MissingRequiredParameterException),
OperationNotPermittedException(crate::error::OperationNotPermittedException),
ReplicationRunLimitExceededException(crate::error::ReplicationRunLimitExceededException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for StartOnDemandReplicationRunError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
StartOnDemandReplicationRunErrorKind::DryRunOperationException(_inner) => _inner.fmt(f),
StartOnDemandReplicationRunErrorKind::InvalidParameterException(_inner) => {
_inner.fmt(f)
}
StartOnDemandReplicationRunErrorKind::MissingRequiredParameterException(_inner) => {
_inner.fmt(f)
}
StartOnDemandReplicationRunErrorKind::OperationNotPermittedException(_inner) => {
_inner.fmt(f)
}
StartOnDemandReplicationRunErrorKind::ReplicationRunLimitExceededException(_inner) => {
_inner.fmt(f)
}
StartOnDemandReplicationRunErrorKind::UnauthorizedOperationException(_inner) => {
_inner.fmt(f)
}
StartOnDemandReplicationRunErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for StartOnDemandReplicationRunError {
fn code(&self) -> Option<&str> {
StartOnDemandReplicationRunError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl StartOnDemandReplicationRunError {
pub fn new(kind: StartOnDemandReplicationRunErrorKind, 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: StartOnDemandReplicationRunErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: StartOnDemandReplicationRunErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_dry_run_operation_exception(&self) -> bool {
matches!(
&self.kind,
StartOnDemandReplicationRunErrorKind::DryRunOperationException(_)
)
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
StartOnDemandReplicationRunErrorKind::InvalidParameterException(_)
)
}
pub fn is_missing_required_parameter_exception(&self) -> bool {
matches!(
&self.kind,
StartOnDemandReplicationRunErrorKind::MissingRequiredParameterException(_)
)
}
pub fn is_operation_not_permitted_exception(&self) -> bool {
matches!(
&self.kind,
StartOnDemandReplicationRunErrorKind::OperationNotPermittedException(_)
)
}
pub fn is_replication_run_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
StartOnDemandReplicationRunErrorKind::ReplicationRunLimitExceededException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
StartOnDemandReplicationRunErrorKind::UnauthorizedOperationException(_)
)
}
}
impl std::error::Error for StartOnDemandReplicationRunError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
StartOnDemandReplicationRunErrorKind::DryRunOperationException(_inner) => Some(_inner),
StartOnDemandReplicationRunErrorKind::InvalidParameterException(_inner) => Some(_inner),
StartOnDemandReplicationRunErrorKind::MissingRequiredParameterException(_inner) => {
Some(_inner)
}
StartOnDemandReplicationRunErrorKind::OperationNotPermittedException(_inner) => {
Some(_inner)
}
StartOnDemandReplicationRunErrorKind::ReplicationRunLimitExceededException(_inner) => {
Some(_inner)
}
StartOnDemandReplicationRunErrorKind::UnauthorizedOperationException(_inner) => {
Some(_inner)
}
StartOnDemandReplicationRunErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct StopAppReplicationError {
pub kind: StopAppReplicationErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum StopAppReplicationErrorKind {
InternalError(crate::error::InternalError),
InvalidParameterException(crate::error::InvalidParameterException),
MissingRequiredParameterException(crate::error::MissingRequiredParameterException),
OperationNotPermittedException(crate::error::OperationNotPermittedException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for StopAppReplicationError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
StopAppReplicationErrorKind::InternalError(_inner) => _inner.fmt(f),
StopAppReplicationErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
StopAppReplicationErrorKind::MissingRequiredParameterException(_inner) => _inner.fmt(f),
StopAppReplicationErrorKind::OperationNotPermittedException(_inner) => _inner.fmt(f),
StopAppReplicationErrorKind::UnauthorizedOperationException(_inner) => _inner.fmt(f),
StopAppReplicationErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for StopAppReplicationError {
fn code(&self) -> Option<&str> {
StopAppReplicationError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl StopAppReplicationError {
pub fn new(kind: StopAppReplicationErrorKind, 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: StopAppReplicationErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: StopAppReplicationErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_internal_error(&self) -> bool {
matches!(&self.kind, StopAppReplicationErrorKind::InternalError(_))
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
StopAppReplicationErrorKind::InvalidParameterException(_)
)
}
pub fn is_missing_required_parameter_exception(&self) -> bool {
matches!(
&self.kind,
StopAppReplicationErrorKind::MissingRequiredParameterException(_)
)
}
pub fn is_operation_not_permitted_exception(&self) -> bool {
matches!(
&self.kind,
StopAppReplicationErrorKind::OperationNotPermittedException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
StopAppReplicationErrorKind::UnauthorizedOperationException(_)
)
}
}
impl std::error::Error for StopAppReplicationError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
StopAppReplicationErrorKind::InternalError(_inner) => Some(_inner),
StopAppReplicationErrorKind::InvalidParameterException(_inner) => Some(_inner),
StopAppReplicationErrorKind::MissingRequiredParameterException(_inner) => Some(_inner),
StopAppReplicationErrorKind::OperationNotPermittedException(_inner) => Some(_inner),
StopAppReplicationErrorKind::UnauthorizedOperationException(_inner) => Some(_inner),
StopAppReplicationErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct TerminateAppError {
pub kind: TerminateAppErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum TerminateAppErrorKind {
InternalError(crate::error::InternalError),
InvalidParameterException(crate::error::InvalidParameterException),
MissingRequiredParameterException(crate::error::MissingRequiredParameterException),
OperationNotPermittedException(crate::error::OperationNotPermittedException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for TerminateAppError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
TerminateAppErrorKind::InternalError(_inner) => _inner.fmt(f),
TerminateAppErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
TerminateAppErrorKind::MissingRequiredParameterException(_inner) => _inner.fmt(f),
TerminateAppErrorKind::OperationNotPermittedException(_inner) => _inner.fmt(f),
TerminateAppErrorKind::UnauthorizedOperationException(_inner) => _inner.fmt(f),
TerminateAppErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for TerminateAppError {
fn code(&self) -> Option<&str> {
TerminateAppError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl TerminateAppError {
pub fn new(kind: TerminateAppErrorKind, 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: TerminateAppErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: TerminateAppErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_internal_error(&self) -> bool {
matches!(&self.kind, TerminateAppErrorKind::InternalError(_))
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
TerminateAppErrorKind::InvalidParameterException(_)
)
}
pub fn is_missing_required_parameter_exception(&self) -> bool {
matches!(
&self.kind,
TerminateAppErrorKind::MissingRequiredParameterException(_)
)
}
pub fn is_operation_not_permitted_exception(&self) -> bool {
matches!(
&self.kind,
TerminateAppErrorKind::OperationNotPermittedException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
TerminateAppErrorKind::UnauthorizedOperationException(_)
)
}
}
impl std::error::Error for TerminateAppError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
TerminateAppErrorKind::InternalError(_inner) => Some(_inner),
TerminateAppErrorKind::InvalidParameterException(_inner) => Some(_inner),
TerminateAppErrorKind::MissingRequiredParameterException(_inner) => Some(_inner),
TerminateAppErrorKind::OperationNotPermittedException(_inner) => Some(_inner),
TerminateAppErrorKind::UnauthorizedOperationException(_inner) => Some(_inner),
TerminateAppErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateAppError {
pub kind: UpdateAppErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateAppErrorKind {
InternalError(crate::error::InternalError),
InvalidParameterException(crate::error::InvalidParameterException),
MissingRequiredParameterException(crate::error::MissingRequiredParameterException),
OperationNotPermittedException(crate::error::OperationNotPermittedException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for UpdateAppError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateAppErrorKind::InternalError(_inner) => _inner.fmt(f),
UpdateAppErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
UpdateAppErrorKind::MissingRequiredParameterException(_inner) => _inner.fmt(f),
UpdateAppErrorKind::OperationNotPermittedException(_inner) => _inner.fmt(f),
UpdateAppErrorKind::UnauthorizedOperationException(_inner) => _inner.fmt(f),
UpdateAppErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateAppError {
fn code(&self) -> Option<&str> {
UpdateAppError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateAppError {
pub fn new(kind: UpdateAppErrorKind, 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: UpdateAppErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateAppErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_internal_error(&self) -> bool {
matches!(&self.kind, UpdateAppErrorKind::InternalError(_))
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(&self.kind, UpdateAppErrorKind::InvalidParameterException(_))
}
pub fn is_missing_required_parameter_exception(&self) -> bool {
matches!(
&self.kind,
UpdateAppErrorKind::MissingRequiredParameterException(_)
)
}
pub fn is_operation_not_permitted_exception(&self) -> bool {
matches!(
&self.kind,
UpdateAppErrorKind::OperationNotPermittedException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
UpdateAppErrorKind::UnauthorizedOperationException(_)
)
}
}
impl std::error::Error for UpdateAppError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateAppErrorKind::InternalError(_inner) => Some(_inner),
UpdateAppErrorKind::InvalidParameterException(_inner) => Some(_inner),
UpdateAppErrorKind::MissingRequiredParameterException(_inner) => Some(_inner),
UpdateAppErrorKind::OperationNotPermittedException(_inner) => Some(_inner),
UpdateAppErrorKind::UnauthorizedOperationException(_inner) => Some(_inner),
UpdateAppErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateReplicationJobError {
pub kind: UpdateReplicationJobErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateReplicationJobErrorKind {
InternalError(crate::error::InternalError),
InvalidParameterException(crate::error::InvalidParameterException),
MissingRequiredParameterException(crate::error::MissingRequiredParameterException),
OperationNotPermittedException(crate::error::OperationNotPermittedException),
ReplicationJobNotFoundException(crate::error::ReplicationJobNotFoundException),
ServerCannotBeReplicatedException(crate::error::ServerCannotBeReplicatedException),
TemporarilyUnavailableException(crate::error::TemporarilyUnavailableException),
UnauthorizedOperationException(crate::error::UnauthorizedOperationException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for UpdateReplicationJobError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateReplicationJobErrorKind::InternalError(_inner) => _inner.fmt(f),
UpdateReplicationJobErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
UpdateReplicationJobErrorKind::MissingRequiredParameterException(_inner) => {
_inner.fmt(f)
}
UpdateReplicationJobErrorKind::OperationNotPermittedException(_inner) => _inner.fmt(f),
UpdateReplicationJobErrorKind::ReplicationJobNotFoundException(_inner) => _inner.fmt(f),
UpdateReplicationJobErrorKind::ServerCannotBeReplicatedException(_inner) => {
_inner.fmt(f)
}
UpdateReplicationJobErrorKind::TemporarilyUnavailableException(_inner) => _inner.fmt(f),
UpdateReplicationJobErrorKind::UnauthorizedOperationException(_inner) => _inner.fmt(f),
UpdateReplicationJobErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateReplicationJobError {
fn code(&self) -> Option<&str> {
UpdateReplicationJobError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateReplicationJobError {
pub fn new(kind: UpdateReplicationJobErrorKind, 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: UpdateReplicationJobErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateReplicationJobErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_internal_error(&self) -> bool {
matches!(&self.kind, UpdateReplicationJobErrorKind::InternalError(_))
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
UpdateReplicationJobErrorKind::InvalidParameterException(_)
)
}
pub fn is_missing_required_parameter_exception(&self) -> bool {
matches!(
&self.kind,
UpdateReplicationJobErrorKind::MissingRequiredParameterException(_)
)
}
pub fn is_operation_not_permitted_exception(&self) -> bool {
matches!(
&self.kind,
UpdateReplicationJobErrorKind::OperationNotPermittedException(_)
)
}
pub fn is_replication_job_not_found_exception(&self) -> bool {
matches!(
&self.kind,
UpdateReplicationJobErrorKind::ReplicationJobNotFoundException(_)
)
}
pub fn is_server_cannot_be_replicated_exception(&self) -> bool {
matches!(
&self.kind,
UpdateReplicationJobErrorKind::ServerCannotBeReplicatedException(_)
)
}
pub fn is_temporarily_unavailable_exception(&self) -> bool {
matches!(
&self.kind,
UpdateReplicationJobErrorKind::TemporarilyUnavailableException(_)
)
}
pub fn is_unauthorized_operation_exception(&self) -> bool {
matches!(
&self.kind,
UpdateReplicationJobErrorKind::UnauthorizedOperationException(_)
)
}
}
impl std::error::Error for UpdateReplicationJobError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateReplicationJobErrorKind::InternalError(_inner) => Some(_inner),
UpdateReplicationJobErrorKind::InvalidParameterException(_inner) => Some(_inner),
UpdateReplicationJobErrorKind::MissingRequiredParameterException(_inner) => {
Some(_inner)
}
UpdateReplicationJobErrorKind::OperationNotPermittedException(_inner) => Some(_inner),
UpdateReplicationJobErrorKind::ReplicationJobNotFoundException(_inner) => Some(_inner),
UpdateReplicationJobErrorKind::ServerCannotBeReplicatedException(_inner) => {
Some(_inner)
}
UpdateReplicationJobErrorKind::TemporarilyUnavailableException(_inner) => Some(_inner),
UpdateReplicationJobErrorKind::UnauthorizedOperationException(_inner) => Some(_inner),
UpdateReplicationJobErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct UnauthorizedOperationException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for UnauthorizedOperationException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("UnauthorizedOperationException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl UnauthorizedOperationException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for UnauthorizedOperationException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "UnauthorizedOperationException")?;
if let Some(inner_1) = &self.message {
write!(f, ": {}", inner_1)?;
}
Ok(())
}
}
impl std::error::Error for UnauthorizedOperationException {}
pub mod unauthorized_operation_exception {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::UnauthorizedOperationException {
crate::error::UnauthorizedOperationException {
message: self.message,
}
}
}
}
impl UnauthorizedOperationException {
pub fn builder() -> crate::error::unauthorized_operation_exception::Builder {
crate::error::unauthorized_operation_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TemporarilyUnavailableException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for TemporarilyUnavailableException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TemporarilyUnavailableException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl TemporarilyUnavailableException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TemporarilyUnavailableException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TemporarilyUnavailableException")?;
if let Some(inner_2) = &self.message {
write!(f, ": {}", inner_2)?;
}
Ok(())
}
}
impl std::error::Error for TemporarilyUnavailableException {}
pub mod temporarily_unavailable_exception {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::TemporarilyUnavailableException {
crate::error::TemporarilyUnavailableException {
message: self.message,
}
}
}
}
impl TemporarilyUnavailableException {
pub fn builder() -> crate::error::temporarily_unavailable_exception::Builder {
crate::error::temporarily_unavailable_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ServerCannotBeReplicatedException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for ServerCannotBeReplicatedException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ServerCannotBeReplicatedException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl ServerCannotBeReplicatedException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ServerCannotBeReplicatedException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ServerCannotBeReplicatedException")?;
if let Some(inner_3) = &self.message {
write!(f, ": {}", inner_3)?;
}
Ok(())
}
}
impl std::error::Error for ServerCannotBeReplicatedException {}
pub mod server_cannot_be_replicated_exception {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::ServerCannotBeReplicatedException {
crate::error::ServerCannotBeReplicatedException {
message: self.message,
}
}
}
}
impl ServerCannotBeReplicatedException {
pub fn builder() -> crate::error::server_cannot_be_replicated_exception::Builder {
crate::error::server_cannot_be_replicated_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ReplicationJobNotFoundException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for ReplicationJobNotFoundException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ReplicationJobNotFoundException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl ReplicationJobNotFoundException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ReplicationJobNotFoundException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ReplicationJobNotFoundException")?;
if let Some(inner_4) = &self.message {
write!(f, ": {}", inner_4)?;
}
Ok(())
}
}
impl std::error::Error for ReplicationJobNotFoundException {}
pub mod replication_job_not_found_exception {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::ReplicationJobNotFoundException {
crate::error::ReplicationJobNotFoundException {
message: self.message,
}
}
}
}
impl ReplicationJobNotFoundException {
pub fn builder() -> crate::error::replication_job_not_found_exception::Builder {
crate::error::replication_job_not_found_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct OperationNotPermittedException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for OperationNotPermittedException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("OperationNotPermittedException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl OperationNotPermittedException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for OperationNotPermittedException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "OperationNotPermittedException")?;
if let Some(inner_5) = &self.message {
write!(f, ": {}", inner_5)?;
}
Ok(())
}
}
impl std::error::Error for OperationNotPermittedException {}
pub mod operation_not_permitted_exception {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::OperationNotPermittedException {
crate::error::OperationNotPermittedException {
message: self.message,
}
}
}
}
impl OperationNotPermittedException {
pub fn builder() -> crate::error::operation_not_permitted_exception::Builder {
crate::error::operation_not_permitted_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct MissingRequiredParameterException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for MissingRequiredParameterException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("MissingRequiredParameterException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl MissingRequiredParameterException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for MissingRequiredParameterException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "MissingRequiredParameterException")?;
if let Some(inner_6) = &self.message {
write!(f, ": {}", inner_6)?;
}
Ok(())
}
}
impl std::error::Error for MissingRequiredParameterException {}
pub mod missing_required_parameter_exception {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::MissingRequiredParameterException {
crate::error::MissingRequiredParameterException {
message: self.message,
}
}
}
}
impl MissingRequiredParameterException {
pub fn builder() -> crate::error::missing_required_parameter_exception::Builder {
crate::error::missing_required_parameter_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InvalidParameterException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InvalidParameterException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InvalidParameterException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InvalidParameterException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidParameterException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidParameterException")?;
if let Some(inner_7) = &self.message {
write!(f, ": {}", inner_7)?;
}
Ok(())
}
}
impl std::error::Error for InvalidParameterException {}
pub mod invalid_parameter_exception {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidParameterException {
crate::error::InvalidParameterException {
message: self.message,
}
}
}
}
impl InvalidParameterException {
pub fn builder() -> crate::error::invalid_parameter_exception::Builder {
crate::error::invalid_parameter_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InternalError {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InternalError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InternalError");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InternalError {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InternalError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InternalError")?;
if let Some(inner_8) = &self.message {
write!(f, ": {}", inner_8)?;
}
Ok(())
}
}
impl std::error::Error for InternalError {}
pub mod internal_error {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InternalError {
crate::error::InternalError {
message: self.message,
}
}
}
}
impl InternalError {
pub fn builder() -> crate::error::internal_error::Builder {
crate::error::internal_error::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ReplicationRunLimitExceededException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for ReplicationRunLimitExceededException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ReplicationRunLimitExceededException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl ReplicationRunLimitExceededException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ReplicationRunLimitExceededException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ReplicationRunLimitExceededException")?;
if let Some(inner_9) = &self.message {
write!(f, ": {}", inner_9)?;
}
Ok(())
}
}
impl std::error::Error for ReplicationRunLimitExceededException {}
pub mod replication_run_limit_exceeded_exception {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::ReplicationRunLimitExceededException {
crate::error::ReplicationRunLimitExceededException {
message: self.message,
}
}
}
}
impl ReplicationRunLimitExceededException {
pub fn builder() -> crate::error::replication_run_limit_exceeded_exception::Builder {
crate::error::replication_run_limit_exceeded_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DryRunOperationException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for DryRunOperationException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DryRunOperationException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl DryRunOperationException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for DryRunOperationException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "DryRunOperationException")?;
if let Some(inner_10) = &self.message {
write!(f, ": {}", inner_10)?;
}
Ok(())
}
}
impl std::error::Error for DryRunOperationException {}
pub mod dry_run_operation_exception {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::DryRunOperationException {
crate::error::DryRunOperationException {
message: self.message,
}
}
}
}
impl DryRunOperationException {
pub fn builder() -> crate::error::dry_run_operation_exception::Builder {
crate::error::dry_run_operation_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct NoConnectorsAvailableException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for NoConnectorsAvailableException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("NoConnectorsAvailableException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl NoConnectorsAvailableException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for NoConnectorsAvailableException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "NoConnectorsAvailableException")?;
if let Some(inner_11) = &self.message {
write!(f, ": {}", inner_11)?;
}
Ok(())
}
}
impl std::error::Error for NoConnectorsAvailableException {}
pub mod no_connectors_available_exception {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::NoConnectorsAvailableException {
crate::error::NoConnectorsAvailableException {
message: self.message,
}
}
}
}
impl NoConnectorsAvailableException {
pub fn builder() -> crate::error::no_connectors_available_exception::Builder {
crate::error::no_connectors_available_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ReplicationJobAlreadyExistsException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for ReplicationJobAlreadyExistsException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ReplicationJobAlreadyExistsException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl ReplicationJobAlreadyExistsException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ReplicationJobAlreadyExistsException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ReplicationJobAlreadyExistsException")?;
if let Some(inner_12) = &self.message {
write!(f, ": {}", inner_12)?;
}
Ok(())
}
}
impl std::error::Error for ReplicationJobAlreadyExistsException {}
pub mod replication_job_already_exists_exception {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::ReplicationJobAlreadyExistsException {
crate::error::ReplicationJobAlreadyExistsException {
message: self.message,
}
}
}
}
impl ReplicationJobAlreadyExistsException {
pub fn builder() -> crate::error::replication_job_already_exists_exception::Builder {
crate::error::replication_job_already_exists_exception::Builder::default()
}
}