#[non_exhaustive]
#[derive(::std::fmt::Debug)]
pub enum Error {
ActiveDirectoryError(crate::types::error::ActiveDirectoryError),
BackupBeingCopied(crate::types::error::BackupBeingCopied),
BackupInProgress(crate::types::error::BackupInProgress),
BackupNotFound(crate::types::error::BackupNotFound),
BackupRestoring(crate::types::error::BackupRestoring),
BadRequest(crate::types::error::BadRequest),
DataRepositoryAssociationNotFound(crate::types::error::DataRepositoryAssociationNotFound),
DataRepositoryTaskEnded(crate::types::error::DataRepositoryTaskEnded),
DataRepositoryTaskExecuting(crate::types::error::DataRepositoryTaskExecuting),
DataRepositoryTaskNotFound(crate::types::error::DataRepositoryTaskNotFound),
FileCacheNotFound(crate::types::error::FileCacheNotFound),
FileSystemNotFound(crate::types::error::FileSystemNotFound),
IncompatibleParameterError(crate::types::error::IncompatibleParameterError),
IncompatibleRegionForMultiAz(crate::types::error::IncompatibleRegionForMultiAz),
InternalServerError(crate::types::error::InternalServerError),
InvalidDataRepositoryType(crate::types::error::InvalidDataRepositoryType),
InvalidDestinationKmsKey(crate::types::error::InvalidDestinationKmsKey),
InvalidExportPath(crate::types::error::InvalidExportPath),
InvalidImportPath(crate::types::error::InvalidImportPath),
InvalidNetworkSettings(crate::types::error::InvalidNetworkSettings),
InvalidPerUnitStorageThroughput(crate::types::error::InvalidPerUnitStorageThroughput),
InvalidRegion(crate::types::error::InvalidRegion),
InvalidSourceKmsKey(crate::types::error::InvalidSourceKmsKey),
MissingFileCacheConfiguration(crate::types::error::MissingFileCacheConfiguration),
MissingFileSystemConfiguration(crate::types::error::MissingFileSystemConfiguration),
MissingVolumeConfiguration(crate::types::error::MissingVolumeConfiguration),
NotServiceResourceError(crate::types::error::NotServiceResourceError),
ResourceDoesNotSupportTagging(crate::types::error::ResourceDoesNotSupportTagging),
ResourceNotFound(crate::types::error::ResourceNotFound),
ServiceLimitExceeded(crate::types::error::ServiceLimitExceeded),
SnapshotNotFound(crate::types::error::SnapshotNotFound),
SourceBackupUnavailable(crate::types::error::SourceBackupUnavailable),
StorageVirtualMachineNotFound(crate::types::error::StorageVirtualMachineNotFound),
UnsupportedOperation(crate::types::error::UnsupportedOperation),
VolumeNotFound(crate::types::error::VolumeNotFound),
#[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
variable wildcard pattern and check `.code()`:
\
`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
\
See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
Unhandled(crate::error::sealed_unhandled::Unhandled),
}
impl ::std::fmt::Display for Error {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
Error::ActiveDirectoryError(inner) => inner.fmt(f),
Error::BackupBeingCopied(inner) => inner.fmt(f),
Error::BackupInProgress(inner) => inner.fmt(f),
Error::BackupNotFound(inner) => inner.fmt(f),
Error::BackupRestoring(inner) => inner.fmt(f),
Error::BadRequest(inner) => inner.fmt(f),
Error::DataRepositoryAssociationNotFound(inner) => inner.fmt(f),
Error::DataRepositoryTaskEnded(inner) => inner.fmt(f),
Error::DataRepositoryTaskExecuting(inner) => inner.fmt(f),
Error::DataRepositoryTaskNotFound(inner) => inner.fmt(f),
Error::FileCacheNotFound(inner) => inner.fmt(f),
Error::FileSystemNotFound(inner) => inner.fmt(f),
Error::IncompatibleParameterError(inner) => inner.fmt(f),
Error::IncompatibleRegionForMultiAz(inner) => inner.fmt(f),
Error::InternalServerError(inner) => inner.fmt(f),
Error::InvalidDataRepositoryType(inner) => inner.fmt(f),
Error::InvalidDestinationKmsKey(inner) => inner.fmt(f),
Error::InvalidExportPath(inner) => inner.fmt(f),
Error::InvalidImportPath(inner) => inner.fmt(f),
Error::InvalidNetworkSettings(inner) => inner.fmt(f),
Error::InvalidPerUnitStorageThroughput(inner) => inner.fmt(f),
Error::InvalidRegion(inner) => inner.fmt(f),
Error::InvalidSourceKmsKey(inner) => inner.fmt(f),
Error::MissingFileCacheConfiguration(inner) => inner.fmt(f),
Error::MissingFileSystemConfiguration(inner) => inner.fmt(f),
Error::MissingVolumeConfiguration(inner) => inner.fmt(f),
Error::NotServiceResourceError(inner) => inner.fmt(f),
Error::ResourceDoesNotSupportTagging(inner) => inner.fmt(f),
Error::ResourceNotFound(inner) => inner.fmt(f),
Error::ServiceLimitExceeded(inner) => inner.fmt(f),
Error::SnapshotNotFound(inner) => inner.fmt(f),
Error::SourceBackupUnavailable(inner) => inner.fmt(f),
Error::StorageVirtualMachineNotFound(inner) => inner.fmt(f),
Error::UnsupportedOperation(inner) => inner.fmt(f),
Error::VolumeNotFound(inner) => inner.fmt(f),
Error::Unhandled(_) => {
if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
write!(f, "unhandled error ({code})")
} else {
f.write_str("unhandled error")
}
}
}
}
}
impl From<::aws_smithy_types::error::operation::BuildError> for Error {
fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
source: value.into(),
meta: ::std::default::Default::default(),
})
}
}
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
match self {
Self::ActiveDirectoryError(inner) => inner.meta(),
Self::BackupBeingCopied(inner) => inner.meta(),
Self::BackupInProgress(inner) => inner.meta(),
Self::BackupNotFound(inner) => inner.meta(),
Self::BackupRestoring(inner) => inner.meta(),
Self::BadRequest(inner) => inner.meta(),
Self::DataRepositoryAssociationNotFound(inner) => inner.meta(),
Self::DataRepositoryTaskEnded(inner) => inner.meta(),
Self::DataRepositoryTaskExecuting(inner) => inner.meta(),
Self::DataRepositoryTaskNotFound(inner) => inner.meta(),
Self::FileCacheNotFound(inner) => inner.meta(),
Self::FileSystemNotFound(inner) => inner.meta(),
Self::IncompatibleParameterError(inner) => inner.meta(),
Self::IncompatibleRegionForMultiAz(inner) => inner.meta(),
Self::InternalServerError(inner) => inner.meta(),
Self::InvalidDataRepositoryType(inner) => inner.meta(),
Self::InvalidDestinationKmsKey(inner) => inner.meta(),
Self::InvalidExportPath(inner) => inner.meta(),
Self::InvalidImportPath(inner) => inner.meta(),
Self::InvalidNetworkSettings(inner) => inner.meta(),
Self::InvalidPerUnitStorageThroughput(inner) => inner.meta(),
Self::InvalidRegion(inner) => inner.meta(),
Self::InvalidSourceKmsKey(inner) => inner.meta(),
Self::MissingFileCacheConfiguration(inner) => inner.meta(),
Self::MissingFileSystemConfiguration(inner) => inner.meta(),
Self::MissingVolumeConfiguration(inner) => inner.meta(),
Self::NotServiceResourceError(inner) => inner.meta(),
Self::ResourceDoesNotSupportTagging(inner) => inner.meta(),
Self::ResourceNotFound(inner) => inner.meta(),
Self::ServiceLimitExceeded(inner) => inner.meta(),
Self::SnapshotNotFound(inner) => inner.meta(),
Self::SourceBackupUnavailable(inner) => inner.meta(),
Self::StorageVirtualMachineNotFound(inner) => inner.meta(),
Self::UnsupportedOperation(inner) => inner.meta(),
Self::VolumeNotFound(inner) => inner.meta(),
Self::Unhandled(inner) => &inner.meta,
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_file_system_aliases::AssociateFileSystemAliasesError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_file_system_aliases::AssociateFileSystemAliasesError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::associate_file_system_aliases::AssociateFileSystemAliasesError> for Error {
fn from(err: crate::operation::associate_file_system_aliases::AssociateFileSystemAliasesError) -> Self {
match err {
crate::operation::associate_file_system_aliases::AssociateFileSystemAliasesError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::associate_file_system_aliases::AssociateFileSystemAliasesError::FileSystemNotFound(inner) => {
Error::FileSystemNotFound(inner)
}
crate::operation::associate_file_system_aliases::AssociateFileSystemAliasesError::InternalServerError(inner) => {
Error::InternalServerError(inner)
}
crate::operation::associate_file_system_aliases::AssociateFileSystemAliasesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_data_repository_task::CancelDataRepositoryTaskError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_data_repository_task::CancelDataRepositoryTaskError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::cancel_data_repository_task::CancelDataRepositoryTaskError> for Error {
fn from(err: crate::operation::cancel_data_repository_task::CancelDataRepositoryTaskError) -> Self {
match err {
crate::operation::cancel_data_repository_task::CancelDataRepositoryTaskError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::cancel_data_repository_task::CancelDataRepositoryTaskError::DataRepositoryTaskEnded(inner) => {
Error::DataRepositoryTaskEnded(inner)
}
crate::operation::cancel_data_repository_task::CancelDataRepositoryTaskError::DataRepositoryTaskNotFound(inner) => {
Error::DataRepositoryTaskNotFound(inner)
}
crate::operation::cancel_data_repository_task::CancelDataRepositoryTaskError::InternalServerError(inner) => {
Error::InternalServerError(inner)
}
crate::operation::cancel_data_repository_task::CancelDataRepositoryTaskError::UnsupportedOperation(inner) => {
Error::UnsupportedOperation(inner)
}
crate::operation::cancel_data_repository_task::CancelDataRepositoryTaskError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::copy_backup::CopyBackupError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::copy_backup::CopyBackupError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::copy_backup::CopyBackupError> for Error {
fn from(err: crate::operation::copy_backup::CopyBackupError) -> Self {
match err {
crate::operation::copy_backup::CopyBackupError::BackupNotFound(inner) => Error::BackupNotFound(inner),
crate::operation::copy_backup::CopyBackupError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::copy_backup::CopyBackupError::IncompatibleParameterError(inner) => Error::IncompatibleParameterError(inner),
crate::operation::copy_backup::CopyBackupError::IncompatibleRegionForMultiAz(inner) => Error::IncompatibleRegionForMultiAz(inner),
crate::operation::copy_backup::CopyBackupError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::copy_backup::CopyBackupError::InvalidDestinationKmsKey(inner) => Error::InvalidDestinationKmsKey(inner),
crate::operation::copy_backup::CopyBackupError::InvalidRegion(inner) => Error::InvalidRegion(inner),
crate::operation::copy_backup::CopyBackupError::InvalidSourceKmsKey(inner) => Error::InvalidSourceKmsKey(inner),
crate::operation::copy_backup::CopyBackupError::ServiceLimitExceeded(inner) => Error::ServiceLimitExceeded(inner),
crate::operation::copy_backup::CopyBackupError::SourceBackupUnavailable(inner) => Error::SourceBackupUnavailable(inner),
crate::operation::copy_backup::CopyBackupError::UnsupportedOperation(inner) => Error::UnsupportedOperation(inner),
crate::operation::copy_backup::CopyBackupError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::copy_snapshot_and_update_volume::CopySnapshotAndUpdateVolumeError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::copy_snapshot_and_update_volume::CopySnapshotAndUpdateVolumeError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::copy_snapshot_and_update_volume::CopySnapshotAndUpdateVolumeError> for Error {
fn from(err: crate::operation::copy_snapshot_and_update_volume::CopySnapshotAndUpdateVolumeError) -> Self {
match err {
crate::operation::copy_snapshot_and_update_volume::CopySnapshotAndUpdateVolumeError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::copy_snapshot_and_update_volume::CopySnapshotAndUpdateVolumeError::IncompatibleParameterError(inner) => {
Error::IncompatibleParameterError(inner)
}
crate::operation::copy_snapshot_and_update_volume::CopySnapshotAndUpdateVolumeError::InternalServerError(inner) => {
Error::InternalServerError(inner)
}
crate::operation::copy_snapshot_and_update_volume::CopySnapshotAndUpdateVolumeError::ServiceLimitExceeded(inner) => {
Error::ServiceLimitExceeded(inner)
}
crate::operation::copy_snapshot_and_update_volume::CopySnapshotAndUpdateVolumeError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_backup::CreateBackupError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_backup::CreateBackupError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_backup::CreateBackupError> for Error {
fn from(err: crate::operation::create_backup::CreateBackupError) -> Self {
match err {
crate::operation::create_backup::CreateBackupError::BackupInProgress(inner) => Error::BackupInProgress(inner),
crate::operation::create_backup::CreateBackupError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::create_backup::CreateBackupError::FileSystemNotFound(inner) => Error::FileSystemNotFound(inner),
crate::operation::create_backup::CreateBackupError::IncompatibleParameterError(inner) => Error::IncompatibleParameterError(inner),
crate::operation::create_backup::CreateBackupError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::create_backup::CreateBackupError::ServiceLimitExceeded(inner) => Error::ServiceLimitExceeded(inner),
crate::operation::create_backup::CreateBackupError::UnsupportedOperation(inner) => Error::UnsupportedOperation(inner),
crate::operation::create_backup::CreateBackupError::VolumeNotFound(inner) => Error::VolumeNotFound(inner),
crate::operation::create_backup::CreateBackupError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_data_repository_association::CreateDataRepositoryAssociationError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_data_repository_association::CreateDataRepositoryAssociationError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_data_repository_association::CreateDataRepositoryAssociationError> for Error {
fn from(err: crate::operation::create_data_repository_association::CreateDataRepositoryAssociationError) -> Self {
match err {
crate::operation::create_data_repository_association::CreateDataRepositoryAssociationError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::create_data_repository_association::CreateDataRepositoryAssociationError::FileSystemNotFound(inner) => {
Error::FileSystemNotFound(inner)
}
crate::operation::create_data_repository_association::CreateDataRepositoryAssociationError::IncompatibleParameterError(inner) => {
Error::IncompatibleParameterError(inner)
}
crate::operation::create_data_repository_association::CreateDataRepositoryAssociationError::InternalServerError(inner) => {
Error::InternalServerError(inner)
}
crate::operation::create_data_repository_association::CreateDataRepositoryAssociationError::ServiceLimitExceeded(inner) => {
Error::ServiceLimitExceeded(inner)
}
crate::operation::create_data_repository_association::CreateDataRepositoryAssociationError::UnsupportedOperation(inner) => {
Error::UnsupportedOperation(inner)
}
crate::operation::create_data_repository_association::CreateDataRepositoryAssociationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_data_repository_task::CreateDataRepositoryTaskError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_data_repository_task::CreateDataRepositoryTaskError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_data_repository_task::CreateDataRepositoryTaskError> for Error {
fn from(err: crate::operation::create_data_repository_task::CreateDataRepositoryTaskError) -> Self {
match err {
crate::operation::create_data_repository_task::CreateDataRepositoryTaskError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::create_data_repository_task::CreateDataRepositoryTaskError::DataRepositoryTaskExecuting(inner) => {
Error::DataRepositoryTaskExecuting(inner)
}
crate::operation::create_data_repository_task::CreateDataRepositoryTaskError::FileSystemNotFound(inner) => {
Error::FileSystemNotFound(inner)
}
crate::operation::create_data_repository_task::CreateDataRepositoryTaskError::IncompatibleParameterError(inner) => {
Error::IncompatibleParameterError(inner)
}
crate::operation::create_data_repository_task::CreateDataRepositoryTaskError::InternalServerError(inner) => {
Error::InternalServerError(inner)
}
crate::operation::create_data_repository_task::CreateDataRepositoryTaskError::ServiceLimitExceeded(inner) => {
Error::ServiceLimitExceeded(inner)
}
crate::operation::create_data_repository_task::CreateDataRepositoryTaskError::UnsupportedOperation(inner) => {
Error::UnsupportedOperation(inner)
}
crate::operation::create_data_repository_task::CreateDataRepositoryTaskError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_file_cache::CreateFileCacheError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_file_cache::CreateFileCacheError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_file_cache::CreateFileCacheError> for Error {
fn from(err: crate::operation::create_file_cache::CreateFileCacheError) -> Self {
match err {
crate::operation::create_file_cache::CreateFileCacheError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::create_file_cache::CreateFileCacheError::IncompatibleParameterError(inner) => Error::IncompatibleParameterError(inner),
crate::operation::create_file_cache::CreateFileCacheError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::create_file_cache::CreateFileCacheError::InvalidNetworkSettings(inner) => Error::InvalidNetworkSettings(inner),
crate::operation::create_file_cache::CreateFileCacheError::InvalidPerUnitStorageThroughput(inner) => {
Error::InvalidPerUnitStorageThroughput(inner)
}
crate::operation::create_file_cache::CreateFileCacheError::MissingFileCacheConfiguration(inner) => {
Error::MissingFileCacheConfiguration(inner)
}
crate::operation::create_file_cache::CreateFileCacheError::ServiceLimitExceeded(inner) => Error::ServiceLimitExceeded(inner),
crate::operation::create_file_cache::CreateFileCacheError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_file_system::CreateFileSystemError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_file_system::CreateFileSystemError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_file_system::CreateFileSystemError> for Error {
fn from(err: crate::operation::create_file_system::CreateFileSystemError) -> Self {
match err {
crate::operation::create_file_system::CreateFileSystemError::ActiveDirectoryError(inner) => Error::ActiveDirectoryError(inner),
crate::operation::create_file_system::CreateFileSystemError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::create_file_system::CreateFileSystemError::IncompatibleParameterError(inner) => {
Error::IncompatibleParameterError(inner)
}
crate::operation::create_file_system::CreateFileSystemError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::create_file_system::CreateFileSystemError::InvalidExportPath(inner) => Error::InvalidExportPath(inner),
crate::operation::create_file_system::CreateFileSystemError::InvalidImportPath(inner) => Error::InvalidImportPath(inner),
crate::operation::create_file_system::CreateFileSystemError::InvalidNetworkSettings(inner) => Error::InvalidNetworkSettings(inner),
crate::operation::create_file_system::CreateFileSystemError::InvalidPerUnitStorageThroughput(inner) => {
Error::InvalidPerUnitStorageThroughput(inner)
}
crate::operation::create_file_system::CreateFileSystemError::MissingFileSystemConfiguration(inner) => {
Error::MissingFileSystemConfiguration(inner)
}
crate::operation::create_file_system::CreateFileSystemError::ServiceLimitExceeded(inner) => Error::ServiceLimitExceeded(inner),
crate::operation::create_file_system::CreateFileSystemError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_file_system_from_backup::CreateFileSystemFromBackupError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_file_system_from_backup::CreateFileSystemFromBackupError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_file_system_from_backup::CreateFileSystemFromBackupError> for Error {
fn from(err: crate::operation::create_file_system_from_backup::CreateFileSystemFromBackupError) -> Self {
match err {
crate::operation::create_file_system_from_backup::CreateFileSystemFromBackupError::ActiveDirectoryError(inner) => {
Error::ActiveDirectoryError(inner)
}
crate::operation::create_file_system_from_backup::CreateFileSystemFromBackupError::BackupNotFound(inner) => Error::BackupNotFound(inner),
crate::operation::create_file_system_from_backup::CreateFileSystemFromBackupError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::create_file_system_from_backup::CreateFileSystemFromBackupError::IncompatibleParameterError(inner) => {
Error::IncompatibleParameterError(inner)
}
crate::operation::create_file_system_from_backup::CreateFileSystemFromBackupError::InternalServerError(inner) => {
Error::InternalServerError(inner)
}
crate::operation::create_file_system_from_backup::CreateFileSystemFromBackupError::InvalidNetworkSettings(inner) => {
Error::InvalidNetworkSettings(inner)
}
crate::operation::create_file_system_from_backup::CreateFileSystemFromBackupError::InvalidPerUnitStorageThroughput(inner) => {
Error::InvalidPerUnitStorageThroughput(inner)
}
crate::operation::create_file_system_from_backup::CreateFileSystemFromBackupError::MissingFileSystemConfiguration(inner) => {
Error::MissingFileSystemConfiguration(inner)
}
crate::operation::create_file_system_from_backup::CreateFileSystemFromBackupError::ServiceLimitExceeded(inner) => {
Error::ServiceLimitExceeded(inner)
}
crate::operation::create_file_system_from_backup::CreateFileSystemFromBackupError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_snapshot::CreateSnapshotError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_snapshot::CreateSnapshotError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_snapshot::CreateSnapshotError> for Error {
fn from(err: crate::operation::create_snapshot::CreateSnapshotError) -> Self {
match err {
crate::operation::create_snapshot::CreateSnapshotError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::create_snapshot::CreateSnapshotError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::create_snapshot::CreateSnapshotError::ServiceLimitExceeded(inner) => Error::ServiceLimitExceeded(inner),
crate::operation::create_snapshot::CreateSnapshotError::VolumeNotFound(inner) => Error::VolumeNotFound(inner),
crate::operation::create_snapshot::CreateSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_storage_virtual_machine::CreateStorageVirtualMachineError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_storage_virtual_machine::CreateStorageVirtualMachineError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_storage_virtual_machine::CreateStorageVirtualMachineError> for Error {
fn from(err: crate::operation::create_storage_virtual_machine::CreateStorageVirtualMachineError) -> Self {
match err {
crate::operation::create_storage_virtual_machine::CreateStorageVirtualMachineError::ActiveDirectoryError(inner) => {
Error::ActiveDirectoryError(inner)
}
crate::operation::create_storage_virtual_machine::CreateStorageVirtualMachineError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::create_storage_virtual_machine::CreateStorageVirtualMachineError::FileSystemNotFound(inner) => {
Error::FileSystemNotFound(inner)
}
crate::operation::create_storage_virtual_machine::CreateStorageVirtualMachineError::IncompatibleParameterError(inner) => {
Error::IncompatibleParameterError(inner)
}
crate::operation::create_storage_virtual_machine::CreateStorageVirtualMachineError::InternalServerError(inner) => {
Error::InternalServerError(inner)
}
crate::operation::create_storage_virtual_machine::CreateStorageVirtualMachineError::ServiceLimitExceeded(inner) => {
Error::ServiceLimitExceeded(inner)
}
crate::operation::create_storage_virtual_machine::CreateStorageVirtualMachineError::UnsupportedOperation(inner) => {
Error::UnsupportedOperation(inner)
}
crate::operation::create_storage_virtual_machine::CreateStorageVirtualMachineError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_volume::CreateVolumeError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_volume::CreateVolumeError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_volume::CreateVolumeError> for Error {
fn from(err: crate::operation::create_volume::CreateVolumeError) -> Self {
match err {
crate::operation::create_volume::CreateVolumeError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::create_volume::CreateVolumeError::FileSystemNotFound(inner) => Error::FileSystemNotFound(inner),
crate::operation::create_volume::CreateVolumeError::IncompatibleParameterError(inner) => Error::IncompatibleParameterError(inner),
crate::operation::create_volume::CreateVolumeError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::create_volume::CreateVolumeError::MissingVolumeConfiguration(inner) => Error::MissingVolumeConfiguration(inner),
crate::operation::create_volume::CreateVolumeError::ServiceLimitExceeded(inner) => Error::ServiceLimitExceeded(inner),
crate::operation::create_volume::CreateVolumeError::StorageVirtualMachineNotFound(inner) => Error::StorageVirtualMachineNotFound(inner),
crate::operation::create_volume::CreateVolumeError::UnsupportedOperation(inner) => Error::UnsupportedOperation(inner),
crate::operation::create_volume::CreateVolumeError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_volume_from_backup::CreateVolumeFromBackupError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_volume_from_backup::CreateVolumeFromBackupError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_volume_from_backup::CreateVolumeFromBackupError> for Error {
fn from(err: crate::operation::create_volume_from_backup::CreateVolumeFromBackupError) -> Self {
match err {
crate::operation::create_volume_from_backup::CreateVolumeFromBackupError::BackupNotFound(inner) => Error::BackupNotFound(inner),
crate::operation::create_volume_from_backup::CreateVolumeFromBackupError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::create_volume_from_backup::CreateVolumeFromBackupError::FileSystemNotFound(inner) => Error::FileSystemNotFound(inner),
crate::operation::create_volume_from_backup::CreateVolumeFromBackupError::IncompatibleParameterError(inner) => {
Error::IncompatibleParameterError(inner)
}
crate::operation::create_volume_from_backup::CreateVolumeFromBackupError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::create_volume_from_backup::CreateVolumeFromBackupError::MissingVolumeConfiguration(inner) => {
Error::MissingVolumeConfiguration(inner)
}
crate::operation::create_volume_from_backup::CreateVolumeFromBackupError::ServiceLimitExceeded(inner) => {
Error::ServiceLimitExceeded(inner)
}
crate::operation::create_volume_from_backup::CreateVolumeFromBackupError::StorageVirtualMachineNotFound(inner) => {
Error::StorageVirtualMachineNotFound(inner)
}
crate::operation::create_volume_from_backup::CreateVolumeFromBackupError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_backup::DeleteBackupError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_backup::DeleteBackupError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_backup::DeleteBackupError> for Error {
fn from(err: crate::operation::delete_backup::DeleteBackupError) -> Self {
match err {
crate::operation::delete_backup::DeleteBackupError::BackupBeingCopied(inner) => Error::BackupBeingCopied(inner),
crate::operation::delete_backup::DeleteBackupError::BackupInProgress(inner) => Error::BackupInProgress(inner),
crate::operation::delete_backup::DeleteBackupError::BackupNotFound(inner) => Error::BackupNotFound(inner),
crate::operation::delete_backup::DeleteBackupError::BackupRestoring(inner) => Error::BackupRestoring(inner),
crate::operation::delete_backup::DeleteBackupError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::delete_backup::DeleteBackupError::IncompatibleParameterError(inner) => Error::IncompatibleParameterError(inner),
crate::operation::delete_backup::DeleteBackupError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::delete_backup::DeleteBackupError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::delete_data_repository_association::DeleteDataRepositoryAssociationError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::delete_data_repository_association::DeleteDataRepositoryAssociationError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_data_repository_association::DeleteDataRepositoryAssociationError> for Error {
fn from(err: crate::operation::delete_data_repository_association::DeleteDataRepositoryAssociationError) -> Self {
match err {
crate::operation::delete_data_repository_association::DeleteDataRepositoryAssociationError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::delete_data_repository_association::DeleteDataRepositoryAssociationError::DataRepositoryAssociationNotFound(inner) => {
Error::DataRepositoryAssociationNotFound(inner)
}
crate::operation::delete_data_repository_association::DeleteDataRepositoryAssociationError::IncompatibleParameterError(inner) => {
Error::IncompatibleParameterError(inner)
}
crate::operation::delete_data_repository_association::DeleteDataRepositoryAssociationError::InternalServerError(inner) => {
Error::InternalServerError(inner)
}
crate::operation::delete_data_repository_association::DeleteDataRepositoryAssociationError::ServiceLimitExceeded(inner) => {
Error::ServiceLimitExceeded(inner)
}
crate::operation::delete_data_repository_association::DeleteDataRepositoryAssociationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_file_cache::DeleteFileCacheError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_file_cache::DeleteFileCacheError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_file_cache::DeleteFileCacheError> for Error {
fn from(err: crate::operation::delete_file_cache::DeleteFileCacheError) -> Self {
match err {
crate::operation::delete_file_cache::DeleteFileCacheError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::delete_file_cache::DeleteFileCacheError::FileCacheNotFound(inner) => Error::FileCacheNotFound(inner),
crate::operation::delete_file_cache::DeleteFileCacheError::IncompatibleParameterError(inner) => Error::IncompatibleParameterError(inner),
crate::operation::delete_file_cache::DeleteFileCacheError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::delete_file_cache::DeleteFileCacheError::ServiceLimitExceeded(inner) => Error::ServiceLimitExceeded(inner),
crate::operation::delete_file_cache::DeleteFileCacheError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_file_system::DeleteFileSystemError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_file_system::DeleteFileSystemError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_file_system::DeleteFileSystemError> for Error {
fn from(err: crate::operation::delete_file_system::DeleteFileSystemError) -> Self {
match err {
crate::operation::delete_file_system::DeleteFileSystemError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::delete_file_system::DeleteFileSystemError::FileSystemNotFound(inner) => Error::FileSystemNotFound(inner),
crate::operation::delete_file_system::DeleteFileSystemError::IncompatibleParameterError(inner) => {
Error::IncompatibleParameterError(inner)
}
crate::operation::delete_file_system::DeleteFileSystemError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::delete_file_system::DeleteFileSystemError::ServiceLimitExceeded(inner) => Error::ServiceLimitExceeded(inner),
crate::operation::delete_file_system::DeleteFileSystemError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_snapshot::DeleteSnapshotError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_snapshot::DeleteSnapshotError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_snapshot::DeleteSnapshotError> for Error {
fn from(err: crate::operation::delete_snapshot::DeleteSnapshotError) -> Self {
match err {
crate::operation::delete_snapshot::DeleteSnapshotError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::delete_snapshot::DeleteSnapshotError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::delete_snapshot::DeleteSnapshotError::SnapshotNotFound(inner) => Error::SnapshotNotFound(inner),
crate::operation::delete_snapshot::DeleteSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_storage_virtual_machine::DeleteStorageVirtualMachineError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::delete_storage_virtual_machine::DeleteStorageVirtualMachineError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_storage_virtual_machine::DeleteStorageVirtualMachineError> for Error {
fn from(err: crate::operation::delete_storage_virtual_machine::DeleteStorageVirtualMachineError) -> Self {
match err {
crate::operation::delete_storage_virtual_machine::DeleteStorageVirtualMachineError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::delete_storage_virtual_machine::DeleteStorageVirtualMachineError::IncompatibleParameterError(inner) => {
Error::IncompatibleParameterError(inner)
}
crate::operation::delete_storage_virtual_machine::DeleteStorageVirtualMachineError::InternalServerError(inner) => {
Error::InternalServerError(inner)
}
crate::operation::delete_storage_virtual_machine::DeleteStorageVirtualMachineError::StorageVirtualMachineNotFound(inner) => {
Error::StorageVirtualMachineNotFound(inner)
}
crate::operation::delete_storage_virtual_machine::DeleteStorageVirtualMachineError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_volume::DeleteVolumeError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_volume::DeleteVolumeError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_volume::DeleteVolumeError> for Error {
fn from(err: crate::operation::delete_volume::DeleteVolumeError) -> Self {
match err {
crate::operation::delete_volume::DeleteVolumeError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::delete_volume::DeleteVolumeError::IncompatibleParameterError(inner) => Error::IncompatibleParameterError(inner),
crate::operation::delete_volume::DeleteVolumeError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::delete_volume::DeleteVolumeError::ServiceLimitExceeded(inner) => Error::ServiceLimitExceeded(inner),
crate::operation::delete_volume::DeleteVolumeError::VolumeNotFound(inner) => Error::VolumeNotFound(inner),
crate::operation::delete_volume::DeleteVolumeError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_backups::DescribeBackupsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_backups::DescribeBackupsError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::describe_backups::DescribeBackupsError> for Error {
fn from(err: crate::operation::describe_backups::DescribeBackupsError) -> Self {
match err {
crate::operation::describe_backups::DescribeBackupsError::BackupNotFound(inner) => Error::BackupNotFound(inner),
crate::operation::describe_backups::DescribeBackupsError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::describe_backups::DescribeBackupsError::FileSystemNotFound(inner) => Error::FileSystemNotFound(inner),
crate::operation::describe_backups::DescribeBackupsError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::describe_backups::DescribeBackupsError::VolumeNotFound(inner) => Error::VolumeNotFound(inner),
crate::operation::describe_backups::DescribeBackupsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_data_repository_associations::DescribeDataRepositoryAssociationsError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_data_repository_associations::DescribeDataRepositoryAssociationsError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::describe_data_repository_associations::DescribeDataRepositoryAssociationsError> for Error {
fn from(err: crate::operation::describe_data_repository_associations::DescribeDataRepositoryAssociationsError) -> Self {
match err {
crate::operation::describe_data_repository_associations::DescribeDataRepositoryAssociationsError::BadRequest(inner) => {
Error::BadRequest(inner)
}
crate::operation::describe_data_repository_associations::DescribeDataRepositoryAssociationsError::DataRepositoryAssociationNotFound(
inner,
) => Error::DataRepositoryAssociationNotFound(inner),
crate::operation::describe_data_repository_associations::DescribeDataRepositoryAssociationsError::FileSystemNotFound(inner) => {
Error::FileSystemNotFound(inner)
}
crate::operation::describe_data_repository_associations::DescribeDataRepositoryAssociationsError::InternalServerError(inner) => {
Error::InternalServerError(inner)
}
crate::operation::describe_data_repository_associations::DescribeDataRepositoryAssociationsError::InvalidDataRepositoryType(inner) => {
Error::InvalidDataRepositoryType(inner)
}
crate::operation::describe_data_repository_associations::DescribeDataRepositoryAssociationsError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R>
From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_data_repository_tasks::DescribeDataRepositoryTasksError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_data_repository_tasks::DescribeDataRepositoryTasksError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::describe_data_repository_tasks::DescribeDataRepositoryTasksError> for Error {
fn from(err: crate::operation::describe_data_repository_tasks::DescribeDataRepositoryTasksError) -> Self {
match err {
crate::operation::describe_data_repository_tasks::DescribeDataRepositoryTasksError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::describe_data_repository_tasks::DescribeDataRepositoryTasksError::DataRepositoryTaskNotFound(inner) => {
Error::DataRepositoryTaskNotFound(inner)
}
crate::operation::describe_data_repository_tasks::DescribeDataRepositoryTasksError::FileSystemNotFound(inner) => {
Error::FileSystemNotFound(inner)
}
crate::operation::describe_data_repository_tasks::DescribeDataRepositoryTasksError::InternalServerError(inner) => {
Error::InternalServerError(inner)
}
crate::operation::describe_data_repository_tasks::DescribeDataRepositoryTasksError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_file_caches::DescribeFileCachesError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_file_caches::DescribeFileCachesError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::describe_file_caches::DescribeFileCachesError> for Error {
fn from(err: crate::operation::describe_file_caches::DescribeFileCachesError) -> Self {
match err {
crate::operation::describe_file_caches::DescribeFileCachesError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::describe_file_caches::DescribeFileCachesError::FileCacheNotFound(inner) => Error::FileCacheNotFound(inner),
crate::operation::describe_file_caches::DescribeFileCachesError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::describe_file_caches::DescribeFileCachesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_file_system_aliases::DescribeFileSystemAliasesError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_file_system_aliases::DescribeFileSystemAliasesError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::describe_file_system_aliases::DescribeFileSystemAliasesError> for Error {
fn from(err: crate::operation::describe_file_system_aliases::DescribeFileSystemAliasesError) -> Self {
match err {
crate::operation::describe_file_system_aliases::DescribeFileSystemAliasesError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::describe_file_system_aliases::DescribeFileSystemAliasesError::FileSystemNotFound(inner) => {
Error::FileSystemNotFound(inner)
}
crate::operation::describe_file_system_aliases::DescribeFileSystemAliasesError::InternalServerError(inner) => {
Error::InternalServerError(inner)
}
crate::operation::describe_file_system_aliases::DescribeFileSystemAliasesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_file_systems::DescribeFileSystemsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_file_systems::DescribeFileSystemsError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::describe_file_systems::DescribeFileSystemsError> for Error {
fn from(err: crate::operation::describe_file_systems::DescribeFileSystemsError) -> Self {
match err {
crate::operation::describe_file_systems::DescribeFileSystemsError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::describe_file_systems::DescribeFileSystemsError::FileSystemNotFound(inner) => Error::FileSystemNotFound(inner),
crate::operation::describe_file_systems::DescribeFileSystemsError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::describe_file_systems::DescribeFileSystemsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_shared_vpc_configuration::DescribeSharedVpcConfigurationError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_shared_vpc_configuration::DescribeSharedVpcConfigurationError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::describe_shared_vpc_configuration::DescribeSharedVpcConfigurationError> for Error {
fn from(err: crate::operation::describe_shared_vpc_configuration::DescribeSharedVpcConfigurationError) -> Self {
match err {
crate::operation::describe_shared_vpc_configuration::DescribeSharedVpcConfigurationError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::describe_shared_vpc_configuration::DescribeSharedVpcConfigurationError::InternalServerError(inner) => {
Error::InternalServerError(inner)
}
crate::operation::describe_shared_vpc_configuration::DescribeSharedVpcConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_snapshots::DescribeSnapshotsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_snapshots::DescribeSnapshotsError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::describe_snapshots::DescribeSnapshotsError> for Error {
fn from(err: crate::operation::describe_snapshots::DescribeSnapshotsError) -> Self {
match err {
crate::operation::describe_snapshots::DescribeSnapshotsError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::describe_snapshots::DescribeSnapshotsError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::describe_snapshots::DescribeSnapshotsError::SnapshotNotFound(inner) => Error::SnapshotNotFound(inner),
crate::operation::describe_snapshots::DescribeSnapshotsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_storage_virtual_machines::DescribeStorageVirtualMachinesError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_storage_virtual_machines::DescribeStorageVirtualMachinesError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::describe_storage_virtual_machines::DescribeStorageVirtualMachinesError> for Error {
fn from(err: crate::operation::describe_storage_virtual_machines::DescribeStorageVirtualMachinesError) -> Self {
match err {
crate::operation::describe_storage_virtual_machines::DescribeStorageVirtualMachinesError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::describe_storage_virtual_machines::DescribeStorageVirtualMachinesError::InternalServerError(inner) => {
Error::InternalServerError(inner)
}
crate::operation::describe_storage_virtual_machines::DescribeStorageVirtualMachinesError::StorageVirtualMachineNotFound(inner) => {
Error::StorageVirtualMachineNotFound(inner)
}
crate::operation::describe_storage_virtual_machines::DescribeStorageVirtualMachinesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_volumes::DescribeVolumesError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_volumes::DescribeVolumesError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::describe_volumes::DescribeVolumesError> for Error {
fn from(err: crate::operation::describe_volumes::DescribeVolumesError) -> Self {
match err {
crate::operation::describe_volumes::DescribeVolumesError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::describe_volumes::DescribeVolumesError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::describe_volumes::DescribeVolumesError::VolumeNotFound(inner) => Error::VolumeNotFound(inner),
crate::operation::describe_volumes::DescribeVolumesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_file_system_aliases::DisassociateFileSystemAliasesError, R>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::disassociate_file_system_aliases::DisassociateFileSystemAliasesError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::disassociate_file_system_aliases::DisassociateFileSystemAliasesError> for Error {
fn from(err: crate::operation::disassociate_file_system_aliases::DisassociateFileSystemAliasesError) -> Self {
match err {
crate::operation::disassociate_file_system_aliases::DisassociateFileSystemAliasesError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::disassociate_file_system_aliases::DisassociateFileSystemAliasesError::FileSystemNotFound(inner) => {
Error::FileSystemNotFound(inner)
}
crate::operation::disassociate_file_system_aliases::DisassociateFileSystemAliasesError::InternalServerError(inner) => {
Error::InternalServerError(inner)
}
crate::operation::disassociate_file_system_aliases::DisassociateFileSystemAliasesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
match err {
crate::operation::list_tags_for_resource::ListTagsForResourceError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::list_tags_for_resource::ListTagsForResourceError::NotServiceResourceError(inner) => {
Error::NotServiceResourceError(inner)
}
crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceDoesNotSupportTagging(inner) => {
Error::ResourceDoesNotSupportTagging(inner)
}
crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::release_file_system_nfs_v3_locks::ReleaseFileSystemNfsV3LocksError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::release_file_system_nfs_v3_locks::ReleaseFileSystemNfsV3LocksError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::release_file_system_nfs_v3_locks::ReleaseFileSystemNfsV3LocksError> for Error {
fn from(err: crate::operation::release_file_system_nfs_v3_locks::ReleaseFileSystemNfsV3LocksError) -> Self {
match err {
crate::operation::release_file_system_nfs_v3_locks::ReleaseFileSystemNfsV3LocksError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::release_file_system_nfs_v3_locks::ReleaseFileSystemNfsV3LocksError::FileSystemNotFound(inner) => {
Error::FileSystemNotFound(inner)
}
crate::operation::release_file_system_nfs_v3_locks::ReleaseFileSystemNfsV3LocksError::IncompatibleParameterError(inner) => {
Error::IncompatibleParameterError(inner)
}
crate::operation::release_file_system_nfs_v3_locks::ReleaseFileSystemNfsV3LocksError::InternalServerError(inner) => {
Error::InternalServerError(inner)
}
crate::operation::release_file_system_nfs_v3_locks::ReleaseFileSystemNfsV3LocksError::ServiceLimitExceeded(inner) => {
Error::ServiceLimitExceeded(inner)
}
crate::operation::release_file_system_nfs_v3_locks::ReleaseFileSystemNfsV3LocksError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_volume_from_snapshot::RestoreVolumeFromSnapshotError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_volume_from_snapshot::RestoreVolumeFromSnapshotError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::restore_volume_from_snapshot::RestoreVolumeFromSnapshotError> for Error {
fn from(err: crate::operation::restore_volume_from_snapshot::RestoreVolumeFromSnapshotError) -> Self {
match err {
crate::operation::restore_volume_from_snapshot::RestoreVolumeFromSnapshotError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::restore_volume_from_snapshot::RestoreVolumeFromSnapshotError::InternalServerError(inner) => {
Error::InternalServerError(inner)
}
crate::operation::restore_volume_from_snapshot::RestoreVolumeFromSnapshotError::VolumeNotFound(inner) => Error::VolumeNotFound(inner),
crate::operation::restore_volume_from_snapshot::RestoreVolumeFromSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::start_misconfigured_state_recovery::StartMisconfiguredStateRecoveryError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::start_misconfigured_state_recovery::StartMisconfiguredStateRecoveryError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::start_misconfigured_state_recovery::StartMisconfiguredStateRecoveryError> for Error {
fn from(err: crate::operation::start_misconfigured_state_recovery::StartMisconfiguredStateRecoveryError) -> Self {
match err {
crate::operation::start_misconfigured_state_recovery::StartMisconfiguredStateRecoveryError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::start_misconfigured_state_recovery::StartMisconfiguredStateRecoveryError::FileSystemNotFound(inner) => {
Error::FileSystemNotFound(inner)
}
crate::operation::start_misconfigured_state_recovery::StartMisconfiguredStateRecoveryError::InternalServerError(inner) => {
Error::InternalServerError(inner)
}
crate::operation::start_misconfigured_state_recovery::StartMisconfiguredStateRecoveryError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::tag_resource::TagResourceError> for Error {
fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
match err {
crate::operation::tag_resource::TagResourceError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::tag_resource::TagResourceError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::tag_resource::TagResourceError::NotServiceResourceError(inner) => Error::NotServiceResourceError(inner),
crate::operation::tag_resource::TagResourceError::ResourceDoesNotSupportTagging(inner) => Error::ResourceDoesNotSupportTagging(inner),
crate::operation::tag_resource::TagResourceError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::untag_resource::UntagResourceError> for Error {
fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
match err {
crate::operation::untag_resource::UntagResourceError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::untag_resource::UntagResourceError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::untag_resource::UntagResourceError::NotServiceResourceError(inner) => Error::NotServiceResourceError(inner),
crate::operation::untag_resource::UntagResourceError::ResourceDoesNotSupportTagging(inner) => Error::ResourceDoesNotSupportTagging(inner),
crate::operation::untag_resource::UntagResourceError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_data_repository_association::UpdateDataRepositoryAssociationError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_data_repository_association::UpdateDataRepositoryAssociationError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_data_repository_association::UpdateDataRepositoryAssociationError> for Error {
fn from(err: crate::operation::update_data_repository_association::UpdateDataRepositoryAssociationError) -> Self {
match err {
crate::operation::update_data_repository_association::UpdateDataRepositoryAssociationError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::update_data_repository_association::UpdateDataRepositoryAssociationError::DataRepositoryAssociationNotFound(inner) => {
Error::DataRepositoryAssociationNotFound(inner)
}
crate::operation::update_data_repository_association::UpdateDataRepositoryAssociationError::IncompatibleParameterError(inner) => {
Error::IncompatibleParameterError(inner)
}
crate::operation::update_data_repository_association::UpdateDataRepositoryAssociationError::InternalServerError(inner) => {
Error::InternalServerError(inner)
}
crate::operation::update_data_repository_association::UpdateDataRepositoryAssociationError::ServiceLimitExceeded(inner) => {
Error::ServiceLimitExceeded(inner)
}
crate::operation::update_data_repository_association::UpdateDataRepositoryAssociationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_file_cache::UpdateFileCacheError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_file_cache::UpdateFileCacheError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_file_cache::UpdateFileCacheError> for Error {
fn from(err: crate::operation::update_file_cache::UpdateFileCacheError) -> Self {
match err {
crate::operation::update_file_cache::UpdateFileCacheError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::update_file_cache::UpdateFileCacheError::FileCacheNotFound(inner) => Error::FileCacheNotFound(inner),
crate::operation::update_file_cache::UpdateFileCacheError::IncompatibleParameterError(inner) => Error::IncompatibleParameterError(inner),
crate::operation::update_file_cache::UpdateFileCacheError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::update_file_cache::UpdateFileCacheError::MissingFileCacheConfiguration(inner) => {
Error::MissingFileCacheConfiguration(inner)
}
crate::operation::update_file_cache::UpdateFileCacheError::ServiceLimitExceeded(inner) => Error::ServiceLimitExceeded(inner),
crate::operation::update_file_cache::UpdateFileCacheError::UnsupportedOperation(inner) => Error::UnsupportedOperation(inner),
crate::operation::update_file_cache::UpdateFileCacheError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_file_system::UpdateFileSystemError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_file_system::UpdateFileSystemError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_file_system::UpdateFileSystemError> for Error {
fn from(err: crate::operation::update_file_system::UpdateFileSystemError) -> Self {
match err {
crate::operation::update_file_system::UpdateFileSystemError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::update_file_system::UpdateFileSystemError::FileSystemNotFound(inner) => Error::FileSystemNotFound(inner),
crate::operation::update_file_system::UpdateFileSystemError::IncompatibleParameterError(inner) => {
Error::IncompatibleParameterError(inner)
}
crate::operation::update_file_system::UpdateFileSystemError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::update_file_system::UpdateFileSystemError::InvalidNetworkSettings(inner) => Error::InvalidNetworkSettings(inner),
crate::operation::update_file_system::UpdateFileSystemError::MissingFileSystemConfiguration(inner) => {
Error::MissingFileSystemConfiguration(inner)
}
crate::operation::update_file_system::UpdateFileSystemError::ServiceLimitExceeded(inner) => Error::ServiceLimitExceeded(inner),
crate::operation::update_file_system::UpdateFileSystemError::UnsupportedOperation(inner) => Error::UnsupportedOperation(inner),
crate::operation::update_file_system::UpdateFileSystemError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_shared_vpc_configuration::UpdateSharedVpcConfigurationError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_shared_vpc_configuration::UpdateSharedVpcConfigurationError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_shared_vpc_configuration::UpdateSharedVpcConfigurationError> for Error {
fn from(err: crate::operation::update_shared_vpc_configuration::UpdateSharedVpcConfigurationError) -> Self {
match err {
crate::operation::update_shared_vpc_configuration::UpdateSharedVpcConfigurationError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::update_shared_vpc_configuration::UpdateSharedVpcConfigurationError::IncompatibleParameterError(inner) => {
Error::IncompatibleParameterError(inner)
}
crate::operation::update_shared_vpc_configuration::UpdateSharedVpcConfigurationError::InternalServerError(inner) => {
Error::InternalServerError(inner)
}
crate::operation::update_shared_vpc_configuration::UpdateSharedVpcConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_snapshot::UpdateSnapshotError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_snapshot::UpdateSnapshotError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_snapshot::UpdateSnapshotError> for Error {
fn from(err: crate::operation::update_snapshot::UpdateSnapshotError) -> Self {
match err {
crate::operation::update_snapshot::UpdateSnapshotError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::update_snapshot::UpdateSnapshotError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::update_snapshot::UpdateSnapshotError::SnapshotNotFound(inner) => Error::SnapshotNotFound(inner),
crate::operation::update_snapshot::UpdateSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_storage_virtual_machine::UpdateStorageVirtualMachineError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_storage_virtual_machine::UpdateStorageVirtualMachineError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_storage_virtual_machine::UpdateStorageVirtualMachineError> for Error {
fn from(err: crate::operation::update_storage_virtual_machine::UpdateStorageVirtualMachineError) -> Self {
match err {
crate::operation::update_storage_virtual_machine::UpdateStorageVirtualMachineError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::update_storage_virtual_machine::UpdateStorageVirtualMachineError::IncompatibleParameterError(inner) => {
Error::IncompatibleParameterError(inner)
}
crate::operation::update_storage_virtual_machine::UpdateStorageVirtualMachineError::InternalServerError(inner) => {
Error::InternalServerError(inner)
}
crate::operation::update_storage_virtual_machine::UpdateStorageVirtualMachineError::StorageVirtualMachineNotFound(inner) => {
Error::StorageVirtualMachineNotFound(inner)
}
crate::operation::update_storage_virtual_machine::UpdateStorageVirtualMachineError::UnsupportedOperation(inner) => {
Error::UnsupportedOperation(inner)
}
crate::operation::update_storage_virtual_machine::UpdateStorageVirtualMachineError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_volume::UpdateVolumeError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_volume::UpdateVolumeError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_volume::UpdateVolumeError> for Error {
fn from(err: crate::operation::update_volume::UpdateVolumeError) -> Self {
match err {
crate::operation::update_volume::UpdateVolumeError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::update_volume::UpdateVolumeError::IncompatibleParameterError(inner) => Error::IncompatibleParameterError(inner),
crate::operation::update_volume::UpdateVolumeError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::update_volume::UpdateVolumeError::MissingVolumeConfiguration(inner) => Error::MissingVolumeConfiguration(inner),
crate::operation::update_volume::UpdateVolumeError::VolumeNotFound(inner) => Error::VolumeNotFound(inner),
crate::operation::update_volume::UpdateVolumeError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl ::std::error::Error for Error {
fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
match self {
Error::ActiveDirectoryError(inner) => inner.source(),
Error::BackupBeingCopied(inner) => inner.source(),
Error::BackupInProgress(inner) => inner.source(),
Error::BackupNotFound(inner) => inner.source(),
Error::BackupRestoring(inner) => inner.source(),
Error::BadRequest(inner) => inner.source(),
Error::DataRepositoryAssociationNotFound(inner) => inner.source(),
Error::DataRepositoryTaskEnded(inner) => inner.source(),
Error::DataRepositoryTaskExecuting(inner) => inner.source(),
Error::DataRepositoryTaskNotFound(inner) => inner.source(),
Error::FileCacheNotFound(inner) => inner.source(),
Error::FileSystemNotFound(inner) => inner.source(),
Error::IncompatibleParameterError(inner) => inner.source(),
Error::IncompatibleRegionForMultiAz(inner) => inner.source(),
Error::InternalServerError(inner) => inner.source(),
Error::InvalidDataRepositoryType(inner) => inner.source(),
Error::InvalidDestinationKmsKey(inner) => inner.source(),
Error::InvalidExportPath(inner) => inner.source(),
Error::InvalidImportPath(inner) => inner.source(),
Error::InvalidNetworkSettings(inner) => inner.source(),
Error::InvalidPerUnitStorageThroughput(inner) => inner.source(),
Error::InvalidRegion(inner) => inner.source(),
Error::InvalidSourceKmsKey(inner) => inner.source(),
Error::MissingFileCacheConfiguration(inner) => inner.source(),
Error::MissingFileSystemConfiguration(inner) => inner.source(),
Error::MissingVolumeConfiguration(inner) => inner.source(),
Error::NotServiceResourceError(inner) => inner.source(),
Error::ResourceDoesNotSupportTagging(inner) => inner.source(),
Error::ResourceNotFound(inner) => inner.source(),
Error::ServiceLimitExceeded(inner) => inner.source(),
Error::SnapshotNotFound(inner) => inner.source(),
Error::SourceBackupUnavailable(inner) => inner.source(),
Error::StorageVirtualMachineNotFound(inner) => inner.source(),
Error::UnsupportedOperation(inner) => inner.source(),
Error::VolumeNotFound(inner) => inner.source(),
Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
}
}
}
impl ::aws_types::request_id::RequestId for Error {
fn request_id(&self) -> Option<&str> {
match self {
Self::ActiveDirectoryError(e) => e.request_id(),
Self::BackupBeingCopied(e) => e.request_id(),
Self::BackupInProgress(e) => e.request_id(),
Self::BackupNotFound(e) => e.request_id(),
Self::BackupRestoring(e) => e.request_id(),
Self::BadRequest(e) => e.request_id(),
Self::DataRepositoryAssociationNotFound(e) => e.request_id(),
Self::DataRepositoryTaskEnded(e) => e.request_id(),
Self::DataRepositoryTaskExecuting(e) => e.request_id(),
Self::DataRepositoryTaskNotFound(e) => e.request_id(),
Self::FileCacheNotFound(e) => e.request_id(),
Self::FileSystemNotFound(e) => e.request_id(),
Self::IncompatibleParameterError(e) => e.request_id(),
Self::IncompatibleRegionForMultiAz(e) => e.request_id(),
Self::InternalServerError(e) => e.request_id(),
Self::InvalidDataRepositoryType(e) => e.request_id(),
Self::InvalidDestinationKmsKey(e) => e.request_id(),
Self::InvalidExportPath(e) => e.request_id(),
Self::InvalidImportPath(e) => e.request_id(),
Self::InvalidNetworkSettings(e) => e.request_id(),
Self::InvalidPerUnitStorageThroughput(e) => e.request_id(),
Self::InvalidRegion(e) => e.request_id(),
Self::InvalidSourceKmsKey(e) => e.request_id(),
Self::MissingFileCacheConfiguration(e) => e.request_id(),
Self::MissingFileSystemConfiguration(e) => e.request_id(),
Self::MissingVolumeConfiguration(e) => e.request_id(),
Self::NotServiceResourceError(e) => e.request_id(),
Self::ResourceDoesNotSupportTagging(e) => e.request_id(),
Self::ResourceNotFound(e) => e.request_id(),
Self::ServiceLimitExceeded(e) => e.request_id(),
Self::SnapshotNotFound(e) => e.request_id(),
Self::SourceBackupUnavailable(e) => e.request_id(),
Self::StorageVirtualMachineNotFound(e) => e.request_id(),
Self::UnsupportedOperation(e) => e.request_id(),
Self::VolumeNotFound(e) => e.request_id(),
Self::Unhandled(e) => e.meta.request_id(),
}
}
}