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> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_firewall_policy::AssociateFirewallPolicyError, R>>
100    for Error
101where
102    R: Send + Sync + std::fmt::Debug + 'static,
103{
104    fn from(
105        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_firewall_policy::AssociateFirewallPolicyError, R>,
106    ) -> Self {
107        match err {
108            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
109            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
110                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
111                source: err.into(),
112            }),
113        }
114    }
115}
116impl From<crate::operation::associate_firewall_policy::AssociateFirewallPolicyError> for Error {
117    fn from(err: crate::operation::associate_firewall_policy::AssociateFirewallPolicyError) -> Self {
118        match err {
119            crate::operation::associate_firewall_policy::AssociateFirewallPolicyError::InternalServerError(inner) => {
120                Error::InternalServerError(inner)
121            }
122            crate::operation::associate_firewall_policy::AssociateFirewallPolicyError::InvalidOperationException(inner) => {
123                Error::InvalidOperationException(inner)
124            }
125            crate::operation::associate_firewall_policy::AssociateFirewallPolicyError::InvalidRequestException(inner) => {
126                Error::InvalidRequestException(inner)
127            }
128            crate::operation::associate_firewall_policy::AssociateFirewallPolicyError::InvalidTokenException(inner) => {
129                Error::InvalidTokenException(inner)
130            }
131            crate::operation::associate_firewall_policy::AssociateFirewallPolicyError::ResourceNotFoundException(inner) => {
132                Error::ResourceNotFoundException(inner)
133            }
134            crate::operation::associate_firewall_policy::AssociateFirewallPolicyError::ThrottlingException(inner) => {
135                Error::ThrottlingException(inner)
136            }
137            crate::operation::associate_firewall_policy::AssociateFirewallPolicyError::Unhandled(inner) => Error::Unhandled(inner),
138        }
139    }
140}
141impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_subnets::AssociateSubnetsError, R>> for Error
142where
143    R: Send + Sync + std::fmt::Debug + 'static,
144{
145    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_subnets::AssociateSubnetsError, R>) -> Self {
146        match err {
147            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
148            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
149                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
150                source: err.into(),
151            }),
152        }
153    }
154}
155impl From<crate::operation::associate_subnets::AssociateSubnetsError> for Error {
156    fn from(err: crate::operation::associate_subnets::AssociateSubnetsError) -> Self {
157        match err {
158            crate::operation::associate_subnets::AssociateSubnetsError::InsufficientCapacityException(inner) => {
159                Error::InsufficientCapacityException(inner)
160            }
161            crate::operation::associate_subnets::AssociateSubnetsError::InternalServerError(inner) => Error::InternalServerError(inner),
162            crate::operation::associate_subnets::AssociateSubnetsError::InvalidOperationException(inner) => Error::InvalidOperationException(inner),
163            crate::operation::associate_subnets::AssociateSubnetsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
164            crate::operation::associate_subnets::AssociateSubnetsError::InvalidTokenException(inner) => Error::InvalidTokenException(inner),
165            crate::operation::associate_subnets::AssociateSubnetsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
166            crate::operation::associate_subnets::AssociateSubnetsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
167            crate::operation::associate_subnets::AssociateSubnetsError::Unhandled(inner) => Error::Unhandled(inner),
168        }
169    }
170}
171impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_firewall::CreateFirewallError, R>> for Error
172where
173    R: Send + Sync + std::fmt::Debug + 'static,
174{
175    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_firewall::CreateFirewallError, R>) -> Self {
176        match err {
177            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
178            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
179                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
180                source: err.into(),
181            }),
182        }
183    }
184}
185impl From<crate::operation::create_firewall::CreateFirewallError> for Error {
186    fn from(err: crate::operation::create_firewall::CreateFirewallError) -> Self {
187        match err {
188            crate::operation::create_firewall::CreateFirewallError::InsufficientCapacityException(inner) => {
189                Error::InsufficientCapacityException(inner)
190            }
191            crate::operation::create_firewall::CreateFirewallError::InternalServerError(inner) => Error::InternalServerError(inner),
192            crate::operation::create_firewall::CreateFirewallError::InvalidOperationException(inner) => Error::InvalidOperationException(inner),
193            crate::operation::create_firewall::CreateFirewallError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
194            crate::operation::create_firewall::CreateFirewallError::LimitExceededException(inner) => Error::LimitExceededException(inner),
195            crate::operation::create_firewall::CreateFirewallError::ThrottlingException(inner) => Error::ThrottlingException(inner),
196            crate::operation::create_firewall::CreateFirewallError::Unhandled(inner) => Error::Unhandled(inner),
197        }
198    }
199}
200impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_firewall_policy::CreateFirewallPolicyError, R>> for Error
201where
202    R: Send + Sync + std::fmt::Debug + 'static,
203{
204    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_firewall_policy::CreateFirewallPolicyError, R>) -> Self {
205        match err {
206            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
207            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
208                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
209                source: err.into(),
210            }),
211        }
212    }
213}
214impl From<crate::operation::create_firewall_policy::CreateFirewallPolicyError> for Error {
215    fn from(err: crate::operation::create_firewall_policy::CreateFirewallPolicyError) -> Self {
216        match err {
217            crate::operation::create_firewall_policy::CreateFirewallPolicyError::InsufficientCapacityException(inner) => {
218                Error::InsufficientCapacityException(inner)
219            }
220            crate::operation::create_firewall_policy::CreateFirewallPolicyError::InternalServerError(inner) => Error::InternalServerError(inner),
221            crate::operation::create_firewall_policy::CreateFirewallPolicyError::InvalidRequestException(inner) => {
222                Error::InvalidRequestException(inner)
223            }
224            crate::operation::create_firewall_policy::CreateFirewallPolicyError::LimitExceededException(inner) => {
225                Error::LimitExceededException(inner)
226            }
227            crate::operation::create_firewall_policy::CreateFirewallPolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
228            crate::operation::create_firewall_policy::CreateFirewallPolicyError::Unhandled(inner) => Error::Unhandled(inner),
229        }
230    }
231}
232impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_rule_group::CreateRuleGroupError, R>> for Error
233where
234    R: Send + Sync + std::fmt::Debug + 'static,
235{
236    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_rule_group::CreateRuleGroupError, R>) -> Self {
237        match err {
238            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
239            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
240                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
241                source: err.into(),
242            }),
243        }
244    }
245}
246impl From<crate::operation::create_rule_group::CreateRuleGroupError> for Error {
247    fn from(err: crate::operation::create_rule_group::CreateRuleGroupError) -> Self {
248        match err {
249            crate::operation::create_rule_group::CreateRuleGroupError::InsufficientCapacityException(inner) => {
250                Error::InsufficientCapacityException(inner)
251            }
252            crate::operation::create_rule_group::CreateRuleGroupError::InternalServerError(inner) => Error::InternalServerError(inner),
253            crate::operation::create_rule_group::CreateRuleGroupError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
254            crate::operation::create_rule_group::CreateRuleGroupError::LimitExceededException(inner) => Error::LimitExceededException(inner),
255            crate::operation::create_rule_group::CreateRuleGroupError::ThrottlingException(inner) => Error::ThrottlingException(inner),
256            crate::operation::create_rule_group::CreateRuleGroupError::Unhandled(inner) => Error::Unhandled(inner),
257        }
258    }
259}
260impl<R>
261    From<
262        ::aws_smithy_runtime_api::client::result::SdkError<
263            crate::operation::create_tls_inspection_configuration::CreateTLSInspectionConfigurationError,
264            R,
265        >,
266    > for Error
267where
268    R: Send + Sync + std::fmt::Debug + 'static,
269{
270    fn from(
271        err: ::aws_smithy_runtime_api::client::result::SdkError<
272            crate::operation::create_tls_inspection_configuration::CreateTLSInspectionConfigurationError,
273            R,
274        >,
275    ) -> Self {
276        match err {
277            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
278            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
279                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
280                source: err.into(),
281            }),
282        }
283    }
284}
285impl From<crate::operation::create_tls_inspection_configuration::CreateTLSInspectionConfigurationError> for Error {
286    fn from(err: crate::operation::create_tls_inspection_configuration::CreateTLSInspectionConfigurationError) -> Self {
287        match err {
288            crate::operation::create_tls_inspection_configuration::CreateTLSInspectionConfigurationError::InsufficientCapacityException(inner) => {
289                Error::InsufficientCapacityException(inner)
290            }
291            crate::operation::create_tls_inspection_configuration::CreateTLSInspectionConfigurationError::InternalServerError(inner) => {
292                Error::InternalServerError(inner)
293            }
294            crate::operation::create_tls_inspection_configuration::CreateTLSInspectionConfigurationError::InvalidRequestException(inner) => {
295                Error::InvalidRequestException(inner)
296            }
297            crate::operation::create_tls_inspection_configuration::CreateTLSInspectionConfigurationError::LimitExceededException(inner) => {
298                Error::LimitExceededException(inner)
299            }
300            crate::operation::create_tls_inspection_configuration::CreateTLSInspectionConfigurationError::ThrottlingException(inner) => {
301                Error::ThrottlingException(inner)
302            }
303            crate::operation::create_tls_inspection_configuration::CreateTLSInspectionConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
304        }
305    }
306}
307impl<R>
308    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpc_endpoint_association::CreateVpcEndpointAssociationError, R>>
309    for Error
310where
311    R: Send + Sync + std::fmt::Debug + 'static,
312{
313    fn from(
314        err: ::aws_smithy_runtime_api::client::result::SdkError<
315            crate::operation::create_vpc_endpoint_association::CreateVpcEndpointAssociationError,
316            R,
317        >,
318    ) -> Self {
319        match err {
320            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
321            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
322                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
323                source: err.into(),
324            }),
325        }
326    }
327}
328impl From<crate::operation::create_vpc_endpoint_association::CreateVpcEndpointAssociationError> for Error {
329    fn from(err: crate::operation::create_vpc_endpoint_association::CreateVpcEndpointAssociationError) -> Self {
330        match err {
331            crate::operation::create_vpc_endpoint_association::CreateVpcEndpointAssociationError::InsufficientCapacityException(inner) => {
332                Error::InsufficientCapacityException(inner)
333            }
334            crate::operation::create_vpc_endpoint_association::CreateVpcEndpointAssociationError::InternalServerError(inner) => {
335                Error::InternalServerError(inner)
336            }
337            crate::operation::create_vpc_endpoint_association::CreateVpcEndpointAssociationError::InvalidOperationException(inner) => {
338                Error::InvalidOperationException(inner)
339            }
340            crate::operation::create_vpc_endpoint_association::CreateVpcEndpointAssociationError::InvalidRequestException(inner) => {
341                Error::InvalidRequestException(inner)
342            }
343            crate::operation::create_vpc_endpoint_association::CreateVpcEndpointAssociationError::LimitExceededException(inner) => {
344                Error::LimitExceededException(inner)
345            }
346            crate::operation::create_vpc_endpoint_association::CreateVpcEndpointAssociationError::ResourceNotFoundException(inner) => {
347                Error::ResourceNotFoundException(inner)
348            }
349            crate::operation::create_vpc_endpoint_association::CreateVpcEndpointAssociationError::ThrottlingException(inner) => {
350                Error::ThrottlingException(inner)
351            }
352            crate::operation::create_vpc_endpoint_association::CreateVpcEndpointAssociationError::Unhandled(inner) => Error::Unhandled(inner),
353        }
354    }
355}
356impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_firewall::DeleteFirewallError, R>> for Error
357where
358    R: Send + Sync + std::fmt::Debug + 'static,
359{
360    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_firewall::DeleteFirewallError, R>) -> Self {
361        match err {
362            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
363            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
364                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
365                source: err.into(),
366            }),
367        }
368    }
369}
370impl From<crate::operation::delete_firewall::DeleteFirewallError> for Error {
371    fn from(err: crate::operation::delete_firewall::DeleteFirewallError) -> Self {
372        match err {
373            crate::operation::delete_firewall::DeleteFirewallError::InternalServerError(inner) => Error::InternalServerError(inner),
374            crate::operation::delete_firewall::DeleteFirewallError::InvalidOperationException(inner) => Error::InvalidOperationException(inner),
375            crate::operation::delete_firewall::DeleteFirewallError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
376            crate::operation::delete_firewall::DeleteFirewallError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
377            crate::operation::delete_firewall::DeleteFirewallError::ThrottlingException(inner) => Error::ThrottlingException(inner),
378            crate::operation::delete_firewall::DeleteFirewallError::UnsupportedOperationException(inner) => {
379                Error::UnsupportedOperationException(inner)
380            }
381            crate::operation::delete_firewall::DeleteFirewallError::Unhandled(inner) => Error::Unhandled(inner),
382        }
383    }
384}
385impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_firewall_policy::DeleteFirewallPolicyError, R>> for Error
386where
387    R: Send + Sync + std::fmt::Debug + 'static,
388{
389    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_firewall_policy::DeleteFirewallPolicyError, R>) -> Self {
390        match err {
391            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
392            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
393                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
394                source: err.into(),
395            }),
396        }
397    }
398}
399impl From<crate::operation::delete_firewall_policy::DeleteFirewallPolicyError> for Error {
400    fn from(err: crate::operation::delete_firewall_policy::DeleteFirewallPolicyError) -> Self {
401        match err {
402            crate::operation::delete_firewall_policy::DeleteFirewallPolicyError::InternalServerError(inner) => Error::InternalServerError(inner),
403            crate::operation::delete_firewall_policy::DeleteFirewallPolicyError::InvalidOperationException(inner) => {
404                Error::InvalidOperationException(inner)
405            }
406            crate::operation::delete_firewall_policy::DeleteFirewallPolicyError::InvalidRequestException(inner) => {
407                Error::InvalidRequestException(inner)
408            }
409            crate::operation::delete_firewall_policy::DeleteFirewallPolicyError::ResourceNotFoundException(inner) => {
410                Error::ResourceNotFoundException(inner)
411            }
412            crate::operation::delete_firewall_policy::DeleteFirewallPolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
413            crate::operation::delete_firewall_policy::DeleteFirewallPolicyError::UnsupportedOperationException(inner) => {
414                Error::UnsupportedOperationException(inner)
415            }
416            crate::operation::delete_firewall_policy::DeleteFirewallPolicyError::Unhandled(inner) => Error::Unhandled(inner),
417        }
418    }
419}
420impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_policy::DeleteResourcePolicyError, R>> for Error
421where
422    R: Send + Sync + std::fmt::Debug + 'static,
423{
424    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_policy::DeleteResourcePolicyError, R>) -> Self {
425        match err {
426            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
427            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
428                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
429                source: err.into(),
430            }),
431        }
432    }
433}
434impl From<crate::operation::delete_resource_policy::DeleteResourcePolicyError> for Error {
435    fn from(err: crate::operation::delete_resource_policy::DeleteResourcePolicyError) -> Self {
436        match err {
437            crate::operation::delete_resource_policy::DeleteResourcePolicyError::InternalServerError(inner) => Error::InternalServerError(inner),
438            crate::operation::delete_resource_policy::DeleteResourcePolicyError::InvalidRequestException(inner) => {
439                Error::InvalidRequestException(inner)
440            }
441            crate::operation::delete_resource_policy::DeleteResourcePolicyError::InvalidResourcePolicyException(inner) => {
442                Error::InvalidResourcePolicyException(inner)
443            }
444            crate::operation::delete_resource_policy::DeleteResourcePolicyError::ResourceNotFoundException(inner) => {
445                Error::ResourceNotFoundException(inner)
446            }
447            crate::operation::delete_resource_policy::DeleteResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
448            crate::operation::delete_resource_policy::DeleteResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
449        }
450    }
451}
452impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_rule_group::DeleteRuleGroupError, R>> for Error
453where
454    R: Send + Sync + std::fmt::Debug + 'static,
455{
456    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_rule_group::DeleteRuleGroupError, R>) -> Self {
457        match err {
458            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
459            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
460                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
461                source: err.into(),
462            }),
463        }
464    }
465}
466impl From<crate::operation::delete_rule_group::DeleteRuleGroupError> for Error {
467    fn from(err: crate::operation::delete_rule_group::DeleteRuleGroupError) -> Self {
468        match err {
469            crate::operation::delete_rule_group::DeleteRuleGroupError::InternalServerError(inner) => Error::InternalServerError(inner),
470            crate::operation::delete_rule_group::DeleteRuleGroupError::InvalidOperationException(inner) => Error::InvalidOperationException(inner),
471            crate::operation::delete_rule_group::DeleteRuleGroupError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
472            crate::operation::delete_rule_group::DeleteRuleGroupError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
473            crate::operation::delete_rule_group::DeleteRuleGroupError::ThrottlingException(inner) => Error::ThrottlingException(inner),
474            crate::operation::delete_rule_group::DeleteRuleGroupError::UnsupportedOperationException(inner) => {
475                Error::UnsupportedOperationException(inner)
476            }
477            crate::operation::delete_rule_group::DeleteRuleGroupError::Unhandled(inner) => Error::Unhandled(inner),
478        }
479    }
480}
481impl<R>
482    From<
483        ::aws_smithy_runtime_api::client::result::SdkError<
484            crate::operation::delete_tls_inspection_configuration::DeleteTLSInspectionConfigurationError,
485            R,
486        >,
487    > for Error
488where
489    R: Send + Sync + std::fmt::Debug + 'static,
490{
491    fn from(
492        err: ::aws_smithy_runtime_api::client::result::SdkError<
493            crate::operation::delete_tls_inspection_configuration::DeleteTLSInspectionConfigurationError,
494            R,
495        >,
496    ) -> Self {
497        match err {
498            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
499            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
500                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
501                source: err.into(),
502            }),
503        }
504    }
505}
506impl From<crate::operation::delete_tls_inspection_configuration::DeleteTLSInspectionConfigurationError> for Error {
507    fn from(err: crate::operation::delete_tls_inspection_configuration::DeleteTLSInspectionConfigurationError) -> Self {
508        match err {
509            crate::operation::delete_tls_inspection_configuration::DeleteTLSInspectionConfigurationError::InternalServerError(inner) => {
510                Error::InternalServerError(inner)
511            }
512            crate::operation::delete_tls_inspection_configuration::DeleteTLSInspectionConfigurationError::InvalidOperationException(inner) => {
513                Error::InvalidOperationException(inner)
514            }
515            crate::operation::delete_tls_inspection_configuration::DeleteTLSInspectionConfigurationError::InvalidRequestException(inner) => {
516                Error::InvalidRequestException(inner)
517            }
518            crate::operation::delete_tls_inspection_configuration::DeleteTLSInspectionConfigurationError::ResourceNotFoundException(inner) => {
519                Error::ResourceNotFoundException(inner)
520            }
521            crate::operation::delete_tls_inspection_configuration::DeleteTLSInspectionConfigurationError::ThrottlingException(inner) => {
522                Error::ThrottlingException(inner)
523            }
524            crate::operation::delete_tls_inspection_configuration::DeleteTLSInspectionConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
525        }
526    }
527}
528impl<R>
529    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpc_endpoint_association::DeleteVpcEndpointAssociationError, R>>
530    for Error
531where
532    R: Send + Sync + std::fmt::Debug + 'static,
533{
534    fn from(
535        err: ::aws_smithy_runtime_api::client::result::SdkError<
536            crate::operation::delete_vpc_endpoint_association::DeleteVpcEndpointAssociationError,
537            R,
538        >,
539    ) -> Self {
540        match err {
541            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
542            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
543                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
544                source: err.into(),
545            }),
546        }
547    }
548}
549impl From<crate::operation::delete_vpc_endpoint_association::DeleteVpcEndpointAssociationError> for Error {
550    fn from(err: crate::operation::delete_vpc_endpoint_association::DeleteVpcEndpointAssociationError) -> Self {
551        match err {
552            crate::operation::delete_vpc_endpoint_association::DeleteVpcEndpointAssociationError::InternalServerError(inner) => {
553                Error::InternalServerError(inner)
554            }
555            crate::operation::delete_vpc_endpoint_association::DeleteVpcEndpointAssociationError::InvalidOperationException(inner) => {
556                Error::InvalidOperationException(inner)
557            }
558            crate::operation::delete_vpc_endpoint_association::DeleteVpcEndpointAssociationError::InvalidRequestException(inner) => {
559                Error::InvalidRequestException(inner)
560            }
561            crate::operation::delete_vpc_endpoint_association::DeleteVpcEndpointAssociationError::ResourceNotFoundException(inner) => {
562                Error::ResourceNotFoundException(inner)
563            }
564            crate::operation::delete_vpc_endpoint_association::DeleteVpcEndpointAssociationError::ThrottlingException(inner) => {
565                Error::ThrottlingException(inner)
566            }
567            crate::operation::delete_vpc_endpoint_association::DeleteVpcEndpointAssociationError::Unhandled(inner) => Error::Unhandled(inner),
568        }
569    }
570}
571impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_firewall::DescribeFirewallError, R>> for Error
572where
573    R: Send + Sync + std::fmt::Debug + 'static,
574{
575    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_firewall::DescribeFirewallError, R>) -> Self {
576        match err {
577            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
578            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
579                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
580                source: err.into(),
581            }),
582        }
583    }
584}
585impl From<crate::operation::describe_firewall::DescribeFirewallError> for Error {
586    fn from(err: crate::operation::describe_firewall::DescribeFirewallError) -> Self {
587        match err {
588            crate::operation::describe_firewall::DescribeFirewallError::InternalServerError(inner) => Error::InternalServerError(inner),
589            crate::operation::describe_firewall::DescribeFirewallError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
590            crate::operation::describe_firewall::DescribeFirewallError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
591            crate::operation::describe_firewall::DescribeFirewallError::ThrottlingException(inner) => Error::ThrottlingException(inner),
592            crate::operation::describe_firewall::DescribeFirewallError::Unhandled(inner) => Error::Unhandled(inner),
593        }
594    }
595}
596impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_firewall_metadata::DescribeFirewallMetadataError, R>>
597    for Error
598where
599    R: Send + Sync + std::fmt::Debug + 'static,
600{
601    fn from(
602        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_firewall_metadata::DescribeFirewallMetadataError, R>,
603    ) -> Self {
604        match err {
605            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
606            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
607                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
608                source: err.into(),
609            }),
610        }
611    }
612}
613impl From<crate::operation::describe_firewall_metadata::DescribeFirewallMetadataError> for Error {
614    fn from(err: crate::operation::describe_firewall_metadata::DescribeFirewallMetadataError) -> Self {
615        match err {
616            crate::operation::describe_firewall_metadata::DescribeFirewallMetadataError::InternalServerError(inner) => {
617                Error::InternalServerError(inner)
618            }
619            crate::operation::describe_firewall_metadata::DescribeFirewallMetadataError::InvalidRequestException(inner) => {
620                Error::InvalidRequestException(inner)
621            }
622            crate::operation::describe_firewall_metadata::DescribeFirewallMetadataError::ResourceNotFoundException(inner) => {
623                Error::ResourceNotFoundException(inner)
624            }
625            crate::operation::describe_firewall_metadata::DescribeFirewallMetadataError::ThrottlingException(inner) => {
626                Error::ThrottlingException(inner)
627            }
628            crate::operation::describe_firewall_metadata::DescribeFirewallMetadataError::Unhandled(inner) => Error::Unhandled(inner),
629        }
630    }
631}
632impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_firewall_policy::DescribeFirewallPolicyError, R>> for Error
633where
634    R: Send + Sync + std::fmt::Debug + 'static,
635{
636    fn from(
637        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_firewall_policy::DescribeFirewallPolicyError, R>,
638    ) -> Self {
639        match err {
640            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
641            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
642                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
643                source: err.into(),
644            }),
645        }
646    }
647}
648impl From<crate::operation::describe_firewall_policy::DescribeFirewallPolicyError> for Error {
649    fn from(err: crate::operation::describe_firewall_policy::DescribeFirewallPolicyError) -> Self {
650        match err {
651            crate::operation::describe_firewall_policy::DescribeFirewallPolicyError::InternalServerError(inner) => Error::InternalServerError(inner),
652            crate::operation::describe_firewall_policy::DescribeFirewallPolicyError::InvalidRequestException(inner) => {
653                Error::InvalidRequestException(inner)
654            }
655            crate::operation::describe_firewall_policy::DescribeFirewallPolicyError::ResourceNotFoundException(inner) => {
656                Error::ResourceNotFoundException(inner)
657            }
658            crate::operation::describe_firewall_policy::DescribeFirewallPolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
659            crate::operation::describe_firewall_policy::DescribeFirewallPolicyError::Unhandled(inner) => Error::Unhandled(inner),
660        }
661    }
662}
663impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_flow_operation::DescribeFlowOperationError, R>> for Error
664where
665    R: Send + Sync + std::fmt::Debug + 'static,
666{
667    fn from(
668        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_flow_operation::DescribeFlowOperationError, R>,
669    ) -> Self {
670        match err {
671            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
672            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
673                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
674                source: err.into(),
675            }),
676        }
677    }
678}
679impl From<crate::operation::describe_flow_operation::DescribeFlowOperationError> for Error {
680    fn from(err: crate::operation::describe_flow_operation::DescribeFlowOperationError) -> Self {
681        match err {
682            crate::operation::describe_flow_operation::DescribeFlowOperationError::InternalServerError(inner) => Error::InternalServerError(inner),
683            crate::operation::describe_flow_operation::DescribeFlowOperationError::InvalidRequestException(inner) => {
684                Error::InvalidRequestException(inner)
685            }
686            crate::operation::describe_flow_operation::DescribeFlowOperationError::ResourceNotFoundException(inner) => {
687                Error::ResourceNotFoundException(inner)
688            }
689            crate::operation::describe_flow_operation::DescribeFlowOperationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
690            crate::operation::describe_flow_operation::DescribeFlowOperationError::Unhandled(inner) => Error::Unhandled(inner),
691        }
692    }
693}
694impl<R>
695    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError, R>>
696    for Error
697where
698    R: Send + Sync + std::fmt::Debug + 'static,
699{
700    fn from(
701        err: ::aws_smithy_runtime_api::client::result::SdkError<
702            crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError,
703            R,
704        >,
705    ) -> Self {
706        match err {
707            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
708            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
709                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
710                source: err.into(),
711            }),
712        }
713    }
714}
715impl From<crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError> for Error {
716    fn from(err: crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError) -> Self {
717        match err {
718            crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError::InternalServerError(inner) => {
719                Error::InternalServerError(inner)
720            }
721            crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError::InvalidRequestException(inner) => {
722                Error::InvalidRequestException(inner)
723            }
724            crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError::ResourceNotFoundException(inner) => {
725                Error::ResourceNotFoundException(inner)
726            }
727            crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError::ThrottlingException(inner) => {
728                Error::ThrottlingException(inner)
729            }
730            crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
731        }
732    }
733}
734impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_resource_policy::DescribeResourcePolicyError, R>> for Error
735where
736    R: Send + Sync + std::fmt::Debug + 'static,
737{
738    fn from(
739        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_resource_policy::DescribeResourcePolicyError, R>,
740    ) -> Self {
741        match err {
742            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
743            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
744                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
745                source: err.into(),
746            }),
747        }
748    }
749}
750impl From<crate::operation::describe_resource_policy::DescribeResourcePolicyError> for Error {
751    fn from(err: crate::operation::describe_resource_policy::DescribeResourcePolicyError) -> Self {
752        match err {
753            crate::operation::describe_resource_policy::DescribeResourcePolicyError::InternalServerError(inner) => Error::InternalServerError(inner),
754            crate::operation::describe_resource_policy::DescribeResourcePolicyError::InvalidRequestException(inner) => {
755                Error::InvalidRequestException(inner)
756            }
757            crate::operation::describe_resource_policy::DescribeResourcePolicyError::ResourceNotFoundException(inner) => {
758                Error::ResourceNotFoundException(inner)
759            }
760            crate::operation::describe_resource_policy::DescribeResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
761            crate::operation::describe_resource_policy::DescribeResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
762        }
763    }
764}
765impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_rule_group::DescribeRuleGroupError, R>> for Error
766where
767    R: Send + Sync + std::fmt::Debug + 'static,
768{
769    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_rule_group::DescribeRuleGroupError, R>) -> Self {
770        match err {
771            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
772            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
773                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
774                source: err.into(),
775            }),
776        }
777    }
778}
779impl From<crate::operation::describe_rule_group::DescribeRuleGroupError> for Error {
780    fn from(err: crate::operation::describe_rule_group::DescribeRuleGroupError) -> Self {
781        match err {
782            crate::operation::describe_rule_group::DescribeRuleGroupError::InternalServerError(inner) => Error::InternalServerError(inner),
783            crate::operation::describe_rule_group::DescribeRuleGroupError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
784            crate::operation::describe_rule_group::DescribeRuleGroupError::ResourceNotFoundException(inner) => {
785                Error::ResourceNotFoundException(inner)
786            }
787            crate::operation::describe_rule_group::DescribeRuleGroupError::ThrottlingException(inner) => Error::ThrottlingException(inner),
788            crate::operation::describe_rule_group::DescribeRuleGroupError::Unhandled(inner) => Error::Unhandled(inner),
789        }
790    }
791}
792impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_rule_group_metadata::DescribeRuleGroupMetadataError, R>>
793    for Error
794where
795    R: Send + Sync + std::fmt::Debug + 'static,
796{
797    fn from(
798        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_rule_group_metadata::DescribeRuleGroupMetadataError, R>,
799    ) -> Self {
800        match err {
801            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
802            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
803                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
804                source: err.into(),
805            }),
806        }
807    }
808}
809impl From<crate::operation::describe_rule_group_metadata::DescribeRuleGroupMetadataError> for Error {
810    fn from(err: crate::operation::describe_rule_group_metadata::DescribeRuleGroupMetadataError) -> Self {
811        match err {
812            crate::operation::describe_rule_group_metadata::DescribeRuleGroupMetadataError::InternalServerError(inner) => {
813                Error::InternalServerError(inner)
814            }
815            crate::operation::describe_rule_group_metadata::DescribeRuleGroupMetadataError::InvalidRequestException(inner) => {
816                Error::InvalidRequestException(inner)
817            }
818            crate::operation::describe_rule_group_metadata::DescribeRuleGroupMetadataError::ResourceNotFoundException(inner) => {
819                Error::ResourceNotFoundException(inner)
820            }
821            crate::operation::describe_rule_group_metadata::DescribeRuleGroupMetadataError::ThrottlingException(inner) => {
822                Error::ThrottlingException(inner)
823            }
824            crate::operation::describe_rule_group_metadata::DescribeRuleGroupMetadataError::Unhandled(inner) => Error::Unhandled(inner),
825        }
826    }
827}
828impl<R>
829    From<
830        ::aws_smithy_runtime_api::client::result::SdkError<
831            crate::operation::describe_tls_inspection_configuration::DescribeTLSInspectionConfigurationError,
832            R,
833        >,
834    > for Error
835where
836    R: Send + Sync + std::fmt::Debug + 'static,
837{
838    fn from(
839        err: ::aws_smithy_runtime_api::client::result::SdkError<
840            crate::operation::describe_tls_inspection_configuration::DescribeTLSInspectionConfigurationError,
841            R,
842        >,
843    ) -> Self {
844        match err {
845            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
846            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
847                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
848                source: err.into(),
849            }),
850        }
851    }
852}
853impl From<crate::operation::describe_tls_inspection_configuration::DescribeTLSInspectionConfigurationError> for Error {
854    fn from(err: crate::operation::describe_tls_inspection_configuration::DescribeTLSInspectionConfigurationError) -> Self {
855        match err {
856            crate::operation::describe_tls_inspection_configuration::DescribeTLSInspectionConfigurationError::InternalServerError(inner) => {
857                Error::InternalServerError(inner)
858            }
859            crate::operation::describe_tls_inspection_configuration::DescribeTLSInspectionConfigurationError::InvalidRequestException(inner) => {
860                Error::InvalidRequestException(inner)
861            }
862            crate::operation::describe_tls_inspection_configuration::DescribeTLSInspectionConfigurationError::ResourceNotFoundException(inner) => {
863                Error::ResourceNotFoundException(inner)
864            }
865            crate::operation::describe_tls_inspection_configuration::DescribeTLSInspectionConfigurationError::ThrottlingException(inner) => {
866                Error::ThrottlingException(inner)
867            }
868            crate::operation::describe_tls_inspection_configuration::DescribeTLSInspectionConfigurationError::Unhandled(inner) => {
869                Error::Unhandled(inner)
870            }
871        }
872    }
873}
874impl<R>
875    From<
876        ::aws_smithy_runtime_api::client::result::SdkError<
877            crate::operation::describe_vpc_endpoint_association::DescribeVpcEndpointAssociationError,
878            R,
879        >,
880    > for Error
881where
882    R: Send + Sync + std::fmt::Debug + 'static,
883{
884    fn from(
885        err: ::aws_smithy_runtime_api::client::result::SdkError<
886            crate::operation::describe_vpc_endpoint_association::DescribeVpcEndpointAssociationError,
887            R,
888        >,
889    ) -> Self {
890        match err {
891            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
892            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
893                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
894                source: err.into(),
895            }),
896        }
897    }
898}
899impl From<crate::operation::describe_vpc_endpoint_association::DescribeVpcEndpointAssociationError> for Error {
900    fn from(err: crate::operation::describe_vpc_endpoint_association::DescribeVpcEndpointAssociationError) -> Self {
901        match err {
902            crate::operation::describe_vpc_endpoint_association::DescribeVpcEndpointAssociationError::InternalServerError(inner) => {
903                Error::InternalServerError(inner)
904            }
905            crate::operation::describe_vpc_endpoint_association::DescribeVpcEndpointAssociationError::InvalidRequestException(inner) => {
906                Error::InvalidRequestException(inner)
907            }
908            crate::operation::describe_vpc_endpoint_association::DescribeVpcEndpointAssociationError::ResourceNotFoundException(inner) => {
909                Error::ResourceNotFoundException(inner)
910            }
911            crate::operation::describe_vpc_endpoint_association::DescribeVpcEndpointAssociationError::ThrottlingException(inner) => {
912                Error::ThrottlingException(inner)
913            }
914            crate::operation::describe_vpc_endpoint_association::DescribeVpcEndpointAssociationError::Unhandled(inner) => Error::Unhandled(inner),
915        }
916    }
917}
918impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_subnets::DisassociateSubnetsError, R>> for Error
919where
920    R: Send + Sync + std::fmt::Debug + 'static,
921{
922    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_subnets::DisassociateSubnetsError, R>) -> Self {
923        match err {
924            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
925            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
926                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
927                source: err.into(),
928            }),
929        }
930    }
931}
932impl From<crate::operation::disassociate_subnets::DisassociateSubnetsError> for Error {
933    fn from(err: crate::operation::disassociate_subnets::DisassociateSubnetsError) -> Self {
934        match err {
935            crate::operation::disassociate_subnets::DisassociateSubnetsError::InternalServerError(inner) => Error::InternalServerError(inner),
936            crate::operation::disassociate_subnets::DisassociateSubnetsError::InvalidOperationException(inner) => {
937                Error::InvalidOperationException(inner)
938            }
939            crate::operation::disassociate_subnets::DisassociateSubnetsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
940            crate::operation::disassociate_subnets::DisassociateSubnetsError::InvalidTokenException(inner) => Error::InvalidTokenException(inner),
941            crate::operation::disassociate_subnets::DisassociateSubnetsError::ResourceNotFoundException(inner) => {
942                Error::ResourceNotFoundException(inner)
943            }
944            crate::operation::disassociate_subnets::DisassociateSubnetsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
945            crate::operation::disassociate_subnets::DisassociateSubnetsError::Unhandled(inner) => Error::Unhandled(inner),
946        }
947    }
948}
949impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_analysis_report_results::GetAnalysisReportResultsError, R>>
950    for Error
951where
952    R: Send + Sync + std::fmt::Debug + 'static,
953{
954    fn from(
955        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_analysis_report_results::GetAnalysisReportResultsError, R>,
956    ) -> Self {
957        match err {
958            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
959            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
960                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
961                source: err.into(),
962            }),
963        }
964    }
965}
966impl From<crate::operation::get_analysis_report_results::GetAnalysisReportResultsError> for Error {
967    fn from(err: crate::operation::get_analysis_report_results::GetAnalysisReportResultsError) -> Self {
968        match err {
969            crate::operation::get_analysis_report_results::GetAnalysisReportResultsError::InternalServerError(inner) => {
970                Error::InternalServerError(inner)
971            }
972            crate::operation::get_analysis_report_results::GetAnalysisReportResultsError::InvalidRequestException(inner) => {
973                Error::InvalidRequestException(inner)
974            }
975            crate::operation::get_analysis_report_results::GetAnalysisReportResultsError::ResourceNotFoundException(inner) => {
976                Error::ResourceNotFoundException(inner)
977            }
978            crate::operation::get_analysis_report_results::GetAnalysisReportResultsError::ThrottlingException(inner) => {
979                Error::ThrottlingException(inner)
980            }
981            crate::operation::get_analysis_report_results::GetAnalysisReportResultsError::Unhandled(inner) => Error::Unhandled(inner),
982        }
983    }
984}
985impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_analysis_reports::ListAnalysisReportsError, R>> for Error
986where
987    R: Send + Sync + std::fmt::Debug + 'static,
988{
989    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_analysis_reports::ListAnalysisReportsError, R>) -> Self {
990        match err {
991            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
992            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
993                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
994                source: err.into(),
995            }),
996        }
997    }
998}
999impl From<crate::operation::list_analysis_reports::ListAnalysisReportsError> for Error {
1000    fn from(err: crate::operation::list_analysis_reports::ListAnalysisReportsError) -> Self {
1001        match err {
1002            crate::operation::list_analysis_reports::ListAnalysisReportsError::InternalServerError(inner) => Error::InternalServerError(inner),
1003            crate::operation::list_analysis_reports::ListAnalysisReportsError::InvalidRequestException(inner) => {
1004                Error::InvalidRequestException(inner)
1005            }
1006            crate::operation::list_analysis_reports::ListAnalysisReportsError::ResourceNotFoundException(inner) => {
1007                Error::ResourceNotFoundException(inner)
1008            }
1009            crate::operation::list_analysis_reports::ListAnalysisReportsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1010            crate::operation::list_analysis_reports::ListAnalysisReportsError::Unhandled(inner) => Error::Unhandled(inner),
1011        }
1012    }
1013}
1014impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_firewall_policies::ListFirewallPoliciesError, R>> for Error
1015where
1016    R: Send + Sync + std::fmt::Debug + 'static,
1017{
1018    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_firewall_policies::ListFirewallPoliciesError, R>) -> Self {
1019        match err {
1020            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1021            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1022                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1023                source: err.into(),
1024            }),
1025        }
1026    }
1027}
1028impl From<crate::operation::list_firewall_policies::ListFirewallPoliciesError> for Error {
1029    fn from(err: crate::operation::list_firewall_policies::ListFirewallPoliciesError) -> Self {
1030        match err {
1031            crate::operation::list_firewall_policies::ListFirewallPoliciesError::InternalServerError(inner) => Error::InternalServerError(inner),
1032            crate::operation::list_firewall_policies::ListFirewallPoliciesError::InvalidRequestException(inner) => {
1033                Error::InvalidRequestException(inner)
1034            }
1035            crate::operation::list_firewall_policies::ListFirewallPoliciesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1036            crate::operation::list_firewall_policies::ListFirewallPoliciesError::Unhandled(inner) => Error::Unhandled(inner),
1037        }
1038    }
1039}
1040impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_firewalls::ListFirewallsError, R>> for Error
1041where
1042    R: Send + Sync + std::fmt::Debug + 'static,
1043{
1044    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_firewalls::ListFirewallsError, R>) -> Self {
1045        match err {
1046            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1047            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1048                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1049                source: err.into(),
1050            }),
1051        }
1052    }
1053}
1054impl From<crate::operation::list_firewalls::ListFirewallsError> for Error {
1055    fn from(err: crate::operation::list_firewalls::ListFirewallsError) -> Self {
1056        match err {
1057            crate::operation::list_firewalls::ListFirewallsError::InternalServerError(inner) => Error::InternalServerError(inner),
1058            crate::operation::list_firewalls::ListFirewallsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1059            crate::operation::list_firewalls::ListFirewallsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1060            crate::operation::list_firewalls::ListFirewallsError::Unhandled(inner) => Error::Unhandled(inner),
1061        }
1062    }
1063}
1064impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_flow_operation_results::ListFlowOperationResultsError, R>>
1065    for Error
1066where
1067    R: Send + Sync + std::fmt::Debug + 'static,
1068{
1069    fn from(
1070        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_flow_operation_results::ListFlowOperationResultsError, R>,
1071    ) -> Self {
1072        match err {
1073            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1074            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1075                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1076                source: err.into(),
1077            }),
1078        }
1079    }
1080}
1081impl From<crate::operation::list_flow_operation_results::ListFlowOperationResultsError> for Error {
1082    fn from(err: crate::operation::list_flow_operation_results::ListFlowOperationResultsError) -> Self {
1083        match err {
1084            crate::operation::list_flow_operation_results::ListFlowOperationResultsError::InternalServerError(inner) => {
1085                Error::InternalServerError(inner)
1086            }
1087            crate::operation::list_flow_operation_results::ListFlowOperationResultsError::InvalidRequestException(inner) => {
1088                Error::InvalidRequestException(inner)
1089            }
1090            crate::operation::list_flow_operation_results::ListFlowOperationResultsError::ResourceNotFoundException(inner) => {
1091                Error::ResourceNotFoundException(inner)
1092            }
1093            crate::operation::list_flow_operation_results::ListFlowOperationResultsError::ThrottlingException(inner) => {
1094                Error::ThrottlingException(inner)
1095            }
1096            crate::operation::list_flow_operation_results::ListFlowOperationResultsError::Unhandled(inner) => Error::Unhandled(inner),
1097        }
1098    }
1099}
1100impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_flow_operations::ListFlowOperationsError, R>> for Error
1101where
1102    R: Send + Sync + std::fmt::Debug + 'static,
1103{
1104    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_flow_operations::ListFlowOperationsError, R>) -> Self {
1105        match err {
1106            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1107            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1108                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1109                source: err.into(),
1110            }),
1111        }
1112    }
1113}
1114impl From<crate::operation::list_flow_operations::ListFlowOperationsError> for Error {
1115    fn from(err: crate::operation::list_flow_operations::ListFlowOperationsError) -> Self {
1116        match err {
1117            crate::operation::list_flow_operations::ListFlowOperationsError::InternalServerError(inner) => Error::InternalServerError(inner),
1118            crate::operation::list_flow_operations::ListFlowOperationsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1119            crate::operation::list_flow_operations::ListFlowOperationsError::ResourceNotFoundException(inner) => {
1120                Error::ResourceNotFoundException(inner)
1121            }
1122            crate::operation::list_flow_operations::ListFlowOperationsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1123            crate::operation::list_flow_operations::ListFlowOperationsError::Unhandled(inner) => Error::Unhandled(inner),
1124        }
1125    }
1126}
1127impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_rule_groups::ListRuleGroupsError, R>> for Error
1128where
1129    R: Send + Sync + std::fmt::Debug + 'static,
1130{
1131    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_rule_groups::ListRuleGroupsError, R>) -> Self {
1132        match err {
1133            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1134            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1135                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1136                source: err.into(),
1137            }),
1138        }
1139    }
1140}
1141impl From<crate::operation::list_rule_groups::ListRuleGroupsError> for Error {
1142    fn from(err: crate::operation::list_rule_groups::ListRuleGroupsError) -> Self {
1143        match err {
1144            crate::operation::list_rule_groups::ListRuleGroupsError::InternalServerError(inner) => Error::InternalServerError(inner),
1145            crate::operation::list_rule_groups::ListRuleGroupsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1146            crate::operation::list_rule_groups::ListRuleGroupsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1147            crate::operation::list_rule_groups::ListRuleGroupsError::Unhandled(inner) => Error::Unhandled(inner),
1148        }
1149    }
1150}
1151impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
1152where
1153    R: Send + Sync + std::fmt::Debug + 'static,
1154{
1155    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> 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::list_tags_for_resource::ListTagsForResourceError> for Error {
1166    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
1167        match err {
1168            crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerError(inner) => Error::InternalServerError(inner),
1169            crate::operation::list_tags_for_resource::ListTagsForResourceError::InvalidRequestException(inner) => {
1170                Error::InvalidRequestException(inner)
1171            }
1172            crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
1173                Error::ResourceNotFoundException(inner)
1174            }
1175            crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1176            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
1177        }
1178    }
1179}
1180impl<R>
1181    From<
1182        ::aws_smithy_runtime_api::client::result::SdkError<
1183            crate::operation::list_tls_inspection_configurations::ListTLSInspectionConfigurationsError,
1184            R,
1185        >,
1186    > for Error
1187where
1188    R: Send + Sync + std::fmt::Debug + 'static,
1189{
1190    fn from(
1191        err: ::aws_smithy_runtime_api::client::result::SdkError<
1192            crate::operation::list_tls_inspection_configurations::ListTLSInspectionConfigurationsError,
1193            R,
1194        >,
1195    ) -> Self {
1196        match err {
1197            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1198            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1199                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1200                source: err.into(),
1201            }),
1202        }
1203    }
1204}
1205impl From<crate::operation::list_tls_inspection_configurations::ListTLSInspectionConfigurationsError> for Error {
1206    fn from(err: crate::operation::list_tls_inspection_configurations::ListTLSInspectionConfigurationsError) -> Self {
1207        match err {
1208            crate::operation::list_tls_inspection_configurations::ListTLSInspectionConfigurationsError::InternalServerError(inner) => {
1209                Error::InternalServerError(inner)
1210            }
1211            crate::operation::list_tls_inspection_configurations::ListTLSInspectionConfigurationsError::InvalidRequestException(inner) => {
1212                Error::InvalidRequestException(inner)
1213            }
1214            crate::operation::list_tls_inspection_configurations::ListTLSInspectionConfigurationsError::ThrottlingException(inner) => {
1215                Error::ThrottlingException(inner)
1216            }
1217            crate::operation::list_tls_inspection_configurations::ListTLSInspectionConfigurationsError::Unhandled(inner) => Error::Unhandled(inner),
1218        }
1219    }
1220}
1221impl<R>
1222    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_vpc_endpoint_associations::ListVpcEndpointAssociationsError, R>>
1223    for Error
1224where
1225    R: Send + Sync + std::fmt::Debug + 'static,
1226{
1227    fn from(
1228        err: ::aws_smithy_runtime_api::client::result::SdkError<
1229            crate::operation::list_vpc_endpoint_associations::ListVpcEndpointAssociationsError,
1230            R,
1231        >,
1232    ) -> Self {
1233        match err {
1234            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1235            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1236                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1237                source: err.into(),
1238            }),
1239        }
1240    }
1241}
1242impl From<crate::operation::list_vpc_endpoint_associations::ListVpcEndpointAssociationsError> for Error {
1243    fn from(err: crate::operation::list_vpc_endpoint_associations::ListVpcEndpointAssociationsError) -> Self {
1244        match err {
1245            crate::operation::list_vpc_endpoint_associations::ListVpcEndpointAssociationsError::InternalServerError(inner) => {
1246                Error::InternalServerError(inner)
1247            }
1248            crate::operation::list_vpc_endpoint_associations::ListVpcEndpointAssociationsError::InvalidRequestException(inner) => {
1249                Error::InvalidRequestException(inner)
1250            }
1251            crate::operation::list_vpc_endpoint_associations::ListVpcEndpointAssociationsError::ThrottlingException(inner) => {
1252                Error::ThrottlingException(inner)
1253            }
1254            crate::operation::list_vpc_endpoint_associations::ListVpcEndpointAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
1255        }
1256    }
1257}
1258impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_resource_policy::PutResourcePolicyError, R>> for Error
1259where
1260    R: Send + Sync + std::fmt::Debug + 'static,
1261{
1262    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_resource_policy::PutResourcePolicyError, R>) -> Self {
1263        match err {
1264            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1265            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1266                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1267                source: err.into(),
1268            }),
1269        }
1270    }
1271}
1272impl From<crate::operation::put_resource_policy::PutResourcePolicyError> for Error {
1273    fn from(err: crate::operation::put_resource_policy::PutResourcePolicyError) -> Self {
1274        match err {
1275            crate::operation::put_resource_policy::PutResourcePolicyError::InternalServerError(inner) => Error::InternalServerError(inner),
1276            crate::operation::put_resource_policy::PutResourcePolicyError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1277            crate::operation::put_resource_policy::PutResourcePolicyError::InvalidResourcePolicyException(inner) => {
1278                Error::InvalidResourcePolicyException(inner)
1279            }
1280            crate::operation::put_resource_policy::PutResourcePolicyError::ResourceNotFoundException(inner) => {
1281                Error::ResourceNotFoundException(inner)
1282            }
1283            crate::operation::put_resource_policy::PutResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1284            crate::operation::put_resource_policy::PutResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
1285        }
1286    }
1287}
1288impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_analysis_report::StartAnalysisReportError, R>> for Error
1289where
1290    R: Send + Sync + std::fmt::Debug + 'static,
1291{
1292    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_analysis_report::StartAnalysisReportError, R>) -> Self {
1293        match err {
1294            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1295            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1296                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1297                source: err.into(),
1298            }),
1299        }
1300    }
1301}
1302impl From<crate::operation::start_analysis_report::StartAnalysisReportError> for Error {
1303    fn from(err: crate::operation::start_analysis_report::StartAnalysisReportError) -> Self {
1304        match err {
1305            crate::operation::start_analysis_report::StartAnalysisReportError::InternalServerError(inner) => Error::InternalServerError(inner),
1306            crate::operation::start_analysis_report::StartAnalysisReportError::InvalidRequestException(inner) => {
1307                Error::InvalidRequestException(inner)
1308            }
1309            crate::operation::start_analysis_report::StartAnalysisReportError::ResourceNotFoundException(inner) => {
1310                Error::ResourceNotFoundException(inner)
1311            }
1312            crate::operation::start_analysis_report::StartAnalysisReportError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1313            crate::operation::start_analysis_report::StartAnalysisReportError::Unhandled(inner) => Error::Unhandled(inner),
1314        }
1315    }
1316}
1317impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_flow_capture::StartFlowCaptureError, R>> for Error
1318where
1319    R: Send + Sync + std::fmt::Debug + 'static,
1320{
1321    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_flow_capture::StartFlowCaptureError, R>) -> Self {
1322        match err {
1323            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1324            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1325                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1326                source: err.into(),
1327            }),
1328        }
1329    }
1330}
1331impl From<crate::operation::start_flow_capture::StartFlowCaptureError> for Error {
1332    fn from(err: crate::operation::start_flow_capture::StartFlowCaptureError) -> Self {
1333        match err {
1334            crate::operation::start_flow_capture::StartFlowCaptureError::InternalServerError(inner) => Error::InternalServerError(inner),
1335            crate::operation::start_flow_capture::StartFlowCaptureError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1336            crate::operation::start_flow_capture::StartFlowCaptureError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1337            crate::operation::start_flow_capture::StartFlowCaptureError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1338            crate::operation::start_flow_capture::StartFlowCaptureError::Unhandled(inner) => Error::Unhandled(inner),
1339        }
1340    }
1341}
1342impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_flow_flush::StartFlowFlushError, R>> for Error
1343where
1344    R: Send + Sync + std::fmt::Debug + 'static,
1345{
1346    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_flow_flush::StartFlowFlushError, R>) -> Self {
1347        match err {
1348            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1349            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1350                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1351                source: err.into(),
1352            }),
1353        }
1354    }
1355}
1356impl From<crate::operation::start_flow_flush::StartFlowFlushError> for Error {
1357    fn from(err: crate::operation::start_flow_flush::StartFlowFlushError) -> Self {
1358        match err {
1359            crate::operation::start_flow_flush::StartFlowFlushError::InternalServerError(inner) => Error::InternalServerError(inner),
1360            crate::operation::start_flow_flush::StartFlowFlushError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1361            crate::operation::start_flow_flush::StartFlowFlushError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1362            crate::operation::start_flow_flush::StartFlowFlushError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1363            crate::operation::start_flow_flush::StartFlowFlushError::Unhandled(inner) => Error::Unhandled(inner),
1364        }
1365    }
1366}
1367impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
1368where
1369    R: Send + Sync + std::fmt::Debug + 'static,
1370{
1371    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
1372        match err {
1373            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1374            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1375                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1376                source: err.into(),
1377            }),
1378        }
1379    }
1380}
1381impl From<crate::operation::tag_resource::TagResourceError> for Error {
1382    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
1383        match err {
1384            crate::operation::tag_resource::TagResourceError::InternalServerError(inner) => Error::InternalServerError(inner),
1385            crate::operation::tag_resource::TagResourceError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1386            crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1387            crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1388            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1389        }
1390    }
1391}
1392impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
1393where
1394    R: Send + Sync + std::fmt::Debug + 'static,
1395{
1396    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
1397        match err {
1398            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1399            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1400                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1401                source: err.into(),
1402            }),
1403        }
1404    }
1405}
1406impl From<crate::operation::untag_resource::UntagResourceError> for Error {
1407    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
1408        match err {
1409            crate::operation::untag_resource::UntagResourceError::InternalServerError(inner) => Error::InternalServerError(inner),
1410            crate::operation::untag_resource::UntagResourceError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1411            crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1412            crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1413            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1414        }
1415    }
1416}
1417impl<R>
1418    From<
1419        ::aws_smithy_runtime_api::client::result::SdkError<
1420            crate::operation::update_firewall_analysis_settings::UpdateFirewallAnalysisSettingsError,
1421            R,
1422        >,
1423    > for Error
1424where
1425    R: Send + Sync + std::fmt::Debug + 'static,
1426{
1427    fn from(
1428        err: ::aws_smithy_runtime_api::client::result::SdkError<
1429            crate::operation::update_firewall_analysis_settings::UpdateFirewallAnalysisSettingsError,
1430            R,
1431        >,
1432    ) -> Self {
1433        match err {
1434            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1435            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1436                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1437                source: err.into(),
1438            }),
1439        }
1440    }
1441}
1442impl From<crate::operation::update_firewall_analysis_settings::UpdateFirewallAnalysisSettingsError> for Error {
1443    fn from(err: crate::operation::update_firewall_analysis_settings::UpdateFirewallAnalysisSettingsError) -> Self {
1444        match err {
1445            crate::operation::update_firewall_analysis_settings::UpdateFirewallAnalysisSettingsError::InternalServerError(inner) => {
1446                Error::InternalServerError(inner)
1447            }
1448            crate::operation::update_firewall_analysis_settings::UpdateFirewallAnalysisSettingsError::InvalidRequestException(inner) => {
1449                Error::InvalidRequestException(inner)
1450            }
1451            crate::operation::update_firewall_analysis_settings::UpdateFirewallAnalysisSettingsError::ResourceNotFoundException(inner) => {
1452                Error::ResourceNotFoundException(inner)
1453            }
1454            crate::operation::update_firewall_analysis_settings::UpdateFirewallAnalysisSettingsError::ThrottlingException(inner) => {
1455                Error::ThrottlingException(inner)
1456            }
1457            crate::operation::update_firewall_analysis_settings::UpdateFirewallAnalysisSettingsError::Unhandled(inner) => Error::Unhandled(inner),
1458        }
1459    }
1460}
1461impl<R>
1462    From<
1463        ::aws_smithy_runtime_api::client::result::SdkError<
1464            crate::operation::update_firewall_delete_protection::UpdateFirewallDeleteProtectionError,
1465            R,
1466        >,
1467    > for Error
1468where
1469    R: Send + Sync + std::fmt::Debug + 'static,
1470{
1471    fn from(
1472        err: ::aws_smithy_runtime_api::client::result::SdkError<
1473            crate::operation::update_firewall_delete_protection::UpdateFirewallDeleteProtectionError,
1474            R,
1475        >,
1476    ) -> Self {
1477        match err {
1478            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1479            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1480                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1481                source: err.into(),
1482            }),
1483        }
1484    }
1485}
1486impl From<crate::operation::update_firewall_delete_protection::UpdateFirewallDeleteProtectionError> for Error {
1487    fn from(err: crate::operation::update_firewall_delete_protection::UpdateFirewallDeleteProtectionError) -> Self {
1488        match err {
1489            crate::operation::update_firewall_delete_protection::UpdateFirewallDeleteProtectionError::InternalServerError(inner) => {
1490                Error::InternalServerError(inner)
1491            }
1492            crate::operation::update_firewall_delete_protection::UpdateFirewallDeleteProtectionError::InvalidRequestException(inner) => {
1493                Error::InvalidRequestException(inner)
1494            }
1495            crate::operation::update_firewall_delete_protection::UpdateFirewallDeleteProtectionError::InvalidTokenException(inner) => {
1496                Error::InvalidTokenException(inner)
1497            }
1498            crate::operation::update_firewall_delete_protection::UpdateFirewallDeleteProtectionError::ResourceNotFoundException(inner) => {
1499                Error::ResourceNotFoundException(inner)
1500            }
1501            crate::operation::update_firewall_delete_protection::UpdateFirewallDeleteProtectionError::ResourceOwnerCheckException(inner) => {
1502                Error::ResourceOwnerCheckException(inner)
1503            }
1504            crate::operation::update_firewall_delete_protection::UpdateFirewallDeleteProtectionError::ThrottlingException(inner) => {
1505                Error::ThrottlingException(inner)
1506            }
1507            crate::operation::update_firewall_delete_protection::UpdateFirewallDeleteProtectionError::Unhandled(inner) => Error::Unhandled(inner),
1508        }
1509    }
1510}
1511impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_firewall_description::UpdateFirewallDescriptionError, R>>
1512    for Error
1513where
1514    R: Send + Sync + std::fmt::Debug + 'static,
1515{
1516    fn from(
1517        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_firewall_description::UpdateFirewallDescriptionError, R>,
1518    ) -> Self {
1519        match err {
1520            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1521            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1522                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1523                source: err.into(),
1524            }),
1525        }
1526    }
1527}
1528impl From<crate::operation::update_firewall_description::UpdateFirewallDescriptionError> for Error {
1529    fn from(err: crate::operation::update_firewall_description::UpdateFirewallDescriptionError) -> Self {
1530        match err {
1531            crate::operation::update_firewall_description::UpdateFirewallDescriptionError::InternalServerError(inner) => {
1532                Error::InternalServerError(inner)
1533            }
1534            crate::operation::update_firewall_description::UpdateFirewallDescriptionError::InvalidRequestException(inner) => {
1535                Error::InvalidRequestException(inner)
1536            }
1537            crate::operation::update_firewall_description::UpdateFirewallDescriptionError::InvalidTokenException(inner) => {
1538                Error::InvalidTokenException(inner)
1539            }
1540            crate::operation::update_firewall_description::UpdateFirewallDescriptionError::ResourceNotFoundException(inner) => {
1541                Error::ResourceNotFoundException(inner)
1542            }
1543            crate::operation::update_firewall_description::UpdateFirewallDescriptionError::ThrottlingException(inner) => {
1544                Error::ThrottlingException(inner)
1545            }
1546            crate::operation::update_firewall_description::UpdateFirewallDescriptionError::Unhandled(inner) => Error::Unhandled(inner),
1547        }
1548    }
1549}
1550impl<R>
1551    From<
1552        ::aws_smithy_runtime_api::client::result::SdkError<
1553            crate::operation::update_firewall_encryption_configuration::UpdateFirewallEncryptionConfigurationError,
1554            R,
1555        >,
1556    > for Error
1557where
1558    R: Send + Sync + std::fmt::Debug + 'static,
1559{
1560    fn from(
1561        err: ::aws_smithy_runtime_api::client::result::SdkError<
1562            crate::operation::update_firewall_encryption_configuration::UpdateFirewallEncryptionConfigurationError,
1563            R,
1564        >,
1565    ) -> Self {
1566        match err {
1567            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1568            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1569                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1570                source: err.into(),
1571            }),
1572        }
1573    }
1574}
1575impl From<crate::operation::update_firewall_encryption_configuration::UpdateFirewallEncryptionConfigurationError> for Error {
1576    fn from(err: crate::operation::update_firewall_encryption_configuration::UpdateFirewallEncryptionConfigurationError) -> Self {
1577        match err {
1578            crate::operation::update_firewall_encryption_configuration::UpdateFirewallEncryptionConfigurationError::InternalServerError(inner) => {
1579                Error::InternalServerError(inner)
1580            }
1581            crate::operation::update_firewall_encryption_configuration::UpdateFirewallEncryptionConfigurationError::InvalidRequestException(
1582                inner,
1583            ) => Error::InvalidRequestException(inner),
1584            crate::operation::update_firewall_encryption_configuration::UpdateFirewallEncryptionConfigurationError::InvalidTokenException(inner) => {
1585                Error::InvalidTokenException(inner)
1586            }
1587            crate::operation::update_firewall_encryption_configuration::UpdateFirewallEncryptionConfigurationError::ResourceNotFoundException(
1588                inner,
1589            ) => Error::ResourceNotFoundException(inner),
1590            crate::operation::update_firewall_encryption_configuration::UpdateFirewallEncryptionConfigurationError::ResourceOwnerCheckException(
1591                inner,
1592            ) => Error::ResourceOwnerCheckException(inner),
1593            crate::operation::update_firewall_encryption_configuration::UpdateFirewallEncryptionConfigurationError::ThrottlingException(inner) => {
1594                Error::ThrottlingException(inner)
1595            }
1596            crate::operation::update_firewall_encryption_configuration::UpdateFirewallEncryptionConfigurationError::Unhandled(inner) => {
1597                Error::Unhandled(inner)
1598            }
1599        }
1600    }
1601}
1602impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_firewall_policy::UpdateFirewallPolicyError, 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::update_firewall_policy::UpdateFirewallPolicyError, 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::update_firewall_policy::UpdateFirewallPolicyError> for Error {
1617    fn from(err: crate::operation::update_firewall_policy::UpdateFirewallPolicyError) -> Self {
1618        match err {
1619            crate::operation::update_firewall_policy::UpdateFirewallPolicyError::InternalServerError(inner) => Error::InternalServerError(inner),
1620            crate::operation::update_firewall_policy::UpdateFirewallPolicyError::InvalidRequestException(inner) => {
1621                Error::InvalidRequestException(inner)
1622            }
1623            crate::operation::update_firewall_policy::UpdateFirewallPolicyError::InvalidTokenException(inner) => Error::InvalidTokenException(inner),
1624            crate::operation::update_firewall_policy::UpdateFirewallPolicyError::ResourceNotFoundException(inner) => {
1625                Error::ResourceNotFoundException(inner)
1626            }
1627            crate::operation::update_firewall_policy::UpdateFirewallPolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1628            crate::operation::update_firewall_policy::UpdateFirewallPolicyError::Unhandled(inner) => Error::Unhandled(inner),
1629        }
1630    }
1631}
1632impl<R>
1633    From<
1634        ::aws_smithy_runtime_api::client::result::SdkError<
1635            crate::operation::update_firewall_policy_change_protection::UpdateFirewallPolicyChangeProtectionError,
1636            R,
1637        >,
1638    > for Error
1639where
1640    R: Send + Sync + std::fmt::Debug + 'static,
1641{
1642    fn from(
1643        err: ::aws_smithy_runtime_api::client::result::SdkError<
1644            crate::operation::update_firewall_policy_change_protection::UpdateFirewallPolicyChangeProtectionError,
1645            R,
1646        >,
1647    ) -> Self {
1648        match err {
1649            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1650            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1651                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1652                source: err.into(),
1653            }),
1654        }
1655    }
1656}
1657impl From<crate::operation::update_firewall_policy_change_protection::UpdateFirewallPolicyChangeProtectionError> for Error {
1658    fn from(err: crate::operation::update_firewall_policy_change_protection::UpdateFirewallPolicyChangeProtectionError) -> Self {
1659        match err {
1660            crate::operation::update_firewall_policy_change_protection::UpdateFirewallPolicyChangeProtectionError::InternalServerError(inner) => {
1661                Error::InternalServerError(inner)
1662            }
1663            crate::operation::update_firewall_policy_change_protection::UpdateFirewallPolicyChangeProtectionError::InvalidRequestException(inner) => {
1664                Error::InvalidRequestException(inner)
1665            }
1666            crate::operation::update_firewall_policy_change_protection::UpdateFirewallPolicyChangeProtectionError::InvalidTokenException(inner) => {
1667                Error::InvalidTokenException(inner)
1668            }
1669            crate::operation::update_firewall_policy_change_protection::UpdateFirewallPolicyChangeProtectionError::ResourceNotFoundException(
1670                inner,
1671            ) => Error::ResourceNotFoundException(inner),
1672            crate::operation::update_firewall_policy_change_protection::UpdateFirewallPolicyChangeProtectionError::ResourceOwnerCheckException(
1673                inner,
1674            ) => Error::ResourceOwnerCheckException(inner),
1675            crate::operation::update_firewall_policy_change_protection::UpdateFirewallPolicyChangeProtectionError::ThrottlingException(inner) => {
1676                Error::ThrottlingException(inner)
1677            }
1678            crate::operation::update_firewall_policy_change_protection::UpdateFirewallPolicyChangeProtectionError::Unhandled(inner) => {
1679                Error::Unhandled(inner)
1680            }
1681        }
1682    }
1683}
1684impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_logging_configuration::UpdateLoggingConfigurationError, R>>
1685    for Error
1686where
1687    R: Send + Sync + std::fmt::Debug + 'static,
1688{
1689    fn from(
1690        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_logging_configuration::UpdateLoggingConfigurationError, R>,
1691    ) -> Self {
1692        match err {
1693            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1694            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1695                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1696                source: err.into(),
1697            }),
1698        }
1699    }
1700}
1701impl From<crate::operation::update_logging_configuration::UpdateLoggingConfigurationError> for Error {
1702    fn from(err: crate::operation::update_logging_configuration::UpdateLoggingConfigurationError) -> Self {
1703        match err {
1704            crate::operation::update_logging_configuration::UpdateLoggingConfigurationError::InternalServerError(inner) => {
1705                Error::InternalServerError(inner)
1706            }
1707            crate::operation::update_logging_configuration::UpdateLoggingConfigurationError::InvalidRequestException(inner) => {
1708                Error::InvalidRequestException(inner)
1709            }
1710            crate::operation::update_logging_configuration::UpdateLoggingConfigurationError::InvalidTokenException(inner) => {
1711                Error::InvalidTokenException(inner)
1712            }
1713            crate::operation::update_logging_configuration::UpdateLoggingConfigurationError::LogDestinationPermissionException(inner) => {
1714                Error::LogDestinationPermissionException(inner)
1715            }
1716            crate::operation::update_logging_configuration::UpdateLoggingConfigurationError::ResourceNotFoundException(inner) => {
1717                Error::ResourceNotFoundException(inner)
1718            }
1719            crate::operation::update_logging_configuration::UpdateLoggingConfigurationError::ThrottlingException(inner) => {
1720                Error::ThrottlingException(inner)
1721            }
1722            crate::operation::update_logging_configuration::UpdateLoggingConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1723        }
1724    }
1725}
1726impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_rule_group::UpdateRuleGroupError, R>> for Error
1727where
1728    R: Send + Sync + std::fmt::Debug + 'static,
1729{
1730    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_rule_group::UpdateRuleGroupError, R>) -> Self {
1731        match err {
1732            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1733            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1734                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1735                source: err.into(),
1736            }),
1737        }
1738    }
1739}
1740impl From<crate::operation::update_rule_group::UpdateRuleGroupError> for Error {
1741    fn from(err: crate::operation::update_rule_group::UpdateRuleGroupError) -> Self {
1742        match err {
1743            crate::operation::update_rule_group::UpdateRuleGroupError::InternalServerError(inner) => Error::InternalServerError(inner),
1744            crate::operation::update_rule_group::UpdateRuleGroupError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1745            crate::operation::update_rule_group::UpdateRuleGroupError::InvalidTokenException(inner) => Error::InvalidTokenException(inner),
1746            crate::operation::update_rule_group::UpdateRuleGroupError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1747            crate::operation::update_rule_group::UpdateRuleGroupError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1748            crate::operation::update_rule_group::UpdateRuleGroupError::Unhandled(inner) => Error::Unhandled(inner),
1749        }
1750    }
1751}
1752impl<R>
1753    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_subnet_change_protection::UpdateSubnetChangeProtectionError, R>>
1754    for Error
1755where
1756    R: Send + Sync + std::fmt::Debug + 'static,
1757{
1758    fn from(
1759        err: ::aws_smithy_runtime_api::client::result::SdkError<
1760            crate::operation::update_subnet_change_protection::UpdateSubnetChangeProtectionError,
1761            R,
1762        >,
1763    ) -> Self {
1764        match err {
1765            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1766            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1767                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1768                source: err.into(),
1769            }),
1770        }
1771    }
1772}
1773impl From<crate::operation::update_subnet_change_protection::UpdateSubnetChangeProtectionError> for Error {
1774    fn from(err: crate::operation::update_subnet_change_protection::UpdateSubnetChangeProtectionError) -> Self {
1775        match err {
1776            crate::operation::update_subnet_change_protection::UpdateSubnetChangeProtectionError::InternalServerError(inner) => {
1777                Error::InternalServerError(inner)
1778            }
1779            crate::operation::update_subnet_change_protection::UpdateSubnetChangeProtectionError::InvalidRequestException(inner) => {
1780                Error::InvalidRequestException(inner)
1781            }
1782            crate::operation::update_subnet_change_protection::UpdateSubnetChangeProtectionError::InvalidTokenException(inner) => {
1783                Error::InvalidTokenException(inner)
1784            }
1785            crate::operation::update_subnet_change_protection::UpdateSubnetChangeProtectionError::ResourceNotFoundException(inner) => {
1786                Error::ResourceNotFoundException(inner)
1787            }
1788            crate::operation::update_subnet_change_protection::UpdateSubnetChangeProtectionError::ResourceOwnerCheckException(inner) => {
1789                Error::ResourceOwnerCheckException(inner)
1790            }
1791            crate::operation::update_subnet_change_protection::UpdateSubnetChangeProtectionError::ThrottlingException(inner) => {
1792                Error::ThrottlingException(inner)
1793            }
1794            crate::operation::update_subnet_change_protection::UpdateSubnetChangeProtectionError::Unhandled(inner) => Error::Unhandled(inner),
1795        }
1796    }
1797}
1798impl<R>
1799    From<
1800        ::aws_smithy_runtime_api::client::result::SdkError<
1801            crate::operation::update_tls_inspection_configuration::UpdateTLSInspectionConfigurationError,
1802            R,
1803        >,
1804    > for Error
1805where
1806    R: Send + Sync + std::fmt::Debug + 'static,
1807{
1808    fn from(
1809        err: ::aws_smithy_runtime_api::client::result::SdkError<
1810            crate::operation::update_tls_inspection_configuration::UpdateTLSInspectionConfigurationError,
1811            R,
1812        >,
1813    ) -> Self {
1814        match err {
1815            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1816            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1817                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1818                source: err.into(),
1819            }),
1820        }
1821    }
1822}
1823impl From<crate::operation::update_tls_inspection_configuration::UpdateTLSInspectionConfigurationError> for Error {
1824    fn from(err: crate::operation::update_tls_inspection_configuration::UpdateTLSInspectionConfigurationError) -> Self {
1825        match err {
1826            crate::operation::update_tls_inspection_configuration::UpdateTLSInspectionConfigurationError::InternalServerError(inner) => {
1827                Error::InternalServerError(inner)
1828            }
1829            crate::operation::update_tls_inspection_configuration::UpdateTLSInspectionConfigurationError::InvalidRequestException(inner) => {
1830                Error::InvalidRequestException(inner)
1831            }
1832            crate::operation::update_tls_inspection_configuration::UpdateTLSInspectionConfigurationError::InvalidTokenException(inner) => {
1833                Error::InvalidTokenException(inner)
1834            }
1835            crate::operation::update_tls_inspection_configuration::UpdateTLSInspectionConfigurationError::ResourceNotFoundException(inner) => {
1836                Error::ResourceNotFoundException(inner)
1837            }
1838            crate::operation::update_tls_inspection_configuration::UpdateTLSInspectionConfigurationError::ThrottlingException(inner) => {
1839                Error::ThrottlingException(inner)
1840            }
1841            crate::operation::update_tls_inspection_configuration::UpdateTLSInspectionConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1842        }
1843    }
1844}
1845impl ::std::error::Error for Error {
1846    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
1847        match self {
1848            Error::InsufficientCapacityException(inner) => inner.source(),
1849            Error::InternalServerError(inner) => inner.source(),
1850            Error::InvalidOperationException(inner) => inner.source(),
1851            Error::InvalidRequestException(inner) => inner.source(),
1852            Error::InvalidResourcePolicyException(inner) => inner.source(),
1853            Error::InvalidTokenException(inner) => inner.source(),
1854            Error::LimitExceededException(inner) => inner.source(),
1855            Error::LogDestinationPermissionException(inner) => inner.source(),
1856            Error::ResourceNotFoundException(inner) => inner.source(),
1857            Error::ResourceOwnerCheckException(inner) => inner.source(),
1858            Error::ThrottlingException(inner) => inner.source(),
1859            Error::UnsupportedOperationException(inner) => inner.source(),
1860            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
1861        }
1862    }
1863}
1864impl ::aws_types::request_id::RequestId for Error {
1865    fn request_id(&self) -> Option<&str> {
1866        match self {
1867            Self::InsufficientCapacityException(e) => e.request_id(),
1868            Self::InternalServerError(e) => e.request_id(),
1869            Self::InvalidOperationException(e) => e.request_id(),
1870            Self::InvalidRequestException(e) => e.request_id(),
1871            Self::InvalidResourcePolicyException(e) => e.request_id(),
1872            Self::InvalidTokenException(e) => e.request_id(),
1873            Self::LimitExceededException(e) => e.request_id(),
1874            Self::LogDestinationPermissionException(e) => e.request_id(),
1875            Self::ResourceNotFoundException(e) => e.request_id(),
1876            Self::ResourceOwnerCheckException(e) => e.request_id(),
1877            Self::ThrottlingException(e) => e.request_id(),
1878            Self::UnsupportedOperationException(e) => e.request_id(),
1879            Self::Unhandled(e) => e.meta.request_id(),
1880        }
1881    }
1882}