1#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6 InsufficientCapacityException(crate::types::error::InsufficientCapacityException),
8 InternalServerError(crate::types::error::InternalServerError),
10 InvalidOperationException(crate::types::error::InvalidOperationException),
12 InvalidRequestException(crate::types::error::InvalidRequestException),
22 InvalidResourcePolicyException(crate::types::error::InvalidResourcePolicyException),
24 InvalidTokenException(crate::types::error::InvalidTokenException),
26 LimitExceededException(crate::types::error::LimitExceededException),
28 LogDestinationPermissionException(crate::types::error::LogDestinationPermissionException),
30 ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
32 ResourceOwnerCheckException(crate::types::error::ResourceOwnerCheckException),
34 ThrottlingException(crate::types::error::ThrottlingException),
36 UnsupportedOperationException(crate::types::error::UnsupportedOperationException),
38 #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
40 variable wildcard pattern and check `.code()`:
41 \
42 `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> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_flow_operation::DescribeFlowOperationError, R>> for Error
536where
537 R: Send + Sync + std::fmt::Debug + 'static,
538{
539 fn from(
540 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_flow_operation::DescribeFlowOperationError, R>,
541 ) -> Self {
542 match err {
543 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
544 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
545 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
546 source: err.into(),
547 }),
548 }
549 }
550}
551impl From<crate::operation::describe_flow_operation::DescribeFlowOperationError> for Error {
552 fn from(err: crate::operation::describe_flow_operation::DescribeFlowOperationError) -> Self {
553 match err {
554 crate::operation::describe_flow_operation::DescribeFlowOperationError::InternalServerError(inner) => Error::InternalServerError(inner),
555 crate::operation::describe_flow_operation::DescribeFlowOperationError::InvalidRequestException(inner) => {
556 Error::InvalidRequestException(inner)
557 }
558 crate::operation::describe_flow_operation::DescribeFlowOperationError::ResourceNotFoundException(inner) => {
559 Error::ResourceNotFoundException(inner)
560 }
561 crate::operation::describe_flow_operation::DescribeFlowOperationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
562 crate::operation::describe_flow_operation::DescribeFlowOperationError::Unhandled(inner) => Error::Unhandled(inner),
563 }
564 }
565}
566impl<R>
567 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError, R>>
568 for Error
569where
570 R: Send + Sync + std::fmt::Debug + 'static,
571{
572 fn from(
573 err: ::aws_smithy_runtime_api::client::result::SdkError<
574 crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError,
575 R,
576 >,
577 ) -> Self {
578 match err {
579 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
580 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
581 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
582 source: err.into(),
583 }),
584 }
585 }
586}
587impl From<crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError> for Error {
588 fn from(err: crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError) -> Self {
589 match err {
590 crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError::InternalServerError(inner) => {
591 Error::InternalServerError(inner)
592 }
593 crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError::InvalidRequestException(inner) => {
594 Error::InvalidRequestException(inner)
595 }
596 crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError::ResourceNotFoundException(inner) => {
597 Error::ResourceNotFoundException(inner)
598 }
599 crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError::ThrottlingException(inner) => {
600 Error::ThrottlingException(inner)
601 }
602 crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
603 }
604 }
605}
606impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_resource_policy::DescribeResourcePolicyError, R>> for Error
607where
608 R: Send + Sync + std::fmt::Debug + 'static,
609{
610 fn from(
611 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_resource_policy::DescribeResourcePolicyError, R>,
612 ) -> Self {
613 match err {
614 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
615 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
616 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
617 source: err.into(),
618 }),
619 }
620 }
621}
622impl From<crate::operation::describe_resource_policy::DescribeResourcePolicyError> for Error {
623 fn from(err: crate::operation::describe_resource_policy::DescribeResourcePolicyError) -> Self {
624 match err {
625 crate::operation::describe_resource_policy::DescribeResourcePolicyError::InternalServerError(inner) => Error::InternalServerError(inner),
626 crate::operation::describe_resource_policy::DescribeResourcePolicyError::InvalidRequestException(inner) => {
627 Error::InvalidRequestException(inner)
628 }
629 crate::operation::describe_resource_policy::DescribeResourcePolicyError::ResourceNotFoundException(inner) => {
630 Error::ResourceNotFoundException(inner)
631 }
632 crate::operation::describe_resource_policy::DescribeResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
633 crate::operation::describe_resource_policy::DescribeResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
634 }
635 }
636}
637impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_rule_group::DescribeRuleGroupError, R>> for Error
638where
639 R: Send + Sync + std::fmt::Debug + 'static,
640{
641 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_rule_group::DescribeRuleGroupError, R>) -> Self {
642 match err {
643 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
644 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
645 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
646 source: err.into(),
647 }),
648 }
649 }
650}
651impl From<crate::operation::describe_rule_group::DescribeRuleGroupError> for Error {
652 fn from(err: crate::operation::describe_rule_group::DescribeRuleGroupError) -> Self {
653 match err {
654 crate::operation::describe_rule_group::DescribeRuleGroupError::InternalServerError(inner) => Error::InternalServerError(inner),
655 crate::operation::describe_rule_group::DescribeRuleGroupError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
656 crate::operation::describe_rule_group::DescribeRuleGroupError::ResourceNotFoundException(inner) => {
657 Error::ResourceNotFoundException(inner)
658 }
659 crate::operation::describe_rule_group::DescribeRuleGroupError::ThrottlingException(inner) => Error::ThrottlingException(inner),
660 crate::operation::describe_rule_group::DescribeRuleGroupError::Unhandled(inner) => Error::Unhandled(inner),
661 }
662 }
663}
664impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_rule_group_metadata::DescribeRuleGroupMetadataError, R>>
665 for Error
666where
667 R: Send + Sync + std::fmt::Debug + 'static,
668{
669 fn from(
670 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_rule_group_metadata::DescribeRuleGroupMetadataError, R>,
671 ) -> Self {
672 match err {
673 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
674 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
675 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
676 source: err.into(),
677 }),
678 }
679 }
680}
681impl From<crate::operation::describe_rule_group_metadata::DescribeRuleGroupMetadataError> for Error {
682 fn from(err: crate::operation::describe_rule_group_metadata::DescribeRuleGroupMetadataError) -> Self {
683 match err {
684 crate::operation::describe_rule_group_metadata::DescribeRuleGroupMetadataError::InternalServerError(inner) => {
685 Error::InternalServerError(inner)
686 }
687 crate::operation::describe_rule_group_metadata::DescribeRuleGroupMetadataError::InvalidRequestException(inner) => {
688 Error::InvalidRequestException(inner)
689 }
690 crate::operation::describe_rule_group_metadata::DescribeRuleGroupMetadataError::ResourceNotFoundException(inner) => {
691 Error::ResourceNotFoundException(inner)
692 }
693 crate::operation::describe_rule_group_metadata::DescribeRuleGroupMetadataError::ThrottlingException(inner) => {
694 Error::ThrottlingException(inner)
695 }
696 crate::operation::describe_rule_group_metadata::DescribeRuleGroupMetadataError::Unhandled(inner) => Error::Unhandled(inner),
697 }
698 }
699}
700impl<R>
701 From<
702 ::aws_smithy_runtime_api::client::result::SdkError<
703 crate::operation::describe_tls_inspection_configuration::DescribeTLSInspectionConfigurationError,
704 R,
705 >,
706 > for Error
707where
708 R: Send + Sync + std::fmt::Debug + 'static,
709{
710 fn from(
711 err: ::aws_smithy_runtime_api::client::result::SdkError<
712 crate::operation::describe_tls_inspection_configuration::DescribeTLSInspectionConfigurationError,
713 R,
714 >,
715 ) -> Self {
716 match err {
717 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
718 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
719 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
720 source: err.into(),
721 }),
722 }
723 }
724}
725impl From<crate::operation::describe_tls_inspection_configuration::DescribeTLSInspectionConfigurationError> for Error {
726 fn from(err: crate::operation::describe_tls_inspection_configuration::DescribeTLSInspectionConfigurationError) -> Self {
727 match err {
728 crate::operation::describe_tls_inspection_configuration::DescribeTLSInspectionConfigurationError::InternalServerError(inner) => {
729 Error::InternalServerError(inner)
730 }
731 crate::operation::describe_tls_inspection_configuration::DescribeTLSInspectionConfigurationError::InvalidRequestException(inner) => {
732 Error::InvalidRequestException(inner)
733 }
734 crate::operation::describe_tls_inspection_configuration::DescribeTLSInspectionConfigurationError::ResourceNotFoundException(inner) => {
735 Error::ResourceNotFoundException(inner)
736 }
737 crate::operation::describe_tls_inspection_configuration::DescribeTLSInspectionConfigurationError::ThrottlingException(inner) => {
738 Error::ThrottlingException(inner)
739 }
740 crate::operation::describe_tls_inspection_configuration::DescribeTLSInspectionConfigurationError::Unhandled(inner) => {
741 Error::Unhandled(inner)
742 }
743 }
744 }
745}
746impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_subnets::DisassociateSubnetsError, R>> for Error
747where
748 R: Send + Sync + std::fmt::Debug + 'static,
749{
750 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_subnets::DisassociateSubnetsError, R>) -> Self {
751 match err {
752 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
753 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
754 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
755 source: err.into(),
756 }),
757 }
758 }
759}
760impl From<crate::operation::disassociate_subnets::DisassociateSubnetsError> for Error {
761 fn from(err: crate::operation::disassociate_subnets::DisassociateSubnetsError) -> Self {
762 match err {
763 crate::operation::disassociate_subnets::DisassociateSubnetsError::InternalServerError(inner) => Error::InternalServerError(inner),
764 crate::operation::disassociate_subnets::DisassociateSubnetsError::InvalidOperationException(inner) => {
765 Error::InvalidOperationException(inner)
766 }
767 crate::operation::disassociate_subnets::DisassociateSubnetsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
768 crate::operation::disassociate_subnets::DisassociateSubnetsError::InvalidTokenException(inner) => Error::InvalidTokenException(inner),
769 crate::operation::disassociate_subnets::DisassociateSubnetsError::ResourceNotFoundException(inner) => {
770 Error::ResourceNotFoundException(inner)
771 }
772 crate::operation::disassociate_subnets::DisassociateSubnetsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
773 crate::operation::disassociate_subnets::DisassociateSubnetsError::Unhandled(inner) => Error::Unhandled(inner),
774 }
775 }
776}
777impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_analysis_report_results::GetAnalysisReportResultsError, R>>
778 for Error
779where
780 R: Send + Sync + std::fmt::Debug + 'static,
781{
782 fn from(
783 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_analysis_report_results::GetAnalysisReportResultsError, R>,
784 ) -> Self {
785 match err {
786 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
787 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
788 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
789 source: err.into(),
790 }),
791 }
792 }
793}
794impl From<crate::operation::get_analysis_report_results::GetAnalysisReportResultsError> for Error {
795 fn from(err: crate::operation::get_analysis_report_results::GetAnalysisReportResultsError) -> Self {
796 match err {
797 crate::operation::get_analysis_report_results::GetAnalysisReportResultsError::InternalServerError(inner) => {
798 Error::InternalServerError(inner)
799 }
800 crate::operation::get_analysis_report_results::GetAnalysisReportResultsError::InvalidRequestException(inner) => {
801 Error::InvalidRequestException(inner)
802 }
803 crate::operation::get_analysis_report_results::GetAnalysisReportResultsError::ResourceNotFoundException(inner) => {
804 Error::ResourceNotFoundException(inner)
805 }
806 crate::operation::get_analysis_report_results::GetAnalysisReportResultsError::ThrottlingException(inner) => {
807 Error::ThrottlingException(inner)
808 }
809 crate::operation::get_analysis_report_results::GetAnalysisReportResultsError::Unhandled(inner) => Error::Unhandled(inner),
810 }
811 }
812}
813impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_analysis_reports::ListAnalysisReportsError, R>> for Error
814where
815 R: Send + Sync + std::fmt::Debug + 'static,
816{
817 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_analysis_reports::ListAnalysisReportsError, R>) -> Self {
818 match err {
819 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
820 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
821 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
822 source: err.into(),
823 }),
824 }
825 }
826}
827impl From<crate::operation::list_analysis_reports::ListAnalysisReportsError> for Error {
828 fn from(err: crate::operation::list_analysis_reports::ListAnalysisReportsError) -> Self {
829 match err {
830 crate::operation::list_analysis_reports::ListAnalysisReportsError::InternalServerError(inner) => Error::InternalServerError(inner),
831 crate::operation::list_analysis_reports::ListAnalysisReportsError::InvalidRequestException(inner) => {
832 Error::InvalidRequestException(inner)
833 }
834 crate::operation::list_analysis_reports::ListAnalysisReportsError::ResourceNotFoundException(inner) => {
835 Error::ResourceNotFoundException(inner)
836 }
837 crate::operation::list_analysis_reports::ListAnalysisReportsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
838 crate::operation::list_analysis_reports::ListAnalysisReportsError::Unhandled(inner) => Error::Unhandled(inner),
839 }
840 }
841}
842impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_firewall_policies::ListFirewallPoliciesError, R>> for Error
843where
844 R: Send + Sync + std::fmt::Debug + 'static,
845{
846 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_firewall_policies::ListFirewallPoliciesError, R>) -> Self {
847 match err {
848 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
849 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
850 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
851 source: err.into(),
852 }),
853 }
854 }
855}
856impl From<crate::operation::list_firewall_policies::ListFirewallPoliciesError> for Error {
857 fn from(err: crate::operation::list_firewall_policies::ListFirewallPoliciesError) -> Self {
858 match err {
859 crate::operation::list_firewall_policies::ListFirewallPoliciesError::InternalServerError(inner) => Error::InternalServerError(inner),
860 crate::operation::list_firewall_policies::ListFirewallPoliciesError::InvalidRequestException(inner) => {
861 Error::InvalidRequestException(inner)
862 }
863 crate::operation::list_firewall_policies::ListFirewallPoliciesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
864 crate::operation::list_firewall_policies::ListFirewallPoliciesError::Unhandled(inner) => Error::Unhandled(inner),
865 }
866 }
867}
868impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_firewalls::ListFirewallsError, R>> for Error
869where
870 R: Send + Sync + std::fmt::Debug + 'static,
871{
872 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_firewalls::ListFirewallsError, R>) -> Self {
873 match err {
874 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
875 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
876 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
877 source: err.into(),
878 }),
879 }
880 }
881}
882impl From<crate::operation::list_firewalls::ListFirewallsError> for Error {
883 fn from(err: crate::operation::list_firewalls::ListFirewallsError) -> Self {
884 match err {
885 crate::operation::list_firewalls::ListFirewallsError::InternalServerError(inner) => Error::InternalServerError(inner),
886 crate::operation::list_firewalls::ListFirewallsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
887 crate::operation::list_firewalls::ListFirewallsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
888 crate::operation::list_firewalls::ListFirewallsError::Unhandled(inner) => Error::Unhandled(inner),
889 }
890 }
891}
892impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_flow_operation_results::ListFlowOperationResultsError, R>>
893 for Error
894where
895 R: Send + Sync + std::fmt::Debug + 'static,
896{
897 fn from(
898 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_flow_operation_results::ListFlowOperationResultsError, R>,
899 ) -> Self {
900 match err {
901 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
902 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
903 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
904 source: err.into(),
905 }),
906 }
907 }
908}
909impl From<crate::operation::list_flow_operation_results::ListFlowOperationResultsError> for Error {
910 fn from(err: crate::operation::list_flow_operation_results::ListFlowOperationResultsError) -> Self {
911 match err {
912 crate::operation::list_flow_operation_results::ListFlowOperationResultsError::InternalServerError(inner) => {
913 Error::InternalServerError(inner)
914 }
915 crate::operation::list_flow_operation_results::ListFlowOperationResultsError::InvalidRequestException(inner) => {
916 Error::InvalidRequestException(inner)
917 }
918 crate::operation::list_flow_operation_results::ListFlowOperationResultsError::ResourceNotFoundException(inner) => {
919 Error::ResourceNotFoundException(inner)
920 }
921 crate::operation::list_flow_operation_results::ListFlowOperationResultsError::ThrottlingException(inner) => {
922 Error::ThrottlingException(inner)
923 }
924 crate::operation::list_flow_operation_results::ListFlowOperationResultsError::Unhandled(inner) => Error::Unhandled(inner),
925 }
926 }
927}
928impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_flow_operations::ListFlowOperationsError, R>> for Error
929where
930 R: Send + Sync + std::fmt::Debug + 'static,
931{
932 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_flow_operations::ListFlowOperationsError, R>) -> Self {
933 match err {
934 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
935 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
936 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
937 source: err.into(),
938 }),
939 }
940 }
941}
942impl From<crate::operation::list_flow_operations::ListFlowOperationsError> for Error {
943 fn from(err: crate::operation::list_flow_operations::ListFlowOperationsError) -> Self {
944 match err {
945 crate::operation::list_flow_operations::ListFlowOperationsError::InternalServerError(inner) => Error::InternalServerError(inner),
946 crate::operation::list_flow_operations::ListFlowOperationsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
947 crate::operation::list_flow_operations::ListFlowOperationsError::ResourceNotFoundException(inner) => {
948 Error::ResourceNotFoundException(inner)
949 }
950 crate::operation::list_flow_operations::ListFlowOperationsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
951 crate::operation::list_flow_operations::ListFlowOperationsError::Unhandled(inner) => Error::Unhandled(inner),
952 }
953 }
954}
955impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_rule_groups::ListRuleGroupsError, 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::list_rule_groups::ListRuleGroupsError, 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::list_rule_groups::ListRuleGroupsError> for Error {
970 fn from(err: crate::operation::list_rule_groups::ListRuleGroupsError) -> Self {
971 match err {
972 crate::operation::list_rule_groups::ListRuleGroupsError::InternalServerError(inner) => Error::InternalServerError(inner),
973 crate::operation::list_rule_groups::ListRuleGroupsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
974 crate::operation::list_rule_groups::ListRuleGroupsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
975 crate::operation::list_rule_groups::ListRuleGroupsError::Unhandled(inner) => Error::Unhandled(inner),
976 }
977 }
978}
979impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
980where
981 R: Send + Sync + std::fmt::Debug + 'static,
982{
983 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
984 match err {
985 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
986 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
987 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
988 source: err.into(),
989 }),
990 }
991 }
992}
993impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
994 fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
995 match err {
996 crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerError(inner) => Error::InternalServerError(inner),
997 crate::operation::list_tags_for_resource::ListTagsForResourceError::InvalidRequestException(inner) => {
998 Error::InvalidRequestException(inner)
999 }
1000 crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
1001 Error::ResourceNotFoundException(inner)
1002 }
1003 crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1004 crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
1005 }
1006 }
1007}
1008impl<R>
1009 From<
1010 ::aws_smithy_runtime_api::client::result::SdkError<
1011 crate::operation::list_tls_inspection_configurations::ListTLSInspectionConfigurationsError,
1012 R,
1013 >,
1014 > for Error
1015where
1016 R: Send + Sync + std::fmt::Debug + 'static,
1017{
1018 fn from(
1019 err: ::aws_smithy_runtime_api::client::result::SdkError<
1020 crate::operation::list_tls_inspection_configurations::ListTLSInspectionConfigurationsError,
1021 R,
1022 >,
1023 ) -> Self {
1024 match err {
1025 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1026 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1027 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1028 source: err.into(),
1029 }),
1030 }
1031 }
1032}
1033impl From<crate::operation::list_tls_inspection_configurations::ListTLSInspectionConfigurationsError> for Error {
1034 fn from(err: crate::operation::list_tls_inspection_configurations::ListTLSInspectionConfigurationsError) -> Self {
1035 match err {
1036 crate::operation::list_tls_inspection_configurations::ListTLSInspectionConfigurationsError::InternalServerError(inner) => {
1037 Error::InternalServerError(inner)
1038 }
1039 crate::operation::list_tls_inspection_configurations::ListTLSInspectionConfigurationsError::InvalidRequestException(inner) => {
1040 Error::InvalidRequestException(inner)
1041 }
1042 crate::operation::list_tls_inspection_configurations::ListTLSInspectionConfigurationsError::ThrottlingException(inner) => {
1043 Error::ThrottlingException(inner)
1044 }
1045 crate::operation::list_tls_inspection_configurations::ListTLSInspectionConfigurationsError::Unhandled(inner) => Error::Unhandled(inner),
1046 }
1047 }
1048}
1049impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_resource_policy::PutResourcePolicyError, R>> for Error
1050where
1051 R: Send + Sync + std::fmt::Debug + 'static,
1052{
1053 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_resource_policy::PutResourcePolicyError, R>) -> Self {
1054 match err {
1055 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1056 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1057 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1058 source: err.into(),
1059 }),
1060 }
1061 }
1062}
1063impl From<crate::operation::put_resource_policy::PutResourcePolicyError> for Error {
1064 fn from(err: crate::operation::put_resource_policy::PutResourcePolicyError) -> Self {
1065 match err {
1066 crate::operation::put_resource_policy::PutResourcePolicyError::InternalServerError(inner) => Error::InternalServerError(inner),
1067 crate::operation::put_resource_policy::PutResourcePolicyError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1068 crate::operation::put_resource_policy::PutResourcePolicyError::InvalidResourcePolicyException(inner) => {
1069 Error::InvalidResourcePolicyException(inner)
1070 }
1071 crate::operation::put_resource_policy::PutResourcePolicyError::ResourceNotFoundException(inner) => {
1072 Error::ResourceNotFoundException(inner)
1073 }
1074 crate::operation::put_resource_policy::PutResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1075 crate::operation::put_resource_policy::PutResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
1076 }
1077 }
1078}
1079impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_analysis_report::StartAnalysisReportError, R>> for Error
1080where
1081 R: Send + Sync + std::fmt::Debug + 'static,
1082{
1083 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_analysis_report::StartAnalysisReportError, R>) -> Self {
1084 match err {
1085 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1086 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1087 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1088 source: err.into(),
1089 }),
1090 }
1091 }
1092}
1093impl From<crate::operation::start_analysis_report::StartAnalysisReportError> for Error {
1094 fn from(err: crate::operation::start_analysis_report::StartAnalysisReportError) -> Self {
1095 match err {
1096 crate::operation::start_analysis_report::StartAnalysisReportError::InternalServerError(inner) => Error::InternalServerError(inner),
1097 crate::operation::start_analysis_report::StartAnalysisReportError::InvalidRequestException(inner) => {
1098 Error::InvalidRequestException(inner)
1099 }
1100 crate::operation::start_analysis_report::StartAnalysisReportError::ResourceNotFoundException(inner) => {
1101 Error::ResourceNotFoundException(inner)
1102 }
1103 crate::operation::start_analysis_report::StartAnalysisReportError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1104 crate::operation::start_analysis_report::StartAnalysisReportError::Unhandled(inner) => Error::Unhandled(inner),
1105 }
1106 }
1107}
1108impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_flow_capture::StartFlowCaptureError, R>> for Error
1109where
1110 R: Send + Sync + std::fmt::Debug + 'static,
1111{
1112 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_flow_capture::StartFlowCaptureError, R>) -> Self {
1113 match err {
1114 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1115 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1116 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1117 source: err.into(),
1118 }),
1119 }
1120 }
1121}
1122impl From<crate::operation::start_flow_capture::StartFlowCaptureError> for Error {
1123 fn from(err: crate::operation::start_flow_capture::StartFlowCaptureError) -> Self {
1124 match err {
1125 crate::operation::start_flow_capture::StartFlowCaptureError::InternalServerError(inner) => Error::InternalServerError(inner),
1126 crate::operation::start_flow_capture::StartFlowCaptureError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1127 crate::operation::start_flow_capture::StartFlowCaptureError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1128 crate::operation::start_flow_capture::StartFlowCaptureError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1129 crate::operation::start_flow_capture::StartFlowCaptureError::Unhandled(inner) => Error::Unhandled(inner),
1130 }
1131 }
1132}
1133impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_flow_flush::StartFlowFlushError, R>> for Error
1134where
1135 R: Send + Sync + std::fmt::Debug + 'static,
1136{
1137 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_flow_flush::StartFlowFlushError, R>) -> Self {
1138 match err {
1139 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1140 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1141 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1142 source: err.into(),
1143 }),
1144 }
1145 }
1146}
1147impl From<crate::operation::start_flow_flush::StartFlowFlushError> for Error {
1148 fn from(err: crate::operation::start_flow_flush::StartFlowFlushError) -> Self {
1149 match err {
1150 crate::operation::start_flow_flush::StartFlowFlushError::InternalServerError(inner) => Error::InternalServerError(inner),
1151 crate::operation::start_flow_flush::StartFlowFlushError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1152 crate::operation::start_flow_flush::StartFlowFlushError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1153 crate::operation::start_flow_flush::StartFlowFlushError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1154 crate::operation::start_flow_flush::StartFlowFlushError::Unhandled(inner) => Error::Unhandled(inner),
1155 }
1156 }
1157}
1158impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
1159where
1160 R: Send + Sync + std::fmt::Debug + 'static,
1161{
1162 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
1163 match err {
1164 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1165 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1166 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1167 source: err.into(),
1168 }),
1169 }
1170 }
1171}
1172impl From<crate::operation::tag_resource::TagResourceError> for Error {
1173 fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
1174 match err {
1175 crate::operation::tag_resource::TagResourceError::InternalServerError(inner) => Error::InternalServerError(inner),
1176 crate::operation::tag_resource::TagResourceError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1177 crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1178 crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1179 crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1180 }
1181 }
1182}
1183impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
1184where
1185 R: Send + Sync + std::fmt::Debug + 'static,
1186{
1187 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
1188 match err {
1189 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1190 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1191 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1192 source: err.into(),
1193 }),
1194 }
1195 }
1196}
1197impl From<crate::operation::untag_resource::UntagResourceError> for Error {
1198 fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
1199 match err {
1200 crate::operation::untag_resource::UntagResourceError::InternalServerError(inner) => Error::InternalServerError(inner),
1201 crate::operation::untag_resource::UntagResourceError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1202 crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1203 crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1204 crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1205 }
1206 }
1207}
1208impl<R>
1209 From<
1210 ::aws_smithy_runtime_api::client::result::SdkError<
1211 crate::operation::update_firewall_analysis_settings::UpdateFirewallAnalysisSettingsError,
1212 R,
1213 >,
1214 > for Error
1215where
1216 R: Send + Sync + std::fmt::Debug + 'static,
1217{
1218 fn from(
1219 err: ::aws_smithy_runtime_api::client::result::SdkError<
1220 crate::operation::update_firewall_analysis_settings::UpdateFirewallAnalysisSettingsError,
1221 R,
1222 >,
1223 ) -> Self {
1224 match err {
1225 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1226 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1227 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1228 source: err.into(),
1229 }),
1230 }
1231 }
1232}
1233impl From<crate::operation::update_firewall_analysis_settings::UpdateFirewallAnalysisSettingsError> for Error {
1234 fn from(err: crate::operation::update_firewall_analysis_settings::UpdateFirewallAnalysisSettingsError) -> Self {
1235 match err {
1236 crate::operation::update_firewall_analysis_settings::UpdateFirewallAnalysisSettingsError::InternalServerError(inner) => {
1237 Error::InternalServerError(inner)
1238 }
1239 crate::operation::update_firewall_analysis_settings::UpdateFirewallAnalysisSettingsError::InvalidRequestException(inner) => {
1240 Error::InvalidRequestException(inner)
1241 }
1242 crate::operation::update_firewall_analysis_settings::UpdateFirewallAnalysisSettingsError::ResourceNotFoundException(inner) => {
1243 Error::ResourceNotFoundException(inner)
1244 }
1245 crate::operation::update_firewall_analysis_settings::UpdateFirewallAnalysisSettingsError::ThrottlingException(inner) => {
1246 Error::ThrottlingException(inner)
1247 }
1248 crate::operation::update_firewall_analysis_settings::UpdateFirewallAnalysisSettingsError::Unhandled(inner) => Error::Unhandled(inner),
1249 }
1250 }
1251}
1252impl<R>
1253 From<
1254 ::aws_smithy_runtime_api::client::result::SdkError<
1255 crate::operation::update_firewall_delete_protection::UpdateFirewallDeleteProtectionError,
1256 R,
1257 >,
1258 > for Error
1259where
1260 R: Send + Sync + std::fmt::Debug + 'static,
1261{
1262 fn from(
1263 err: ::aws_smithy_runtime_api::client::result::SdkError<
1264 crate::operation::update_firewall_delete_protection::UpdateFirewallDeleteProtectionError,
1265 R,
1266 >,
1267 ) -> Self {
1268 match err {
1269 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1270 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1271 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1272 source: err.into(),
1273 }),
1274 }
1275 }
1276}
1277impl From<crate::operation::update_firewall_delete_protection::UpdateFirewallDeleteProtectionError> for Error {
1278 fn from(err: crate::operation::update_firewall_delete_protection::UpdateFirewallDeleteProtectionError) -> Self {
1279 match err {
1280 crate::operation::update_firewall_delete_protection::UpdateFirewallDeleteProtectionError::InternalServerError(inner) => {
1281 Error::InternalServerError(inner)
1282 }
1283 crate::operation::update_firewall_delete_protection::UpdateFirewallDeleteProtectionError::InvalidRequestException(inner) => {
1284 Error::InvalidRequestException(inner)
1285 }
1286 crate::operation::update_firewall_delete_protection::UpdateFirewallDeleteProtectionError::InvalidTokenException(inner) => {
1287 Error::InvalidTokenException(inner)
1288 }
1289 crate::operation::update_firewall_delete_protection::UpdateFirewallDeleteProtectionError::ResourceNotFoundException(inner) => {
1290 Error::ResourceNotFoundException(inner)
1291 }
1292 crate::operation::update_firewall_delete_protection::UpdateFirewallDeleteProtectionError::ResourceOwnerCheckException(inner) => {
1293 Error::ResourceOwnerCheckException(inner)
1294 }
1295 crate::operation::update_firewall_delete_protection::UpdateFirewallDeleteProtectionError::ThrottlingException(inner) => {
1296 Error::ThrottlingException(inner)
1297 }
1298 crate::operation::update_firewall_delete_protection::UpdateFirewallDeleteProtectionError::Unhandled(inner) => Error::Unhandled(inner),
1299 }
1300 }
1301}
1302impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_firewall_description::UpdateFirewallDescriptionError, R>>
1303 for Error
1304where
1305 R: Send + Sync + std::fmt::Debug + 'static,
1306{
1307 fn from(
1308 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_firewall_description::UpdateFirewallDescriptionError, R>,
1309 ) -> Self {
1310 match err {
1311 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1312 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1313 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1314 source: err.into(),
1315 }),
1316 }
1317 }
1318}
1319impl From<crate::operation::update_firewall_description::UpdateFirewallDescriptionError> for Error {
1320 fn from(err: crate::operation::update_firewall_description::UpdateFirewallDescriptionError) -> Self {
1321 match err {
1322 crate::operation::update_firewall_description::UpdateFirewallDescriptionError::InternalServerError(inner) => {
1323 Error::InternalServerError(inner)
1324 }
1325 crate::operation::update_firewall_description::UpdateFirewallDescriptionError::InvalidRequestException(inner) => {
1326 Error::InvalidRequestException(inner)
1327 }
1328 crate::operation::update_firewall_description::UpdateFirewallDescriptionError::InvalidTokenException(inner) => {
1329 Error::InvalidTokenException(inner)
1330 }
1331 crate::operation::update_firewall_description::UpdateFirewallDescriptionError::ResourceNotFoundException(inner) => {
1332 Error::ResourceNotFoundException(inner)
1333 }
1334 crate::operation::update_firewall_description::UpdateFirewallDescriptionError::ThrottlingException(inner) => {
1335 Error::ThrottlingException(inner)
1336 }
1337 crate::operation::update_firewall_description::UpdateFirewallDescriptionError::Unhandled(inner) => Error::Unhandled(inner),
1338 }
1339 }
1340}
1341impl<R>
1342 From<
1343 ::aws_smithy_runtime_api::client::result::SdkError<
1344 crate::operation::update_firewall_encryption_configuration::UpdateFirewallEncryptionConfigurationError,
1345 R,
1346 >,
1347 > for Error
1348where
1349 R: Send + Sync + std::fmt::Debug + 'static,
1350{
1351 fn from(
1352 err: ::aws_smithy_runtime_api::client::result::SdkError<
1353 crate::operation::update_firewall_encryption_configuration::UpdateFirewallEncryptionConfigurationError,
1354 R,
1355 >,
1356 ) -> Self {
1357 match err {
1358 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1359 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1360 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1361 source: err.into(),
1362 }),
1363 }
1364 }
1365}
1366impl From<crate::operation::update_firewall_encryption_configuration::UpdateFirewallEncryptionConfigurationError> for Error {
1367 fn from(err: crate::operation::update_firewall_encryption_configuration::UpdateFirewallEncryptionConfigurationError) -> Self {
1368 match err {
1369 crate::operation::update_firewall_encryption_configuration::UpdateFirewallEncryptionConfigurationError::InternalServerError(inner) => {
1370 Error::InternalServerError(inner)
1371 }
1372 crate::operation::update_firewall_encryption_configuration::UpdateFirewallEncryptionConfigurationError::InvalidRequestException(
1373 inner,
1374 ) => Error::InvalidRequestException(inner),
1375 crate::operation::update_firewall_encryption_configuration::UpdateFirewallEncryptionConfigurationError::InvalidTokenException(inner) => {
1376 Error::InvalidTokenException(inner)
1377 }
1378 crate::operation::update_firewall_encryption_configuration::UpdateFirewallEncryptionConfigurationError::ResourceNotFoundException(
1379 inner,
1380 ) => Error::ResourceNotFoundException(inner),
1381 crate::operation::update_firewall_encryption_configuration::UpdateFirewallEncryptionConfigurationError::ResourceOwnerCheckException(
1382 inner,
1383 ) => Error::ResourceOwnerCheckException(inner),
1384 crate::operation::update_firewall_encryption_configuration::UpdateFirewallEncryptionConfigurationError::ThrottlingException(inner) => {
1385 Error::ThrottlingException(inner)
1386 }
1387 crate::operation::update_firewall_encryption_configuration::UpdateFirewallEncryptionConfigurationError::Unhandled(inner) => {
1388 Error::Unhandled(inner)
1389 }
1390 }
1391 }
1392}
1393impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_firewall_policy::UpdateFirewallPolicyError, R>> for Error
1394where
1395 R: Send + Sync + std::fmt::Debug + 'static,
1396{
1397 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_firewall_policy::UpdateFirewallPolicyError, R>) -> Self {
1398 match err {
1399 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1400 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1401 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1402 source: err.into(),
1403 }),
1404 }
1405 }
1406}
1407impl From<crate::operation::update_firewall_policy::UpdateFirewallPolicyError> for Error {
1408 fn from(err: crate::operation::update_firewall_policy::UpdateFirewallPolicyError) -> Self {
1409 match err {
1410 crate::operation::update_firewall_policy::UpdateFirewallPolicyError::InternalServerError(inner) => Error::InternalServerError(inner),
1411 crate::operation::update_firewall_policy::UpdateFirewallPolicyError::InvalidRequestException(inner) => {
1412 Error::InvalidRequestException(inner)
1413 }
1414 crate::operation::update_firewall_policy::UpdateFirewallPolicyError::InvalidTokenException(inner) => Error::InvalidTokenException(inner),
1415 crate::operation::update_firewall_policy::UpdateFirewallPolicyError::ResourceNotFoundException(inner) => {
1416 Error::ResourceNotFoundException(inner)
1417 }
1418 crate::operation::update_firewall_policy::UpdateFirewallPolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1419 crate::operation::update_firewall_policy::UpdateFirewallPolicyError::Unhandled(inner) => Error::Unhandled(inner),
1420 }
1421 }
1422}
1423impl<R>
1424 From<
1425 ::aws_smithy_runtime_api::client::result::SdkError<
1426 crate::operation::update_firewall_policy_change_protection::UpdateFirewallPolicyChangeProtectionError,
1427 R,
1428 >,
1429 > for Error
1430where
1431 R: Send + Sync + std::fmt::Debug + 'static,
1432{
1433 fn from(
1434 err: ::aws_smithy_runtime_api::client::result::SdkError<
1435 crate::operation::update_firewall_policy_change_protection::UpdateFirewallPolicyChangeProtectionError,
1436 R,
1437 >,
1438 ) -> Self {
1439 match err {
1440 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1441 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1442 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1443 source: err.into(),
1444 }),
1445 }
1446 }
1447}
1448impl From<crate::operation::update_firewall_policy_change_protection::UpdateFirewallPolicyChangeProtectionError> for Error {
1449 fn from(err: crate::operation::update_firewall_policy_change_protection::UpdateFirewallPolicyChangeProtectionError) -> Self {
1450 match err {
1451 crate::operation::update_firewall_policy_change_protection::UpdateFirewallPolicyChangeProtectionError::InternalServerError(inner) => {
1452 Error::InternalServerError(inner)
1453 }
1454 crate::operation::update_firewall_policy_change_protection::UpdateFirewallPolicyChangeProtectionError::InvalidRequestException(inner) => {
1455 Error::InvalidRequestException(inner)
1456 }
1457 crate::operation::update_firewall_policy_change_protection::UpdateFirewallPolicyChangeProtectionError::InvalidTokenException(inner) => {
1458 Error::InvalidTokenException(inner)
1459 }
1460 crate::operation::update_firewall_policy_change_protection::UpdateFirewallPolicyChangeProtectionError::ResourceNotFoundException(
1461 inner,
1462 ) => Error::ResourceNotFoundException(inner),
1463 crate::operation::update_firewall_policy_change_protection::UpdateFirewallPolicyChangeProtectionError::ResourceOwnerCheckException(
1464 inner,
1465 ) => Error::ResourceOwnerCheckException(inner),
1466 crate::operation::update_firewall_policy_change_protection::UpdateFirewallPolicyChangeProtectionError::ThrottlingException(inner) => {
1467 Error::ThrottlingException(inner)
1468 }
1469 crate::operation::update_firewall_policy_change_protection::UpdateFirewallPolicyChangeProtectionError::Unhandled(inner) => {
1470 Error::Unhandled(inner)
1471 }
1472 }
1473 }
1474}
1475impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_logging_configuration::UpdateLoggingConfigurationError, R>>
1476 for Error
1477where
1478 R: Send + Sync + std::fmt::Debug + 'static,
1479{
1480 fn from(
1481 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_logging_configuration::UpdateLoggingConfigurationError, R>,
1482 ) -> Self {
1483 match err {
1484 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1485 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1486 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1487 source: err.into(),
1488 }),
1489 }
1490 }
1491}
1492impl From<crate::operation::update_logging_configuration::UpdateLoggingConfigurationError> for Error {
1493 fn from(err: crate::operation::update_logging_configuration::UpdateLoggingConfigurationError) -> Self {
1494 match err {
1495 crate::operation::update_logging_configuration::UpdateLoggingConfigurationError::InternalServerError(inner) => {
1496 Error::InternalServerError(inner)
1497 }
1498 crate::operation::update_logging_configuration::UpdateLoggingConfigurationError::InvalidRequestException(inner) => {
1499 Error::InvalidRequestException(inner)
1500 }
1501 crate::operation::update_logging_configuration::UpdateLoggingConfigurationError::InvalidTokenException(inner) => {
1502 Error::InvalidTokenException(inner)
1503 }
1504 crate::operation::update_logging_configuration::UpdateLoggingConfigurationError::LogDestinationPermissionException(inner) => {
1505 Error::LogDestinationPermissionException(inner)
1506 }
1507 crate::operation::update_logging_configuration::UpdateLoggingConfigurationError::ResourceNotFoundException(inner) => {
1508 Error::ResourceNotFoundException(inner)
1509 }
1510 crate::operation::update_logging_configuration::UpdateLoggingConfigurationError::ThrottlingException(inner) => {
1511 Error::ThrottlingException(inner)
1512 }
1513 crate::operation::update_logging_configuration::UpdateLoggingConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1514 }
1515 }
1516}
1517impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_rule_group::UpdateRuleGroupError, R>> for Error
1518where
1519 R: Send + Sync + std::fmt::Debug + 'static,
1520{
1521 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_rule_group::UpdateRuleGroupError, R>) -> Self {
1522 match err {
1523 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1524 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1525 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1526 source: err.into(),
1527 }),
1528 }
1529 }
1530}
1531impl From<crate::operation::update_rule_group::UpdateRuleGroupError> for Error {
1532 fn from(err: crate::operation::update_rule_group::UpdateRuleGroupError) -> Self {
1533 match err {
1534 crate::operation::update_rule_group::UpdateRuleGroupError::InternalServerError(inner) => Error::InternalServerError(inner),
1535 crate::operation::update_rule_group::UpdateRuleGroupError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1536 crate::operation::update_rule_group::UpdateRuleGroupError::InvalidTokenException(inner) => Error::InvalidTokenException(inner),
1537 crate::operation::update_rule_group::UpdateRuleGroupError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1538 crate::operation::update_rule_group::UpdateRuleGroupError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1539 crate::operation::update_rule_group::UpdateRuleGroupError::Unhandled(inner) => Error::Unhandled(inner),
1540 }
1541 }
1542}
1543impl<R>
1544 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_subnet_change_protection::UpdateSubnetChangeProtectionError, R>>
1545 for Error
1546where
1547 R: Send + Sync + std::fmt::Debug + 'static,
1548{
1549 fn from(
1550 err: ::aws_smithy_runtime_api::client::result::SdkError<
1551 crate::operation::update_subnet_change_protection::UpdateSubnetChangeProtectionError,
1552 R,
1553 >,
1554 ) -> Self {
1555 match err {
1556 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1557 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1558 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1559 source: err.into(),
1560 }),
1561 }
1562 }
1563}
1564impl From<crate::operation::update_subnet_change_protection::UpdateSubnetChangeProtectionError> for Error {
1565 fn from(err: crate::operation::update_subnet_change_protection::UpdateSubnetChangeProtectionError) -> Self {
1566 match err {
1567 crate::operation::update_subnet_change_protection::UpdateSubnetChangeProtectionError::InternalServerError(inner) => {
1568 Error::InternalServerError(inner)
1569 }
1570 crate::operation::update_subnet_change_protection::UpdateSubnetChangeProtectionError::InvalidRequestException(inner) => {
1571 Error::InvalidRequestException(inner)
1572 }
1573 crate::operation::update_subnet_change_protection::UpdateSubnetChangeProtectionError::InvalidTokenException(inner) => {
1574 Error::InvalidTokenException(inner)
1575 }
1576 crate::operation::update_subnet_change_protection::UpdateSubnetChangeProtectionError::ResourceNotFoundException(inner) => {
1577 Error::ResourceNotFoundException(inner)
1578 }
1579 crate::operation::update_subnet_change_protection::UpdateSubnetChangeProtectionError::ResourceOwnerCheckException(inner) => {
1580 Error::ResourceOwnerCheckException(inner)
1581 }
1582 crate::operation::update_subnet_change_protection::UpdateSubnetChangeProtectionError::ThrottlingException(inner) => {
1583 Error::ThrottlingException(inner)
1584 }
1585 crate::operation::update_subnet_change_protection::UpdateSubnetChangeProtectionError::Unhandled(inner) => Error::Unhandled(inner),
1586 }
1587 }
1588}
1589impl<R>
1590 From<
1591 ::aws_smithy_runtime_api::client::result::SdkError<
1592 crate::operation::update_tls_inspection_configuration::UpdateTLSInspectionConfigurationError,
1593 R,
1594 >,
1595 > for Error
1596where
1597 R: Send + Sync + std::fmt::Debug + 'static,
1598{
1599 fn from(
1600 err: ::aws_smithy_runtime_api::client::result::SdkError<
1601 crate::operation::update_tls_inspection_configuration::UpdateTLSInspectionConfigurationError,
1602 R,
1603 >,
1604 ) -> Self {
1605 match err {
1606 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1607 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1608 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1609 source: err.into(),
1610 }),
1611 }
1612 }
1613}
1614impl From<crate::operation::update_tls_inspection_configuration::UpdateTLSInspectionConfigurationError> for Error {
1615 fn from(err: crate::operation::update_tls_inspection_configuration::UpdateTLSInspectionConfigurationError) -> Self {
1616 match err {
1617 crate::operation::update_tls_inspection_configuration::UpdateTLSInspectionConfigurationError::InternalServerError(inner) => {
1618 Error::InternalServerError(inner)
1619 }
1620 crate::operation::update_tls_inspection_configuration::UpdateTLSInspectionConfigurationError::InvalidRequestException(inner) => {
1621 Error::InvalidRequestException(inner)
1622 }
1623 crate::operation::update_tls_inspection_configuration::UpdateTLSInspectionConfigurationError::InvalidTokenException(inner) => {
1624 Error::InvalidTokenException(inner)
1625 }
1626 crate::operation::update_tls_inspection_configuration::UpdateTLSInspectionConfigurationError::ResourceNotFoundException(inner) => {
1627 Error::ResourceNotFoundException(inner)
1628 }
1629 crate::operation::update_tls_inspection_configuration::UpdateTLSInspectionConfigurationError::ThrottlingException(inner) => {
1630 Error::ThrottlingException(inner)
1631 }
1632 crate::operation::update_tls_inspection_configuration::UpdateTLSInspectionConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1633 }
1634 }
1635}
1636impl ::std::error::Error for Error {
1637 fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
1638 match self {
1639 Error::InsufficientCapacityException(inner) => inner.source(),
1640 Error::InternalServerError(inner) => inner.source(),
1641 Error::InvalidOperationException(inner) => inner.source(),
1642 Error::InvalidRequestException(inner) => inner.source(),
1643 Error::InvalidResourcePolicyException(inner) => inner.source(),
1644 Error::InvalidTokenException(inner) => inner.source(),
1645 Error::LimitExceededException(inner) => inner.source(),
1646 Error::LogDestinationPermissionException(inner) => inner.source(),
1647 Error::ResourceNotFoundException(inner) => inner.source(),
1648 Error::ResourceOwnerCheckException(inner) => inner.source(),
1649 Error::ThrottlingException(inner) => inner.source(),
1650 Error::UnsupportedOperationException(inner) => inner.source(),
1651 Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
1652 }
1653 }
1654}
1655impl ::aws_types::request_id::RequestId for Error {
1656 fn request_id(&self) -> Option<&str> {
1657 match self {
1658 Self::InsufficientCapacityException(e) => e.request_id(),
1659 Self::InternalServerError(e) => e.request_id(),
1660 Self::InvalidOperationException(e) => e.request_id(),
1661 Self::InvalidRequestException(e) => e.request_id(),
1662 Self::InvalidResourcePolicyException(e) => e.request_id(),
1663 Self::InvalidTokenException(e) => e.request_id(),
1664 Self::LimitExceededException(e) => e.request_id(),
1665 Self::LogDestinationPermissionException(e) => e.request_id(),
1666 Self::ResourceNotFoundException(e) => e.request_id(),
1667 Self::ResourceOwnerCheckException(e) => e.request_id(),
1668 Self::ThrottlingException(e) => e.request_id(),
1669 Self::UnsupportedOperationException(e) => e.request_id(),
1670 Self::Unhandled(e) => e.meta.request_id(),
1671 }
1672 }
1673}