aws_sdk_efs/
error_meta.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2/// All possible error types for this service.
3#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6    /// <p>Returned if the access point that you are trying to create already exists, with the creation token you provided in the request.</p>
7    AccessPointAlreadyExists(crate::types::error::AccessPointAlreadyExists),
8    /// <p>Returned if the Amazon Web Services account has already created the maximum number of access points allowed per file system. For more informaton, see <a href="https://docs.aws.amazon.com/efs/latest/ug/limits.html#limits-efs-resources-per-account-per-region">https://docs.aws.amazon.com/efs/latest/ug/limits.html#limits-efs-resources-per-account-per-region</a>.</p>
9    AccessPointLimitExceeded(crate::types::error::AccessPointLimitExceeded),
10    /// <p>Returned if the specified <code>AccessPointId</code> value doesn't exist in the requester's Amazon Web Services account.</p>
11    AccessPointNotFound(crate::types::error::AccessPointNotFound),
12    /// <p>Returned if the Availability Zone that was specified for a mount target is different from the Availability Zone that was specified for One Zone storage. For more information, see <a href="https://docs.aws.amazon.com/efs/latest/ug/availability-durability.html">Regional and One Zone storage redundancy</a>.</p>
13    AvailabilityZonesMismatch(crate::types::error::AvailabilityZonesMismatch),
14    /// <p>Returned if the request is malformed or contains an error such as an invalid parameter value or a missing required parameter.</p>
15    BadRequest(crate::types::error::BadRequest),
16    /// <p>Returned if the source file system in a replication is encrypted but the destination file system is unencrypted.</p>
17    ConflictException(crate::types::error::ConflictException),
18    /// <p>The service timed out trying to fulfill the request, and the client should try the call again.</p>
19    DependencyTimeout(crate::types::error::DependencyTimeout),
20    /// <p>Returned if the file system you are trying to create already exists, with the creation token you provided.</p>
21    FileSystemAlreadyExists(crate::types::error::FileSystemAlreadyExists),
22    /// <p>Returned if a file system has mount targets.</p>
23    FileSystemInUse(crate::types::error::FileSystemInUse),
24    /// <p>Returned if the Amazon Web Services account has already created the maximum number of file systems allowed per account.</p>
25    FileSystemLimitExceeded(crate::types::error::FileSystemLimitExceeded),
26    /// <p>Returned if the specified <code>FileSystemId</code> value doesn't exist in the requester's Amazon Web Services account.</p>
27    FileSystemNotFound(crate::types::error::FileSystemNotFound),
28    /// <p>Returned if the file system's lifecycle state is not "available".</p>
29    IncorrectFileSystemLifeCycleState(crate::types::error::IncorrectFileSystemLifeCycleState),
30    /// <p>Returned if the mount target is not in the correct state for the operation.</p>
31    IncorrectMountTargetState(crate::types::error::IncorrectMountTargetState),
32    /// <p>Returned if there's not enough capacity to provision additional throughput. This value might be returned when you try to create a file system in provisioned throughput mode, when you attempt to increase the provisioned throughput of an existing file system, or when you attempt to change an existing file system from Bursting Throughput to Provisioned Throughput mode. Try again later.</p>
33    InsufficientThroughputCapacity(crate::types::error::InsufficientThroughputCapacity),
34    /// <p>Returned if an error occurred on the server side.</p>
35    InternalServerError(crate::types::error::InternalServerError),
36    /// <p>Returned if the <code>FileSystemPolicy</code> is malformed or contains an error such as a parameter value that is not valid or a missing required parameter. Returned in the case of a policy lockout safety check error.</p>
37    InvalidPolicyException(crate::types::error::InvalidPolicyException),
38    /// <p>Returned if the request specified an <code>IpAddress</code> that is already in use in the subnet.</p>
39    IpAddressInUse(crate::types::error::IpAddressInUse),
40    /// <p>Returned if the mount target would violate one of the specified restrictions based on the file system's existing mount targets.</p>
41    MountTargetConflict(crate::types::error::MountTargetConflict),
42    /// <p>Returned if there is no mount target with the specified ID found in the caller's Amazon Web Services account.</p>
43    MountTargetNotFound(crate::types::error::MountTargetNotFound),
44    /// <p>The calling account has reached the limit for elastic network interfaces for the specific Amazon Web Services Region. Either delete some network interfaces or request that the account quota be raised. For more information, see <a href="https://docs.aws.amazon.com/vpc/latest/userguide/amazon-vpc-limits.html">Amazon VPC Quotas</a> in the <i>Amazon VPC User Guide</i> (see the <b>Network interfaces per Region</b> entry in the <b>Network interfaces</b> table).</p>
45    NetworkInterfaceLimitExceeded(crate::types::error::NetworkInterfaceLimitExceeded),
46    /// <p>Returned if <code>IpAddress</code> was not specified in the request and there are no free IP addresses in the subnet.</p>
47    NoFreeAddressesInSubnet(crate::types::error::NoFreeAddressesInSubnet),
48    /// <p>Returned if <code>no backup</code> is specified for a One Zone EFS file system.</p>
49    PolicyNotFound(crate::types::error::PolicyNotFound),
50    /// <p>Returned if the file system is already included in a replication configuration.&gt;</p>
51    ReplicationAlreadyExists(crate::types::error::ReplicationAlreadyExists),
52    /// <p>Returned if the specified file system does not have a replication configuration.</p>
53    ReplicationNotFound(crate::types::error::ReplicationNotFound),
54    /// <p>Returned if the number of <code>SecurityGroups</code> specified in the request is greater than the limit, which is based on account quota. Either delete some security groups or request that the account quota be raised. For more information, see <a href="https://docs.aws.amazon.com/vpc/latest/userguide/amazon-vpc-limits.html">Amazon VPC Quotas</a> in the <i>Amazon VPC User Guide</i> (see the <b>Security Groups</b> table).</p>
55    SecurityGroupLimitExceeded(crate::types::error::SecurityGroupLimitExceeded),
56    /// <p>Returned if one of the specified security groups doesn't exist in the subnet's virtual private cloud (VPC).</p>
57    SecurityGroupNotFound(crate::types::error::SecurityGroupNotFound),
58    /// <p>Returned if there is no subnet with ID <code>SubnetId</code> provided in the request.</p>
59    SubnetNotFound(crate::types::error::SubnetNotFound),
60    /// <p>Returned when the <code>CreateAccessPoint</code> API action is called too quickly and the number of Access Points on the file system is nearing the <a href="https://docs.aws.amazon.com/efs/latest/ug/limits.html#limits-efs-resources-per-account-per-region">limit of 120</a>.</p>
61    ThrottlingException(crate::types::error::ThrottlingException),
62    /// <p>Returned if the throughput mode or amount of provisioned throughput can't be changed because the throughput limit of 1024 MiB/s has been reached.</p>
63    ThroughputLimitExceeded(crate::types::error::ThroughputLimitExceeded),
64    /// <p>Returned if you don’t wait at least 24 hours before either changing the throughput mode, or decreasing the Provisioned Throughput value.</p>
65    TooManyRequests(crate::types::error::TooManyRequests),
66    /// <p>Returned if the requested Amazon EFS functionality is not available in the specified Availability Zone.</p>
67    UnsupportedAvailabilityZone(crate::types::error::UnsupportedAvailabilityZone),
68    /// <p>Returned if the Backup service is not available in the Amazon Web Services Region in which the request was made.</p>
69    ValidationException(crate::types::error::ValidationException),
70    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
71    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
72    variable wildcard pattern and check `.code()`:
73     \
74    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
75     \
76    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
77    Unhandled(crate::error::sealed_unhandled::Unhandled),
78}
79impl ::std::fmt::Display for Error {
80    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
81        match self {
82            Error::AccessPointAlreadyExists(inner) => inner.fmt(f),
83            Error::AccessPointLimitExceeded(inner) => inner.fmt(f),
84            Error::AccessPointNotFound(inner) => inner.fmt(f),
85            Error::AvailabilityZonesMismatch(inner) => inner.fmt(f),
86            Error::BadRequest(inner) => inner.fmt(f),
87            Error::ConflictException(inner) => inner.fmt(f),
88            Error::DependencyTimeout(inner) => inner.fmt(f),
89            Error::FileSystemAlreadyExists(inner) => inner.fmt(f),
90            Error::FileSystemInUse(inner) => inner.fmt(f),
91            Error::FileSystemLimitExceeded(inner) => inner.fmt(f),
92            Error::FileSystemNotFound(inner) => inner.fmt(f),
93            Error::IncorrectFileSystemLifeCycleState(inner) => inner.fmt(f),
94            Error::IncorrectMountTargetState(inner) => inner.fmt(f),
95            Error::InsufficientThroughputCapacity(inner) => inner.fmt(f),
96            Error::InternalServerError(inner) => inner.fmt(f),
97            Error::InvalidPolicyException(inner) => inner.fmt(f),
98            Error::IpAddressInUse(inner) => inner.fmt(f),
99            Error::MountTargetConflict(inner) => inner.fmt(f),
100            Error::MountTargetNotFound(inner) => inner.fmt(f),
101            Error::NetworkInterfaceLimitExceeded(inner) => inner.fmt(f),
102            Error::NoFreeAddressesInSubnet(inner) => inner.fmt(f),
103            Error::PolicyNotFound(inner) => inner.fmt(f),
104            Error::ReplicationAlreadyExists(inner) => inner.fmt(f),
105            Error::ReplicationNotFound(inner) => inner.fmt(f),
106            Error::SecurityGroupLimitExceeded(inner) => inner.fmt(f),
107            Error::SecurityGroupNotFound(inner) => inner.fmt(f),
108            Error::SubnetNotFound(inner) => inner.fmt(f),
109            Error::ThrottlingException(inner) => inner.fmt(f),
110            Error::ThroughputLimitExceeded(inner) => inner.fmt(f),
111            Error::TooManyRequests(inner) => inner.fmt(f),
112            Error::UnsupportedAvailabilityZone(inner) => inner.fmt(f),
113            Error::ValidationException(inner) => inner.fmt(f),
114            Error::Unhandled(_) => {
115                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
116                    write!(f, "unhandled error ({code})")
117                } else {
118                    f.write_str("unhandled error")
119                }
120            }
121        }
122    }
123}
124impl From<::aws_smithy_types::error::operation::BuildError> for Error {
125    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
126        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
127            source: value.into(),
128            meta: ::std::default::Default::default(),
129        })
130    }
131}
132impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
133    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
134        match self {
135            Self::AccessPointAlreadyExists(inner) => inner.meta(),
136            Self::AccessPointLimitExceeded(inner) => inner.meta(),
137            Self::AccessPointNotFound(inner) => inner.meta(),
138            Self::AvailabilityZonesMismatch(inner) => inner.meta(),
139            Self::BadRequest(inner) => inner.meta(),
140            Self::ConflictException(inner) => inner.meta(),
141            Self::DependencyTimeout(inner) => inner.meta(),
142            Self::FileSystemAlreadyExists(inner) => inner.meta(),
143            Self::FileSystemInUse(inner) => inner.meta(),
144            Self::FileSystemLimitExceeded(inner) => inner.meta(),
145            Self::FileSystemNotFound(inner) => inner.meta(),
146            Self::IncorrectFileSystemLifeCycleState(inner) => inner.meta(),
147            Self::IncorrectMountTargetState(inner) => inner.meta(),
148            Self::InsufficientThroughputCapacity(inner) => inner.meta(),
149            Self::InternalServerError(inner) => inner.meta(),
150            Self::InvalidPolicyException(inner) => inner.meta(),
151            Self::IpAddressInUse(inner) => inner.meta(),
152            Self::MountTargetConflict(inner) => inner.meta(),
153            Self::MountTargetNotFound(inner) => inner.meta(),
154            Self::NetworkInterfaceLimitExceeded(inner) => inner.meta(),
155            Self::NoFreeAddressesInSubnet(inner) => inner.meta(),
156            Self::PolicyNotFound(inner) => inner.meta(),
157            Self::ReplicationAlreadyExists(inner) => inner.meta(),
158            Self::ReplicationNotFound(inner) => inner.meta(),
159            Self::SecurityGroupLimitExceeded(inner) => inner.meta(),
160            Self::SecurityGroupNotFound(inner) => inner.meta(),
161            Self::SubnetNotFound(inner) => inner.meta(),
162            Self::ThrottlingException(inner) => inner.meta(),
163            Self::ThroughputLimitExceeded(inner) => inner.meta(),
164            Self::TooManyRequests(inner) => inner.meta(),
165            Self::UnsupportedAvailabilityZone(inner) => inner.meta(),
166            Self::ValidationException(inner) => inner.meta(),
167            Self::Unhandled(inner) => &inner.meta,
168        }
169    }
170}
171impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_access_point::CreateAccessPointError, R>> for Error
172where
173    R: Send + Sync + std::fmt::Debug + 'static,
174{
175    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_access_point::CreateAccessPointError, R>) -> Self {
176        match err {
177            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
178            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
179                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
180                source: err.into(),
181            }),
182        }
183    }
184}
185impl From<crate::operation::create_access_point::CreateAccessPointError> for Error {
186    fn from(err: crate::operation::create_access_point::CreateAccessPointError) -> Self {
187        match err {
188            crate::operation::create_access_point::CreateAccessPointError::AccessPointAlreadyExists(inner) => Error::AccessPointAlreadyExists(inner),
189            crate::operation::create_access_point::CreateAccessPointError::AccessPointLimitExceeded(inner) => Error::AccessPointLimitExceeded(inner),
190            crate::operation::create_access_point::CreateAccessPointError::BadRequest(inner) => Error::BadRequest(inner),
191            crate::operation::create_access_point::CreateAccessPointError::FileSystemNotFound(inner) => Error::FileSystemNotFound(inner),
192            crate::operation::create_access_point::CreateAccessPointError::IncorrectFileSystemLifeCycleState(inner) => {
193                Error::IncorrectFileSystemLifeCycleState(inner)
194            }
195            crate::operation::create_access_point::CreateAccessPointError::InternalServerError(inner) => Error::InternalServerError(inner),
196            crate::operation::create_access_point::CreateAccessPointError::ThrottlingException(inner) => Error::ThrottlingException(inner),
197            crate::operation::create_access_point::CreateAccessPointError::Unhandled(inner) => Error::Unhandled(inner),
198        }
199    }
200}
201impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_file_system::CreateFileSystemError, R>> for Error
202where
203    R: Send + Sync + std::fmt::Debug + 'static,
204{
205    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_file_system::CreateFileSystemError, R>) -> Self {
206        match err {
207            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
208            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
209                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
210                source: err.into(),
211            }),
212        }
213    }
214}
215impl From<crate::operation::create_file_system::CreateFileSystemError> for Error {
216    fn from(err: crate::operation::create_file_system::CreateFileSystemError) -> Self {
217        match err {
218            crate::operation::create_file_system::CreateFileSystemError::BadRequest(inner) => Error::BadRequest(inner),
219            crate::operation::create_file_system::CreateFileSystemError::FileSystemAlreadyExists(inner) => Error::FileSystemAlreadyExists(inner),
220            crate::operation::create_file_system::CreateFileSystemError::FileSystemLimitExceeded(inner) => Error::FileSystemLimitExceeded(inner),
221            crate::operation::create_file_system::CreateFileSystemError::InsufficientThroughputCapacity(inner) => {
222                Error::InsufficientThroughputCapacity(inner)
223            }
224            crate::operation::create_file_system::CreateFileSystemError::InternalServerError(inner) => Error::InternalServerError(inner),
225            crate::operation::create_file_system::CreateFileSystemError::ThroughputLimitExceeded(inner) => Error::ThroughputLimitExceeded(inner),
226            crate::operation::create_file_system::CreateFileSystemError::UnsupportedAvailabilityZone(inner) => {
227                Error::UnsupportedAvailabilityZone(inner)
228            }
229            crate::operation::create_file_system::CreateFileSystemError::Unhandled(inner) => Error::Unhandled(inner),
230        }
231    }
232}
233impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_mount_target::CreateMountTargetError, R>> for Error
234where
235    R: Send + Sync + std::fmt::Debug + 'static,
236{
237    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_mount_target::CreateMountTargetError, R>) -> Self {
238        match err {
239            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
240            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
241                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
242                source: err.into(),
243            }),
244        }
245    }
246}
247impl From<crate::operation::create_mount_target::CreateMountTargetError> for Error {
248    fn from(err: crate::operation::create_mount_target::CreateMountTargetError) -> Self {
249        match err {
250            crate::operation::create_mount_target::CreateMountTargetError::AvailabilityZonesMismatch(inner) => {
251                Error::AvailabilityZonesMismatch(inner)
252            }
253            crate::operation::create_mount_target::CreateMountTargetError::BadRequest(inner) => Error::BadRequest(inner),
254            crate::operation::create_mount_target::CreateMountTargetError::FileSystemNotFound(inner) => Error::FileSystemNotFound(inner),
255            crate::operation::create_mount_target::CreateMountTargetError::IncorrectFileSystemLifeCycleState(inner) => {
256                Error::IncorrectFileSystemLifeCycleState(inner)
257            }
258            crate::operation::create_mount_target::CreateMountTargetError::InternalServerError(inner) => Error::InternalServerError(inner),
259            crate::operation::create_mount_target::CreateMountTargetError::IpAddressInUse(inner) => Error::IpAddressInUse(inner),
260            crate::operation::create_mount_target::CreateMountTargetError::MountTargetConflict(inner) => Error::MountTargetConflict(inner),
261            crate::operation::create_mount_target::CreateMountTargetError::NetworkInterfaceLimitExceeded(inner) => {
262                Error::NetworkInterfaceLimitExceeded(inner)
263            }
264            crate::operation::create_mount_target::CreateMountTargetError::NoFreeAddressesInSubnet(inner) => Error::NoFreeAddressesInSubnet(inner),
265            crate::operation::create_mount_target::CreateMountTargetError::SecurityGroupLimitExceeded(inner) => {
266                Error::SecurityGroupLimitExceeded(inner)
267            }
268            crate::operation::create_mount_target::CreateMountTargetError::SecurityGroupNotFound(inner) => Error::SecurityGroupNotFound(inner),
269            crate::operation::create_mount_target::CreateMountTargetError::SubnetNotFound(inner) => Error::SubnetNotFound(inner),
270            crate::operation::create_mount_target::CreateMountTargetError::UnsupportedAvailabilityZone(inner) => {
271                Error::UnsupportedAvailabilityZone(inner)
272            }
273            crate::operation::create_mount_target::CreateMountTargetError::Unhandled(inner) => Error::Unhandled(inner),
274        }
275    }
276}
277impl<R>
278    From<
279        ::aws_smithy_runtime_api::client::result::SdkError<
280            crate::operation::create_replication_configuration::CreateReplicationConfigurationError,
281            R,
282        >,
283    > for Error
284where
285    R: Send + Sync + std::fmt::Debug + 'static,
286{
287    fn from(
288        err: ::aws_smithy_runtime_api::client::result::SdkError<
289            crate::operation::create_replication_configuration::CreateReplicationConfigurationError,
290            R,
291        >,
292    ) -> Self {
293        match err {
294            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
295            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
296                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
297                source: err.into(),
298            }),
299        }
300    }
301}
302impl From<crate::operation::create_replication_configuration::CreateReplicationConfigurationError> for Error {
303    fn from(err: crate::operation::create_replication_configuration::CreateReplicationConfigurationError) -> Self {
304        match err {
305            crate::operation::create_replication_configuration::CreateReplicationConfigurationError::BadRequest(inner) => Error::BadRequest(inner),
306            crate::operation::create_replication_configuration::CreateReplicationConfigurationError::ConflictException(inner) => {
307                Error::ConflictException(inner)
308            }
309            crate::operation::create_replication_configuration::CreateReplicationConfigurationError::FileSystemLimitExceeded(inner) => {
310                Error::FileSystemLimitExceeded(inner)
311            }
312            crate::operation::create_replication_configuration::CreateReplicationConfigurationError::FileSystemNotFound(inner) => {
313                Error::FileSystemNotFound(inner)
314            }
315            crate::operation::create_replication_configuration::CreateReplicationConfigurationError::IncorrectFileSystemLifeCycleState(inner) => {
316                Error::IncorrectFileSystemLifeCycleState(inner)
317            }
318            crate::operation::create_replication_configuration::CreateReplicationConfigurationError::InsufficientThroughputCapacity(inner) => {
319                Error::InsufficientThroughputCapacity(inner)
320            }
321            crate::operation::create_replication_configuration::CreateReplicationConfigurationError::InternalServerError(inner) => {
322                Error::InternalServerError(inner)
323            }
324            crate::operation::create_replication_configuration::CreateReplicationConfigurationError::ReplicationNotFound(inner) => {
325                Error::ReplicationNotFound(inner)
326            }
327            crate::operation::create_replication_configuration::CreateReplicationConfigurationError::ThroughputLimitExceeded(inner) => {
328                Error::ThroughputLimitExceeded(inner)
329            }
330            crate::operation::create_replication_configuration::CreateReplicationConfigurationError::UnsupportedAvailabilityZone(inner) => {
331                Error::UnsupportedAvailabilityZone(inner)
332            }
333            crate::operation::create_replication_configuration::CreateReplicationConfigurationError::ValidationException(inner) => {
334                Error::ValidationException(inner)
335            }
336            crate::operation::create_replication_configuration::CreateReplicationConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
337        }
338    }
339}
340impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_tags::CreateTagsError, R>> for Error
341where
342    R: Send + Sync + std::fmt::Debug + 'static,
343{
344    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_tags::CreateTagsError, R>) -> Self {
345        match err {
346            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
347            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
348                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
349                source: err.into(),
350            }),
351        }
352    }
353}
354impl From<crate::operation::create_tags::CreateTagsError> for Error {
355    fn from(err: crate::operation::create_tags::CreateTagsError) -> Self {
356        match err {
357            crate::operation::create_tags::CreateTagsError::BadRequest(inner) => Error::BadRequest(inner),
358            crate::operation::create_tags::CreateTagsError::FileSystemNotFound(inner) => Error::FileSystemNotFound(inner),
359            crate::operation::create_tags::CreateTagsError::InternalServerError(inner) => Error::InternalServerError(inner),
360            crate::operation::create_tags::CreateTagsError::Unhandled(inner) => Error::Unhandled(inner),
361        }
362    }
363}
364impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_access_point::DeleteAccessPointError, R>> for Error
365where
366    R: Send + Sync + std::fmt::Debug + 'static,
367{
368    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_access_point::DeleteAccessPointError, R>) -> Self {
369        match err {
370            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
371            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
372                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
373                source: err.into(),
374            }),
375        }
376    }
377}
378impl From<crate::operation::delete_access_point::DeleteAccessPointError> for Error {
379    fn from(err: crate::operation::delete_access_point::DeleteAccessPointError) -> Self {
380        match err {
381            crate::operation::delete_access_point::DeleteAccessPointError::AccessPointNotFound(inner) => Error::AccessPointNotFound(inner),
382            crate::operation::delete_access_point::DeleteAccessPointError::BadRequest(inner) => Error::BadRequest(inner),
383            crate::operation::delete_access_point::DeleteAccessPointError::InternalServerError(inner) => Error::InternalServerError(inner),
384            crate::operation::delete_access_point::DeleteAccessPointError::Unhandled(inner) => Error::Unhandled(inner),
385        }
386    }
387}
388impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_file_system::DeleteFileSystemError, R>> for Error
389where
390    R: Send + Sync + std::fmt::Debug + 'static,
391{
392    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_file_system::DeleteFileSystemError, R>) -> Self {
393        match err {
394            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
395            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
396                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
397                source: err.into(),
398            }),
399        }
400    }
401}
402impl From<crate::operation::delete_file_system::DeleteFileSystemError> for Error {
403    fn from(err: crate::operation::delete_file_system::DeleteFileSystemError) -> Self {
404        match err {
405            crate::operation::delete_file_system::DeleteFileSystemError::BadRequest(inner) => Error::BadRequest(inner),
406            crate::operation::delete_file_system::DeleteFileSystemError::FileSystemInUse(inner) => Error::FileSystemInUse(inner),
407            crate::operation::delete_file_system::DeleteFileSystemError::FileSystemNotFound(inner) => Error::FileSystemNotFound(inner),
408            crate::operation::delete_file_system::DeleteFileSystemError::InternalServerError(inner) => Error::InternalServerError(inner),
409            crate::operation::delete_file_system::DeleteFileSystemError::Unhandled(inner) => Error::Unhandled(inner),
410        }
411    }
412}
413impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_file_system_policy::DeleteFileSystemPolicyError, R>>
414    for Error
415where
416    R: Send + Sync + std::fmt::Debug + 'static,
417{
418    fn from(
419        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_file_system_policy::DeleteFileSystemPolicyError, R>,
420    ) -> Self {
421        match err {
422            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
423            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
424                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
425                source: err.into(),
426            }),
427        }
428    }
429}
430impl From<crate::operation::delete_file_system_policy::DeleteFileSystemPolicyError> for Error {
431    fn from(err: crate::operation::delete_file_system_policy::DeleteFileSystemPolicyError) -> Self {
432        match err {
433            crate::operation::delete_file_system_policy::DeleteFileSystemPolicyError::BadRequest(inner) => Error::BadRequest(inner),
434            crate::operation::delete_file_system_policy::DeleteFileSystemPolicyError::FileSystemNotFound(inner) => Error::FileSystemNotFound(inner),
435            crate::operation::delete_file_system_policy::DeleteFileSystemPolicyError::IncorrectFileSystemLifeCycleState(inner) => {
436                Error::IncorrectFileSystemLifeCycleState(inner)
437            }
438            crate::operation::delete_file_system_policy::DeleteFileSystemPolicyError::InternalServerError(inner) => Error::InternalServerError(inner),
439            crate::operation::delete_file_system_policy::DeleteFileSystemPolicyError::Unhandled(inner) => Error::Unhandled(inner),
440        }
441    }
442}
443impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_mount_target::DeleteMountTargetError, R>> for Error
444where
445    R: Send + Sync + std::fmt::Debug + 'static,
446{
447    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_mount_target::DeleteMountTargetError, R>) -> Self {
448        match err {
449            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
450            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
451                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
452                source: err.into(),
453            }),
454        }
455    }
456}
457impl From<crate::operation::delete_mount_target::DeleteMountTargetError> for Error {
458    fn from(err: crate::operation::delete_mount_target::DeleteMountTargetError) -> Self {
459        match err {
460            crate::operation::delete_mount_target::DeleteMountTargetError::BadRequest(inner) => Error::BadRequest(inner),
461            crate::operation::delete_mount_target::DeleteMountTargetError::DependencyTimeout(inner) => Error::DependencyTimeout(inner),
462            crate::operation::delete_mount_target::DeleteMountTargetError::InternalServerError(inner) => Error::InternalServerError(inner),
463            crate::operation::delete_mount_target::DeleteMountTargetError::MountTargetNotFound(inner) => Error::MountTargetNotFound(inner),
464            crate::operation::delete_mount_target::DeleteMountTargetError::Unhandled(inner) => Error::Unhandled(inner),
465        }
466    }
467}
468impl<R>
469    From<
470        ::aws_smithy_runtime_api::client::result::SdkError<
471            crate::operation::delete_replication_configuration::DeleteReplicationConfigurationError,
472            R,
473        >,
474    > for Error
475where
476    R: Send + Sync + std::fmt::Debug + 'static,
477{
478    fn from(
479        err: ::aws_smithy_runtime_api::client::result::SdkError<
480            crate::operation::delete_replication_configuration::DeleteReplicationConfigurationError,
481            R,
482        >,
483    ) -> Self {
484        match err {
485            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
486            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
487                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
488                source: err.into(),
489            }),
490        }
491    }
492}
493impl From<crate::operation::delete_replication_configuration::DeleteReplicationConfigurationError> for Error {
494    fn from(err: crate::operation::delete_replication_configuration::DeleteReplicationConfigurationError) -> Self {
495        match err {
496            crate::operation::delete_replication_configuration::DeleteReplicationConfigurationError::BadRequest(inner) => Error::BadRequest(inner),
497            crate::operation::delete_replication_configuration::DeleteReplicationConfigurationError::FileSystemNotFound(inner) => {
498                Error::FileSystemNotFound(inner)
499            }
500            crate::operation::delete_replication_configuration::DeleteReplicationConfigurationError::InternalServerError(inner) => {
501                Error::InternalServerError(inner)
502            }
503            crate::operation::delete_replication_configuration::DeleteReplicationConfigurationError::ReplicationNotFound(inner) => {
504                Error::ReplicationNotFound(inner)
505            }
506            crate::operation::delete_replication_configuration::DeleteReplicationConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
507        }
508    }
509}
510impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_tags::DeleteTagsError, R>> for Error
511where
512    R: Send + Sync + std::fmt::Debug + 'static,
513{
514    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_tags::DeleteTagsError, R>) -> Self {
515        match err {
516            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
517            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
518                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
519                source: err.into(),
520            }),
521        }
522    }
523}
524impl From<crate::operation::delete_tags::DeleteTagsError> for Error {
525    fn from(err: crate::operation::delete_tags::DeleteTagsError) -> Self {
526        match err {
527            crate::operation::delete_tags::DeleteTagsError::BadRequest(inner) => Error::BadRequest(inner),
528            crate::operation::delete_tags::DeleteTagsError::FileSystemNotFound(inner) => Error::FileSystemNotFound(inner),
529            crate::operation::delete_tags::DeleteTagsError::InternalServerError(inner) => Error::InternalServerError(inner),
530            crate::operation::delete_tags::DeleteTagsError::Unhandled(inner) => Error::Unhandled(inner),
531        }
532    }
533}
534impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_access_points::DescribeAccessPointsError, R>> for Error
535where
536    R: Send + Sync + std::fmt::Debug + 'static,
537{
538    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_access_points::DescribeAccessPointsError, R>) -> Self {
539        match err {
540            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
541            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
542                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
543                source: err.into(),
544            }),
545        }
546    }
547}
548impl From<crate::operation::describe_access_points::DescribeAccessPointsError> for Error {
549    fn from(err: crate::operation::describe_access_points::DescribeAccessPointsError) -> Self {
550        match err {
551            crate::operation::describe_access_points::DescribeAccessPointsError::AccessPointNotFound(inner) => Error::AccessPointNotFound(inner),
552            crate::operation::describe_access_points::DescribeAccessPointsError::BadRequest(inner) => Error::BadRequest(inner),
553            crate::operation::describe_access_points::DescribeAccessPointsError::FileSystemNotFound(inner) => Error::FileSystemNotFound(inner),
554            crate::operation::describe_access_points::DescribeAccessPointsError::InternalServerError(inner) => Error::InternalServerError(inner),
555            crate::operation::describe_access_points::DescribeAccessPointsError::Unhandled(inner) => Error::Unhandled(inner),
556        }
557    }
558}
559impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_account_preferences::DescribeAccountPreferencesError, R>>
560    for Error
561where
562    R: Send + Sync + std::fmt::Debug + 'static,
563{
564    fn from(
565        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_account_preferences::DescribeAccountPreferencesError, R>,
566    ) -> Self {
567        match err {
568            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
569            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
570                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
571                source: err.into(),
572            }),
573        }
574    }
575}
576impl From<crate::operation::describe_account_preferences::DescribeAccountPreferencesError> for Error {
577    fn from(err: crate::operation::describe_account_preferences::DescribeAccountPreferencesError) -> Self {
578        match err {
579            crate::operation::describe_account_preferences::DescribeAccountPreferencesError::InternalServerError(inner) => {
580                Error::InternalServerError(inner)
581            }
582            crate::operation::describe_account_preferences::DescribeAccountPreferencesError::Unhandled(inner) => Error::Unhandled(inner),
583        }
584    }
585}
586impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_backup_policy::DescribeBackupPolicyError, R>> for Error
587where
588    R: Send + Sync + std::fmt::Debug + 'static,
589{
590    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_backup_policy::DescribeBackupPolicyError, R>) -> Self {
591        match err {
592            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
593            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
594                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
595                source: err.into(),
596            }),
597        }
598    }
599}
600impl From<crate::operation::describe_backup_policy::DescribeBackupPolicyError> for Error {
601    fn from(err: crate::operation::describe_backup_policy::DescribeBackupPolicyError) -> Self {
602        match err {
603            crate::operation::describe_backup_policy::DescribeBackupPolicyError::BadRequest(inner) => Error::BadRequest(inner),
604            crate::operation::describe_backup_policy::DescribeBackupPolicyError::FileSystemNotFound(inner) => Error::FileSystemNotFound(inner),
605            crate::operation::describe_backup_policy::DescribeBackupPolicyError::InternalServerError(inner) => Error::InternalServerError(inner),
606            crate::operation::describe_backup_policy::DescribeBackupPolicyError::PolicyNotFound(inner) => Error::PolicyNotFound(inner),
607            crate::operation::describe_backup_policy::DescribeBackupPolicyError::ValidationException(inner) => Error::ValidationException(inner),
608            crate::operation::describe_backup_policy::DescribeBackupPolicyError::Unhandled(inner) => Error::Unhandled(inner),
609        }
610    }
611}
612impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_file_system_policy::DescribeFileSystemPolicyError, R>>
613    for Error
614where
615    R: Send + Sync + std::fmt::Debug + 'static,
616{
617    fn from(
618        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_file_system_policy::DescribeFileSystemPolicyError, R>,
619    ) -> Self {
620        match err {
621            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
622            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
623                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
624                source: err.into(),
625            }),
626        }
627    }
628}
629impl From<crate::operation::describe_file_system_policy::DescribeFileSystemPolicyError> for Error {
630    fn from(err: crate::operation::describe_file_system_policy::DescribeFileSystemPolicyError) -> Self {
631        match err {
632            crate::operation::describe_file_system_policy::DescribeFileSystemPolicyError::BadRequest(inner) => Error::BadRequest(inner),
633            crate::operation::describe_file_system_policy::DescribeFileSystemPolicyError::FileSystemNotFound(inner) => {
634                Error::FileSystemNotFound(inner)
635            }
636            crate::operation::describe_file_system_policy::DescribeFileSystemPolicyError::InternalServerError(inner) => {
637                Error::InternalServerError(inner)
638            }
639            crate::operation::describe_file_system_policy::DescribeFileSystemPolicyError::PolicyNotFound(inner) => Error::PolicyNotFound(inner),
640            crate::operation::describe_file_system_policy::DescribeFileSystemPolicyError::Unhandled(inner) => Error::Unhandled(inner),
641        }
642    }
643}
644impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_file_systems::DescribeFileSystemsError, R>> for Error
645where
646    R: Send + Sync + std::fmt::Debug + 'static,
647{
648    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_file_systems::DescribeFileSystemsError, R>) -> Self {
649        match err {
650            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
651            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
652                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
653                source: err.into(),
654            }),
655        }
656    }
657}
658impl From<crate::operation::describe_file_systems::DescribeFileSystemsError> for Error {
659    fn from(err: crate::operation::describe_file_systems::DescribeFileSystemsError) -> Self {
660        match err {
661            crate::operation::describe_file_systems::DescribeFileSystemsError::BadRequest(inner) => Error::BadRequest(inner),
662            crate::operation::describe_file_systems::DescribeFileSystemsError::FileSystemNotFound(inner) => Error::FileSystemNotFound(inner),
663            crate::operation::describe_file_systems::DescribeFileSystemsError::InternalServerError(inner) => Error::InternalServerError(inner),
664            crate::operation::describe_file_systems::DescribeFileSystemsError::Unhandled(inner) => Error::Unhandled(inner),
665        }
666    }
667}
668impl<R>
669    From<
670        ::aws_smithy_runtime_api::client::result::SdkError<
671            crate::operation::describe_lifecycle_configuration::DescribeLifecycleConfigurationError,
672            R,
673        >,
674    > for Error
675where
676    R: Send + Sync + std::fmt::Debug + 'static,
677{
678    fn from(
679        err: ::aws_smithy_runtime_api::client::result::SdkError<
680            crate::operation::describe_lifecycle_configuration::DescribeLifecycleConfigurationError,
681            R,
682        >,
683    ) -> Self {
684        match err {
685            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
686            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
687                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
688                source: err.into(),
689            }),
690        }
691    }
692}
693impl From<crate::operation::describe_lifecycle_configuration::DescribeLifecycleConfigurationError> for Error {
694    fn from(err: crate::operation::describe_lifecycle_configuration::DescribeLifecycleConfigurationError) -> Self {
695        match err {
696            crate::operation::describe_lifecycle_configuration::DescribeLifecycleConfigurationError::BadRequest(inner) => Error::BadRequest(inner),
697            crate::operation::describe_lifecycle_configuration::DescribeLifecycleConfigurationError::FileSystemNotFound(inner) => {
698                Error::FileSystemNotFound(inner)
699            }
700            crate::operation::describe_lifecycle_configuration::DescribeLifecycleConfigurationError::InternalServerError(inner) => {
701                Error::InternalServerError(inner)
702            }
703            crate::operation::describe_lifecycle_configuration::DescribeLifecycleConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
704        }
705    }
706}
707impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_mount_targets::DescribeMountTargetsError, R>> for Error
708where
709    R: Send + Sync + std::fmt::Debug + 'static,
710{
711    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_mount_targets::DescribeMountTargetsError, R>) -> Self {
712        match err {
713            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
714            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
715                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
716                source: err.into(),
717            }),
718        }
719    }
720}
721impl From<crate::operation::describe_mount_targets::DescribeMountTargetsError> for Error {
722    fn from(err: crate::operation::describe_mount_targets::DescribeMountTargetsError) -> Self {
723        match err {
724            crate::operation::describe_mount_targets::DescribeMountTargetsError::AccessPointNotFound(inner) => Error::AccessPointNotFound(inner),
725            crate::operation::describe_mount_targets::DescribeMountTargetsError::BadRequest(inner) => Error::BadRequest(inner),
726            crate::operation::describe_mount_targets::DescribeMountTargetsError::FileSystemNotFound(inner) => Error::FileSystemNotFound(inner),
727            crate::operation::describe_mount_targets::DescribeMountTargetsError::InternalServerError(inner) => Error::InternalServerError(inner),
728            crate::operation::describe_mount_targets::DescribeMountTargetsError::MountTargetNotFound(inner) => Error::MountTargetNotFound(inner),
729            crate::operation::describe_mount_targets::DescribeMountTargetsError::Unhandled(inner) => Error::Unhandled(inner),
730        }
731    }
732}
733impl<R>
734    From<
735        ::aws_smithy_runtime_api::client::result::SdkError<
736            crate::operation::describe_mount_target_security_groups::DescribeMountTargetSecurityGroupsError,
737            R,
738        >,
739    > for Error
740where
741    R: Send + Sync + std::fmt::Debug + 'static,
742{
743    fn from(
744        err: ::aws_smithy_runtime_api::client::result::SdkError<
745            crate::operation::describe_mount_target_security_groups::DescribeMountTargetSecurityGroupsError,
746            R,
747        >,
748    ) -> Self {
749        match err {
750            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
751            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
752                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
753                source: err.into(),
754            }),
755        }
756    }
757}
758impl From<crate::operation::describe_mount_target_security_groups::DescribeMountTargetSecurityGroupsError> for Error {
759    fn from(err: crate::operation::describe_mount_target_security_groups::DescribeMountTargetSecurityGroupsError) -> Self {
760        match err {
761            crate::operation::describe_mount_target_security_groups::DescribeMountTargetSecurityGroupsError::BadRequest(inner) => {
762                Error::BadRequest(inner)
763            }
764            crate::operation::describe_mount_target_security_groups::DescribeMountTargetSecurityGroupsError::IncorrectMountTargetState(inner) => {
765                Error::IncorrectMountTargetState(inner)
766            }
767            crate::operation::describe_mount_target_security_groups::DescribeMountTargetSecurityGroupsError::InternalServerError(inner) => {
768                Error::InternalServerError(inner)
769            }
770            crate::operation::describe_mount_target_security_groups::DescribeMountTargetSecurityGroupsError::MountTargetNotFound(inner) => {
771                Error::MountTargetNotFound(inner)
772            }
773            crate::operation::describe_mount_target_security_groups::DescribeMountTargetSecurityGroupsError::Unhandled(inner) => {
774                Error::Unhandled(inner)
775            }
776        }
777    }
778}
779impl<R>
780    From<
781        ::aws_smithy_runtime_api::client::result::SdkError<
782            crate::operation::describe_replication_configurations::DescribeReplicationConfigurationsError,
783            R,
784        >,
785    > for Error
786where
787    R: Send + Sync + std::fmt::Debug + 'static,
788{
789    fn from(
790        err: ::aws_smithy_runtime_api::client::result::SdkError<
791            crate::operation::describe_replication_configurations::DescribeReplicationConfigurationsError,
792            R,
793        >,
794    ) -> Self {
795        match err {
796            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
797            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
798                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
799                source: err.into(),
800            }),
801        }
802    }
803}
804impl From<crate::operation::describe_replication_configurations::DescribeReplicationConfigurationsError> for Error {
805    fn from(err: crate::operation::describe_replication_configurations::DescribeReplicationConfigurationsError) -> Self {
806        match err {
807            crate::operation::describe_replication_configurations::DescribeReplicationConfigurationsError::BadRequest(inner) => {
808                Error::BadRequest(inner)
809            }
810            crate::operation::describe_replication_configurations::DescribeReplicationConfigurationsError::FileSystemNotFound(inner) => {
811                Error::FileSystemNotFound(inner)
812            }
813            crate::operation::describe_replication_configurations::DescribeReplicationConfigurationsError::InternalServerError(inner) => {
814                Error::InternalServerError(inner)
815            }
816            crate::operation::describe_replication_configurations::DescribeReplicationConfigurationsError::ReplicationNotFound(inner) => {
817                Error::ReplicationNotFound(inner)
818            }
819            crate::operation::describe_replication_configurations::DescribeReplicationConfigurationsError::ValidationException(inner) => {
820                Error::ValidationException(inner)
821            }
822            crate::operation::describe_replication_configurations::DescribeReplicationConfigurationsError::Unhandled(inner) => {
823                Error::Unhandled(inner)
824            }
825        }
826    }
827}
828impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_tags::DescribeTagsError, R>> for Error
829where
830    R: Send + Sync + std::fmt::Debug + 'static,
831{
832    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_tags::DescribeTagsError, R>) -> Self {
833        match err {
834            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
835            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
836                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
837                source: err.into(),
838            }),
839        }
840    }
841}
842impl From<crate::operation::describe_tags::DescribeTagsError> for Error {
843    fn from(err: crate::operation::describe_tags::DescribeTagsError) -> Self {
844        match err {
845            crate::operation::describe_tags::DescribeTagsError::BadRequest(inner) => Error::BadRequest(inner),
846            crate::operation::describe_tags::DescribeTagsError::FileSystemNotFound(inner) => Error::FileSystemNotFound(inner),
847            crate::operation::describe_tags::DescribeTagsError::InternalServerError(inner) => Error::InternalServerError(inner),
848            crate::operation::describe_tags::DescribeTagsError::Unhandled(inner) => Error::Unhandled(inner),
849        }
850    }
851}
852impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
853where
854    R: Send + Sync + std::fmt::Debug + 'static,
855{
856    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
857        match err {
858            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
859            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
860                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
861                source: err.into(),
862            }),
863        }
864    }
865}
866impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
867    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
868        match err {
869            crate::operation::list_tags_for_resource::ListTagsForResourceError::AccessPointNotFound(inner) => Error::AccessPointNotFound(inner),
870            crate::operation::list_tags_for_resource::ListTagsForResourceError::BadRequest(inner) => Error::BadRequest(inner),
871            crate::operation::list_tags_for_resource::ListTagsForResourceError::FileSystemNotFound(inner) => Error::FileSystemNotFound(inner),
872            crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerError(inner) => Error::InternalServerError(inner),
873            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
874        }
875    }
876}
877impl<R>
878    From<
879        ::aws_smithy_runtime_api::client::result::SdkError<
880            crate::operation::modify_mount_target_security_groups::ModifyMountTargetSecurityGroupsError,
881            R,
882        >,
883    > for Error
884where
885    R: Send + Sync + std::fmt::Debug + 'static,
886{
887    fn from(
888        err: ::aws_smithy_runtime_api::client::result::SdkError<
889            crate::operation::modify_mount_target_security_groups::ModifyMountTargetSecurityGroupsError,
890            R,
891        >,
892    ) -> Self {
893        match err {
894            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
895            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
896                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
897                source: err.into(),
898            }),
899        }
900    }
901}
902impl From<crate::operation::modify_mount_target_security_groups::ModifyMountTargetSecurityGroupsError> for Error {
903    fn from(err: crate::operation::modify_mount_target_security_groups::ModifyMountTargetSecurityGroupsError) -> Self {
904        match err {
905            crate::operation::modify_mount_target_security_groups::ModifyMountTargetSecurityGroupsError::BadRequest(inner) => {
906                Error::BadRequest(inner)
907            }
908            crate::operation::modify_mount_target_security_groups::ModifyMountTargetSecurityGroupsError::IncorrectMountTargetState(inner) => {
909                Error::IncorrectMountTargetState(inner)
910            }
911            crate::operation::modify_mount_target_security_groups::ModifyMountTargetSecurityGroupsError::InternalServerError(inner) => {
912                Error::InternalServerError(inner)
913            }
914            crate::operation::modify_mount_target_security_groups::ModifyMountTargetSecurityGroupsError::MountTargetNotFound(inner) => {
915                Error::MountTargetNotFound(inner)
916            }
917            crate::operation::modify_mount_target_security_groups::ModifyMountTargetSecurityGroupsError::SecurityGroupLimitExceeded(inner) => {
918                Error::SecurityGroupLimitExceeded(inner)
919            }
920            crate::operation::modify_mount_target_security_groups::ModifyMountTargetSecurityGroupsError::SecurityGroupNotFound(inner) => {
921                Error::SecurityGroupNotFound(inner)
922            }
923            crate::operation::modify_mount_target_security_groups::ModifyMountTargetSecurityGroupsError::Unhandled(inner) => Error::Unhandled(inner),
924        }
925    }
926}
927impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_account_preferences::PutAccountPreferencesError, R>> for Error
928where
929    R: Send + Sync + std::fmt::Debug + 'static,
930{
931    fn from(
932        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_account_preferences::PutAccountPreferencesError, R>,
933    ) -> Self {
934        match err {
935            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
936            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
937                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
938                source: err.into(),
939            }),
940        }
941    }
942}
943impl From<crate::operation::put_account_preferences::PutAccountPreferencesError> for Error {
944    fn from(err: crate::operation::put_account_preferences::PutAccountPreferencesError) -> Self {
945        match err {
946            crate::operation::put_account_preferences::PutAccountPreferencesError::BadRequest(inner) => Error::BadRequest(inner),
947            crate::operation::put_account_preferences::PutAccountPreferencesError::InternalServerError(inner) => Error::InternalServerError(inner),
948            crate::operation::put_account_preferences::PutAccountPreferencesError::Unhandled(inner) => Error::Unhandled(inner),
949        }
950    }
951}
952impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_backup_policy::PutBackupPolicyError, R>> for Error
953where
954    R: Send + Sync + std::fmt::Debug + 'static,
955{
956    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_backup_policy::PutBackupPolicyError, R>) -> Self {
957        match err {
958            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
959            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
960                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
961                source: err.into(),
962            }),
963        }
964    }
965}
966impl From<crate::operation::put_backup_policy::PutBackupPolicyError> for Error {
967    fn from(err: crate::operation::put_backup_policy::PutBackupPolicyError) -> Self {
968        match err {
969            crate::operation::put_backup_policy::PutBackupPolicyError::BadRequest(inner) => Error::BadRequest(inner),
970            crate::operation::put_backup_policy::PutBackupPolicyError::FileSystemNotFound(inner) => Error::FileSystemNotFound(inner),
971            crate::operation::put_backup_policy::PutBackupPolicyError::IncorrectFileSystemLifeCycleState(inner) => {
972                Error::IncorrectFileSystemLifeCycleState(inner)
973            }
974            crate::operation::put_backup_policy::PutBackupPolicyError::InternalServerError(inner) => Error::InternalServerError(inner),
975            crate::operation::put_backup_policy::PutBackupPolicyError::ValidationException(inner) => Error::ValidationException(inner),
976            crate::operation::put_backup_policy::PutBackupPolicyError::Unhandled(inner) => Error::Unhandled(inner),
977        }
978    }
979}
980impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_file_system_policy::PutFileSystemPolicyError, R>> for Error
981where
982    R: Send + Sync + std::fmt::Debug + 'static,
983{
984    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_file_system_policy::PutFileSystemPolicyError, R>) -> Self {
985        match err {
986            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
987            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
988                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
989                source: err.into(),
990            }),
991        }
992    }
993}
994impl From<crate::operation::put_file_system_policy::PutFileSystemPolicyError> for Error {
995    fn from(err: crate::operation::put_file_system_policy::PutFileSystemPolicyError) -> Self {
996        match err {
997            crate::operation::put_file_system_policy::PutFileSystemPolicyError::BadRequest(inner) => Error::BadRequest(inner),
998            crate::operation::put_file_system_policy::PutFileSystemPolicyError::FileSystemNotFound(inner) => Error::FileSystemNotFound(inner),
999            crate::operation::put_file_system_policy::PutFileSystemPolicyError::IncorrectFileSystemLifeCycleState(inner) => {
1000                Error::IncorrectFileSystemLifeCycleState(inner)
1001            }
1002            crate::operation::put_file_system_policy::PutFileSystemPolicyError::InternalServerError(inner) => Error::InternalServerError(inner),
1003            crate::operation::put_file_system_policy::PutFileSystemPolicyError::InvalidPolicyException(inner) => Error::InvalidPolicyException(inner),
1004            crate::operation::put_file_system_policy::PutFileSystemPolicyError::Unhandled(inner) => Error::Unhandled(inner),
1005        }
1006    }
1007}
1008impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_lifecycle_configuration::PutLifecycleConfigurationError, R>>
1009    for Error
1010where
1011    R: Send + Sync + std::fmt::Debug + 'static,
1012{
1013    fn from(
1014        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_lifecycle_configuration::PutLifecycleConfigurationError, R>,
1015    ) -> Self {
1016        match err {
1017            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1018            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1019                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1020                source: err.into(),
1021            }),
1022        }
1023    }
1024}
1025impl From<crate::operation::put_lifecycle_configuration::PutLifecycleConfigurationError> for Error {
1026    fn from(err: crate::operation::put_lifecycle_configuration::PutLifecycleConfigurationError) -> Self {
1027        match err {
1028            crate::operation::put_lifecycle_configuration::PutLifecycleConfigurationError::BadRequest(inner) => Error::BadRequest(inner),
1029            crate::operation::put_lifecycle_configuration::PutLifecycleConfigurationError::FileSystemNotFound(inner) => {
1030                Error::FileSystemNotFound(inner)
1031            }
1032            crate::operation::put_lifecycle_configuration::PutLifecycleConfigurationError::IncorrectFileSystemLifeCycleState(inner) => {
1033                Error::IncorrectFileSystemLifeCycleState(inner)
1034            }
1035            crate::operation::put_lifecycle_configuration::PutLifecycleConfigurationError::InternalServerError(inner) => {
1036                Error::InternalServerError(inner)
1037            }
1038            crate::operation::put_lifecycle_configuration::PutLifecycleConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1039        }
1040    }
1041}
1042impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
1043where
1044    R: Send + Sync + std::fmt::Debug + 'static,
1045{
1046    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
1047        match err {
1048            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1049            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1050                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1051                source: err.into(),
1052            }),
1053        }
1054    }
1055}
1056impl From<crate::operation::tag_resource::TagResourceError> for Error {
1057    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
1058        match err {
1059            crate::operation::tag_resource::TagResourceError::AccessPointNotFound(inner) => Error::AccessPointNotFound(inner),
1060            crate::operation::tag_resource::TagResourceError::BadRequest(inner) => Error::BadRequest(inner),
1061            crate::operation::tag_resource::TagResourceError::FileSystemNotFound(inner) => Error::FileSystemNotFound(inner),
1062            crate::operation::tag_resource::TagResourceError::InternalServerError(inner) => Error::InternalServerError(inner),
1063            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1064        }
1065    }
1066}
1067impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
1068where
1069    R: Send + Sync + std::fmt::Debug + 'static,
1070{
1071    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
1072        match err {
1073            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1074            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1075                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1076                source: err.into(),
1077            }),
1078        }
1079    }
1080}
1081impl From<crate::operation::untag_resource::UntagResourceError> for Error {
1082    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
1083        match err {
1084            crate::operation::untag_resource::UntagResourceError::AccessPointNotFound(inner) => Error::AccessPointNotFound(inner),
1085            crate::operation::untag_resource::UntagResourceError::BadRequest(inner) => Error::BadRequest(inner),
1086            crate::operation::untag_resource::UntagResourceError::FileSystemNotFound(inner) => Error::FileSystemNotFound(inner),
1087            crate::operation::untag_resource::UntagResourceError::InternalServerError(inner) => Error::InternalServerError(inner),
1088            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1089        }
1090    }
1091}
1092impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_file_system::UpdateFileSystemError, R>> for Error
1093where
1094    R: Send + Sync + std::fmt::Debug + 'static,
1095{
1096    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_file_system::UpdateFileSystemError, R>) -> Self {
1097        match err {
1098            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1099            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1100                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1101                source: err.into(),
1102            }),
1103        }
1104    }
1105}
1106impl From<crate::operation::update_file_system::UpdateFileSystemError> for Error {
1107    fn from(err: crate::operation::update_file_system::UpdateFileSystemError) -> Self {
1108        match err {
1109            crate::operation::update_file_system::UpdateFileSystemError::BadRequest(inner) => Error::BadRequest(inner),
1110            crate::operation::update_file_system::UpdateFileSystemError::FileSystemNotFound(inner) => Error::FileSystemNotFound(inner),
1111            crate::operation::update_file_system::UpdateFileSystemError::IncorrectFileSystemLifeCycleState(inner) => {
1112                Error::IncorrectFileSystemLifeCycleState(inner)
1113            }
1114            crate::operation::update_file_system::UpdateFileSystemError::InsufficientThroughputCapacity(inner) => {
1115                Error::InsufficientThroughputCapacity(inner)
1116            }
1117            crate::operation::update_file_system::UpdateFileSystemError::InternalServerError(inner) => Error::InternalServerError(inner),
1118            crate::operation::update_file_system::UpdateFileSystemError::ThroughputLimitExceeded(inner) => Error::ThroughputLimitExceeded(inner),
1119            crate::operation::update_file_system::UpdateFileSystemError::TooManyRequests(inner) => Error::TooManyRequests(inner),
1120            crate::operation::update_file_system::UpdateFileSystemError::Unhandled(inner) => Error::Unhandled(inner),
1121        }
1122    }
1123}
1124impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_file_system_protection::UpdateFileSystemProtectionError, R>>
1125    for Error
1126where
1127    R: Send + Sync + std::fmt::Debug + 'static,
1128{
1129    fn from(
1130        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_file_system_protection::UpdateFileSystemProtectionError, R>,
1131    ) -> Self {
1132        match err {
1133            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1134            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1135                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1136                source: err.into(),
1137            }),
1138        }
1139    }
1140}
1141impl From<crate::operation::update_file_system_protection::UpdateFileSystemProtectionError> for Error {
1142    fn from(err: crate::operation::update_file_system_protection::UpdateFileSystemProtectionError) -> Self {
1143        match err {
1144            crate::operation::update_file_system_protection::UpdateFileSystemProtectionError::BadRequest(inner) => Error::BadRequest(inner),
1145            crate::operation::update_file_system_protection::UpdateFileSystemProtectionError::FileSystemNotFound(inner) => {
1146                Error::FileSystemNotFound(inner)
1147            }
1148            crate::operation::update_file_system_protection::UpdateFileSystemProtectionError::IncorrectFileSystemLifeCycleState(inner) => {
1149                Error::IncorrectFileSystemLifeCycleState(inner)
1150            }
1151            crate::operation::update_file_system_protection::UpdateFileSystemProtectionError::InsufficientThroughputCapacity(inner) => {
1152                Error::InsufficientThroughputCapacity(inner)
1153            }
1154            crate::operation::update_file_system_protection::UpdateFileSystemProtectionError::InternalServerError(inner) => {
1155                Error::InternalServerError(inner)
1156            }
1157            crate::operation::update_file_system_protection::UpdateFileSystemProtectionError::ReplicationAlreadyExists(inner) => {
1158                Error::ReplicationAlreadyExists(inner)
1159            }
1160            crate::operation::update_file_system_protection::UpdateFileSystemProtectionError::ThroughputLimitExceeded(inner) => {
1161                Error::ThroughputLimitExceeded(inner)
1162            }
1163            crate::operation::update_file_system_protection::UpdateFileSystemProtectionError::TooManyRequests(inner) => Error::TooManyRequests(inner),
1164            crate::operation::update_file_system_protection::UpdateFileSystemProtectionError::Unhandled(inner) => Error::Unhandled(inner),
1165        }
1166    }
1167}
1168impl ::std::error::Error for Error {
1169    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
1170        match self {
1171            Error::AccessPointAlreadyExists(inner) => inner.source(),
1172            Error::AccessPointLimitExceeded(inner) => inner.source(),
1173            Error::AccessPointNotFound(inner) => inner.source(),
1174            Error::AvailabilityZonesMismatch(inner) => inner.source(),
1175            Error::BadRequest(inner) => inner.source(),
1176            Error::ConflictException(inner) => inner.source(),
1177            Error::DependencyTimeout(inner) => inner.source(),
1178            Error::FileSystemAlreadyExists(inner) => inner.source(),
1179            Error::FileSystemInUse(inner) => inner.source(),
1180            Error::FileSystemLimitExceeded(inner) => inner.source(),
1181            Error::FileSystemNotFound(inner) => inner.source(),
1182            Error::IncorrectFileSystemLifeCycleState(inner) => inner.source(),
1183            Error::IncorrectMountTargetState(inner) => inner.source(),
1184            Error::InsufficientThroughputCapacity(inner) => inner.source(),
1185            Error::InternalServerError(inner) => inner.source(),
1186            Error::InvalidPolicyException(inner) => inner.source(),
1187            Error::IpAddressInUse(inner) => inner.source(),
1188            Error::MountTargetConflict(inner) => inner.source(),
1189            Error::MountTargetNotFound(inner) => inner.source(),
1190            Error::NetworkInterfaceLimitExceeded(inner) => inner.source(),
1191            Error::NoFreeAddressesInSubnet(inner) => inner.source(),
1192            Error::PolicyNotFound(inner) => inner.source(),
1193            Error::ReplicationAlreadyExists(inner) => inner.source(),
1194            Error::ReplicationNotFound(inner) => inner.source(),
1195            Error::SecurityGroupLimitExceeded(inner) => inner.source(),
1196            Error::SecurityGroupNotFound(inner) => inner.source(),
1197            Error::SubnetNotFound(inner) => inner.source(),
1198            Error::ThrottlingException(inner) => inner.source(),
1199            Error::ThroughputLimitExceeded(inner) => inner.source(),
1200            Error::TooManyRequests(inner) => inner.source(),
1201            Error::UnsupportedAvailabilityZone(inner) => inner.source(),
1202            Error::ValidationException(inner) => inner.source(),
1203            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
1204        }
1205    }
1206}
1207impl ::aws_types::request_id::RequestId for Error {
1208    fn request_id(&self) -> Option<&str> {
1209        match self {
1210            Self::AccessPointAlreadyExists(e) => e.request_id(),
1211            Self::AccessPointLimitExceeded(e) => e.request_id(),
1212            Self::AccessPointNotFound(e) => e.request_id(),
1213            Self::AvailabilityZonesMismatch(e) => e.request_id(),
1214            Self::BadRequest(e) => e.request_id(),
1215            Self::ConflictException(e) => e.request_id(),
1216            Self::DependencyTimeout(e) => e.request_id(),
1217            Self::FileSystemAlreadyExists(e) => e.request_id(),
1218            Self::FileSystemInUse(e) => e.request_id(),
1219            Self::FileSystemLimitExceeded(e) => e.request_id(),
1220            Self::FileSystemNotFound(e) => e.request_id(),
1221            Self::IncorrectFileSystemLifeCycleState(e) => e.request_id(),
1222            Self::IncorrectMountTargetState(e) => e.request_id(),
1223            Self::InsufficientThroughputCapacity(e) => e.request_id(),
1224            Self::InternalServerError(e) => e.request_id(),
1225            Self::InvalidPolicyException(e) => e.request_id(),
1226            Self::IpAddressInUse(e) => e.request_id(),
1227            Self::MountTargetConflict(e) => e.request_id(),
1228            Self::MountTargetNotFound(e) => e.request_id(),
1229            Self::NetworkInterfaceLimitExceeded(e) => e.request_id(),
1230            Self::NoFreeAddressesInSubnet(e) => e.request_id(),
1231            Self::PolicyNotFound(e) => e.request_id(),
1232            Self::ReplicationAlreadyExists(e) => e.request_id(),
1233            Self::ReplicationNotFound(e) => e.request_id(),
1234            Self::SecurityGroupLimitExceeded(e) => e.request_id(),
1235            Self::SecurityGroupNotFound(e) => e.request_id(),
1236            Self::SubnetNotFound(e) => e.request_id(),
1237            Self::ThrottlingException(e) => e.request_id(),
1238            Self::ThroughputLimitExceeded(e) => e.request_id(),
1239            Self::TooManyRequests(e) => e.request_id(),
1240            Self::UnsupportedAvailabilityZone(e) => e.request_id(),
1241            Self::ValidationException(e) => e.request_id(),
1242            Self::Unhandled(e) => e.meta.request_id(),
1243        }
1244    }
1245}