aws_sdk_networkfirewall/
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>Amazon Web Services doesn't currently have enough available capacity to fulfill your request. Try your request later.</p>
7    InsufficientCapacityException(crate::types::error::InsufficientCapacityException),
8    /// <p>Your request is valid, but Network Firewall couldn't perform the operation because of a system problem. Retry your request.</p>
9    InternalServerError(crate::types::error::InternalServerError),
10    /// <p>The operation failed because it's not valid. For example, you might have tried to delete a rule group or firewall policy that's in use.</p>
11    InvalidOperationException(crate::types::error::InvalidOperationException),
12    /// <p>The operation failed because of a problem with your request. Examples include:</p>
13    /// <ul>
14    /// <li>
15    /// <p>You specified an unsupported parameter name or value.</p></li>
16    /// <li>
17    /// <p>You tried to update a property with a value that isn't among the available types.</p></li>
18    /// <li>
19    /// <p>Your request references an ARN that is malformed, or corresponds to a resource that isn't valid in the context of the request.</p></li>
20    /// </ul>
21    InvalidRequestException(crate::types::error::InvalidRequestException),
22    /// <p>The policy statement failed validation.</p>
23    InvalidResourcePolicyException(crate::types::error::InvalidResourcePolicyException),
24    /// <p>The token you provided is stale or isn't valid for the operation.</p>
25    InvalidTokenException(crate::types::error::InvalidTokenException),
26    /// <p>Unable to perform the operation because doing so would violate a limit setting.</p>
27    LimitExceededException(crate::types::error::LimitExceededException),
28    /// <p>Unable to send logs to a configured logging destination.</p>
29    LogDestinationPermissionException(crate::types::error::LogDestinationPermissionException),
30    /// <p>Unable to locate a resource using the parameters that you provided.</p>
31    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
32    /// <p>Unable to change the resource because your account doesn't own it.</p>
33    ResourceOwnerCheckException(crate::types::error::ResourceOwnerCheckException),
34    /// <p>Unable to process the request due to throttling limitations.</p>
35    ThrottlingException(crate::types::error::ThrottlingException),
36    /// <p>The operation you requested isn't supported by Network Firewall.</p>
37    UnsupportedOperationException(crate::types::error::UnsupportedOperationException),
38    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
39    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
40    variable wildcard pattern and check `.code()`:
41     \
42    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
43     \
44    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
45    Unhandled(crate::error::sealed_unhandled::Unhandled),
46}
47impl ::std::fmt::Display for Error {
48    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
49        match self {
50            Error::InsufficientCapacityException(inner) => inner.fmt(f),
51            Error::InternalServerError(inner) => inner.fmt(f),
52            Error::InvalidOperationException(inner) => inner.fmt(f),
53            Error::InvalidRequestException(inner) => inner.fmt(f),
54            Error::InvalidResourcePolicyException(inner) => inner.fmt(f),
55            Error::InvalidTokenException(inner) => inner.fmt(f),
56            Error::LimitExceededException(inner) => inner.fmt(f),
57            Error::LogDestinationPermissionException(inner) => inner.fmt(f),
58            Error::ResourceNotFoundException(inner) => inner.fmt(f),
59            Error::ResourceOwnerCheckException(inner) => inner.fmt(f),
60            Error::ThrottlingException(inner) => inner.fmt(f),
61            Error::UnsupportedOperationException(inner) => inner.fmt(f),
62            Error::Unhandled(_) => {
63                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
64                    write!(f, "unhandled error ({code})")
65                } else {
66                    f.write_str("unhandled error")
67                }
68            }
69        }
70    }
71}
72impl From<::aws_smithy_types::error::operation::BuildError> for Error {
73    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
74        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
75            source: value.into(),
76            meta: ::std::default::Default::default(),
77        })
78    }
79}
80impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
81    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
82        match self {
83            Self::InsufficientCapacityException(inner) => inner.meta(),
84            Self::InternalServerError(inner) => inner.meta(),
85            Self::InvalidOperationException(inner) => inner.meta(),
86            Self::InvalidRequestException(inner) => inner.meta(),
87            Self::InvalidResourcePolicyException(inner) => inner.meta(),
88            Self::InvalidTokenException(inner) => inner.meta(),
89            Self::LimitExceededException(inner) => inner.meta(),
90            Self::LogDestinationPermissionException(inner) => inner.meta(),
91            Self::ResourceNotFoundException(inner) => inner.meta(),
92            Self::ResourceOwnerCheckException(inner) => inner.meta(),
93            Self::ThrottlingException(inner) => inner.meta(),
94            Self::UnsupportedOperationException(inner) => inner.meta(),
95            Self::Unhandled(inner) => &inner.meta,
96        }
97    }
98}
99impl<R>
100    From<
101        ::aws_smithy_runtime_api::client::result::SdkError<
102            crate::operation::accept_network_firewall_transit_gateway_attachment::AcceptNetworkFirewallTransitGatewayAttachmentError,
103            R,
104        >,
105    > for Error
106where
107    R: Send + Sync + std::fmt::Debug + 'static,
108{
109    fn from(
110        err: ::aws_smithy_runtime_api::client::result::SdkError<
111            crate::operation::accept_network_firewall_transit_gateway_attachment::AcceptNetworkFirewallTransitGatewayAttachmentError,
112            R,
113        >,
114    ) -> Self {
115        match err {
116            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
117            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
118                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
119                source: err.into(),
120            }),
121        }
122    }
123}
124impl From<crate::operation::accept_network_firewall_transit_gateway_attachment::AcceptNetworkFirewallTransitGatewayAttachmentError> for Error {
125    fn from(err: crate::operation::accept_network_firewall_transit_gateway_attachment::AcceptNetworkFirewallTransitGatewayAttachmentError) -> Self {
126        match err {
127            crate::operation::accept_network_firewall_transit_gateway_attachment::AcceptNetworkFirewallTransitGatewayAttachmentError::InternalServerError(inner) => Error::InternalServerError(inner),
128            crate::operation::accept_network_firewall_transit_gateway_attachment::AcceptNetworkFirewallTransitGatewayAttachmentError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
129            crate::operation::accept_network_firewall_transit_gateway_attachment::AcceptNetworkFirewallTransitGatewayAttachmentError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
130            crate::operation::accept_network_firewall_transit_gateway_attachment::AcceptNetworkFirewallTransitGatewayAttachmentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
131            crate::operation::accept_network_firewall_transit_gateway_attachment::AcceptNetworkFirewallTransitGatewayAttachmentError::Unhandled(inner) => Error::Unhandled(inner),
132        }
133    }
134}
135impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_availability_zones::AssociateAvailabilityZonesError, R>>
136    for Error
137where
138    R: Send + Sync + std::fmt::Debug + 'static,
139{
140    fn from(
141        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_availability_zones::AssociateAvailabilityZonesError, R>,
142    ) -> Self {
143        match err {
144            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
145            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
146                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
147                source: err.into(),
148            }),
149        }
150    }
151}
152impl From<crate::operation::associate_availability_zones::AssociateAvailabilityZonesError> for Error {
153    fn from(err: crate::operation::associate_availability_zones::AssociateAvailabilityZonesError) -> Self {
154        match err {
155            crate::operation::associate_availability_zones::AssociateAvailabilityZonesError::InsufficientCapacityException(inner) => {
156                Error::InsufficientCapacityException(inner)
157            }
158            crate::operation::associate_availability_zones::AssociateAvailabilityZonesError::InternalServerError(inner) => {
159                Error::InternalServerError(inner)
160            }
161            crate::operation::associate_availability_zones::AssociateAvailabilityZonesError::InvalidOperationException(inner) => {
162                Error::InvalidOperationException(inner)
163            }
164            crate::operation::associate_availability_zones::AssociateAvailabilityZonesError::InvalidRequestException(inner) => {
165                Error::InvalidRequestException(inner)
166            }
167            crate::operation::associate_availability_zones::AssociateAvailabilityZonesError::InvalidTokenException(inner) => {
168                Error::InvalidTokenException(inner)
169            }
170            crate::operation::associate_availability_zones::AssociateAvailabilityZonesError::ResourceNotFoundException(inner) => {
171                Error::ResourceNotFoundException(inner)
172            }
173            crate::operation::associate_availability_zones::AssociateAvailabilityZonesError::ThrottlingException(inner) => {
174                Error::ThrottlingException(inner)
175            }
176            crate::operation::associate_availability_zones::AssociateAvailabilityZonesError::Unhandled(inner) => Error::Unhandled(inner),
177        }
178    }
179}
180impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_firewall_policy::AssociateFirewallPolicyError, R>>
181    for Error
182where
183    R: Send + Sync + std::fmt::Debug + 'static,
184{
185    fn from(
186        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_firewall_policy::AssociateFirewallPolicyError, R>,
187    ) -> Self {
188        match err {
189            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
190            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
191                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
192                source: err.into(),
193            }),
194        }
195    }
196}
197impl From<crate::operation::associate_firewall_policy::AssociateFirewallPolicyError> for Error {
198    fn from(err: crate::operation::associate_firewall_policy::AssociateFirewallPolicyError) -> Self {
199        match err {
200            crate::operation::associate_firewall_policy::AssociateFirewallPolicyError::InternalServerError(inner) => {
201                Error::InternalServerError(inner)
202            }
203            crate::operation::associate_firewall_policy::AssociateFirewallPolicyError::InvalidOperationException(inner) => {
204                Error::InvalidOperationException(inner)
205            }
206            crate::operation::associate_firewall_policy::AssociateFirewallPolicyError::InvalidRequestException(inner) => {
207                Error::InvalidRequestException(inner)
208            }
209            crate::operation::associate_firewall_policy::AssociateFirewallPolicyError::InvalidTokenException(inner) => {
210                Error::InvalidTokenException(inner)
211            }
212            crate::operation::associate_firewall_policy::AssociateFirewallPolicyError::ResourceNotFoundException(inner) => {
213                Error::ResourceNotFoundException(inner)
214            }
215            crate::operation::associate_firewall_policy::AssociateFirewallPolicyError::ThrottlingException(inner) => {
216                Error::ThrottlingException(inner)
217            }
218            crate::operation::associate_firewall_policy::AssociateFirewallPolicyError::Unhandled(inner) => Error::Unhandled(inner),
219        }
220    }
221}
222impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_subnets::AssociateSubnetsError, R>> for Error
223where
224    R: Send + Sync + std::fmt::Debug + 'static,
225{
226    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_subnets::AssociateSubnetsError, R>) -> Self {
227        match err {
228            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
229            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
230                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
231                source: err.into(),
232            }),
233        }
234    }
235}
236impl From<crate::operation::associate_subnets::AssociateSubnetsError> for Error {
237    fn from(err: crate::operation::associate_subnets::AssociateSubnetsError) -> Self {
238        match err {
239            crate::operation::associate_subnets::AssociateSubnetsError::InsufficientCapacityException(inner) => {
240                Error::InsufficientCapacityException(inner)
241            }
242            crate::operation::associate_subnets::AssociateSubnetsError::InternalServerError(inner) => Error::InternalServerError(inner),
243            crate::operation::associate_subnets::AssociateSubnetsError::InvalidOperationException(inner) => Error::InvalidOperationException(inner),
244            crate::operation::associate_subnets::AssociateSubnetsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
245            crate::operation::associate_subnets::AssociateSubnetsError::InvalidTokenException(inner) => Error::InvalidTokenException(inner),
246            crate::operation::associate_subnets::AssociateSubnetsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
247            crate::operation::associate_subnets::AssociateSubnetsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
248            crate::operation::associate_subnets::AssociateSubnetsError::Unhandled(inner) => Error::Unhandled(inner),
249        }
250    }
251}
252impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_firewall::CreateFirewallError, R>> for Error
253where
254    R: Send + Sync + std::fmt::Debug + 'static,
255{
256    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_firewall::CreateFirewallError, R>) -> Self {
257        match err {
258            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
259            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
260                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
261                source: err.into(),
262            }),
263        }
264    }
265}
266impl From<crate::operation::create_firewall::CreateFirewallError> for Error {
267    fn from(err: crate::operation::create_firewall::CreateFirewallError) -> Self {
268        match err {
269            crate::operation::create_firewall::CreateFirewallError::InsufficientCapacityException(inner) => {
270                Error::InsufficientCapacityException(inner)
271            }
272            crate::operation::create_firewall::CreateFirewallError::InternalServerError(inner) => Error::InternalServerError(inner),
273            crate::operation::create_firewall::CreateFirewallError::InvalidOperationException(inner) => Error::InvalidOperationException(inner),
274            crate::operation::create_firewall::CreateFirewallError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
275            crate::operation::create_firewall::CreateFirewallError::LimitExceededException(inner) => Error::LimitExceededException(inner),
276            crate::operation::create_firewall::CreateFirewallError::ThrottlingException(inner) => Error::ThrottlingException(inner),
277            crate::operation::create_firewall::CreateFirewallError::Unhandled(inner) => Error::Unhandled(inner),
278        }
279    }
280}
281impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_firewall_policy::CreateFirewallPolicyError, R>> for Error
282where
283    R: Send + Sync + std::fmt::Debug + 'static,
284{
285    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_firewall_policy::CreateFirewallPolicyError, R>) -> Self {
286        match err {
287            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
288            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
289                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
290                source: err.into(),
291            }),
292        }
293    }
294}
295impl From<crate::operation::create_firewall_policy::CreateFirewallPolicyError> for Error {
296    fn from(err: crate::operation::create_firewall_policy::CreateFirewallPolicyError) -> Self {
297        match err {
298            crate::operation::create_firewall_policy::CreateFirewallPolicyError::InsufficientCapacityException(inner) => {
299                Error::InsufficientCapacityException(inner)
300            }
301            crate::operation::create_firewall_policy::CreateFirewallPolicyError::InternalServerError(inner) => Error::InternalServerError(inner),
302            crate::operation::create_firewall_policy::CreateFirewallPolicyError::InvalidRequestException(inner) => {
303                Error::InvalidRequestException(inner)
304            }
305            crate::operation::create_firewall_policy::CreateFirewallPolicyError::LimitExceededException(inner) => {
306                Error::LimitExceededException(inner)
307            }
308            crate::operation::create_firewall_policy::CreateFirewallPolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
309            crate::operation::create_firewall_policy::CreateFirewallPolicyError::Unhandled(inner) => Error::Unhandled(inner),
310        }
311    }
312}
313impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_rule_group::CreateRuleGroupError, R>> for Error
314where
315    R: Send + Sync + std::fmt::Debug + 'static,
316{
317    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_rule_group::CreateRuleGroupError, R>) -> Self {
318        match err {
319            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
320            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
321                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
322                source: err.into(),
323            }),
324        }
325    }
326}
327impl From<crate::operation::create_rule_group::CreateRuleGroupError> for Error {
328    fn from(err: crate::operation::create_rule_group::CreateRuleGroupError) -> Self {
329        match err {
330            crate::operation::create_rule_group::CreateRuleGroupError::InsufficientCapacityException(inner) => {
331                Error::InsufficientCapacityException(inner)
332            }
333            crate::operation::create_rule_group::CreateRuleGroupError::InternalServerError(inner) => Error::InternalServerError(inner),
334            crate::operation::create_rule_group::CreateRuleGroupError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
335            crate::operation::create_rule_group::CreateRuleGroupError::LimitExceededException(inner) => Error::LimitExceededException(inner),
336            crate::operation::create_rule_group::CreateRuleGroupError::ThrottlingException(inner) => Error::ThrottlingException(inner),
337            crate::operation::create_rule_group::CreateRuleGroupError::Unhandled(inner) => Error::Unhandled(inner),
338        }
339    }
340}
341impl<R>
342    From<
343        ::aws_smithy_runtime_api::client::result::SdkError<
344            crate::operation::create_tls_inspection_configuration::CreateTLSInspectionConfigurationError,
345            R,
346        >,
347    > for Error
348where
349    R: Send + Sync + std::fmt::Debug + 'static,
350{
351    fn from(
352        err: ::aws_smithy_runtime_api::client::result::SdkError<
353            crate::operation::create_tls_inspection_configuration::CreateTLSInspectionConfigurationError,
354            R,
355        >,
356    ) -> Self {
357        match err {
358            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
359            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
360                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
361                source: err.into(),
362            }),
363        }
364    }
365}
366impl From<crate::operation::create_tls_inspection_configuration::CreateTLSInspectionConfigurationError> for Error {
367    fn from(err: crate::operation::create_tls_inspection_configuration::CreateTLSInspectionConfigurationError) -> Self {
368        match err {
369            crate::operation::create_tls_inspection_configuration::CreateTLSInspectionConfigurationError::InsufficientCapacityException(inner) => {
370                Error::InsufficientCapacityException(inner)
371            }
372            crate::operation::create_tls_inspection_configuration::CreateTLSInspectionConfigurationError::InternalServerError(inner) => {
373                Error::InternalServerError(inner)
374            }
375            crate::operation::create_tls_inspection_configuration::CreateTLSInspectionConfigurationError::InvalidRequestException(inner) => {
376                Error::InvalidRequestException(inner)
377            }
378            crate::operation::create_tls_inspection_configuration::CreateTLSInspectionConfigurationError::LimitExceededException(inner) => {
379                Error::LimitExceededException(inner)
380            }
381            crate::operation::create_tls_inspection_configuration::CreateTLSInspectionConfigurationError::ThrottlingException(inner) => {
382                Error::ThrottlingException(inner)
383            }
384            crate::operation::create_tls_inspection_configuration::CreateTLSInspectionConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
385        }
386    }
387}
388impl<R>
389    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpc_endpoint_association::CreateVpcEndpointAssociationError, R>>
390    for Error
391where
392    R: Send + Sync + std::fmt::Debug + 'static,
393{
394    fn from(
395        err: ::aws_smithy_runtime_api::client::result::SdkError<
396            crate::operation::create_vpc_endpoint_association::CreateVpcEndpointAssociationError,
397            R,
398        >,
399    ) -> Self {
400        match err {
401            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
402            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
403                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
404                source: err.into(),
405            }),
406        }
407    }
408}
409impl From<crate::operation::create_vpc_endpoint_association::CreateVpcEndpointAssociationError> for Error {
410    fn from(err: crate::operation::create_vpc_endpoint_association::CreateVpcEndpointAssociationError) -> Self {
411        match err {
412            crate::operation::create_vpc_endpoint_association::CreateVpcEndpointAssociationError::InsufficientCapacityException(inner) => {
413                Error::InsufficientCapacityException(inner)
414            }
415            crate::operation::create_vpc_endpoint_association::CreateVpcEndpointAssociationError::InternalServerError(inner) => {
416                Error::InternalServerError(inner)
417            }
418            crate::operation::create_vpc_endpoint_association::CreateVpcEndpointAssociationError::InvalidOperationException(inner) => {
419                Error::InvalidOperationException(inner)
420            }
421            crate::operation::create_vpc_endpoint_association::CreateVpcEndpointAssociationError::InvalidRequestException(inner) => {
422                Error::InvalidRequestException(inner)
423            }
424            crate::operation::create_vpc_endpoint_association::CreateVpcEndpointAssociationError::LimitExceededException(inner) => {
425                Error::LimitExceededException(inner)
426            }
427            crate::operation::create_vpc_endpoint_association::CreateVpcEndpointAssociationError::ResourceNotFoundException(inner) => {
428                Error::ResourceNotFoundException(inner)
429            }
430            crate::operation::create_vpc_endpoint_association::CreateVpcEndpointAssociationError::ThrottlingException(inner) => {
431                Error::ThrottlingException(inner)
432            }
433            crate::operation::create_vpc_endpoint_association::CreateVpcEndpointAssociationError::Unhandled(inner) => Error::Unhandled(inner),
434        }
435    }
436}
437impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_firewall::DeleteFirewallError, R>> for Error
438where
439    R: Send + Sync + std::fmt::Debug + 'static,
440{
441    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_firewall::DeleteFirewallError, R>) -> Self {
442        match err {
443            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
444            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
445                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
446                source: err.into(),
447            }),
448        }
449    }
450}
451impl From<crate::operation::delete_firewall::DeleteFirewallError> for Error {
452    fn from(err: crate::operation::delete_firewall::DeleteFirewallError) -> Self {
453        match err {
454            crate::operation::delete_firewall::DeleteFirewallError::InternalServerError(inner) => Error::InternalServerError(inner),
455            crate::operation::delete_firewall::DeleteFirewallError::InvalidOperationException(inner) => Error::InvalidOperationException(inner),
456            crate::operation::delete_firewall::DeleteFirewallError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
457            crate::operation::delete_firewall::DeleteFirewallError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
458            crate::operation::delete_firewall::DeleteFirewallError::ThrottlingException(inner) => Error::ThrottlingException(inner),
459            crate::operation::delete_firewall::DeleteFirewallError::UnsupportedOperationException(inner) => {
460                Error::UnsupportedOperationException(inner)
461            }
462            crate::operation::delete_firewall::DeleteFirewallError::Unhandled(inner) => Error::Unhandled(inner),
463        }
464    }
465}
466impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_firewall_policy::DeleteFirewallPolicyError, R>> for Error
467where
468    R: Send + Sync + std::fmt::Debug + 'static,
469{
470    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_firewall_policy::DeleteFirewallPolicyError, R>) -> Self {
471        match err {
472            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
473            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
474                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
475                source: err.into(),
476            }),
477        }
478    }
479}
480impl From<crate::operation::delete_firewall_policy::DeleteFirewallPolicyError> for Error {
481    fn from(err: crate::operation::delete_firewall_policy::DeleteFirewallPolicyError) -> Self {
482        match err {
483            crate::operation::delete_firewall_policy::DeleteFirewallPolicyError::InternalServerError(inner) => Error::InternalServerError(inner),
484            crate::operation::delete_firewall_policy::DeleteFirewallPolicyError::InvalidOperationException(inner) => {
485                Error::InvalidOperationException(inner)
486            }
487            crate::operation::delete_firewall_policy::DeleteFirewallPolicyError::InvalidRequestException(inner) => {
488                Error::InvalidRequestException(inner)
489            }
490            crate::operation::delete_firewall_policy::DeleteFirewallPolicyError::ResourceNotFoundException(inner) => {
491                Error::ResourceNotFoundException(inner)
492            }
493            crate::operation::delete_firewall_policy::DeleteFirewallPolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
494            crate::operation::delete_firewall_policy::DeleteFirewallPolicyError::UnsupportedOperationException(inner) => {
495                Error::UnsupportedOperationException(inner)
496            }
497            crate::operation::delete_firewall_policy::DeleteFirewallPolicyError::Unhandled(inner) => Error::Unhandled(inner),
498        }
499    }
500}
501impl<R>
502    From<
503        ::aws_smithy_runtime_api::client::result::SdkError<
504            crate::operation::delete_network_firewall_transit_gateway_attachment::DeleteNetworkFirewallTransitGatewayAttachmentError,
505            R,
506        >,
507    > for Error
508where
509    R: Send + Sync + std::fmt::Debug + 'static,
510{
511    fn from(
512        err: ::aws_smithy_runtime_api::client::result::SdkError<
513            crate::operation::delete_network_firewall_transit_gateway_attachment::DeleteNetworkFirewallTransitGatewayAttachmentError,
514            R,
515        >,
516    ) -> Self {
517        match err {
518            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
519            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
520                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
521                source: err.into(),
522            }),
523        }
524    }
525}
526impl From<crate::operation::delete_network_firewall_transit_gateway_attachment::DeleteNetworkFirewallTransitGatewayAttachmentError> for Error {
527    fn from(err: crate::operation::delete_network_firewall_transit_gateway_attachment::DeleteNetworkFirewallTransitGatewayAttachmentError) -> Self {
528        match err {
529            crate::operation::delete_network_firewall_transit_gateway_attachment::DeleteNetworkFirewallTransitGatewayAttachmentError::InternalServerError(inner) => Error::InternalServerError(inner),
530            crate::operation::delete_network_firewall_transit_gateway_attachment::DeleteNetworkFirewallTransitGatewayAttachmentError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
531            crate::operation::delete_network_firewall_transit_gateway_attachment::DeleteNetworkFirewallTransitGatewayAttachmentError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
532            crate::operation::delete_network_firewall_transit_gateway_attachment::DeleteNetworkFirewallTransitGatewayAttachmentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
533            crate::operation::delete_network_firewall_transit_gateway_attachment::DeleteNetworkFirewallTransitGatewayAttachmentError::Unhandled(inner) => Error::Unhandled(inner),
534        }
535    }
536}
537impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_policy::DeleteResourcePolicyError, R>> for Error
538where
539    R: Send + Sync + std::fmt::Debug + 'static,
540{
541    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_policy::DeleteResourcePolicyError, R>) -> Self {
542        match err {
543            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
544            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
545                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
546                source: err.into(),
547            }),
548        }
549    }
550}
551impl From<crate::operation::delete_resource_policy::DeleteResourcePolicyError> for Error {
552    fn from(err: crate::operation::delete_resource_policy::DeleteResourcePolicyError) -> Self {
553        match err {
554            crate::operation::delete_resource_policy::DeleteResourcePolicyError::InternalServerError(inner) => Error::InternalServerError(inner),
555            crate::operation::delete_resource_policy::DeleteResourcePolicyError::InvalidRequestException(inner) => {
556                Error::InvalidRequestException(inner)
557            }
558            crate::operation::delete_resource_policy::DeleteResourcePolicyError::InvalidResourcePolicyException(inner) => {
559                Error::InvalidResourcePolicyException(inner)
560            }
561            crate::operation::delete_resource_policy::DeleteResourcePolicyError::ResourceNotFoundException(inner) => {
562                Error::ResourceNotFoundException(inner)
563            }
564            crate::operation::delete_resource_policy::DeleteResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
565            crate::operation::delete_resource_policy::DeleteResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
566        }
567    }
568}
569impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_rule_group::DeleteRuleGroupError, R>> for Error
570where
571    R: Send + Sync + std::fmt::Debug + 'static,
572{
573    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_rule_group::DeleteRuleGroupError, R>) -> Self {
574        match err {
575            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
576            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
577                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
578                source: err.into(),
579            }),
580        }
581    }
582}
583impl From<crate::operation::delete_rule_group::DeleteRuleGroupError> for Error {
584    fn from(err: crate::operation::delete_rule_group::DeleteRuleGroupError) -> Self {
585        match err {
586            crate::operation::delete_rule_group::DeleteRuleGroupError::InternalServerError(inner) => Error::InternalServerError(inner),
587            crate::operation::delete_rule_group::DeleteRuleGroupError::InvalidOperationException(inner) => Error::InvalidOperationException(inner),
588            crate::operation::delete_rule_group::DeleteRuleGroupError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
589            crate::operation::delete_rule_group::DeleteRuleGroupError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
590            crate::operation::delete_rule_group::DeleteRuleGroupError::ThrottlingException(inner) => Error::ThrottlingException(inner),
591            crate::operation::delete_rule_group::DeleteRuleGroupError::UnsupportedOperationException(inner) => {
592                Error::UnsupportedOperationException(inner)
593            }
594            crate::operation::delete_rule_group::DeleteRuleGroupError::Unhandled(inner) => Error::Unhandled(inner),
595        }
596    }
597}
598impl<R>
599    From<
600        ::aws_smithy_runtime_api::client::result::SdkError<
601            crate::operation::delete_tls_inspection_configuration::DeleteTLSInspectionConfigurationError,
602            R,
603        >,
604    > for Error
605where
606    R: Send + Sync + std::fmt::Debug + 'static,
607{
608    fn from(
609        err: ::aws_smithy_runtime_api::client::result::SdkError<
610            crate::operation::delete_tls_inspection_configuration::DeleteTLSInspectionConfigurationError,
611            R,
612        >,
613    ) -> Self {
614        match err {
615            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
616            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
617                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
618                source: err.into(),
619            }),
620        }
621    }
622}
623impl From<crate::operation::delete_tls_inspection_configuration::DeleteTLSInspectionConfigurationError> for Error {
624    fn from(err: crate::operation::delete_tls_inspection_configuration::DeleteTLSInspectionConfigurationError) -> Self {
625        match err {
626            crate::operation::delete_tls_inspection_configuration::DeleteTLSInspectionConfigurationError::InternalServerError(inner) => {
627                Error::InternalServerError(inner)
628            }
629            crate::operation::delete_tls_inspection_configuration::DeleteTLSInspectionConfigurationError::InvalidOperationException(inner) => {
630                Error::InvalidOperationException(inner)
631            }
632            crate::operation::delete_tls_inspection_configuration::DeleteTLSInspectionConfigurationError::InvalidRequestException(inner) => {
633                Error::InvalidRequestException(inner)
634            }
635            crate::operation::delete_tls_inspection_configuration::DeleteTLSInspectionConfigurationError::ResourceNotFoundException(inner) => {
636                Error::ResourceNotFoundException(inner)
637            }
638            crate::operation::delete_tls_inspection_configuration::DeleteTLSInspectionConfigurationError::ThrottlingException(inner) => {
639                Error::ThrottlingException(inner)
640            }
641            crate::operation::delete_tls_inspection_configuration::DeleteTLSInspectionConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
642        }
643    }
644}
645impl<R>
646    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpc_endpoint_association::DeleteVpcEndpointAssociationError, R>>
647    for Error
648where
649    R: Send + Sync + std::fmt::Debug + 'static,
650{
651    fn from(
652        err: ::aws_smithy_runtime_api::client::result::SdkError<
653            crate::operation::delete_vpc_endpoint_association::DeleteVpcEndpointAssociationError,
654            R,
655        >,
656    ) -> Self {
657        match err {
658            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
659            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
660                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
661                source: err.into(),
662            }),
663        }
664    }
665}
666impl From<crate::operation::delete_vpc_endpoint_association::DeleteVpcEndpointAssociationError> for Error {
667    fn from(err: crate::operation::delete_vpc_endpoint_association::DeleteVpcEndpointAssociationError) -> Self {
668        match err {
669            crate::operation::delete_vpc_endpoint_association::DeleteVpcEndpointAssociationError::InternalServerError(inner) => {
670                Error::InternalServerError(inner)
671            }
672            crate::operation::delete_vpc_endpoint_association::DeleteVpcEndpointAssociationError::InvalidOperationException(inner) => {
673                Error::InvalidOperationException(inner)
674            }
675            crate::operation::delete_vpc_endpoint_association::DeleteVpcEndpointAssociationError::InvalidRequestException(inner) => {
676                Error::InvalidRequestException(inner)
677            }
678            crate::operation::delete_vpc_endpoint_association::DeleteVpcEndpointAssociationError::ResourceNotFoundException(inner) => {
679                Error::ResourceNotFoundException(inner)
680            }
681            crate::operation::delete_vpc_endpoint_association::DeleteVpcEndpointAssociationError::ThrottlingException(inner) => {
682                Error::ThrottlingException(inner)
683            }
684            crate::operation::delete_vpc_endpoint_association::DeleteVpcEndpointAssociationError::Unhandled(inner) => Error::Unhandled(inner),
685        }
686    }
687}
688impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_firewall::DescribeFirewallError, R>> for Error
689where
690    R: Send + Sync + std::fmt::Debug + 'static,
691{
692    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_firewall::DescribeFirewallError, R>) -> Self {
693        match err {
694            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
695            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
696                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
697                source: err.into(),
698            }),
699        }
700    }
701}
702impl From<crate::operation::describe_firewall::DescribeFirewallError> for Error {
703    fn from(err: crate::operation::describe_firewall::DescribeFirewallError) -> Self {
704        match err {
705            crate::operation::describe_firewall::DescribeFirewallError::InternalServerError(inner) => Error::InternalServerError(inner),
706            crate::operation::describe_firewall::DescribeFirewallError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
707            crate::operation::describe_firewall::DescribeFirewallError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
708            crate::operation::describe_firewall::DescribeFirewallError::ThrottlingException(inner) => Error::ThrottlingException(inner),
709            crate::operation::describe_firewall::DescribeFirewallError::Unhandled(inner) => Error::Unhandled(inner),
710        }
711    }
712}
713impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_firewall_metadata::DescribeFirewallMetadataError, R>>
714    for Error
715where
716    R: Send + Sync + std::fmt::Debug + 'static,
717{
718    fn from(
719        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_firewall_metadata::DescribeFirewallMetadataError, R>,
720    ) -> Self {
721        match err {
722            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
723            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
724                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
725                source: err.into(),
726            }),
727        }
728    }
729}
730impl From<crate::operation::describe_firewall_metadata::DescribeFirewallMetadataError> for Error {
731    fn from(err: crate::operation::describe_firewall_metadata::DescribeFirewallMetadataError) -> Self {
732        match err {
733            crate::operation::describe_firewall_metadata::DescribeFirewallMetadataError::InternalServerError(inner) => {
734                Error::InternalServerError(inner)
735            }
736            crate::operation::describe_firewall_metadata::DescribeFirewallMetadataError::InvalidRequestException(inner) => {
737                Error::InvalidRequestException(inner)
738            }
739            crate::operation::describe_firewall_metadata::DescribeFirewallMetadataError::ResourceNotFoundException(inner) => {
740                Error::ResourceNotFoundException(inner)
741            }
742            crate::operation::describe_firewall_metadata::DescribeFirewallMetadataError::ThrottlingException(inner) => {
743                Error::ThrottlingException(inner)
744            }
745            crate::operation::describe_firewall_metadata::DescribeFirewallMetadataError::Unhandled(inner) => Error::Unhandled(inner),
746        }
747    }
748}
749impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_firewall_policy::DescribeFirewallPolicyError, R>> for Error
750where
751    R: Send + Sync + std::fmt::Debug + 'static,
752{
753    fn from(
754        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_firewall_policy::DescribeFirewallPolicyError, R>,
755    ) -> Self {
756        match err {
757            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
758            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
759                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
760                source: err.into(),
761            }),
762        }
763    }
764}
765impl From<crate::operation::describe_firewall_policy::DescribeFirewallPolicyError> for Error {
766    fn from(err: crate::operation::describe_firewall_policy::DescribeFirewallPolicyError) -> Self {
767        match err {
768            crate::operation::describe_firewall_policy::DescribeFirewallPolicyError::InternalServerError(inner) => Error::InternalServerError(inner),
769            crate::operation::describe_firewall_policy::DescribeFirewallPolicyError::InvalidRequestException(inner) => {
770                Error::InvalidRequestException(inner)
771            }
772            crate::operation::describe_firewall_policy::DescribeFirewallPolicyError::ResourceNotFoundException(inner) => {
773                Error::ResourceNotFoundException(inner)
774            }
775            crate::operation::describe_firewall_policy::DescribeFirewallPolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
776            crate::operation::describe_firewall_policy::DescribeFirewallPolicyError::Unhandled(inner) => Error::Unhandled(inner),
777        }
778    }
779}
780impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_flow_operation::DescribeFlowOperationError, R>> for Error
781where
782    R: Send + Sync + std::fmt::Debug + 'static,
783{
784    fn from(
785        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_flow_operation::DescribeFlowOperationError, R>,
786    ) -> Self {
787        match err {
788            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
789            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
790                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
791                source: err.into(),
792            }),
793        }
794    }
795}
796impl From<crate::operation::describe_flow_operation::DescribeFlowOperationError> for Error {
797    fn from(err: crate::operation::describe_flow_operation::DescribeFlowOperationError) -> Self {
798        match err {
799            crate::operation::describe_flow_operation::DescribeFlowOperationError::InternalServerError(inner) => Error::InternalServerError(inner),
800            crate::operation::describe_flow_operation::DescribeFlowOperationError::InvalidRequestException(inner) => {
801                Error::InvalidRequestException(inner)
802            }
803            crate::operation::describe_flow_operation::DescribeFlowOperationError::ResourceNotFoundException(inner) => {
804                Error::ResourceNotFoundException(inner)
805            }
806            crate::operation::describe_flow_operation::DescribeFlowOperationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
807            crate::operation::describe_flow_operation::DescribeFlowOperationError::Unhandled(inner) => Error::Unhandled(inner),
808        }
809    }
810}
811impl<R>
812    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError, R>>
813    for Error
814where
815    R: Send + Sync + std::fmt::Debug + 'static,
816{
817    fn from(
818        err: ::aws_smithy_runtime_api::client::result::SdkError<
819            crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError,
820            R,
821        >,
822    ) -> Self {
823        match err {
824            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
825            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
826                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
827                source: err.into(),
828            }),
829        }
830    }
831}
832impl From<crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError> for Error {
833    fn from(err: crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError) -> Self {
834        match err {
835            crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError::InternalServerError(inner) => {
836                Error::InternalServerError(inner)
837            }
838            crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError::InvalidRequestException(inner) => {
839                Error::InvalidRequestException(inner)
840            }
841            crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError::ResourceNotFoundException(inner) => {
842                Error::ResourceNotFoundException(inner)
843            }
844            crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError::ThrottlingException(inner) => {
845                Error::ThrottlingException(inner)
846            }
847            crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
848        }
849    }
850}
851impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_resource_policy::DescribeResourcePolicyError, R>> for Error
852where
853    R: Send + Sync + std::fmt::Debug + 'static,
854{
855    fn from(
856        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_resource_policy::DescribeResourcePolicyError, R>,
857    ) -> Self {
858        match err {
859            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
860            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
861                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
862                source: err.into(),
863            }),
864        }
865    }
866}
867impl From<crate::operation::describe_resource_policy::DescribeResourcePolicyError> for Error {
868    fn from(err: crate::operation::describe_resource_policy::DescribeResourcePolicyError) -> Self {
869        match err {
870            crate::operation::describe_resource_policy::DescribeResourcePolicyError::InternalServerError(inner) => Error::InternalServerError(inner),
871            crate::operation::describe_resource_policy::DescribeResourcePolicyError::InvalidRequestException(inner) => {
872                Error::InvalidRequestException(inner)
873            }
874            crate::operation::describe_resource_policy::DescribeResourcePolicyError::ResourceNotFoundException(inner) => {
875                Error::ResourceNotFoundException(inner)
876            }
877            crate::operation::describe_resource_policy::DescribeResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
878            crate::operation::describe_resource_policy::DescribeResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
879        }
880    }
881}
882impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_rule_group::DescribeRuleGroupError, R>> for Error
883where
884    R: Send + Sync + std::fmt::Debug + 'static,
885{
886    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_rule_group::DescribeRuleGroupError, R>) -> Self {
887        match err {
888            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
889            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
890                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
891                source: err.into(),
892            }),
893        }
894    }
895}
896impl From<crate::operation::describe_rule_group::DescribeRuleGroupError> for Error {
897    fn from(err: crate::operation::describe_rule_group::DescribeRuleGroupError) -> Self {
898        match err {
899            crate::operation::describe_rule_group::DescribeRuleGroupError::InternalServerError(inner) => Error::InternalServerError(inner),
900            crate::operation::describe_rule_group::DescribeRuleGroupError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
901            crate::operation::describe_rule_group::DescribeRuleGroupError::ResourceNotFoundException(inner) => {
902                Error::ResourceNotFoundException(inner)
903            }
904            crate::operation::describe_rule_group::DescribeRuleGroupError::ThrottlingException(inner) => Error::ThrottlingException(inner),
905            crate::operation::describe_rule_group::DescribeRuleGroupError::Unhandled(inner) => Error::Unhandled(inner),
906        }
907    }
908}
909impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_rule_group_metadata::DescribeRuleGroupMetadataError, R>>
910    for Error
911where
912    R: Send + Sync + std::fmt::Debug + 'static,
913{
914    fn from(
915        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_rule_group_metadata::DescribeRuleGroupMetadataError, R>,
916    ) -> Self {
917        match err {
918            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
919            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
920                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
921                source: err.into(),
922            }),
923        }
924    }
925}
926impl From<crate::operation::describe_rule_group_metadata::DescribeRuleGroupMetadataError> for Error {
927    fn from(err: crate::operation::describe_rule_group_metadata::DescribeRuleGroupMetadataError) -> Self {
928        match err {
929            crate::operation::describe_rule_group_metadata::DescribeRuleGroupMetadataError::InternalServerError(inner) => {
930                Error::InternalServerError(inner)
931            }
932            crate::operation::describe_rule_group_metadata::DescribeRuleGroupMetadataError::InvalidRequestException(inner) => {
933                Error::InvalidRequestException(inner)
934            }
935            crate::operation::describe_rule_group_metadata::DescribeRuleGroupMetadataError::ResourceNotFoundException(inner) => {
936                Error::ResourceNotFoundException(inner)
937            }
938            crate::operation::describe_rule_group_metadata::DescribeRuleGroupMetadataError::ThrottlingException(inner) => {
939                Error::ThrottlingException(inner)
940            }
941            crate::operation::describe_rule_group_metadata::DescribeRuleGroupMetadataError::Unhandled(inner) => Error::Unhandled(inner),
942        }
943    }
944}
945impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_rule_group_summary::DescribeRuleGroupSummaryError, R>>
946    for Error
947where
948    R: Send + Sync + std::fmt::Debug + 'static,
949{
950    fn from(
951        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_rule_group_summary::DescribeRuleGroupSummaryError, R>,
952    ) -> Self {
953        match err {
954            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
955            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
956                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
957                source: err.into(),
958            }),
959        }
960    }
961}
962impl From<crate::operation::describe_rule_group_summary::DescribeRuleGroupSummaryError> for Error {
963    fn from(err: crate::operation::describe_rule_group_summary::DescribeRuleGroupSummaryError) -> Self {
964        match err {
965            crate::operation::describe_rule_group_summary::DescribeRuleGroupSummaryError::InternalServerError(inner) => {
966                Error::InternalServerError(inner)
967            }
968            crate::operation::describe_rule_group_summary::DescribeRuleGroupSummaryError::InvalidRequestException(inner) => {
969                Error::InvalidRequestException(inner)
970            }
971            crate::operation::describe_rule_group_summary::DescribeRuleGroupSummaryError::ResourceNotFoundException(inner) => {
972                Error::ResourceNotFoundException(inner)
973            }
974            crate::operation::describe_rule_group_summary::DescribeRuleGroupSummaryError::ThrottlingException(inner) => {
975                Error::ThrottlingException(inner)
976            }
977            crate::operation::describe_rule_group_summary::DescribeRuleGroupSummaryError::Unhandled(inner) => Error::Unhandled(inner),
978        }
979    }
980}
981impl<R>
982    From<
983        ::aws_smithy_runtime_api::client::result::SdkError<
984            crate::operation::describe_tls_inspection_configuration::DescribeTLSInspectionConfigurationError,
985            R,
986        >,
987    > for Error
988where
989    R: Send + Sync + std::fmt::Debug + 'static,
990{
991    fn from(
992        err: ::aws_smithy_runtime_api::client::result::SdkError<
993            crate::operation::describe_tls_inspection_configuration::DescribeTLSInspectionConfigurationError,
994            R,
995        >,
996    ) -> Self {
997        match err {
998            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
999            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1000                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1001                source: err.into(),
1002            }),
1003        }
1004    }
1005}
1006impl From<crate::operation::describe_tls_inspection_configuration::DescribeTLSInspectionConfigurationError> for Error {
1007    fn from(err: crate::operation::describe_tls_inspection_configuration::DescribeTLSInspectionConfigurationError) -> Self {
1008        match err {
1009            crate::operation::describe_tls_inspection_configuration::DescribeTLSInspectionConfigurationError::InternalServerError(inner) => {
1010                Error::InternalServerError(inner)
1011            }
1012            crate::operation::describe_tls_inspection_configuration::DescribeTLSInspectionConfigurationError::InvalidRequestException(inner) => {
1013                Error::InvalidRequestException(inner)
1014            }
1015            crate::operation::describe_tls_inspection_configuration::DescribeTLSInspectionConfigurationError::ResourceNotFoundException(inner) => {
1016                Error::ResourceNotFoundException(inner)
1017            }
1018            crate::operation::describe_tls_inspection_configuration::DescribeTLSInspectionConfigurationError::ThrottlingException(inner) => {
1019                Error::ThrottlingException(inner)
1020            }
1021            crate::operation::describe_tls_inspection_configuration::DescribeTLSInspectionConfigurationError::Unhandled(inner) => {
1022                Error::Unhandled(inner)
1023            }
1024        }
1025    }
1026}
1027impl<R>
1028    From<
1029        ::aws_smithy_runtime_api::client::result::SdkError<
1030            crate::operation::describe_vpc_endpoint_association::DescribeVpcEndpointAssociationError,
1031            R,
1032        >,
1033    > for Error
1034where
1035    R: Send + Sync + std::fmt::Debug + 'static,
1036{
1037    fn from(
1038        err: ::aws_smithy_runtime_api::client::result::SdkError<
1039            crate::operation::describe_vpc_endpoint_association::DescribeVpcEndpointAssociationError,
1040            R,
1041        >,
1042    ) -> Self {
1043        match err {
1044            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1045            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1046                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1047                source: err.into(),
1048            }),
1049        }
1050    }
1051}
1052impl From<crate::operation::describe_vpc_endpoint_association::DescribeVpcEndpointAssociationError> for Error {
1053    fn from(err: crate::operation::describe_vpc_endpoint_association::DescribeVpcEndpointAssociationError) -> Self {
1054        match err {
1055            crate::operation::describe_vpc_endpoint_association::DescribeVpcEndpointAssociationError::InternalServerError(inner) => {
1056                Error::InternalServerError(inner)
1057            }
1058            crate::operation::describe_vpc_endpoint_association::DescribeVpcEndpointAssociationError::InvalidRequestException(inner) => {
1059                Error::InvalidRequestException(inner)
1060            }
1061            crate::operation::describe_vpc_endpoint_association::DescribeVpcEndpointAssociationError::ResourceNotFoundException(inner) => {
1062                Error::ResourceNotFoundException(inner)
1063            }
1064            crate::operation::describe_vpc_endpoint_association::DescribeVpcEndpointAssociationError::ThrottlingException(inner) => {
1065                Error::ThrottlingException(inner)
1066            }
1067            crate::operation::describe_vpc_endpoint_association::DescribeVpcEndpointAssociationError::Unhandled(inner) => Error::Unhandled(inner),
1068        }
1069    }
1070}
1071impl<R>
1072    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_availability_zones::DisassociateAvailabilityZonesError, R>>
1073    for Error
1074where
1075    R: Send + Sync + std::fmt::Debug + 'static,
1076{
1077    fn from(
1078        err: ::aws_smithy_runtime_api::client::result::SdkError<
1079            crate::operation::disassociate_availability_zones::DisassociateAvailabilityZonesError,
1080            R,
1081        >,
1082    ) -> Self {
1083        match err {
1084            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1085            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1086                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1087                source: err.into(),
1088            }),
1089        }
1090    }
1091}
1092impl From<crate::operation::disassociate_availability_zones::DisassociateAvailabilityZonesError> for Error {
1093    fn from(err: crate::operation::disassociate_availability_zones::DisassociateAvailabilityZonesError) -> Self {
1094        match err {
1095            crate::operation::disassociate_availability_zones::DisassociateAvailabilityZonesError::InternalServerError(inner) => {
1096                Error::InternalServerError(inner)
1097            }
1098            crate::operation::disassociate_availability_zones::DisassociateAvailabilityZonesError::InvalidOperationException(inner) => {
1099                Error::InvalidOperationException(inner)
1100            }
1101            crate::operation::disassociate_availability_zones::DisassociateAvailabilityZonesError::InvalidRequestException(inner) => {
1102                Error::InvalidRequestException(inner)
1103            }
1104            crate::operation::disassociate_availability_zones::DisassociateAvailabilityZonesError::InvalidTokenException(inner) => {
1105                Error::InvalidTokenException(inner)
1106            }
1107            crate::operation::disassociate_availability_zones::DisassociateAvailabilityZonesError::ResourceNotFoundException(inner) => {
1108                Error::ResourceNotFoundException(inner)
1109            }
1110            crate::operation::disassociate_availability_zones::DisassociateAvailabilityZonesError::ThrottlingException(inner) => {
1111                Error::ThrottlingException(inner)
1112            }
1113            crate::operation::disassociate_availability_zones::DisassociateAvailabilityZonesError::Unhandled(inner) => Error::Unhandled(inner),
1114        }
1115    }
1116}
1117impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_subnets::DisassociateSubnetsError, R>> for Error
1118where
1119    R: Send + Sync + std::fmt::Debug + 'static,
1120{
1121    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_subnets::DisassociateSubnetsError, R>) -> Self {
1122        match err {
1123            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1124            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1125                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1126                source: err.into(),
1127            }),
1128        }
1129    }
1130}
1131impl From<crate::operation::disassociate_subnets::DisassociateSubnetsError> for Error {
1132    fn from(err: crate::operation::disassociate_subnets::DisassociateSubnetsError) -> Self {
1133        match err {
1134            crate::operation::disassociate_subnets::DisassociateSubnetsError::InternalServerError(inner) => Error::InternalServerError(inner),
1135            crate::operation::disassociate_subnets::DisassociateSubnetsError::InvalidOperationException(inner) => {
1136                Error::InvalidOperationException(inner)
1137            }
1138            crate::operation::disassociate_subnets::DisassociateSubnetsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1139            crate::operation::disassociate_subnets::DisassociateSubnetsError::InvalidTokenException(inner) => Error::InvalidTokenException(inner),
1140            crate::operation::disassociate_subnets::DisassociateSubnetsError::ResourceNotFoundException(inner) => {
1141                Error::ResourceNotFoundException(inner)
1142            }
1143            crate::operation::disassociate_subnets::DisassociateSubnetsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1144            crate::operation::disassociate_subnets::DisassociateSubnetsError::Unhandled(inner) => Error::Unhandled(inner),
1145        }
1146    }
1147}
1148impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_analysis_report_results::GetAnalysisReportResultsError, R>>
1149    for Error
1150where
1151    R: Send + Sync + std::fmt::Debug + 'static,
1152{
1153    fn from(
1154        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_analysis_report_results::GetAnalysisReportResultsError, R>,
1155    ) -> Self {
1156        match err {
1157            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1158            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1159                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1160                source: err.into(),
1161            }),
1162        }
1163    }
1164}
1165impl From<crate::operation::get_analysis_report_results::GetAnalysisReportResultsError> for Error {
1166    fn from(err: crate::operation::get_analysis_report_results::GetAnalysisReportResultsError) -> Self {
1167        match err {
1168            crate::operation::get_analysis_report_results::GetAnalysisReportResultsError::InternalServerError(inner) => {
1169                Error::InternalServerError(inner)
1170            }
1171            crate::operation::get_analysis_report_results::GetAnalysisReportResultsError::InvalidRequestException(inner) => {
1172                Error::InvalidRequestException(inner)
1173            }
1174            crate::operation::get_analysis_report_results::GetAnalysisReportResultsError::ResourceNotFoundException(inner) => {
1175                Error::ResourceNotFoundException(inner)
1176            }
1177            crate::operation::get_analysis_report_results::GetAnalysisReportResultsError::ThrottlingException(inner) => {
1178                Error::ThrottlingException(inner)
1179            }
1180            crate::operation::get_analysis_report_results::GetAnalysisReportResultsError::Unhandled(inner) => Error::Unhandled(inner),
1181        }
1182    }
1183}
1184impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_analysis_reports::ListAnalysisReportsError, R>> for Error
1185where
1186    R: Send + Sync + std::fmt::Debug + 'static,
1187{
1188    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_analysis_reports::ListAnalysisReportsError, R>) -> Self {
1189        match err {
1190            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1191            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1192                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1193                source: err.into(),
1194            }),
1195        }
1196    }
1197}
1198impl From<crate::operation::list_analysis_reports::ListAnalysisReportsError> for Error {
1199    fn from(err: crate::operation::list_analysis_reports::ListAnalysisReportsError) -> Self {
1200        match err {
1201            crate::operation::list_analysis_reports::ListAnalysisReportsError::InternalServerError(inner) => Error::InternalServerError(inner),
1202            crate::operation::list_analysis_reports::ListAnalysisReportsError::InvalidRequestException(inner) => {
1203                Error::InvalidRequestException(inner)
1204            }
1205            crate::operation::list_analysis_reports::ListAnalysisReportsError::ResourceNotFoundException(inner) => {
1206                Error::ResourceNotFoundException(inner)
1207            }
1208            crate::operation::list_analysis_reports::ListAnalysisReportsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1209            crate::operation::list_analysis_reports::ListAnalysisReportsError::Unhandled(inner) => Error::Unhandled(inner),
1210        }
1211    }
1212}
1213impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_firewall_policies::ListFirewallPoliciesError, R>> for Error
1214where
1215    R: Send + Sync + std::fmt::Debug + 'static,
1216{
1217    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_firewall_policies::ListFirewallPoliciesError, R>) -> Self {
1218        match err {
1219            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1220            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1221                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1222                source: err.into(),
1223            }),
1224        }
1225    }
1226}
1227impl From<crate::operation::list_firewall_policies::ListFirewallPoliciesError> for Error {
1228    fn from(err: crate::operation::list_firewall_policies::ListFirewallPoliciesError) -> Self {
1229        match err {
1230            crate::operation::list_firewall_policies::ListFirewallPoliciesError::InternalServerError(inner) => Error::InternalServerError(inner),
1231            crate::operation::list_firewall_policies::ListFirewallPoliciesError::InvalidRequestException(inner) => {
1232                Error::InvalidRequestException(inner)
1233            }
1234            crate::operation::list_firewall_policies::ListFirewallPoliciesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1235            crate::operation::list_firewall_policies::ListFirewallPoliciesError::Unhandled(inner) => Error::Unhandled(inner),
1236        }
1237    }
1238}
1239impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_firewalls::ListFirewallsError, R>> for Error
1240where
1241    R: Send + Sync + std::fmt::Debug + 'static,
1242{
1243    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_firewalls::ListFirewallsError, R>) -> Self {
1244        match err {
1245            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1246            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1247                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1248                source: err.into(),
1249            }),
1250        }
1251    }
1252}
1253impl From<crate::operation::list_firewalls::ListFirewallsError> for Error {
1254    fn from(err: crate::operation::list_firewalls::ListFirewallsError) -> Self {
1255        match err {
1256            crate::operation::list_firewalls::ListFirewallsError::InternalServerError(inner) => Error::InternalServerError(inner),
1257            crate::operation::list_firewalls::ListFirewallsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1258            crate::operation::list_firewalls::ListFirewallsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1259            crate::operation::list_firewalls::ListFirewallsError::Unhandled(inner) => Error::Unhandled(inner),
1260        }
1261    }
1262}
1263impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_flow_operation_results::ListFlowOperationResultsError, R>>
1264    for Error
1265where
1266    R: Send + Sync + std::fmt::Debug + 'static,
1267{
1268    fn from(
1269        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_flow_operation_results::ListFlowOperationResultsError, R>,
1270    ) -> Self {
1271        match err {
1272            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1273            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1274                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1275                source: err.into(),
1276            }),
1277        }
1278    }
1279}
1280impl From<crate::operation::list_flow_operation_results::ListFlowOperationResultsError> for Error {
1281    fn from(err: crate::operation::list_flow_operation_results::ListFlowOperationResultsError) -> Self {
1282        match err {
1283            crate::operation::list_flow_operation_results::ListFlowOperationResultsError::InternalServerError(inner) => {
1284                Error::InternalServerError(inner)
1285            }
1286            crate::operation::list_flow_operation_results::ListFlowOperationResultsError::InvalidRequestException(inner) => {
1287                Error::InvalidRequestException(inner)
1288            }
1289            crate::operation::list_flow_operation_results::ListFlowOperationResultsError::ResourceNotFoundException(inner) => {
1290                Error::ResourceNotFoundException(inner)
1291            }
1292            crate::operation::list_flow_operation_results::ListFlowOperationResultsError::ThrottlingException(inner) => {
1293                Error::ThrottlingException(inner)
1294            }
1295            crate::operation::list_flow_operation_results::ListFlowOperationResultsError::Unhandled(inner) => Error::Unhandled(inner),
1296        }
1297    }
1298}
1299impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_flow_operations::ListFlowOperationsError, R>> for Error
1300where
1301    R: Send + Sync + std::fmt::Debug + 'static,
1302{
1303    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_flow_operations::ListFlowOperationsError, R>) -> Self {
1304        match err {
1305            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1306            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1307                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1308                source: err.into(),
1309            }),
1310        }
1311    }
1312}
1313impl From<crate::operation::list_flow_operations::ListFlowOperationsError> for Error {
1314    fn from(err: crate::operation::list_flow_operations::ListFlowOperationsError) -> Self {
1315        match err {
1316            crate::operation::list_flow_operations::ListFlowOperationsError::InternalServerError(inner) => Error::InternalServerError(inner),
1317            crate::operation::list_flow_operations::ListFlowOperationsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1318            crate::operation::list_flow_operations::ListFlowOperationsError::ResourceNotFoundException(inner) => {
1319                Error::ResourceNotFoundException(inner)
1320            }
1321            crate::operation::list_flow_operations::ListFlowOperationsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1322            crate::operation::list_flow_operations::ListFlowOperationsError::Unhandled(inner) => Error::Unhandled(inner),
1323        }
1324    }
1325}
1326impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_rule_groups::ListRuleGroupsError, R>> for Error
1327where
1328    R: Send + Sync + std::fmt::Debug + 'static,
1329{
1330    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_rule_groups::ListRuleGroupsError, R>) -> Self {
1331        match err {
1332            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1333            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1334                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1335                source: err.into(),
1336            }),
1337        }
1338    }
1339}
1340impl From<crate::operation::list_rule_groups::ListRuleGroupsError> for Error {
1341    fn from(err: crate::operation::list_rule_groups::ListRuleGroupsError) -> Self {
1342        match err {
1343            crate::operation::list_rule_groups::ListRuleGroupsError::InternalServerError(inner) => Error::InternalServerError(inner),
1344            crate::operation::list_rule_groups::ListRuleGroupsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1345            crate::operation::list_rule_groups::ListRuleGroupsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1346            crate::operation::list_rule_groups::ListRuleGroupsError::Unhandled(inner) => Error::Unhandled(inner),
1347        }
1348    }
1349}
1350impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
1351where
1352    R: Send + Sync + std::fmt::Debug + 'static,
1353{
1354    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
1355        match err {
1356            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1357            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1358                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1359                source: err.into(),
1360            }),
1361        }
1362    }
1363}
1364impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
1365    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
1366        match err {
1367            crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerError(inner) => Error::InternalServerError(inner),
1368            crate::operation::list_tags_for_resource::ListTagsForResourceError::InvalidRequestException(inner) => {
1369                Error::InvalidRequestException(inner)
1370            }
1371            crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
1372                Error::ResourceNotFoundException(inner)
1373            }
1374            crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1375            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
1376        }
1377    }
1378}
1379impl<R>
1380    From<
1381        ::aws_smithy_runtime_api::client::result::SdkError<
1382            crate::operation::list_tls_inspection_configurations::ListTLSInspectionConfigurationsError,
1383            R,
1384        >,
1385    > for Error
1386where
1387    R: Send + Sync + std::fmt::Debug + 'static,
1388{
1389    fn from(
1390        err: ::aws_smithy_runtime_api::client::result::SdkError<
1391            crate::operation::list_tls_inspection_configurations::ListTLSInspectionConfigurationsError,
1392            R,
1393        >,
1394    ) -> Self {
1395        match err {
1396            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1397            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1398                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1399                source: err.into(),
1400            }),
1401        }
1402    }
1403}
1404impl From<crate::operation::list_tls_inspection_configurations::ListTLSInspectionConfigurationsError> for Error {
1405    fn from(err: crate::operation::list_tls_inspection_configurations::ListTLSInspectionConfigurationsError) -> Self {
1406        match err {
1407            crate::operation::list_tls_inspection_configurations::ListTLSInspectionConfigurationsError::InternalServerError(inner) => {
1408                Error::InternalServerError(inner)
1409            }
1410            crate::operation::list_tls_inspection_configurations::ListTLSInspectionConfigurationsError::InvalidRequestException(inner) => {
1411                Error::InvalidRequestException(inner)
1412            }
1413            crate::operation::list_tls_inspection_configurations::ListTLSInspectionConfigurationsError::ThrottlingException(inner) => {
1414                Error::ThrottlingException(inner)
1415            }
1416            crate::operation::list_tls_inspection_configurations::ListTLSInspectionConfigurationsError::Unhandled(inner) => Error::Unhandled(inner),
1417        }
1418    }
1419}
1420impl<R>
1421    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_vpc_endpoint_associations::ListVpcEndpointAssociationsError, R>>
1422    for Error
1423where
1424    R: Send + Sync + std::fmt::Debug + 'static,
1425{
1426    fn from(
1427        err: ::aws_smithy_runtime_api::client::result::SdkError<
1428            crate::operation::list_vpc_endpoint_associations::ListVpcEndpointAssociationsError,
1429            R,
1430        >,
1431    ) -> Self {
1432        match err {
1433            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1434            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1435                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1436                source: err.into(),
1437            }),
1438        }
1439    }
1440}
1441impl From<crate::operation::list_vpc_endpoint_associations::ListVpcEndpointAssociationsError> for Error {
1442    fn from(err: crate::operation::list_vpc_endpoint_associations::ListVpcEndpointAssociationsError) -> Self {
1443        match err {
1444            crate::operation::list_vpc_endpoint_associations::ListVpcEndpointAssociationsError::InternalServerError(inner) => {
1445                Error::InternalServerError(inner)
1446            }
1447            crate::operation::list_vpc_endpoint_associations::ListVpcEndpointAssociationsError::InvalidRequestException(inner) => {
1448                Error::InvalidRequestException(inner)
1449            }
1450            crate::operation::list_vpc_endpoint_associations::ListVpcEndpointAssociationsError::ThrottlingException(inner) => {
1451                Error::ThrottlingException(inner)
1452            }
1453            crate::operation::list_vpc_endpoint_associations::ListVpcEndpointAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
1454        }
1455    }
1456}
1457impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_resource_policy::PutResourcePolicyError, R>> for Error
1458where
1459    R: Send + Sync + std::fmt::Debug + 'static,
1460{
1461    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_resource_policy::PutResourcePolicyError, R>) -> Self {
1462        match err {
1463            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1464            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1465                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1466                source: err.into(),
1467            }),
1468        }
1469    }
1470}
1471impl From<crate::operation::put_resource_policy::PutResourcePolicyError> for Error {
1472    fn from(err: crate::operation::put_resource_policy::PutResourcePolicyError) -> Self {
1473        match err {
1474            crate::operation::put_resource_policy::PutResourcePolicyError::InternalServerError(inner) => Error::InternalServerError(inner),
1475            crate::operation::put_resource_policy::PutResourcePolicyError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1476            crate::operation::put_resource_policy::PutResourcePolicyError::InvalidResourcePolicyException(inner) => {
1477                Error::InvalidResourcePolicyException(inner)
1478            }
1479            crate::operation::put_resource_policy::PutResourcePolicyError::ResourceNotFoundException(inner) => {
1480                Error::ResourceNotFoundException(inner)
1481            }
1482            crate::operation::put_resource_policy::PutResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1483            crate::operation::put_resource_policy::PutResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
1484        }
1485    }
1486}
1487impl<R>
1488    From<
1489        ::aws_smithy_runtime_api::client::result::SdkError<
1490            crate::operation::reject_network_firewall_transit_gateway_attachment::RejectNetworkFirewallTransitGatewayAttachmentError,
1491            R,
1492        >,
1493    > for Error
1494where
1495    R: Send + Sync + std::fmt::Debug + 'static,
1496{
1497    fn from(
1498        err: ::aws_smithy_runtime_api::client::result::SdkError<
1499            crate::operation::reject_network_firewall_transit_gateway_attachment::RejectNetworkFirewallTransitGatewayAttachmentError,
1500            R,
1501        >,
1502    ) -> Self {
1503        match err {
1504            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1505            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1506                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1507                source: err.into(),
1508            }),
1509        }
1510    }
1511}
1512impl From<crate::operation::reject_network_firewall_transit_gateway_attachment::RejectNetworkFirewallTransitGatewayAttachmentError> for Error {
1513    fn from(err: crate::operation::reject_network_firewall_transit_gateway_attachment::RejectNetworkFirewallTransitGatewayAttachmentError) -> Self {
1514        match err {
1515            crate::operation::reject_network_firewall_transit_gateway_attachment::RejectNetworkFirewallTransitGatewayAttachmentError::InternalServerError(inner) => Error::InternalServerError(inner),
1516            crate::operation::reject_network_firewall_transit_gateway_attachment::RejectNetworkFirewallTransitGatewayAttachmentError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1517            crate::operation::reject_network_firewall_transit_gateway_attachment::RejectNetworkFirewallTransitGatewayAttachmentError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1518            crate::operation::reject_network_firewall_transit_gateway_attachment::RejectNetworkFirewallTransitGatewayAttachmentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1519            crate::operation::reject_network_firewall_transit_gateway_attachment::RejectNetworkFirewallTransitGatewayAttachmentError::Unhandled(inner) => Error::Unhandled(inner),
1520        }
1521    }
1522}
1523impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_analysis_report::StartAnalysisReportError, R>> for Error
1524where
1525    R: Send + Sync + std::fmt::Debug + 'static,
1526{
1527    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_analysis_report::StartAnalysisReportError, R>) -> Self {
1528        match err {
1529            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1530            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1531                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1532                source: err.into(),
1533            }),
1534        }
1535    }
1536}
1537impl From<crate::operation::start_analysis_report::StartAnalysisReportError> for Error {
1538    fn from(err: crate::operation::start_analysis_report::StartAnalysisReportError) -> Self {
1539        match err {
1540            crate::operation::start_analysis_report::StartAnalysisReportError::InternalServerError(inner) => Error::InternalServerError(inner),
1541            crate::operation::start_analysis_report::StartAnalysisReportError::InvalidRequestException(inner) => {
1542                Error::InvalidRequestException(inner)
1543            }
1544            crate::operation::start_analysis_report::StartAnalysisReportError::ResourceNotFoundException(inner) => {
1545                Error::ResourceNotFoundException(inner)
1546            }
1547            crate::operation::start_analysis_report::StartAnalysisReportError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1548            crate::operation::start_analysis_report::StartAnalysisReportError::Unhandled(inner) => Error::Unhandled(inner),
1549        }
1550    }
1551}
1552impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_flow_capture::StartFlowCaptureError, R>> for Error
1553where
1554    R: Send + Sync + std::fmt::Debug + 'static,
1555{
1556    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_flow_capture::StartFlowCaptureError, R>) -> Self {
1557        match err {
1558            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1559            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1560                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1561                source: err.into(),
1562            }),
1563        }
1564    }
1565}
1566impl From<crate::operation::start_flow_capture::StartFlowCaptureError> for Error {
1567    fn from(err: crate::operation::start_flow_capture::StartFlowCaptureError) -> Self {
1568        match err {
1569            crate::operation::start_flow_capture::StartFlowCaptureError::InternalServerError(inner) => Error::InternalServerError(inner),
1570            crate::operation::start_flow_capture::StartFlowCaptureError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1571            crate::operation::start_flow_capture::StartFlowCaptureError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1572            crate::operation::start_flow_capture::StartFlowCaptureError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1573            crate::operation::start_flow_capture::StartFlowCaptureError::Unhandled(inner) => Error::Unhandled(inner),
1574        }
1575    }
1576}
1577impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_flow_flush::StartFlowFlushError, R>> for Error
1578where
1579    R: Send + Sync + std::fmt::Debug + 'static,
1580{
1581    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_flow_flush::StartFlowFlushError, R>) -> Self {
1582        match err {
1583            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1584            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1585                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1586                source: err.into(),
1587            }),
1588        }
1589    }
1590}
1591impl From<crate::operation::start_flow_flush::StartFlowFlushError> for Error {
1592    fn from(err: crate::operation::start_flow_flush::StartFlowFlushError) -> Self {
1593        match err {
1594            crate::operation::start_flow_flush::StartFlowFlushError::InternalServerError(inner) => Error::InternalServerError(inner),
1595            crate::operation::start_flow_flush::StartFlowFlushError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1596            crate::operation::start_flow_flush::StartFlowFlushError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1597            crate::operation::start_flow_flush::StartFlowFlushError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1598            crate::operation::start_flow_flush::StartFlowFlushError::Unhandled(inner) => Error::Unhandled(inner),
1599        }
1600    }
1601}
1602impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
1603where
1604    R: Send + Sync + std::fmt::Debug + 'static,
1605{
1606    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
1607        match err {
1608            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1609            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1610                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1611                source: err.into(),
1612            }),
1613        }
1614    }
1615}
1616impl From<crate::operation::tag_resource::TagResourceError> for Error {
1617    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
1618        match err {
1619            crate::operation::tag_resource::TagResourceError::InternalServerError(inner) => Error::InternalServerError(inner),
1620            crate::operation::tag_resource::TagResourceError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1621            crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1622            crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1623            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1624        }
1625    }
1626}
1627impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
1628where
1629    R: Send + Sync + std::fmt::Debug + 'static,
1630{
1631    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
1632        match err {
1633            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1634            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1635                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1636                source: err.into(),
1637            }),
1638        }
1639    }
1640}
1641impl From<crate::operation::untag_resource::UntagResourceError> for Error {
1642    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
1643        match err {
1644            crate::operation::untag_resource::UntagResourceError::InternalServerError(inner) => Error::InternalServerError(inner),
1645            crate::operation::untag_resource::UntagResourceError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1646            crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1647            crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1648            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1649        }
1650    }
1651}
1652impl<R>
1653    From<
1654        ::aws_smithy_runtime_api::client::result::SdkError<
1655            crate::operation::update_availability_zone_change_protection::UpdateAvailabilityZoneChangeProtectionError,
1656            R,
1657        >,
1658    > for Error
1659where
1660    R: Send + Sync + std::fmt::Debug + 'static,
1661{
1662    fn from(
1663        err: ::aws_smithy_runtime_api::client::result::SdkError<
1664            crate::operation::update_availability_zone_change_protection::UpdateAvailabilityZoneChangeProtectionError,
1665            R,
1666        >,
1667    ) -> Self {
1668        match err {
1669            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1670            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1671                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1672                source: err.into(),
1673            }),
1674        }
1675    }
1676}
1677impl From<crate::operation::update_availability_zone_change_protection::UpdateAvailabilityZoneChangeProtectionError> for Error {
1678    fn from(err: crate::operation::update_availability_zone_change_protection::UpdateAvailabilityZoneChangeProtectionError) -> Self {
1679        match err {
1680            crate::operation::update_availability_zone_change_protection::UpdateAvailabilityZoneChangeProtectionError::InternalServerError(inner) => Error::InternalServerError(inner),
1681            crate::operation::update_availability_zone_change_protection::UpdateAvailabilityZoneChangeProtectionError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1682            crate::operation::update_availability_zone_change_protection::UpdateAvailabilityZoneChangeProtectionError::InvalidTokenException(inner) => Error::InvalidTokenException(inner),
1683            crate::operation::update_availability_zone_change_protection::UpdateAvailabilityZoneChangeProtectionError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1684            crate::operation::update_availability_zone_change_protection::UpdateAvailabilityZoneChangeProtectionError::ResourceOwnerCheckException(inner) => Error::ResourceOwnerCheckException(inner),
1685            crate::operation::update_availability_zone_change_protection::UpdateAvailabilityZoneChangeProtectionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1686            crate::operation::update_availability_zone_change_protection::UpdateAvailabilityZoneChangeProtectionError::Unhandled(inner) => Error::Unhandled(inner),
1687        }
1688    }
1689}
1690impl<R>
1691    From<
1692        ::aws_smithy_runtime_api::client::result::SdkError<
1693            crate::operation::update_firewall_analysis_settings::UpdateFirewallAnalysisSettingsError,
1694            R,
1695        >,
1696    > for Error
1697where
1698    R: Send + Sync + std::fmt::Debug + 'static,
1699{
1700    fn from(
1701        err: ::aws_smithy_runtime_api::client::result::SdkError<
1702            crate::operation::update_firewall_analysis_settings::UpdateFirewallAnalysisSettingsError,
1703            R,
1704        >,
1705    ) -> Self {
1706        match err {
1707            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1708            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1709                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1710                source: err.into(),
1711            }),
1712        }
1713    }
1714}
1715impl From<crate::operation::update_firewall_analysis_settings::UpdateFirewallAnalysisSettingsError> for Error {
1716    fn from(err: crate::operation::update_firewall_analysis_settings::UpdateFirewallAnalysisSettingsError) -> Self {
1717        match err {
1718            crate::operation::update_firewall_analysis_settings::UpdateFirewallAnalysisSettingsError::InternalServerError(inner) => {
1719                Error::InternalServerError(inner)
1720            }
1721            crate::operation::update_firewall_analysis_settings::UpdateFirewallAnalysisSettingsError::InvalidRequestException(inner) => {
1722                Error::InvalidRequestException(inner)
1723            }
1724            crate::operation::update_firewall_analysis_settings::UpdateFirewallAnalysisSettingsError::ResourceNotFoundException(inner) => {
1725                Error::ResourceNotFoundException(inner)
1726            }
1727            crate::operation::update_firewall_analysis_settings::UpdateFirewallAnalysisSettingsError::ThrottlingException(inner) => {
1728                Error::ThrottlingException(inner)
1729            }
1730            crate::operation::update_firewall_analysis_settings::UpdateFirewallAnalysisSettingsError::Unhandled(inner) => Error::Unhandled(inner),
1731        }
1732    }
1733}
1734impl<R>
1735    From<
1736        ::aws_smithy_runtime_api::client::result::SdkError<
1737            crate::operation::update_firewall_delete_protection::UpdateFirewallDeleteProtectionError,
1738            R,
1739        >,
1740    > for Error
1741where
1742    R: Send + Sync + std::fmt::Debug + 'static,
1743{
1744    fn from(
1745        err: ::aws_smithy_runtime_api::client::result::SdkError<
1746            crate::operation::update_firewall_delete_protection::UpdateFirewallDeleteProtectionError,
1747            R,
1748        >,
1749    ) -> Self {
1750        match err {
1751            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1752            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1753                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1754                source: err.into(),
1755            }),
1756        }
1757    }
1758}
1759impl From<crate::operation::update_firewall_delete_protection::UpdateFirewallDeleteProtectionError> for Error {
1760    fn from(err: crate::operation::update_firewall_delete_protection::UpdateFirewallDeleteProtectionError) -> Self {
1761        match err {
1762            crate::operation::update_firewall_delete_protection::UpdateFirewallDeleteProtectionError::InternalServerError(inner) => {
1763                Error::InternalServerError(inner)
1764            }
1765            crate::operation::update_firewall_delete_protection::UpdateFirewallDeleteProtectionError::InvalidRequestException(inner) => {
1766                Error::InvalidRequestException(inner)
1767            }
1768            crate::operation::update_firewall_delete_protection::UpdateFirewallDeleteProtectionError::InvalidTokenException(inner) => {
1769                Error::InvalidTokenException(inner)
1770            }
1771            crate::operation::update_firewall_delete_protection::UpdateFirewallDeleteProtectionError::ResourceNotFoundException(inner) => {
1772                Error::ResourceNotFoundException(inner)
1773            }
1774            crate::operation::update_firewall_delete_protection::UpdateFirewallDeleteProtectionError::ResourceOwnerCheckException(inner) => {
1775                Error::ResourceOwnerCheckException(inner)
1776            }
1777            crate::operation::update_firewall_delete_protection::UpdateFirewallDeleteProtectionError::ThrottlingException(inner) => {
1778                Error::ThrottlingException(inner)
1779            }
1780            crate::operation::update_firewall_delete_protection::UpdateFirewallDeleteProtectionError::Unhandled(inner) => Error::Unhandled(inner),
1781        }
1782    }
1783}
1784impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_firewall_description::UpdateFirewallDescriptionError, R>>
1785    for Error
1786where
1787    R: Send + Sync + std::fmt::Debug + 'static,
1788{
1789    fn from(
1790        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_firewall_description::UpdateFirewallDescriptionError, R>,
1791    ) -> Self {
1792        match err {
1793            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1794            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1795                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1796                source: err.into(),
1797            }),
1798        }
1799    }
1800}
1801impl From<crate::operation::update_firewall_description::UpdateFirewallDescriptionError> for Error {
1802    fn from(err: crate::operation::update_firewall_description::UpdateFirewallDescriptionError) -> Self {
1803        match err {
1804            crate::operation::update_firewall_description::UpdateFirewallDescriptionError::InternalServerError(inner) => {
1805                Error::InternalServerError(inner)
1806            }
1807            crate::operation::update_firewall_description::UpdateFirewallDescriptionError::InvalidRequestException(inner) => {
1808                Error::InvalidRequestException(inner)
1809            }
1810            crate::operation::update_firewall_description::UpdateFirewallDescriptionError::InvalidTokenException(inner) => {
1811                Error::InvalidTokenException(inner)
1812            }
1813            crate::operation::update_firewall_description::UpdateFirewallDescriptionError::ResourceNotFoundException(inner) => {
1814                Error::ResourceNotFoundException(inner)
1815            }
1816            crate::operation::update_firewall_description::UpdateFirewallDescriptionError::ThrottlingException(inner) => {
1817                Error::ThrottlingException(inner)
1818            }
1819            crate::operation::update_firewall_description::UpdateFirewallDescriptionError::Unhandled(inner) => Error::Unhandled(inner),
1820        }
1821    }
1822}
1823impl<R>
1824    From<
1825        ::aws_smithy_runtime_api::client::result::SdkError<
1826            crate::operation::update_firewall_encryption_configuration::UpdateFirewallEncryptionConfigurationError,
1827            R,
1828        >,
1829    > for Error
1830where
1831    R: Send + Sync + std::fmt::Debug + 'static,
1832{
1833    fn from(
1834        err: ::aws_smithy_runtime_api::client::result::SdkError<
1835            crate::operation::update_firewall_encryption_configuration::UpdateFirewallEncryptionConfigurationError,
1836            R,
1837        >,
1838    ) -> Self {
1839        match err {
1840            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1841            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1842                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1843                source: err.into(),
1844            }),
1845        }
1846    }
1847}
1848impl From<crate::operation::update_firewall_encryption_configuration::UpdateFirewallEncryptionConfigurationError> for Error {
1849    fn from(err: crate::operation::update_firewall_encryption_configuration::UpdateFirewallEncryptionConfigurationError) -> Self {
1850        match err {
1851            crate::operation::update_firewall_encryption_configuration::UpdateFirewallEncryptionConfigurationError::InternalServerError(inner) => {
1852                Error::InternalServerError(inner)
1853            }
1854            crate::operation::update_firewall_encryption_configuration::UpdateFirewallEncryptionConfigurationError::InvalidRequestException(
1855                inner,
1856            ) => Error::InvalidRequestException(inner),
1857            crate::operation::update_firewall_encryption_configuration::UpdateFirewallEncryptionConfigurationError::InvalidTokenException(inner) => {
1858                Error::InvalidTokenException(inner)
1859            }
1860            crate::operation::update_firewall_encryption_configuration::UpdateFirewallEncryptionConfigurationError::ResourceNotFoundException(
1861                inner,
1862            ) => Error::ResourceNotFoundException(inner),
1863            crate::operation::update_firewall_encryption_configuration::UpdateFirewallEncryptionConfigurationError::ResourceOwnerCheckException(
1864                inner,
1865            ) => Error::ResourceOwnerCheckException(inner),
1866            crate::operation::update_firewall_encryption_configuration::UpdateFirewallEncryptionConfigurationError::ThrottlingException(inner) => {
1867                Error::ThrottlingException(inner)
1868            }
1869            crate::operation::update_firewall_encryption_configuration::UpdateFirewallEncryptionConfigurationError::Unhandled(inner) => {
1870                Error::Unhandled(inner)
1871            }
1872        }
1873    }
1874}
1875impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_firewall_policy::UpdateFirewallPolicyError, R>> for Error
1876where
1877    R: Send + Sync + std::fmt::Debug + 'static,
1878{
1879    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_firewall_policy::UpdateFirewallPolicyError, R>) -> Self {
1880        match err {
1881            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1882            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1883                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1884                source: err.into(),
1885            }),
1886        }
1887    }
1888}
1889impl From<crate::operation::update_firewall_policy::UpdateFirewallPolicyError> for Error {
1890    fn from(err: crate::operation::update_firewall_policy::UpdateFirewallPolicyError) -> Self {
1891        match err {
1892            crate::operation::update_firewall_policy::UpdateFirewallPolicyError::InternalServerError(inner) => Error::InternalServerError(inner),
1893            crate::operation::update_firewall_policy::UpdateFirewallPolicyError::InvalidRequestException(inner) => {
1894                Error::InvalidRequestException(inner)
1895            }
1896            crate::operation::update_firewall_policy::UpdateFirewallPolicyError::InvalidTokenException(inner) => Error::InvalidTokenException(inner),
1897            crate::operation::update_firewall_policy::UpdateFirewallPolicyError::ResourceNotFoundException(inner) => {
1898                Error::ResourceNotFoundException(inner)
1899            }
1900            crate::operation::update_firewall_policy::UpdateFirewallPolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1901            crate::operation::update_firewall_policy::UpdateFirewallPolicyError::Unhandled(inner) => Error::Unhandled(inner),
1902        }
1903    }
1904}
1905impl<R>
1906    From<
1907        ::aws_smithy_runtime_api::client::result::SdkError<
1908            crate::operation::update_firewall_policy_change_protection::UpdateFirewallPolicyChangeProtectionError,
1909            R,
1910        >,
1911    > for Error
1912where
1913    R: Send + Sync + std::fmt::Debug + 'static,
1914{
1915    fn from(
1916        err: ::aws_smithy_runtime_api::client::result::SdkError<
1917            crate::operation::update_firewall_policy_change_protection::UpdateFirewallPolicyChangeProtectionError,
1918            R,
1919        >,
1920    ) -> Self {
1921        match err {
1922            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1923            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1924                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1925                source: err.into(),
1926            }),
1927        }
1928    }
1929}
1930impl From<crate::operation::update_firewall_policy_change_protection::UpdateFirewallPolicyChangeProtectionError> for Error {
1931    fn from(err: crate::operation::update_firewall_policy_change_protection::UpdateFirewallPolicyChangeProtectionError) -> Self {
1932        match err {
1933            crate::operation::update_firewall_policy_change_protection::UpdateFirewallPolicyChangeProtectionError::InternalServerError(inner) => {
1934                Error::InternalServerError(inner)
1935            }
1936            crate::operation::update_firewall_policy_change_protection::UpdateFirewallPolicyChangeProtectionError::InvalidRequestException(inner) => {
1937                Error::InvalidRequestException(inner)
1938            }
1939            crate::operation::update_firewall_policy_change_protection::UpdateFirewallPolicyChangeProtectionError::InvalidTokenException(inner) => {
1940                Error::InvalidTokenException(inner)
1941            }
1942            crate::operation::update_firewall_policy_change_protection::UpdateFirewallPolicyChangeProtectionError::ResourceNotFoundException(
1943                inner,
1944            ) => Error::ResourceNotFoundException(inner),
1945            crate::operation::update_firewall_policy_change_protection::UpdateFirewallPolicyChangeProtectionError::ResourceOwnerCheckException(
1946                inner,
1947            ) => Error::ResourceOwnerCheckException(inner),
1948            crate::operation::update_firewall_policy_change_protection::UpdateFirewallPolicyChangeProtectionError::ThrottlingException(inner) => {
1949                Error::ThrottlingException(inner)
1950            }
1951            crate::operation::update_firewall_policy_change_protection::UpdateFirewallPolicyChangeProtectionError::Unhandled(inner) => {
1952                Error::Unhandled(inner)
1953            }
1954        }
1955    }
1956}
1957impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_logging_configuration::UpdateLoggingConfigurationError, R>>
1958    for Error
1959where
1960    R: Send + Sync + std::fmt::Debug + 'static,
1961{
1962    fn from(
1963        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_logging_configuration::UpdateLoggingConfigurationError, R>,
1964    ) -> Self {
1965        match err {
1966            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1967            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1968                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1969                source: err.into(),
1970            }),
1971        }
1972    }
1973}
1974impl From<crate::operation::update_logging_configuration::UpdateLoggingConfigurationError> for Error {
1975    fn from(err: crate::operation::update_logging_configuration::UpdateLoggingConfigurationError) -> Self {
1976        match err {
1977            crate::operation::update_logging_configuration::UpdateLoggingConfigurationError::InternalServerError(inner) => {
1978                Error::InternalServerError(inner)
1979            }
1980            crate::operation::update_logging_configuration::UpdateLoggingConfigurationError::InvalidRequestException(inner) => {
1981                Error::InvalidRequestException(inner)
1982            }
1983            crate::operation::update_logging_configuration::UpdateLoggingConfigurationError::InvalidTokenException(inner) => {
1984                Error::InvalidTokenException(inner)
1985            }
1986            crate::operation::update_logging_configuration::UpdateLoggingConfigurationError::LogDestinationPermissionException(inner) => {
1987                Error::LogDestinationPermissionException(inner)
1988            }
1989            crate::operation::update_logging_configuration::UpdateLoggingConfigurationError::ResourceNotFoundException(inner) => {
1990                Error::ResourceNotFoundException(inner)
1991            }
1992            crate::operation::update_logging_configuration::UpdateLoggingConfigurationError::ThrottlingException(inner) => {
1993                Error::ThrottlingException(inner)
1994            }
1995            crate::operation::update_logging_configuration::UpdateLoggingConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1996        }
1997    }
1998}
1999impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_rule_group::UpdateRuleGroupError, R>> for Error
2000where
2001    R: Send + Sync + std::fmt::Debug + 'static,
2002{
2003    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_rule_group::UpdateRuleGroupError, R>) -> Self {
2004        match err {
2005            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2006            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2007                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2008                source: err.into(),
2009            }),
2010        }
2011    }
2012}
2013impl From<crate::operation::update_rule_group::UpdateRuleGroupError> for Error {
2014    fn from(err: crate::operation::update_rule_group::UpdateRuleGroupError) -> Self {
2015        match err {
2016            crate::operation::update_rule_group::UpdateRuleGroupError::InternalServerError(inner) => Error::InternalServerError(inner),
2017            crate::operation::update_rule_group::UpdateRuleGroupError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
2018            crate::operation::update_rule_group::UpdateRuleGroupError::InvalidTokenException(inner) => Error::InvalidTokenException(inner),
2019            crate::operation::update_rule_group::UpdateRuleGroupError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2020            crate::operation::update_rule_group::UpdateRuleGroupError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2021            crate::operation::update_rule_group::UpdateRuleGroupError::Unhandled(inner) => Error::Unhandled(inner),
2022        }
2023    }
2024}
2025impl<R>
2026    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_subnet_change_protection::UpdateSubnetChangeProtectionError, R>>
2027    for Error
2028where
2029    R: Send + Sync + std::fmt::Debug + 'static,
2030{
2031    fn from(
2032        err: ::aws_smithy_runtime_api::client::result::SdkError<
2033            crate::operation::update_subnet_change_protection::UpdateSubnetChangeProtectionError,
2034            R,
2035        >,
2036    ) -> Self {
2037        match err {
2038            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2039            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2040                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2041                source: err.into(),
2042            }),
2043        }
2044    }
2045}
2046impl From<crate::operation::update_subnet_change_protection::UpdateSubnetChangeProtectionError> for Error {
2047    fn from(err: crate::operation::update_subnet_change_protection::UpdateSubnetChangeProtectionError) -> Self {
2048        match err {
2049            crate::operation::update_subnet_change_protection::UpdateSubnetChangeProtectionError::InternalServerError(inner) => {
2050                Error::InternalServerError(inner)
2051            }
2052            crate::operation::update_subnet_change_protection::UpdateSubnetChangeProtectionError::InvalidRequestException(inner) => {
2053                Error::InvalidRequestException(inner)
2054            }
2055            crate::operation::update_subnet_change_protection::UpdateSubnetChangeProtectionError::InvalidTokenException(inner) => {
2056                Error::InvalidTokenException(inner)
2057            }
2058            crate::operation::update_subnet_change_protection::UpdateSubnetChangeProtectionError::ResourceNotFoundException(inner) => {
2059                Error::ResourceNotFoundException(inner)
2060            }
2061            crate::operation::update_subnet_change_protection::UpdateSubnetChangeProtectionError::ResourceOwnerCheckException(inner) => {
2062                Error::ResourceOwnerCheckException(inner)
2063            }
2064            crate::operation::update_subnet_change_protection::UpdateSubnetChangeProtectionError::ThrottlingException(inner) => {
2065                Error::ThrottlingException(inner)
2066            }
2067            crate::operation::update_subnet_change_protection::UpdateSubnetChangeProtectionError::Unhandled(inner) => Error::Unhandled(inner),
2068        }
2069    }
2070}
2071impl<R>
2072    From<
2073        ::aws_smithy_runtime_api::client::result::SdkError<
2074            crate::operation::update_tls_inspection_configuration::UpdateTLSInspectionConfigurationError,
2075            R,
2076        >,
2077    > for Error
2078where
2079    R: Send + Sync + std::fmt::Debug + 'static,
2080{
2081    fn from(
2082        err: ::aws_smithy_runtime_api::client::result::SdkError<
2083            crate::operation::update_tls_inspection_configuration::UpdateTLSInspectionConfigurationError,
2084            R,
2085        >,
2086    ) -> Self {
2087        match err {
2088            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2089            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2090                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2091                source: err.into(),
2092            }),
2093        }
2094    }
2095}
2096impl From<crate::operation::update_tls_inspection_configuration::UpdateTLSInspectionConfigurationError> for Error {
2097    fn from(err: crate::operation::update_tls_inspection_configuration::UpdateTLSInspectionConfigurationError) -> Self {
2098        match err {
2099            crate::operation::update_tls_inspection_configuration::UpdateTLSInspectionConfigurationError::InternalServerError(inner) => {
2100                Error::InternalServerError(inner)
2101            }
2102            crate::operation::update_tls_inspection_configuration::UpdateTLSInspectionConfigurationError::InvalidRequestException(inner) => {
2103                Error::InvalidRequestException(inner)
2104            }
2105            crate::operation::update_tls_inspection_configuration::UpdateTLSInspectionConfigurationError::InvalidTokenException(inner) => {
2106                Error::InvalidTokenException(inner)
2107            }
2108            crate::operation::update_tls_inspection_configuration::UpdateTLSInspectionConfigurationError::ResourceNotFoundException(inner) => {
2109                Error::ResourceNotFoundException(inner)
2110            }
2111            crate::operation::update_tls_inspection_configuration::UpdateTLSInspectionConfigurationError::ThrottlingException(inner) => {
2112                Error::ThrottlingException(inner)
2113            }
2114            crate::operation::update_tls_inspection_configuration::UpdateTLSInspectionConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
2115        }
2116    }
2117}
2118impl ::std::error::Error for Error {
2119    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
2120        match self {
2121            Error::InsufficientCapacityException(inner) => inner.source(),
2122            Error::InternalServerError(inner) => inner.source(),
2123            Error::InvalidOperationException(inner) => inner.source(),
2124            Error::InvalidRequestException(inner) => inner.source(),
2125            Error::InvalidResourcePolicyException(inner) => inner.source(),
2126            Error::InvalidTokenException(inner) => inner.source(),
2127            Error::LimitExceededException(inner) => inner.source(),
2128            Error::LogDestinationPermissionException(inner) => inner.source(),
2129            Error::ResourceNotFoundException(inner) => inner.source(),
2130            Error::ResourceOwnerCheckException(inner) => inner.source(),
2131            Error::ThrottlingException(inner) => inner.source(),
2132            Error::UnsupportedOperationException(inner) => inner.source(),
2133            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
2134        }
2135    }
2136}
2137impl ::aws_types::request_id::RequestId for Error {
2138    fn request_id(&self) -> Option<&str> {
2139        match self {
2140            Self::InsufficientCapacityException(e) => e.request_id(),
2141            Self::InternalServerError(e) => e.request_id(),
2142            Self::InvalidOperationException(e) => e.request_id(),
2143            Self::InvalidRequestException(e) => e.request_id(),
2144            Self::InvalidResourcePolicyException(e) => e.request_id(),
2145            Self::InvalidTokenException(e) => e.request_id(),
2146            Self::LimitExceededException(e) => e.request_id(),
2147            Self::LogDestinationPermissionException(e) => e.request_id(),
2148            Self::ResourceNotFoundException(e) => e.request_id(),
2149            Self::ResourceOwnerCheckException(e) => e.request_id(),
2150            Self::ThrottlingException(e) => e.request_id(),
2151            Self::UnsupportedOperationException(e) => e.request_id(),
2152            Self::Unhandled(e) => e.meta.request_id(),
2153        }
2154    }
2155}