#[non_exhaustive]
#[derive(::std::fmt::Debug)]
pub enum Error {
AccessPointAlreadyExists(crate::types::error::AccessPointAlreadyExists),
AccessPointLimitExceeded(crate::types::error::AccessPointLimitExceeded),
AccessPointNotFound(crate::types::error::AccessPointNotFound),
AvailabilityZonesMismatch(crate::types::error::AvailabilityZonesMismatch),
BadRequest(crate::types::error::BadRequest),
DependencyTimeout(crate::types::error::DependencyTimeout),
FileSystemAlreadyExists(crate::types::error::FileSystemAlreadyExists),
FileSystemInUse(crate::types::error::FileSystemInUse),
FileSystemLimitExceeded(crate::types::error::FileSystemLimitExceeded),
FileSystemNotFound(crate::types::error::FileSystemNotFound),
IncorrectFileSystemLifeCycleState(crate::types::error::IncorrectFileSystemLifeCycleState),
IncorrectMountTargetState(crate::types::error::IncorrectMountTargetState),
InsufficientThroughputCapacity(crate::types::error::InsufficientThroughputCapacity),
InternalServerError(crate::types::error::InternalServerError),
InvalidPolicyException(crate::types::error::InvalidPolicyException),
IpAddressInUse(crate::types::error::IpAddressInUse),
MountTargetConflict(crate::types::error::MountTargetConflict),
MountTargetNotFound(crate::types::error::MountTargetNotFound),
NetworkInterfaceLimitExceeded(crate::types::error::NetworkInterfaceLimitExceeded),
NoFreeAddressesInSubnet(crate::types::error::NoFreeAddressesInSubnet),
PolicyNotFound(crate::types::error::PolicyNotFound),
ReplicationNotFound(crate::types::error::ReplicationNotFound),
SecurityGroupLimitExceeded(crate::types::error::SecurityGroupLimitExceeded),
SecurityGroupNotFound(crate::types::error::SecurityGroupNotFound),
SubnetNotFound(crate::types::error::SubnetNotFound),
ThrottlingException(crate::types::error::ThrottlingException),
ThroughputLimitExceeded(crate::types::error::ThroughputLimitExceeded),
TooManyRequests(crate::types::error::TooManyRequests),
UnsupportedAvailabilityZone(crate::types::error::UnsupportedAvailabilityZone),
ValidationException(crate::types::error::ValidationException),
Unhandled(::aws_smithy_types::error::Unhandled),
}
impl ::std::fmt::Display for Error {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
Error::AccessPointAlreadyExists(inner) => inner.fmt(f),
Error::AccessPointLimitExceeded(inner) => inner.fmt(f),
Error::AccessPointNotFound(inner) => inner.fmt(f),
Error::AvailabilityZonesMismatch(inner) => inner.fmt(f),
Error::BadRequest(inner) => inner.fmt(f),
Error::DependencyTimeout(inner) => inner.fmt(f),
Error::FileSystemAlreadyExists(inner) => inner.fmt(f),
Error::FileSystemInUse(inner) => inner.fmt(f),
Error::FileSystemLimitExceeded(inner) => inner.fmt(f),
Error::FileSystemNotFound(inner) => inner.fmt(f),
Error::IncorrectFileSystemLifeCycleState(inner) => inner.fmt(f),
Error::IncorrectMountTargetState(inner) => inner.fmt(f),
Error::InsufficientThroughputCapacity(inner) => inner.fmt(f),
Error::InternalServerError(inner) => inner.fmt(f),
Error::InvalidPolicyException(inner) => inner.fmt(f),
Error::IpAddressInUse(inner) => inner.fmt(f),
Error::MountTargetConflict(inner) => inner.fmt(f),
Error::MountTargetNotFound(inner) => inner.fmt(f),
Error::NetworkInterfaceLimitExceeded(inner) => inner.fmt(f),
Error::NoFreeAddressesInSubnet(inner) => inner.fmt(f),
Error::PolicyNotFound(inner) => inner.fmt(f),
Error::ReplicationNotFound(inner) => inner.fmt(f),
Error::SecurityGroupLimitExceeded(inner) => inner.fmt(f),
Error::SecurityGroupNotFound(inner) => inner.fmt(f),
Error::SubnetNotFound(inner) => inner.fmt(f),
Error::ThrottlingException(inner) => inner.fmt(f),
Error::ThroughputLimitExceeded(inner) => inner.fmt(f),
Error::TooManyRequests(inner) => inner.fmt(f),
Error::UnsupportedAvailabilityZone(inner) => inner.fmt(f),
Error::ValidationException(inner) => inner.fmt(f),
Error::Unhandled(inner) => inner.fmt(f),
}
}
}
impl From<::aws_smithy_types::error::operation::BuildError> for Error {
fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
Error::Unhandled(::aws_smithy_types::error::Unhandled::builder().source(value).build())
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_access_point::CreateAccessPointError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_access_point::CreateAccessPointError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::create_access_point::CreateAccessPointError> for Error {
fn from(err: crate::operation::create_access_point::CreateAccessPointError) -> Self {
match err {
crate::operation::create_access_point::CreateAccessPointError::AccessPointAlreadyExists(inner) => Error::AccessPointAlreadyExists(inner),
crate::operation::create_access_point::CreateAccessPointError::AccessPointLimitExceeded(inner) => Error::AccessPointLimitExceeded(inner),
crate::operation::create_access_point::CreateAccessPointError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::create_access_point::CreateAccessPointError::FileSystemNotFound(inner) => Error::FileSystemNotFound(inner),
crate::operation::create_access_point::CreateAccessPointError::IncorrectFileSystemLifeCycleState(inner) => {
Error::IncorrectFileSystemLifeCycleState(inner)
}
crate::operation::create_access_point::CreateAccessPointError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::create_access_point::CreateAccessPointError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::create_access_point::CreateAccessPointError::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(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
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::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::create_file_system::CreateFileSystemError::FileSystemAlreadyExists(inner) => Error::FileSystemAlreadyExists(inner),
crate::operation::create_file_system::CreateFileSystemError::FileSystemLimitExceeded(inner) => Error::FileSystemLimitExceeded(inner),
crate::operation::create_file_system::CreateFileSystemError::InsufficientThroughputCapacity(inner) => {
Error::InsufficientThroughputCapacity(inner)
}
crate::operation::create_file_system::CreateFileSystemError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::create_file_system::CreateFileSystemError::ThroughputLimitExceeded(inner) => Error::ThroughputLimitExceeded(inner),
crate::operation::create_file_system::CreateFileSystemError::UnsupportedAvailabilityZone(inner) => {
Error::UnsupportedAvailabilityZone(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_mount_target::CreateMountTargetError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_mount_target::CreateMountTargetError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::create_mount_target::CreateMountTargetError> for Error {
fn from(err: crate::operation::create_mount_target::CreateMountTargetError) -> Self {
match err {
crate::operation::create_mount_target::CreateMountTargetError::AvailabilityZonesMismatch(inner) => {
Error::AvailabilityZonesMismatch(inner)
}
crate::operation::create_mount_target::CreateMountTargetError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::create_mount_target::CreateMountTargetError::FileSystemNotFound(inner) => Error::FileSystemNotFound(inner),
crate::operation::create_mount_target::CreateMountTargetError::IncorrectFileSystemLifeCycleState(inner) => {
Error::IncorrectFileSystemLifeCycleState(inner)
}
crate::operation::create_mount_target::CreateMountTargetError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::create_mount_target::CreateMountTargetError::IpAddressInUse(inner) => Error::IpAddressInUse(inner),
crate::operation::create_mount_target::CreateMountTargetError::MountTargetConflict(inner) => Error::MountTargetConflict(inner),
crate::operation::create_mount_target::CreateMountTargetError::NetworkInterfaceLimitExceeded(inner) => {
Error::NetworkInterfaceLimitExceeded(inner)
}
crate::operation::create_mount_target::CreateMountTargetError::NoFreeAddressesInSubnet(inner) => Error::NoFreeAddressesInSubnet(inner),
crate::operation::create_mount_target::CreateMountTargetError::SecurityGroupLimitExceeded(inner) => {
Error::SecurityGroupLimitExceeded(inner)
}
crate::operation::create_mount_target::CreateMountTargetError::SecurityGroupNotFound(inner) => Error::SecurityGroupNotFound(inner),
crate::operation::create_mount_target::CreateMountTargetError::SubnetNotFound(inner) => Error::SubnetNotFound(inner),
crate::operation::create_mount_target::CreateMountTargetError::UnsupportedAvailabilityZone(inner) => {
Error::UnsupportedAvailabilityZone(inner)
}
crate::operation::create_mount_target::CreateMountTargetError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_replication_configuration::CreateReplicationConfigurationError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_replication_configuration::CreateReplicationConfigurationError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::create_replication_configuration::CreateReplicationConfigurationError> for Error {
fn from(err: crate::operation::create_replication_configuration::CreateReplicationConfigurationError) -> Self {
match err {
crate::operation::create_replication_configuration::CreateReplicationConfigurationError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::create_replication_configuration::CreateReplicationConfigurationError::FileSystemLimitExceeded(inner) => {
Error::FileSystemLimitExceeded(inner)
}
crate::operation::create_replication_configuration::CreateReplicationConfigurationError::FileSystemNotFound(inner) => {
Error::FileSystemNotFound(inner)
}
crate::operation::create_replication_configuration::CreateReplicationConfigurationError::IncorrectFileSystemLifeCycleState(inner) => {
Error::IncorrectFileSystemLifeCycleState(inner)
}
crate::operation::create_replication_configuration::CreateReplicationConfigurationError::InsufficientThroughputCapacity(inner) => {
Error::InsufficientThroughputCapacity(inner)
}
crate::operation::create_replication_configuration::CreateReplicationConfigurationError::InternalServerError(inner) => {
Error::InternalServerError(inner)
}
crate::operation::create_replication_configuration::CreateReplicationConfigurationError::ReplicationNotFound(inner) => {
Error::ReplicationNotFound(inner)
}
crate::operation::create_replication_configuration::CreateReplicationConfigurationError::ThroughputLimitExceeded(inner) => {
Error::ThroughputLimitExceeded(inner)
}
crate::operation::create_replication_configuration::CreateReplicationConfigurationError::UnsupportedAvailabilityZone(inner) => {
Error::UnsupportedAvailabilityZone(inner)
}
crate::operation::create_replication_configuration::CreateReplicationConfigurationError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::create_replication_configuration::CreateReplicationConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_tags::CreateTagsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_tags::CreateTagsError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::create_tags::CreateTagsError> for Error {
fn from(err: crate::operation::create_tags::CreateTagsError) -> Self {
match err {
crate::operation::create_tags::CreateTagsError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::create_tags::CreateTagsError::FileSystemNotFound(inner) => Error::FileSystemNotFound(inner),
crate::operation::create_tags::CreateTagsError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::create_tags::CreateTagsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_access_point::DeleteAccessPointError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_access_point::DeleteAccessPointError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::delete_access_point::DeleteAccessPointError> for Error {
fn from(err: crate::operation::delete_access_point::DeleteAccessPointError) -> Self {
match err {
crate::operation::delete_access_point::DeleteAccessPointError::AccessPointNotFound(inner) => Error::AccessPointNotFound(inner),
crate::operation::delete_access_point::DeleteAccessPointError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::delete_access_point::DeleteAccessPointError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::delete_access_point::DeleteAccessPointError::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(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
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::FileSystemInUse(inner) => Error::FileSystemInUse(inner),
crate::operation::delete_file_system::DeleteFileSystemError::FileSystemNotFound(inner) => Error::FileSystemNotFound(inner),
crate::operation::delete_file_system::DeleteFileSystemError::InternalServerError(inner) => Error::InternalServerError(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_file_system_policy::DeleteFileSystemPolicyError, 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_policy::DeleteFileSystemPolicyError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::delete_file_system_policy::DeleteFileSystemPolicyError> for Error {
fn from(err: crate::operation::delete_file_system_policy::DeleteFileSystemPolicyError) -> Self {
match err {
crate::operation::delete_file_system_policy::DeleteFileSystemPolicyError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::delete_file_system_policy::DeleteFileSystemPolicyError::FileSystemNotFound(inner) => Error::FileSystemNotFound(inner),
crate::operation::delete_file_system_policy::DeleteFileSystemPolicyError::IncorrectFileSystemLifeCycleState(inner) => {
Error::IncorrectFileSystemLifeCycleState(inner)
}
crate::operation::delete_file_system_policy::DeleteFileSystemPolicyError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::delete_file_system_policy::DeleteFileSystemPolicyError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_mount_target::DeleteMountTargetError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_mount_target::DeleteMountTargetError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::delete_mount_target::DeleteMountTargetError> for Error {
fn from(err: crate::operation::delete_mount_target::DeleteMountTargetError) -> Self {
match err {
crate::operation::delete_mount_target::DeleteMountTargetError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::delete_mount_target::DeleteMountTargetError::DependencyTimeout(inner) => Error::DependencyTimeout(inner),
crate::operation::delete_mount_target::DeleteMountTargetError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::delete_mount_target::DeleteMountTargetError::MountTargetNotFound(inner) => Error::MountTargetNotFound(inner),
crate::operation::delete_mount_target::DeleteMountTargetError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::delete_replication_configuration::DeleteReplicationConfigurationError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::delete_replication_configuration::DeleteReplicationConfigurationError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::delete_replication_configuration::DeleteReplicationConfigurationError> for Error {
fn from(err: crate::operation::delete_replication_configuration::DeleteReplicationConfigurationError) -> Self {
match err {
crate::operation::delete_replication_configuration::DeleteReplicationConfigurationError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::delete_replication_configuration::DeleteReplicationConfigurationError::FileSystemNotFound(inner) => {
Error::FileSystemNotFound(inner)
}
crate::operation::delete_replication_configuration::DeleteReplicationConfigurationError::InternalServerError(inner) => {
Error::InternalServerError(inner)
}
crate::operation::delete_replication_configuration::DeleteReplicationConfigurationError::ReplicationNotFound(inner) => {
Error::ReplicationNotFound(inner)
}
crate::operation::delete_replication_configuration::DeleteReplicationConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_tags::DeleteTagsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_tags::DeleteTagsError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::delete_tags::DeleteTagsError> for Error {
fn from(err: crate::operation::delete_tags::DeleteTagsError) -> Self {
match err {
crate::operation::delete_tags::DeleteTagsError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::delete_tags::DeleteTagsError::FileSystemNotFound(inner) => Error::FileSystemNotFound(inner),
crate::operation::delete_tags::DeleteTagsError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::delete_tags::DeleteTagsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_access_points::DescribeAccessPointsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_access_points::DescribeAccessPointsError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::describe_access_points::DescribeAccessPointsError> for Error {
fn from(err: crate::operation::describe_access_points::DescribeAccessPointsError) -> Self {
match err {
crate::operation::describe_access_points::DescribeAccessPointsError::AccessPointNotFound(inner) => Error::AccessPointNotFound(inner),
crate::operation::describe_access_points::DescribeAccessPointsError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::describe_access_points::DescribeAccessPointsError::FileSystemNotFound(inner) => Error::FileSystemNotFound(inner),
crate::operation::describe_access_points::DescribeAccessPointsError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::describe_access_points::DescribeAccessPointsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_account_preferences::DescribeAccountPreferencesError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_account_preferences::DescribeAccountPreferencesError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::describe_account_preferences::DescribeAccountPreferencesError> for Error {
fn from(err: crate::operation::describe_account_preferences::DescribeAccountPreferencesError) -> Self {
match err {
crate::operation::describe_account_preferences::DescribeAccountPreferencesError::InternalServerError(inner) => {
Error::InternalServerError(inner)
}
crate::operation::describe_account_preferences::DescribeAccountPreferencesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_backup_policy::DescribeBackupPolicyError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_backup_policy::DescribeBackupPolicyError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::describe_backup_policy::DescribeBackupPolicyError> for Error {
fn from(err: crate::operation::describe_backup_policy::DescribeBackupPolicyError) -> Self {
match err {
crate::operation::describe_backup_policy::DescribeBackupPolicyError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::describe_backup_policy::DescribeBackupPolicyError::FileSystemNotFound(inner) => Error::FileSystemNotFound(inner),
crate::operation::describe_backup_policy::DescribeBackupPolicyError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::describe_backup_policy::DescribeBackupPolicyError::PolicyNotFound(inner) => Error::PolicyNotFound(inner),
crate::operation::describe_backup_policy::DescribeBackupPolicyError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::describe_backup_policy::DescribeBackupPolicyError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_file_system_policy::DescribeFileSystemPolicyError, 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_policy::DescribeFileSystemPolicyError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::describe_file_system_policy::DescribeFileSystemPolicyError> for Error {
fn from(err: crate::operation::describe_file_system_policy::DescribeFileSystemPolicyError) -> Self {
match err {
crate::operation::describe_file_system_policy::DescribeFileSystemPolicyError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::describe_file_system_policy::DescribeFileSystemPolicyError::FileSystemNotFound(inner) => {
Error::FileSystemNotFound(inner)
}
crate::operation::describe_file_system_policy::DescribeFileSystemPolicyError::InternalServerError(inner) => {
Error::InternalServerError(inner)
}
crate::operation::describe_file_system_policy::DescribeFileSystemPolicyError::PolicyNotFound(inner) => Error::PolicyNotFound(inner),
crate::operation::describe_file_system_policy::DescribeFileSystemPolicyError::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(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
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_lifecycle_configuration::DescribeLifecycleConfigurationError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_lifecycle_configuration::DescribeLifecycleConfigurationError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::describe_lifecycle_configuration::DescribeLifecycleConfigurationError> for Error {
fn from(err: crate::operation::describe_lifecycle_configuration::DescribeLifecycleConfigurationError) -> Self {
match err {
crate::operation::describe_lifecycle_configuration::DescribeLifecycleConfigurationError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::describe_lifecycle_configuration::DescribeLifecycleConfigurationError::FileSystemNotFound(inner) => {
Error::FileSystemNotFound(inner)
}
crate::operation::describe_lifecycle_configuration::DescribeLifecycleConfigurationError::InternalServerError(inner) => {
Error::InternalServerError(inner)
}
crate::operation::describe_lifecycle_configuration::DescribeLifecycleConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_mount_targets::DescribeMountTargetsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_mount_targets::DescribeMountTargetsError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::describe_mount_targets::DescribeMountTargetsError> for Error {
fn from(err: crate::operation::describe_mount_targets::DescribeMountTargetsError) -> Self {
match err {
crate::operation::describe_mount_targets::DescribeMountTargetsError::AccessPointNotFound(inner) => Error::AccessPointNotFound(inner),
crate::operation::describe_mount_targets::DescribeMountTargetsError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::describe_mount_targets::DescribeMountTargetsError::FileSystemNotFound(inner) => Error::FileSystemNotFound(inner),
crate::operation::describe_mount_targets::DescribeMountTargetsError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::describe_mount_targets::DescribeMountTargetsError::MountTargetNotFound(inner) => Error::MountTargetNotFound(inner),
crate::operation::describe_mount_targets::DescribeMountTargetsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_mount_target_security_groups::DescribeMountTargetSecurityGroupsError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_mount_target_security_groups::DescribeMountTargetSecurityGroupsError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::describe_mount_target_security_groups::DescribeMountTargetSecurityGroupsError> for Error {
fn from(err: crate::operation::describe_mount_target_security_groups::DescribeMountTargetSecurityGroupsError) -> Self {
match err {
crate::operation::describe_mount_target_security_groups::DescribeMountTargetSecurityGroupsError::BadRequest(inner) => {
Error::BadRequest(inner)
}
crate::operation::describe_mount_target_security_groups::DescribeMountTargetSecurityGroupsError::IncorrectMountTargetState(inner) => {
Error::IncorrectMountTargetState(inner)
}
crate::operation::describe_mount_target_security_groups::DescribeMountTargetSecurityGroupsError::InternalServerError(inner) => {
Error::InternalServerError(inner)
}
crate::operation::describe_mount_target_security_groups::DescribeMountTargetSecurityGroupsError::MountTargetNotFound(inner) => {
Error::MountTargetNotFound(inner)
}
crate::operation::describe_mount_target_security_groups::DescribeMountTargetSecurityGroupsError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_replication_configurations::DescribeReplicationConfigurationsError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_replication_configurations::DescribeReplicationConfigurationsError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::describe_replication_configurations::DescribeReplicationConfigurationsError> for Error {
fn from(err: crate::operation::describe_replication_configurations::DescribeReplicationConfigurationsError) -> Self {
match err {
crate::operation::describe_replication_configurations::DescribeReplicationConfigurationsError::BadRequest(inner) => {
Error::BadRequest(inner)
}
crate::operation::describe_replication_configurations::DescribeReplicationConfigurationsError::FileSystemNotFound(inner) => {
Error::FileSystemNotFound(inner)
}
crate::operation::describe_replication_configurations::DescribeReplicationConfigurationsError::InternalServerError(inner) => {
Error::InternalServerError(inner)
}
crate::operation::describe_replication_configurations::DescribeReplicationConfigurationsError::ReplicationNotFound(inner) => {
Error::ReplicationNotFound(inner)
}
crate::operation::describe_replication_configurations::DescribeReplicationConfigurationsError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::describe_replication_configurations::DescribeReplicationConfigurationsError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_tags::DescribeTagsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_tags::DescribeTagsError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::describe_tags::DescribeTagsError> for Error {
fn from(err: crate::operation::describe_tags::DescribeTagsError) -> Self {
match err {
crate::operation::describe_tags::DescribeTagsError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::describe_tags::DescribeTagsError::FileSystemNotFound(inner) => Error::FileSystemNotFound(inner),
crate::operation::describe_tags::DescribeTagsError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::describe_tags::DescribeTagsError::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(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
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::AccessPointNotFound(inner) => Error::AccessPointNotFound(inner),
crate::operation::list_tags_for_resource::ListTagsForResourceError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::list_tags_for_resource::ListTagsForResourceError::FileSystemNotFound(inner) => Error::FileSystemNotFound(inner),
crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerError(inner) => Error::InternalServerError(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::modify_mount_target_security_groups::ModifyMountTargetSecurityGroupsError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::modify_mount_target_security_groups::ModifyMountTargetSecurityGroupsError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::modify_mount_target_security_groups::ModifyMountTargetSecurityGroupsError> for Error {
fn from(err: crate::operation::modify_mount_target_security_groups::ModifyMountTargetSecurityGroupsError) -> Self {
match err {
crate::operation::modify_mount_target_security_groups::ModifyMountTargetSecurityGroupsError::BadRequest(inner) => {
Error::BadRequest(inner)
}
crate::operation::modify_mount_target_security_groups::ModifyMountTargetSecurityGroupsError::IncorrectMountTargetState(inner) => {
Error::IncorrectMountTargetState(inner)
}
crate::operation::modify_mount_target_security_groups::ModifyMountTargetSecurityGroupsError::InternalServerError(inner) => {
Error::InternalServerError(inner)
}
crate::operation::modify_mount_target_security_groups::ModifyMountTargetSecurityGroupsError::MountTargetNotFound(inner) => {
Error::MountTargetNotFound(inner)
}
crate::operation::modify_mount_target_security_groups::ModifyMountTargetSecurityGroupsError::SecurityGroupLimitExceeded(inner) => {
Error::SecurityGroupLimitExceeded(inner)
}
crate::operation::modify_mount_target_security_groups::ModifyMountTargetSecurityGroupsError::SecurityGroupNotFound(inner) => {
Error::SecurityGroupNotFound(inner)
}
crate::operation::modify_mount_target_security_groups::ModifyMountTargetSecurityGroupsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_account_preferences::PutAccountPreferencesError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_account_preferences::PutAccountPreferencesError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::put_account_preferences::PutAccountPreferencesError> for Error {
fn from(err: crate::operation::put_account_preferences::PutAccountPreferencesError) -> Self {
match err {
crate::operation::put_account_preferences::PutAccountPreferencesError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::put_account_preferences::PutAccountPreferencesError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::put_account_preferences::PutAccountPreferencesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_backup_policy::PutBackupPolicyError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_backup_policy::PutBackupPolicyError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::put_backup_policy::PutBackupPolicyError> for Error {
fn from(err: crate::operation::put_backup_policy::PutBackupPolicyError) -> Self {
match err {
crate::operation::put_backup_policy::PutBackupPolicyError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::put_backup_policy::PutBackupPolicyError::FileSystemNotFound(inner) => Error::FileSystemNotFound(inner),
crate::operation::put_backup_policy::PutBackupPolicyError::IncorrectFileSystemLifeCycleState(inner) => {
Error::IncorrectFileSystemLifeCycleState(inner)
}
crate::operation::put_backup_policy::PutBackupPolicyError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::put_backup_policy::PutBackupPolicyError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::put_backup_policy::PutBackupPolicyError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_file_system_policy::PutFileSystemPolicyError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_file_system_policy::PutFileSystemPolicyError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::put_file_system_policy::PutFileSystemPolicyError> for Error {
fn from(err: crate::operation::put_file_system_policy::PutFileSystemPolicyError) -> Self {
match err {
crate::operation::put_file_system_policy::PutFileSystemPolicyError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::put_file_system_policy::PutFileSystemPolicyError::FileSystemNotFound(inner) => Error::FileSystemNotFound(inner),
crate::operation::put_file_system_policy::PutFileSystemPolicyError::IncorrectFileSystemLifeCycleState(inner) => {
Error::IncorrectFileSystemLifeCycleState(inner)
}
crate::operation::put_file_system_policy::PutFileSystemPolicyError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::put_file_system_policy::PutFileSystemPolicyError::InvalidPolicyException(inner) => Error::InvalidPolicyException(inner),
crate::operation::put_file_system_policy::PutFileSystemPolicyError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_lifecycle_configuration::PutLifecycleConfigurationError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_lifecycle_configuration::PutLifecycleConfigurationError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::put_lifecycle_configuration::PutLifecycleConfigurationError> for Error {
fn from(err: crate::operation::put_lifecycle_configuration::PutLifecycleConfigurationError) -> Self {
match err {
crate::operation::put_lifecycle_configuration::PutLifecycleConfigurationError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::put_lifecycle_configuration::PutLifecycleConfigurationError::FileSystemNotFound(inner) => {
Error::FileSystemNotFound(inner)
}
crate::operation::put_lifecycle_configuration::PutLifecycleConfigurationError::IncorrectFileSystemLifeCycleState(inner) => {
Error::IncorrectFileSystemLifeCycleState(inner)
}
crate::operation::put_lifecycle_configuration::PutLifecycleConfigurationError::InternalServerError(inner) => {
Error::InternalServerError(inner)
}
crate::operation::put_lifecycle_configuration::PutLifecycleConfigurationError::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(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
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::AccessPointNotFound(inner) => Error::AccessPointNotFound(inner),
crate::operation::tag_resource::TagResourceError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::tag_resource::TagResourceError::FileSystemNotFound(inner) => Error::FileSystemNotFound(inner),
crate::operation::tag_resource::TagResourceError::InternalServerError(inner) => Error::InternalServerError(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(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
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::AccessPointNotFound(inner) => Error::AccessPointNotFound(inner),
crate::operation::untag_resource::UntagResourceError::BadRequest(inner) => Error::BadRequest(inner),
crate::operation::untag_resource::UntagResourceError::FileSystemNotFound(inner) => Error::FileSystemNotFound(inner),
crate::operation::untag_resource::UntagResourceError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::untag_resource::UntagResourceError::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(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
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::IncorrectFileSystemLifeCycleState(inner) => {
Error::IncorrectFileSystemLifeCycleState(inner)
}
crate::operation::update_file_system::UpdateFileSystemError::InsufficientThroughputCapacity(inner) => {
Error::InsufficientThroughputCapacity(inner)
}
crate::operation::update_file_system::UpdateFileSystemError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::update_file_system::UpdateFileSystemError::ThroughputLimitExceeded(inner) => Error::ThroughputLimitExceeded(inner),
crate::operation::update_file_system::UpdateFileSystemError::TooManyRequests(inner) => Error::TooManyRequests(inner),
crate::operation::update_file_system::UpdateFileSystemError::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::AccessPointAlreadyExists(inner) => inner.source(),
Error::AccessPointLimitExceeded(inner) => inner.source(),
Error::AccessPointNotFound(inner) => inner.source(),
Error::AvailabilityZonesMismatch(inner) => inner.source(),
Error::BadRequest(inner) => inner.source(),
Error::DependencyTimeout(inner) => inner.source(),
Error::FileSystemAlreadyExists(inner) => inner.source(),
Error::FileSystemInUse(inner) => inner.source(),
Error::FileSystemLimitExceeded(inner) => inner.source(),
Error::FileSystemNotFound(inner) => inner.source(),
Error::IncorrectFileSystemLifeCycleState(inner) => inner.source(),
Error::IncorrectMountTargetState(inner) => inner.source(),
Error::InsufficientThroughputCapacity(inner) => inner.source(),
Error::InternalServerError(inner) => inner.source(),
Error::InvalidPolicyException(inner) => inner.source(),
Error::IpAddressInUse(inner) => inner.source(),
Error::MountTargetConflict(inner) => inner.source(),
Error::MountTargetNotFound(inner) => inner.source(),
Error::NetworkInterfaceLimitExceeded(inner) => inner.source(),
Error::NoFreeAddressesInSubnet(inner) => inner.source(),
Error::PolicyNotFound(inner) => inner.source(),
Error::ReplicationNotFound(inner) => inner.source(),
Error::SecurityGroupLimitExceeded(inner) => inner.source(),
Error::SecurityGroupNotFound(inner) => inner.source(),
Error::SubnetNotFound(inner) => inner.source(),
Error::ThrottlingException(inner) => inner.source(),
Error::ThroughputLimitExceeded(inner) => inner.source(),
Error::TooManyRequests(inner) => inner.source(),
Error::UnsupportedAvailabilityZone(inner) => inner.source(),
Error::ValidationException(inner) => inner.source(),
Error::Unhandled(inner) => inner.source(),
}
}
}
impl ::aws_http::request_id::RequestId for Error {
fn request_id(&self) -> Option<&str> {
match self {
Self::AccessPointAlreadyExists(e) => e.request_id(),
Self::AccessPointLimitExceeded(e) => e.request_id(),
Self::AccessPointNotFound(e) => e.request_id(),
Self::AvailabilityZonesMismatch(e) => e.request_id(),
Self::BadRequest(e) => e.request_id(),
Self::DependencyTimeout(e) => e.request_id(),
Self::FileSystemAlreadyExists(e) => e.request_id(),
Self::FileSystemInUse(e) => e.request_id(),
Self::FileSystemLimitExceeded(e) => e.request_id(),
Self::FileSystemNotFound(e) => e.request_id(),
Self::IncorrectFileSystemLifeCycleState(e) => e.request_id(),
Self::IncorrectMountTargetState(e) => e.request_id(),
Self::InsufficientThroughputCapacity(e) => e.request_id(),
Self::InternalServerError(e) => e.request_id(),
Self::InvalidPolicyException(e) => e.request_id(),
Self::IpAddressInUse(e) => e.request_id(),
Self::MountTargetConflict(e) => e.request_id(),
Self::MountTargetNotFound(e) => e.request_id(),
Self::NetworkInterfaceLimitExceeded(e) => e.request_id(),
Self::NoFreeAddressesInSubnet(e) => e.request_id(),
Self::PolicyNotFound(e) => e.request_id(),
Self::ReplicationNotFound(e) => e.request_id(),
Self::SecurityGroupLimitExceeded(e) => e.request_id(),
Self::SecurityGroupNotFound(e) => e.request_id(),
Self::SubnetNotFound(e) => e.request_id(),
Self::ThrottlingException(e) => e.request_id(),
Self::ThroughputLimitExceeded(e) => e.request_id(),
Self::TooManyRequests(e) => e.request_id(),
Self::UnsupportedAvailabilityZone(e) => e.request_id(),
Self::ValidationException(e) => e.request_id(),
Self::Unhandled(e) => e.request_id(),
}
}
}