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> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_firewall::DeleteFirewallError, R>> for Error
308where
309    R: Send + Sync + std::fmt::Debug + 'static,
310{
311    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_firewall::DeleteFirewallError, R>) -> Self {
312        match err {
313            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
314            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
315                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
316                source: err.into(),
317            }),
318        }
319    }
320}
321impl From<crate::operation::delete_firewall::DeleteFirewallError> for Error {
322    fn from(err: crate::operation::delete_firewall::DeleteFirewallError) -> Self {
323        match err {
324            crate::operation::delete_firewall::DeleteFirewallError::InternalServerError(inner) => Error::InternalServerError(inner),
325            crate::operation::delete_firewall::DeleteFirewallError::InvalidOperationException(inner) => Error::InvalidOperationException(inner),
326            crate::operation::delete_firewall::DeleteFirewallError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
327            crate::operation::delete_firewall::DeleteFirewallError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
328            crate::operation::delete_firewall::DeleteFirewallError::ThrottlingException(inner) => Error::ThrottlingException(inner),
329            crate::operation::delete_firewall::DeleteFirewallError::UnsupportedOperationException(inner) => {
330                Error::UnsupportedOperationException(inner)
331            }
332            crate::operation::delete_firewall::DeleteFirewallError::Unhandled(inner) => Error::Unhandled(inner),
333        }
334    }
335}
336impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_firewall_policy::DeleteFirewallPolicyError, R>> for Error
337where
338    R: Send + Sync + std::fmt::Debug + 'static,
339{
340    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_firewall_policy::DeleteFirewallPolicyError, R>) -> Self {
341        match err {
342            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
343            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
344                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
345                source: err.into(),
346            }),
347        }
348    }
349}
350impl From<crate::operation::delete_firewall_policy::DeleteFirewallPolicyError> for Error {
351    fn from(err: crate::operation::delete_firewall_policy::DeleteFirewallPolicyError) -> Self {
352        match err {
353            crate::operation::delete_firewall_policy::DeleteFirewallPolicyError::InternalServerError(inner) => Error::InternalServerError(inner),
354            crate::operation::delete_firewall_policy::DeleteFirewallPolicyError::InvalidOperationException(inner) => {
355                Error::InvalidOperationException(inner)
356            }
357            crate::operation::delete_firewall_policy::DeleteFirewallPolicyError::InvalidRequestException(inner) => {
358                Error::InvalidRequestException(inner)
359            }
360            crate::operation::delete_firewall_policy::DeleteFirewallPolicyError::ResourceNotFoundException(inner) => {
361                Error::ResourceNotFoundException(inner)
362            }
363            crate::operation::delete_firewall_policy::DeleteFirewallPolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
364            crate::operation::delete_firewall_policy::DeleteFirewallPolicyError::UnsupportedOperationException(inner) => {
365                Error::UnsupportedOperationException(inner)
366            }
367            crate::operation::delete_firewall_policy::DeleteFirewallPolicyError::Unhandled(inner) => Error::Unhandled(inner),
368        }
369    }
370}
371impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_policy::DeleteResourcePolicyError, R>> for Error
372where
373    R: Send + Sync + std::fmt::Debug + 'static,
374{
375    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_policy::DeleteResourcePolicyError, R>) -> Self {
376        match err {
377            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
378            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
379                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
380                source: err.into(),
381            }),
382        }
383    }
384}
385impl From<crate::operation::delete_resource_policy::DeleteResourcePolicyError> for Error {
386    fn from(err: crate::operation::delete_resource_policy::DeleteResourcePolicyError) -> Self {
387        match err {
388            crate::operation::delete_resource_policy::DeleteResourcePolicyError::InternalServerError(inner) => Error::InternalServerError(inner),
389            crate::operation::delete_resource_policy::DeleteResourcePolicyError::InvalidRequestException(inner) => {
390                Error::InvalidRequestException(inner)
391            }
392            crate::operation::delete_resource_policy::DeleteResourcePolicyError::InvalidResourcePolicyException(inner) => {
393                Error::InvalidResourcePolicyException(inner)
394            }
395            crate::operation::delete_resource_policy::DeleteResourcePolicyError::ResourceNotFoundException(inner) => {
396                Error::ResourceNotFoundException(inner)
397            }
398            crate::operation::delete_resource_policy::DeleteResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
399            crate::operation::delete_resource_policy::DeleteResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
400        }
401    }
402}
403impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_rule_group::DeleteRuleGroupError, R>> for Error
404where
405    R: Send + Sync + std::fmt::Debug + 'static,
406{
407    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_rule_group::DeleteRuleGroupError, R>) -> Self {
408        match err {
409            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
410            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
411                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
412                source: err.into(),
413            }),
414        }
415    }
416}
417impl From<crate::operation::delete_rule_group::DeleteRuleGroupError> for Error {
418    fn from(err: crate::operation::delete_rule_group::DeleteRuleGroupError) -> Self {
419        match err {
420            crate::operation::delete_rule_group::DeleteRuleGroupError::InternalServerError(inner) => Error::InternalServerError(inner),
421            crate::operation::delete_rule_group::DeleteRuleGroupError::InvalidOperationException(inner) => Error::InvalidOperationException(inner),
422            crate::operation::delete_rule_group::DeleteRuleGroupError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
423            crate::operation::delete_rule_group::DeleteRuleGroupError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
424            crate::operation::delete_rule_group::DeleteRuleGroupError::ThrottlingException(inner) => Error::ThrottlingException(inner),
425            crate::operation::delete_rule_group::DeleteRuleGroupError::UnsupportedOperationException(inner) => {
426                Error::UnsupportedOperationException(inner)
427            }
428            crate::operation::delete_rule_group::DeleteRuleGroupError::Unhandled(inner) => Error::Unhandled(inner),
429        }
430    }
431}
432impl<R>
433    From<
434        ::aws_smithy_runtime_api::client::result::SdkError<
435            crate::operation::delete_tls_inspection_configuration::DeleteTLSInspectionConfigurationError,
436            R,
437        >,
438    > for Error
439where
440    R: Send + Sync + std::fmt::Debug + 'static,
441{
442    fn from(
443        err: ::aws_smithy_runtime_api::client::result::SdkError<
444            crate::operation::delete_tls_inspection_configuration::DeleteTLSInspectionConfigurationError,
445            R,
446        >,
447    ) -> Self {
448        match err {
449            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
450            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
451                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
452                source: err.into(),
453            }),
454        }
455    }
456}
457impl From<crate::operation::delete_tls_inspection_configuration::DeleteTLSInspectionConfigurationError> for Error {
458    fn from(err: crate::operation::delete_tls_inspection_configuration::DeleteTLSInspectionConfigurationError) -> Self {
459        match err {
460            crate::operation::delete_tls_inspection_configuration::DeleteTLSInspectionConfigurationError::InternalServerError(inner) => {
461                Error::InternalServerError(inner)
462            }
463            crate::operation::delete_tls_inspection_configuration::DeleteTLSInspectionConfigurationError::InvalidOperationException(inner) => {
464                Error::InvalidOperationException(inner)
465            }
466            crate::operation::delete_tls_inspection_configuration::DeleteTLSInspectionConfigurationError::InvalidRequestException(inner) => {
467                Error::InvalidRequestException(inner)
468            }
469            crate::operation::delete_tls_inspection_configuration::DeleteTLSInspectionConfigurationError::ResourceNotFoundException(inner) => {
470                Error::ResourceNotFoundException(inner)
471            }
472            crate::operation::delete_tls_inspection_configuration::DeleteTLSInspectionConfigurationError::ThrottlingException(inner) => {
473                Error::ThrottlingException(inner)
474            }
475            crate::operation::delete_tls_inspection_configuration::DeleteTLSInspectionConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
476        }
477    }
478}
479impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_firewall::DescribeFirewallError, R>> for Error
480where
481    R: Send + Sync + std::fmt::Debug + 'static,
482{
483    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_firewall::DescribeFirewallError, R>) -> Self {
484        match err {
485            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
486            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
487                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
488                source: err.into(),
489            }),
490        }
491    }
492}
493impl From<crate::operation::describe_firewall::DescribeFirewallError> for Error {
494    fn from(err: crate::operation::describe_firewall::DescribeFirewallError) -> Self {
495        match err {
496            crate::operation::describe_firewall::DescribeFirewallError::InternalServerError(inner) => Error::InternalServerError(inner),
497            crate::operation::describe_firewall::DescribeFirewallError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
498            crate::operation::describe_firewall::DescribeFirewallError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
499            crate::operation::describe_firewall::DescribeFirewallError::ThrottlingException(inner) => Error::ThrottlingException(inner),
500            crate::operation::describe_firewall::DescribeFirewallError::Unhandled(inner) => Error::Unhandled(inner),
501        }
502    }
503}
504impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_firewall_policy::DescribeFirewallPolicyError, R>> for Error
505where
506    R: Send + Sync + std::fmt::Debug + 'static,
507{
508    fn from(
509        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_firewall_policy::DescribeFirewallPolicyError, R>,
510    ) -> Self {
511        match err {
512            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
513            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
514                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
515                source: err.into(),
516            }),
517        }
518    }
519}
520impl From<crate::operation::describe_firewall_policy::DescribeFirewallPolicyError> for Error {
521    fn from(err: crate::operation::describe_firewall_policy::DescribeFirewallPolicyError) -> Self {
522        match err {
523            crate::operation::describe_firewall_policy::DescribeFirewallPolicyError::InternalServerError(inner) => Error::InternalServerError(inner),
524            crate::operation::describe_firewall_policy::DescribeFirewallPolicyError::InvalidRequestException(inner) => {
525                Error::InvalidRequestException(inner)
526            }
527            crate::operation::describe_firewall_policy::DescribeFirewallPolicyError::ResourceNotFoundException(inner) => {
528                Error::ResourceNotFoundException(inner)
529            }
530            crate::operation::describe_firewall_policy::DescribeFirewallPolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
531            crate::operation::describe_firewall_policy::DescribeFirewallPolicyError::Unhandled(inner) => Error::Unhandled(inner),
532        }
533    }
534}
535impl<R>
536    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError, R>>
537    for Error
538where
539    R: Send + Sync + std::fmt::Debug + 'static,
540{
541    fn from(
542        err: ::aws_smithy_runtime_api::client::result::SdkError<
543            crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError,
544            R,
545        >,
546    ) -> Self {
547        match err {
548            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
549            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
550                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
551                source: err.into(),
552            }),
553        }
554    }
555}
556impl From<crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError> for Error {
557    fn from(err: crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError) -> Self {
558        match err {
559            crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError::InternalServerError(inner) => {
560                Error::InternalServerError(inner)
561            }
562            crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError::InvalidRequestException(inner) => {
563                Error::InvalidRequestException(inner)
564            }
565            crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError::ResourceNotFoundException(inner) => {
566                Error::ResourceNotFoundException(inner)
567            }
568            crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError::ThrottlingException(inner) => {
569                Error::ThrottlingException(inner)
570            }
571            crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
572        }
573    }
574}
575impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_resource_policy::DescribeResourcePolicyError, R>> for Error
576where
577    R: Send + Sync + std::fmt::Debug + 'static,
578{
579    fn from(
580        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_resource_policy::DescribeResourcePolicyError, R>,
581    ) -> Self {
582        match err {
583            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
584            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
585                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
586                source: err.into(),
587            }),
588        }
589    }
590}
591impl From<crate::operation::describe_resource_policy::DescribeResourcePolicyError> for Error {
592    fn from(err: crate::operation::describe_resource_policy::DescribeResourcePolicyError) -> Self {
593        match err {
594            crate::operation::describe_resource_policy::DescribeResourcePolicyError::InternalServerError(inner) => Error::InternalServerError(inner),
595            crate::operation::describe_resource_policy::DescribeResourcePolicyError::InvalidRequestException(inner) => {
596                Error::InvalidRequestException(inner)
597            }
598            crate::operation::describe_resource_policy::DescribeResourcePolicyError::ResourceNotFoundException(inner) => {
599                Error::ResourceNotFoundException(inner)
600            }
601            crate::operation::describe_resource_policy::DescribeResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
602            crate::operation::describe_resource_policy::DescribeResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
603        }
604    }
605}
606impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_rule_group::DescribeRuleGroupError, R>> for Error
607where
608    R: Send + Sync + std::fmt::Debug + 'static,
609{
610    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_rule_group::DescribeRuleGroupError, R>) -> Self {
611        match err {
612            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
613            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
614                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
615                source: err.into(),
616            }),
617        }
618    }
619}
620impl From<crate::operation::describe_rule_group::DescribeRuleGroupError> for Error {
621    fn from(err: crate::operation::describe_rule_group::DescribeRuleGroupError) -> Self {
622        match err {
623            crate::operation::describe_rule_group::DescribeRuleGroupError::InternalServerError(inner) => Error::InternalServerError(inner),
624            crate::operation::describe_rule_group::DescribeRuleGroupError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
625            crate::operation::describe_rule_group::DescribeRuleGroupError::ResourceNotFoundException(inner) => {
626                Error::ResourceNotFoundException(inner)
627            }
628            crate::operation::describe_rule_group::DescribeRuleGroupError::ThrottlingException(inner) => Error::ThrottlingException(inner),
629            crate::operation::describe_rule_group::DescribeRuleGroupError::Unhandled(inner) => Error::Unhandled(inner),
630        }
631    }
632}
633impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_rule_group_metadata::DescribeRuleGroupMetadataError, R>>
634    for Error
635where
636    R: Send + Sync + std::fmt::Debug + 'static,
637{
638    fn from(
639        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_rule_group_metadata::DescribeRuleGroupMetadataError, R>,
640    ) -> Self {
641        match err {
642            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
643            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
644                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
645                source: err.into(),
646            }),
647        }
648    }
649}
650impl From<crate::operation::describe_rule_group_metadata::DescribeRuleGroupMetadataError> for Error {
651    fn from(err: crate::operation::describe_rule_group_metadata::DescribeRuleGroupMetadataError) -> Self {
652        match err {
653            crate::operation::describe_rule_group_metadata::DescribeRuleGroupMetadataError::InternalServerError(inner) => {
654                Error::InternalServerError(inner)
655            }
656            crate::operation::describe_rule_group_metadata::DescribeRuleGroupMetadataError::InvalidRequestException(inner) => {
657                Error::InvalidRequestException(inner)
658            }
659            crate::operation::describe_rule_group_metadata::DescribeRuleGroupMetadataError::ResourceNotFoundException(inner) => {
660                Error::ResourceNotFoundException(inner)
661            }
662            crate::operation::describe_rule_group_metadata::DescribeRuleGroupMetadataError::ThrottlingException(inner) => {
663                Error::ThrottlingException(inner)
664            }
665            crate::operation::describe_rule_group_metadata::DescribeRuleGroupMetadataError::Unhandled(inner) => Error::Unhandled(inner),
666        }
667    }
668}
669impl<R>
670    From<
671        ::aws_smithy_runtime_api::client::result::SdkError<
672            crate::operation::describe_tls_inspection_configuration::DescribeTLSInspectionConfigurationError,
673            R,
674        >,
675    > for Error
676where
677    R: Send + Sync + std::fmt::Debug + 'static,
678{
679    fn from(
680        err: ::aws_smithy_runtime_api::client::result::SdkError<
681            crate::operation::describe_tls_inspection_configuration::DescribeTLSInspectionConfigurationError,
682            R,
683        >,
684    ) -> Self {
685        match err {
686            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
687            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
688                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
689                source: err.into(),
690            }),
691        }
692    }
693}
694impl From<crate::operation::describe_tls_inspection_configuration::DescribeTLSInspectionConfigurationError> for Error {
695    fn from(err: crate::operation::describe_tls_inspection_configuration::DescribeTLSInspectionConfigurationError) -> Self {
696        match err {
697            crate::operation::describe_tls_inspection_configuration::DescribeTLSInspectionConfigurationError::InternalServerError(inner) => {
698                Error::InternalServerError(inner)
699            }
700            crate::operation::describe_tls_inspection_configuration::DescribeTLSInspectionConfigurationError::InvalidRequestException(inner) => {
701                Error::InvalidRequestException(inner)
702            }
703            crate::operation::describe_tls_inspection_configuration::DescribeTLSInspectionConfigurationError::ResourceNotFoundException(inner) => {
704                Error::ResourceNotFoundException(inner)
705            }
706            crate::operation::describe_tls_inspection_configuration::DescribeTLSInspectionConfigurationError::ThrottlingException(inner) => {
707                Error::ThrottlingException(inner)
708            }
709            crate::operation::describe_tls_inspection_configuration::DescribeTLSInspectionConfigurationError::Unhandled(inner) => {
710                Error::Unhandled(inner)
711            }
712        }
713    }
714}
715impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_subnets::DisassociateSubnetsError, R>> for Error
716where
717    R: Send + Sync + std::fmt::Debug + 'static,
718{
719    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_subnets::DisassociateSubnetsError, R>) -> Self {
720        match err {
721            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
722            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
723                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
724                source: err.into(),
725            }),
726        }
727    }
728}
729impl From<crate::operation::disassociate_subnets::DisassociateSubnetsError> for Error {
730    fn from(err: crate::operation::disassociate_subnets::DisassociateSubnetsError) -> Self {
731        match err {
732            crate::operation::disassociate_subnets::DisassociateSubnetsError::InternalServerError(inner) => Error::InternalServerError(inner),
733            crate::operation::disassociate_subnets::DisassociateSubnetsError::InvalidOperationException(inner) => {
734                Error::InvalidOperationException(inner)
735            }
736            crate::operation::disassociate_subnets::DisassociateSubnetsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
737            crate::operation::disassociate_subnets::DisassociateSubnetsError::InvalidTokenException(inner) => Error::InvalidTokenException(inner),
738            crate::operation::disassociate_subnets::DisassociateSubnetsError::ResourceNotFoundException(inner) => {
739                Error::ResourceNotFoundException(inner)
740            }
741            crate::operation::disassociate_subnets::DisassociateSubnetsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
742            crate::operation::disassociate_subnets::DisassociateSubnetsError::Unhandled(inner) => Error::Unhandled(inner),
743        }
744    }
745}
746impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_analysis_report_results::GetAnalysisReportResultsError, R>>
747    for Error
748where
749    R: Send + Sync + std::fmt::Debug + 'static,
750{
751    fn from(
752        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_analysis_report_results::GetAnalysisReportResultsError, R>,
753    ) -> Self {
754        match err {
755            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
756            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
757                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
758                source: err.into(),
759            }),
760        }
761    }
762}
763impl From<crate::operation::get_analysis_report_results::GetAnalysisReportResultsError> for Error {
764    fn from(err: crate::operation::get_analysis_report_results::GetAnalysisReportResultsError) -> Self {
765        match err {
766            crate::operation::get_analysis_report_results::GetAnalysisReportResultsError::InternalServerError(inner) => {
767                Error::InternalServerError(inner)
768            }
769            crate::operation::get_analysis_report_results::GetAnalysisReportResultsError::InvalidRequestException(inner) => {
770                Error::InvalidRequestException(inner)
771            }
772            crate::operation::get_analysis_report_results::GetAnalysisReportResultsError::ResourceNotFoundException(inner) => {
773                Error::ResourceNotFoundException(inner)
774            }
775            crate::operation::get_analysis_report_results::GetAnalysisReportResultsError::ThrottlingException(inner) => {
776                Error::ThrottlingException(inner)
777            }
778            crate::operation::get_analysis_report_results::GetAnalysisReportResultsError::Unhandled(inner) => Error::Unhandled(inner),
779        }
780    }
781}
782impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_analysis_reports::ListAnalysisReportsError, R>> for Error
783where
784    R: Send + Sync + std::fmt::Debug + 'static,
785{
786    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_analysis_reports::ListAnalysisReportsError, R>) -> Self {
787        match err {
788            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
789            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
790                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
791                source: err.into(),
792            }),
793        }
794    }
795}
796impl From<crate::operation::list_analysis_reports::ListAnalysisReportsError> for Error {
797    fn from(err: crate::operation::list_analysis_reports::ListAnalysisReportsError) -> Self {
798        match err {
799            crate::operation::list_analysis_reports::ListAnalysisReportsError::InternalServerError(inner) => Error::InternalServerError(inner),
800            crate::operation::list_analysis_reports::ListAnalysisReportsError::InvalidRequestException(inner) => {
801                Error::InvalidRequestException(inner)
802            }
803            crate::operation::list_analysis_reports::ListAnalysisReportsError::ResourceNotFoundException(inner) => {
804                Error::ResourceNotFoundException(inner)
805            }
806            crate::operation::list_analysis_reports::ListAnalysisReportsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
807            crate::operation::list_analysis_reports::ListAnalysisReportsError::Unhandled(inner) => Error::Unhandled(inner),
808        }
809    }
810}
811impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_firewall_policies::ListFirewallPoliciesError, R>> for Error
812where
813    R: Send + Sync + std::fmt::Debug + 'static,
814{
815    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_firewall_policies::ListFirewallPoliciesError, R>) -> Self {
816        match err {
817            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
818            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
819                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
820                source: err.into(),
821            }),
822        }
823    }
824}
825impl From<crate::operation::list_firewall_policies::ListFirewallPoliciesError> for Error {
826    fn from(err: crate::operation::list_firewall_policies::ListFirewallPoliciesError) -> Self {
827        match err {
828            crate::operation::list_firewall_policies::ListFirewallPoliciesError::InternalServerError(inner) => Error::InternalServerError(inner),
829            crate::operation::list_firewall_policies::ListFirewallPoliciesError::InvalidRequestException(inner) => {
830                Error::InvalidRequestException(inner)
831            }
832            crate::operation::list_firewall_policies::ListFirewallPoliciesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
833            crate::operation::list_firewall_policies::ListFirewallPoliciesError::Unhandled(inner) => Error::Unhandled(inner),
834        }
835    }
836}
837impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_firewalls::ListFirewallsError, R>> for Error
838where
839    R: Send + Sync + std::fmt::Debug + 'static,
840{
841    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_firewalls::ListFirewallsError, R>) -> Self {
842        match err {
843            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
844            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
845                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
846                source: err.into(),
847            }),
848        }
849    }
850}
851impl From<crate::operation::list_firewalls::ListFirewallsError> for Error {
852    fn from(err: crate::operation::list_firewalls::ListFirewallsError) -> Self {
853        match err {
854            crate::operation::list_firewalls::ListFirewallsError::InternalServerError(inner) => Error::InternalServerError(inner),
855            crate::operation::list_firewalls::ListFirewallsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
856            crate::operation::list_firewalls::ListFirewallsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
857            crate::operation::list_firewalls::ListFirewallsError::Unhandled(inner) => Error::Unhandled(inner),
858        }
859    }
860}
861impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_rule_groups::ListRuleGroupsError, R>> for Error
862where
863    R: Send + Sync + std::fmt::Debug + 'static,
864{
865    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_rule_groups::ListRuleGroupsError, R>) -> Self {
866        match err {
867            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
868            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
869                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
870                source: err.into(),
871            }),
872        }
873    }
874}
875impl From<crate::operation::list_rule_groups::ListRuleGroupsError> for Error {
876    fn from(err: crate::operation::list_rule_groups::ListRuleGroupsError) -> Self {
877        match err {
878            crate::operation::list_rule_groups::ListRuleGroupsError::InternalServerError(inner) => Error::InternalServerError(inner),
879            crate::operation::list_rule_groups::ListRuleGroupsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
880            crate::operation::list_rule_groups::ListRuleGroupsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
881            crate::operation::list_rule_groups::ListRuleGroupsError::Unhandled(inner) => Error::Unhandled(inner),
882        }
883    }
884}
885impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
886where
887    R: Send + Sync + std::fmt::Debug + 'static,
888{
889    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> 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::list_tags_for_resource::ListTagsForResourceError> for Error {
900    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
901        match err {
902            crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerError(inner) => Error::InternalServerError(inner),
903            crate::operation::list_tags_for_resource::ListTagsForResourceError::InvalidRequestException(inner) => {
904                Error::InvalidRequestException(inner)
905            }
906            crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
907                Error::ResourceNotFoundException(inner)
908            }
909            crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
910            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
911        }
912    }
913}
914impl<R>
915    From<
916        ::aws_smithy_runtime_api::client::result::SdkError<
917            crate::operation::list_tls_inspection_configurations::ListTLSInspectionConfigurationsError,
918            R,
919        >,
920    > for Error
921where
922    R: Send + Sync + std::fmt::Debug + 'static,
923{
924    fn from(
925        err: ::aws_smithy_runtime_api::client::result::SdkError<
926            crate::operation::list_tls_inspection_configurations::ListTLSInspectionConfigurationsError,
927            R,
928        >,
929    ) -> Self {
930        match err {
931            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
932            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
933                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
934                source: err.into(),
935            }),
936        }
937    }
938}
939impl From<crate::operation::list_tls_inspection_configurations::ListTLSInspectionConfigurationsError> for Error {
940    fn from(err: crate::operation::list_tls_inspection_configurations::ListTLSInspectionConfigurationsError) -> Self {
941        match err {
942            crate::operation::list_tls_inspection_configurations::ListTLSInspectionConfigurationsError::InternalServerError(inner) => {
943                Error::InternalServerError(inner)
944            }
945            crate::operation::list_tls_inspection_configurations::ListTLSInspectionConfigurationsError::InvalidRequestException(inner) => {
946                Error::InvalidRequestException(inner)
947            }
948            crate::operation::list_tls_inspection_configurations::ListTLSInspectionConfigurationsError::ThrottlingException(inner) => {
949                Error::ThrottlingException(inner)
950            }
951            crate::operation::list_tls_inspection_configurations::ListTLSInspectionConfigurationsError::Unhandled(inner) => Error::Unhandled(inner),
952        }
953    }
954}
955impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_resource_policy::PutResourcePolicyError, R>> for Error
956where
957    R: Send + Sync + std::fmt::Debug + 'static,
958{
959    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_resource_policy::PutResourcePolicyError, R>) -> Self {
960        match err {
961            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
962            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
963                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
964                source: err.into(),
965            }),
966        }
967    }
968}
969impl From<crate::operation::put_resource_policy::PutResourcePolicyError> for Error {
970    fn from(err: crate::operation::put_resource_policy::PutResourcePolicyError) -> Self {
971        match err {
972            crate::operation::put_resource_policy::PutResourcePolicyError::InternalServerError(inner) => Error::InternalServerError(inner),
973            crate::operation::put_resource_policy::PutResourcePolicyError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
974            crate::operation::put_resource_policy::PutResourcePolicyError::InvalidResourcePolicyException(inner) => {
975                Error::InvalidResourcePolicyException(inner)
976            }
977            crate::operation::put_resource_policy::PutResourcePolicyError::ResourceNotFoundException(inner) => {
978                Error::ResourceNotFoundException(inner)
979            }
980            crate::operation::put_resource_policy::PutResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
981            crate::operation::put_resource_policy::PutResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
982        }
983    }
984}
985impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_analysis_report::StartAnalysisReportError, 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::start_analysis_report::StartAnalysisReportError, 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::start_analysis_report::StartAnalysisReportError> for Error {
1000    fn from(err: crate::operation::start_analysis_report::StartAnalysisReportError) -> Self {
1001        match err {
1002            crate::operation::start_analysis_report::StartAnalysisReportError::InternalServerError(inner) => Error::InternalServerError(inner),
1003            crate::operation::start_analysis_report::StartAnalysisReportError::InvalidRequestException(inner) => {
1004                Error::InvalidRequestException(inner)
1005            }
1006            crate::operation::start_analysis_report::StartAnalysisReportError::ResourceNotFoundException(inner) => {
1007                Error::ResourceNotFoundException(inner)
1008            }
1009            crate::operation::start_analysis_report::StartAnalysisReportError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1010            crate::operation::start_analysis_report::StartAnalysisReportError::Unhandled(inner) => Error::Unhandled(inner),
1011        }
1012    }
1013}
1014impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, 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::tag_resource::TagResourceError, 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::tag_resource::TagResourceError> for Error {
1029    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
1030        match err {
1031            crate::operation::tag_resource::TagResourceError::InternalServerError(inner) => Error::InternalServerError(inner),
1032            crate::operation::tag_resource::TagResourceError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1033            crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1034            crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1035            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1036        }
1037    }
1038}
1039impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
1040where
1041    R: Send + Sync + std::fmt::Debug + 'static,
1042{
1043    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
1044        match err {
1045            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1046            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1047                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1048                source: err.into(),
1049            }),
1050        }
1051    }
1052}
1053impl From<crate::operation::untag_resource::UntagResourceError> for Error {
1054    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
1055        match err {
1056            crate::operation::untag_resource::UntagResourceError::InternalServerError(inner) => Error::InternalServerError(inner),
1057            crate::operation::untag_resource::UntagResourceError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1058            crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1059            crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1060            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1061        }
1062    }
1063}
1064impl<R>
1065    From<
1066        ::aws_smithy_runtime_api::client::result::SdkError<
1067            crate::operation::update_firewall_analysis_settings::UpdateFirewallAnalysisSettingsError,
1068            R,
1069        >,
1070    > for Error
1071where
1072    R: Send + Sync + std::fmt::Debug + 'static,
1073{
1074    fn from(
1075        err: ::aws_smithy_runtime_api::client::result::SdkError<
1076            crate::operation::update_firewall_analysis_settings::UpdateFirewallAnalysisSettingsError,
1077            R,
1078        >,
1079    ) -> Self {
1080        match err {
1081            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1082            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1083                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1084                source: err.into(),
1085            }),
1086        }
1087    }
1088}
1089impl From<crate::operation::update_firewall_analysis_settings::UpdateFirewallAnalysisSettingsError> for Error {
1090    fn from(err: crate::operation::update_firewall_analysis_settings::UpdateFirewallAnalysisSettingsError) -> Self {
1091        match err {
1092            crate::operation::update_firewall_analysis_settings::UpdateFirewallAnalysisSettingsError::InternalServerError(inner) => {
1093                Error::InternalServerError(inner)
1094            }
1095            crate::operation::update_firewall_analysis_settings::UpdateFirewallAnalysisSettingsError::InvalidRequestException(inner) => {
1096                Error::InvalidRequestException(inner)
1097            }
1098            crate::operation::update_firewall_analysis_settings::UpdateFirewallAnalysisSettingsError::ResourceNotFoundException(inner) => {
1099                Error::ResourceNotFoundException(inner)
1100            }
1101            crate::operation::update_firewall_analysis_settings::UpdateFirewallAnalysisSettingsError::ThrottlingException(inner) => {
1102                Error::ThrottlingException(inner)
1103            }
1104            crate::operation::update_firewall_analysis_settings::UpdateFirewallAnalysisSettingsError::Unhandled(inner) => Error::Unhandled(inner),
1105        }
1106    }
1107}
1108impl<R>
1109    From<
1110        ::aws_smithy_runtime_api::client::result::SdkError<
1111            crate::operation::update_firewall_delete_protection::UpdateFirewallDeleteProtectionError,
1112            R,
1113        >,
1114    > for Error
1115where
1116    R: Send + Sync + std::fmt::Debug + 'static,
1117{
1118    fn from(
1119        err: ::aws_smithy_runtime_api::client::result::SdkError<
1120            crate::operation::update_firewall_delete_protection::UpdateFirewallDeleteProtectionError,
1121            R,
1122        >,
1123    ) -> Self {
1124        match err {
1125            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1126            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1127                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1128                source: err.into(),
1129            }),
1130        }
1131    }
1132}
1133impl From<crate::operation::update_firewall_delete_protection::UpdateFirewallDeleteProtectionError> for Error {
1134    fn from(err: crate::operation::update_firewall_delete_protection::UpdateFirewallDeleteProtectionError) -> Self {
1135        match err {
1136            crate::operation::update_firewall_delete_protection::UpdateFirewallDeleteProtectionError::InternalServerError(inner) => {
1137                Error::InternalServerError(inner)
1138            }
1139            crate::operation::update_firewall_delete_protection::UpdateFirewallDeleteProtectionError::InvalidRequestException(inner) => {
1140                Error::InvalidRequestException(inner)
1141            }
1142            crate::operation::update_firewall_delete_protection::UpdateFirewallDeleteProtectionError::InvalidTokenException(inner) => {
1143                Error::InvalidTokenException(inner)
1144            }
1145            crate::operation::update_firewall_delete_protection::UpdateFirewallDeleteProtectionError::ResourceNotFoundException(inner) => {
1146                Error::ResourceNotFoundException(inner)
1147            }
1148            crate::operation::update_firewall_delete_protection::UpdateFirewallDeleteProtectionError::ResourceOwnerCheckException(inner) => {
1149                Error::ResourceOwnerCheckException(inner)
1150            }
1151            crate::operation::update_firewall_delete_protection::UpdateFirewallDeleteProtectionError::ThrottlingException(inner) => {
1152                Error::ThrottlingException(inner)
1153            }
1154            crate::operation::update_firewall_delete_protection::UpdateFirewallDeleteProtectionError::Unhandled(inner) => Error::Unhandled(inner),
1155        }
1156    }
1157}
1158impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_firewall_description::UpdateFirewallDescriptionError, R>>
1159    for Error
1160where
1161    R: Send + Sync + std::fmt::Debug + 'static,
1162{
1163    fn from(
1164        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_firewall_description::UpdateFirewallDescriptionError, R>,
1165    ) -> Self {
1166        match err {
1167            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1168            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1169                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1170                source: err.into(),
1171            }),
1172        }
1173    }
1174}
1175impl From<crate::operation::update_firewall_description::UpdateFirewallDescriptionError> for Error {
1176    fn from(err: crate::operation::update_firewall_description::UpdateFirewallDescriptionError) -> Self {
1177        match err {
1178            crate::operation::update_firewall_description::UpdateFirewallDescriptionError::InternalServerError(inner) => {
1179                Error::InternalServerError(inner)
1180            }
1181            crate::operation::update_firewall_description::UpdateFirewallDescriptionError::InvalidRequestException(inner) => {
1182                Error::InvalidRequestException(inner)
1183            }
1184            crate::operation::update_firewall_description::UpdateFirewallDescriptionError::InvalidTokenException(inner) => {
1185                Error::InvalidTokenException(inner)
1186            }
1187            crate::operation::update_firewall_description::UpdateFirewallDescriptionError::ResourceNotFoundException(inner) => {
1188                Error::ResourceNotFoundException(inner)
1189            }
1190            crate::operation::update_firewall_description::UpdateFirewallDescriptionError::ThrottlingException(inner) => {
1191                Error::ThrottlingException(inner)
1192            }
1193            crate::operation::update_firewall_description::UpdateFirewallDescriptionError::Unhandled(inner) => Error::Unhandled(inner),
1194        }
1195    }
1196}
1197impl<R>
1198    From<
1199        ::aws_smithy_runtime_api::client::result::SdkError<
1200            crate::operation::update_firewall_encryption_configuration::UpdateFirewallEncryptionConfigurationError,
1201            R,
1202        >,
1203    > for Error
1204where
1205    R: Send + Sync + std::fmt::Debug + 'static,
1206{
1207    fn from(
1208        err: ::aws_smithy_runtime_api::client::result::SdkError<
1209            crate::operation::update_firewall_encryption_configuration::UpdateFirewallEncryptionConfigurationError,
1210            R,
1211        >,
1212    ) -> Self {
1213        match err {
1214            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1215            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1216                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1217                source: err.into(),
1218            }),
1219        }
1220    }
1221}
1222impl From<crate::operation::update_firewall_encryption_configuration::UpdateFirewallEncryptionConfigurationError> for Error {
1223    fn from(err: crate::operation::update_firewall_encryption_configuration::UpdateFirewallEncryptionConfigurationError) -> Self {
1224        match err {
1225            crate::operation::update_firewall_encryption_configuration::UpdateFirewallEncryptionConfigurationError::InternalServerError(inner) => {
1226                Error::InternalServerError(inner)
1227            }
1228            crate::operation::update_firewall_encryption_configuration::UpdateFirewallEncryptionConfigurationError::InvalidRequestException(
1229                inner,
1230            ) => Error::InvalidRequestException(inner),
1231            crate::operation::update_firewall_encryption_configuration::UpdateFirewallEncryptionConfigurationError::InvalidTokenException(inner) => {
1232                Error::InvalidTokenException(inner)
1233            }
1234            crate::operation::update_firewall_encryption_configuration::UpdateFirewallEncryptionConfigurationError::ResourceNotFoundException(
1235                inner,
1236            ) => Error::ResourceNotFoundException(inner),
1237            crate::operation::update_firewall_encryption_configuration::UpdateFirewallEncryptionConfigurationError::ResourceOwnerCheckException(
1238                inner,
1239            ) => Error::ResourceOwnerCheckException(inner),
1240            crate::operation::update_firewall_encryption_configuration::UpdateFirewallEncryptionConfigurationError::ThrottlingException(inner) => {
1241                Error::ThrottlingException(inner)
1242            }
1243            crate::operation::update_firewall_encryption_configuration::UpdateFirewallEncryptionConfigurationError::Unhandled(inner) => {
1244                Error::Unhandled(inner)
1245            }
1246        }
1247    }
1248}
1249impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_firewall_policy::UpdateFirewallPolicyError, R>> for Error
1250where
1251    R: Send + Sync + std::fmt::Debug + 'static,
1252{
1253    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_firewall_policy::UpdateFirewallPolicyError, R>) -> Self {
1254        match err {
1255            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1256            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1257                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1258                source: err.into(),
1259            }),
1260        }
1261    }
1262}
1263impl From<crate::operation::update_firewall_policy::UpdateFirewallPolicyError> for Error {
1264    fn from(err: crate::operation::update_firewall_policy::UpdateFirewallPolicyError) -> Self {
1265        match err {
1266            crate::operation::update_firewall_policy::UpdateFirewallPolicyError::InternalServerError(inner) => Error::InternalServerError(inner),
1267            crate::operation::update_firewall_policy::UpdateFirewallPolicyError::InvalidRequestException(inner) => {
1268                Error::InvalidRequestException(inner)
1269            }
1270            crate::operation::update_firewall_policy::UpdateFirewallPolicyError::InvalidTokenException(inner) => Error::InvalidTokenException(inner),
1271            crate::operation::update_firewall_policy::UpdateFirewallPolicyError::ResourceNotFoundException(inner) => {
1272                Error::ResourceNotFoundException(inner)
1273            }
1274            crate::operation::update_firewall_policy::UpdateFirewallPolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1275            crate::operation::update_firewall_policy::UpdateFirewallPolicyError::Unhandled(inner) => Error::Unhandled(inner),
1276        }
1277    }
1278}
1279impl<R>
1280    From<
1281        ::aws_smithy_runtime_api::client::result::SdkError<
1282            crate::operation::update_firewall_policy_change_protection::UpdateFirewallPolicyChangeProtectionError,
1283            R,
1284        >,
1285    > for Error
1286where
1287    R: Send + Sync + std::fmt::Debug + 'static,
1288{
1289    fn from(
1290        err: ::aws_smithy_runtime_api::client::result::SdkError<
1291            crate::operation::update_firewall_policy_change_protection::UpdateFirewallPolicyChangeProtectionError,
1292            R,
1293        >,
1294    ) -> Self {
1295        match err {
1296            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1297            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1298                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1299                source: err.into(),
1300            }),
1301        }
1302    }
1303}
1304impl From<crate::operation::update_firewall_policy_change_protection::UpdateFirewallPolicyChangeProtectionError> for Error {
1305    fn from(err: crate::operation::update_firewall_policy_change_protection::UpdateFirewallPolicyChangeProtectionError) -> Self {
1306        match err {
1307            crate::operation::update_firewall_policy_change_protection::UpdateFirewallPolicyChangeProtectionError::InternalServerError(inner) => {
1308                Error::InternalServerError(inner)
1309            }
1310            crate::operation::update_firewall_policy_change_protection::UpdateFirewallPolicyChangeProtectionError::InvalidRequestException(inner) => {
1311                Error::InvalidRequestException(inner)
1312            }
1313            crate::operation::update_firewall_policy_change_protection::UpdateFirewallPolicyChangeProtectionError::InvalidTokenException(inner) => {
1314                Error::InvalidTokenException(inner)
1315            }
1316            crate::operation::update_firewall_policy_change_protection::UpdateFirewallPolicyChangeProtectionError::ResourceNotFoundException(
1317                inner,
1318            ) => Error::ResourceNotFoundException(inner),
1319            crate::operation::update_firewall_policy_change_protection::UpdateFirewallPolicyChangeProtectionError::ResourceOwnerCheckException(
1320                inner,
1321            ) => Error::ResourceOwnerCheckException(inner),
1322            crate::operation::update_firewall_policy_change_protection::UpdateFirewallPolicyChangeProtectionError::ThrottlingException(inner) => {
1323                Error::ThrottlingException(inner)
1324            }
1325            crate::operation::update_firewall_policy_change_protection::UpdateFirewallPolicyChangeProtectionError::Unhandled(inner) => {
1326                Error::Unhandled(inner)
1327            }
1328        }
1329    }
1330}
1331impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_logging_configuration::UpdateLoggingConfigurationError, R>>
1332    for Error
1333where
1334    R: Send + Sync + std::fmt::Debug + 'static,
1335{
1336    fn from(
1337        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_logging_configuration::UpdateLoggingConfigurationError, R>,
1338    ) -> Self {
1339        match err {
1340            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1341            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1342                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1343                source: err.into(),
1344            }),
1345        }
1346    }
1347}
1348impl From<crate::operation::update_logging_configuration::UpdateLoggingConfigurationError> for Error {
1349    fn from(err: crate::operation::update_logging_configuration::UpdateLoggingConfigurationError) -> Self {
1350        match err {
1351            crate::operation::update_logging_configuration::UpdateLoggingConfigurationError::InternalServerError(inner) => {
1352                Error::InternalServerError(inner)
1353            }
1354            crate::operation::update_logging_configuration::UpdateLoggingConfigurationError::InvalidRequestException(inner) => {
1355                Error::InvalidRequestException(inner)
1356            }
1357            crate::operation::update_logging_configuration::UpdateLoggingConfigurationError::InvalidTokenException(inner) => {
1358                Error::InvalidTokenException(inner)
1359            }
1360            crate::operation::update_logging_configuration::UpdateLoggingConfigurationError::LogDestinationPermissionException(inner) => {
1361                Error::LogDestinationPermissionException(inner)
1362            }
1363            crate::operation::update_logging_configuration::UpdateLoggingConfigurationError::ResourceNotFoundException(inner) => {
1364                Error::ResourceNotFoundException(inner)
1365            }
1366            crate::operation::update_logging_configuration::UpdateLoggingConfigurationError::ThrottlingException(inner) => {
1367                Error::ThrottlingException(inner)
1368            }
1369            crate::operation::update_logging_configuration::UpdateLoggingConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1370        }
1371    }
1372}
1373impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_rule_group::UpdateRuleGroupError, R>> for Error
1374where
1375    R: Send + Sync + std::fmt::Debug + 'static,
1376{
1377    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_rule_group::UpdateRuleGroupError, R>) -> Self {
1378        match err {
1379            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1380            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1381                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1382                source: err.into(),
1383            }),
1384        }
1385    }
1386}
1387impl From<crate::operation::update_rule_group::UpdateRuleGroupError> for Error {
1388    fn from(err: crate::operation::update_rule_group::UpdateRuleGroupError) -> Self {
1389        match err {
1390            crate::operation::update_rule_group::UpdateRuleGroupError::InternalServerError(inner) => Error::InternalServerError(inner),
1391            crate::operation::update_rule_group::UpdateRuleGroupError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1392            crate::operation::update_rule_group::UpdateRuleGroupError::InvalidTokenException(inner) => Error::InvalidTokenException(inner),
1393            crate::operation::update_rule_group::UpdateRuleGroupError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1394            crate::operation::update_rule_group::UpdateRuleGroupError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1395            crate::operation::update_rule_group::UpdateRuleGroupError::Unhandled(inner) => Error::Unhandled(inner),
1396        }
1397    }
1398}
1399impl<R>
1400    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_subnet_change_protection::UpdateSubnetChangeProtectionError, R>>
1401    for Error
1402where
1403    R: Send + Sync + std::fmt::Debug + 'static,
1404{
1405    fn from(
1406        err: ::aws_smithy_runtime_api::client::result::SdkError<
1407            crate::operation::update_subnet_change_protection::UpdateSubnetChangeProtectionError,
1408            R,
1409        >,
1410    ) -> Self {
1411        match err {
1412            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1413            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1414                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1415                source: err.into(),
1416            }),
1417        }
1418    }
1419}
1420impl From<crate::operation::update_subnet_change_protection::UpdateSubnetChangeProtectionError> for Error {
1421    fn from(err: crate::operation::update_subnet_change_protection::UpdateSubnetChangeProtectionError) -> Self {
1422        match err {
1423            crate::operation::update_subnet_change_protection::UpdateSubnetChangeProtectionError::InternalServerError(inner) => {
1424                Error::InternalServerError(inner)
1425            }
1426            crate::operation::update_subnet_change_protection::UpdateSubnetChangeProtectionError::InvalidRequestException(inner) => {
1427                Error::InvalidRequestException(inner)
1428            }
1429            crate::operation::update_subnet_change_protection::UpdateSubnetChangeProtectionError::InvalidTokenException(inner) => {
1430                Error::InvalidTokenException(inner)
1431            }
1432            crate::operation::update_subnet_change_protection::UpdateSubnetChangeProtectionError::ResourceNotFoundException(inner) => {
1433                Error::ResourceNotFoundException(inner)
1434            }
1435            crate::operation::update_subnet_change_protection::UpdateSubnetChangeProtectionError::ResourceOwnerCheckException(inner) => {
1436                Error::ResourceOwnerCheckException(inner)
1437            }
1438            crate::operation::update_subnet_change_protection::UpdateSubnetChangeProtectionError::ThrottlingException(inner) => {
1439                Error::ThrottlingException(inner)
1440            }
1441            crate::operation::update_subnet_change_protection::UpdateSubnetChangeProtectionError::Unhandled(inner) => Error::Unhandled(inner),
1442        }
1443    }
1444}
1445impl<R>
1446    From<
1447        ::aws_smithy_runtime_api::client::result::SdkError<
1448            crate::operation::update_tls_inspection_configuration::UpdateTLSInspectionConfigurationError,
1449            R,
1450        >,
1451    > for Error
1452where
1453    R: Send + Sync + std::fmt::Debug + 'static,
1454{
1455    fn from(
1456        err: ::aws_smithy_runtime_api::client::result::SdkError<
1457            crate::operation::update_tls_inspection_configuration::UpdateTLSInspectionConfigurationError,
1458            R,
1459        >,
1460    ) -> Self {
1461        match err {
1462            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1463            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1464                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1465                source: err.into(),
1466            }),
1467        }
1468    }
1469}
1470impl From<crate::operation::update_tls_inspection_configuration::UpdateTLSInspectionConfigurationError> for Error {
1471    fn from(err: crate::operation::update_tls_inspection_configuration::UpdateTLSInspectionConfigurationError) -> Self {
1472        match err {
1473            crate::operation::update_tls_inspection_configuration::UpdateTLSInspectionConfigurationError::InternalServerError(inner) => {
1474                Error::InternalServerError(inner)
1475            }
1476            crate::operation::update_tls_inspection_configuration::UpdateTLSInspectionConfigurationError::InvalidRequestException(inner) => {
1477                Error::InvalidRequestException(inner)
1478            }
1479            crate::operation::update_tls_inspection_configuration::UpdateTLSInspectionConfigurationError::InvalidTokenException(inner) => {
1480                Error::InvalidTokenException(inner)
1481            }
1482            crate::operation::update_tls_inspection_configuration::UpdateTLSInspectionConfigurationError::ResourceNotFoundException(inner) => {
1483                Error::ResourceNotFoundException(inner)
1484            }
1485            crate::operation::update_tls_inspection_configuration::UpdateTLSInspectionConfigurationError::ThrottlingException(inner) => {
1486                Error::ThrottlingException(inner)
1487            }
1488            crate::operation::update_tls_inspection_configuration::UpdateTLSInspectionConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1489        }
1490    }
1491}
1492impl ::std::error::Error for Error {
1493    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
1494        match self {
1495            Error::InsufficientCapacityException(inner) => inner.source(),
1496            Error::InternalServerError(inner) => inner.source(),
1497            Error::InvalidOperationException(inner) => inner.source(),
1498            Error::InvalidRequestException(inner) => inner.source(),
1499            Error::InvalidResourcePolicyException(inner) => inner.source(),
1500            Error::InvalidTokenException(inner) => inner.source(),
1501            Error::LimitExceededException(inner) => inner.source(),
1502            Error::LogDestinationPermissionException(inner) => inner.source(),
1503            Error::ResourceNotFoundException(inner) => inner.source(),
1504            Error::ResourceOwnerCheckException(inner) => inner.source(),
1505            Error::ThrottlingException(inner) => inner.source(),
1506            Error::UnsupportedOperationException(inner) => inner.source(),
1507            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
1508        }
1509    }
1510}
1511impl ::aws_types::request_id::RequestId for Error {
1512    fn request_id(&self) -> Option<&str> {
1513        match self {
1514            Self::InsufficientCapacityException(e) => e.request_id(),
1515            Self::InternalServerError(e) => e.request_id(),
1516            Self::InvalidOperationException(e) => e.request_id(),
1517            Self::InvalidRequestException(e) => e.request_id(),
1518            Self::InvalidResourcePolicyException(e) => e.request_id(),
1519            Self::InvalidTokenException(e) => e.request_id(),
1520            Self::LimitExceededException(e) => e.request_id(),
1521            Self::LogDestinationPermissionException(e) => e.request_id(),
1522            Self::ResourceNotFoundException(e) => e.request_id(),
1523            Self::ResourceOwnerCheckException(e) => e.request_id(),
1524            Self::ThrottlingException(e) => e.request_id(),
1525            Self::UnsupportedOperationException(e) => e.request_id(),
1526            Self::Unhandled(e) => e.meta.request_id(),
1527        }
1528    }
1529}