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>
100 From<
101 ::aws_smithy_runtime_api::client::result::SdkError<
102 crate::operation::accept_network_firewall_transit_gateway_attachment::AcceptNetworkFirewallTransitGatewayAttachmentError,
103 R,
104 >,
105 > for Error
106where
107 R: Send + Sync + std::fmt::Debug + 'static,
108{
109 fn from(
110 err: ::aws_smithy_runtime_api::client::result::SdkError<
111 crate::operation::accept_network_firewall_transit_gateway_attachment::AcceptNetworkFirewallTransitGatewayAttachmentError,
112 R,
113 >,
114 ) -> Self {
115 match err {
116 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
117 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
118 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
119 source: err.into(),
120 }),
121 }
122 }
123}
124impl From<crate::operation::accept_network_firewall_transit_gateway_attachment::AcceptNetworkFirewallTransitGatewayAttachmentError> for Error {
125 fn from(err: crate::operation::accept_network_firewall_transit_gateway_attachment::AcceptNetworkFirewallTransitGatewayAttachmentError) -> Self {
126 match err {
127 crate::operation::accept_network_firewall_transit_gateway_attachment::AcceptNetworkFirewallTransitGatewayAttachmentError::InternalServerError(inner) => Error::InternalServerError(inner),
128 crate::operation::accept_network_firewall_transit_gateway_attachment::AcceptNetworkFirewallTransitGatewayAttachmentError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
129 crate::operation::accept_network_firewall_transit_gateway_attachment::AcceptNetworkFirewallTransitGatewayAttachmentError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
130 crate::operation::accept_network_firewall_transit_gateway_attachment::AcceptNetworkFirewallTransitGatewayAttachmentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
131 crate::operation::accept_network_firewall_transit_gateway_attachment::AcceptNetworkFirewallTransitGatewayAttachmentError::Unhandled(inner) => Error::Unhandled(inner),
132 }
133 }
134}
135impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_availability_zones::AssociateAvailabilityZonesError, R>>
136 for Error
137where
138 R: Send + Sync + std::fmt::Debug + 'static,
139{
140 fn from(
141 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_availability_zones::AssociateAvailabilityZonesError, R>,
142 ) -> Self {
143 match err {
144 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
145 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
146 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
147 source: err.into(),
148 }),
149 }
150 }
151}
152impl From<crate::operation::associate_availability_zones::AssociateAvailabilityZonesError> for Error {
153 fn from(err: crate::operation::associate_availability_zones::AssociateAvailabilityZonesError) -> Self {
154 match err {
155 crate::operation::associate_availability_zones::AssociateAvailabilityZonesError::InsufficientCapacityException(inner) => {
156 Error::InsufficientCapacityException(inner)
157 }
158 crate::operation::associate_availability_zones::AssociateAvailabilityZonesError::InternalServerError(inner) => {
159 Error::InternalServerError(inner)
160 }
161 crate::operation::associate_availability_zones::AssociateAvailabilityZonesError::InvalidOperationException(inner) => {
162 Error::InvalidOperationException(inner)
163 }
164 crate::operation::associate_availability_zones::AssociateAvailabilityZonesError::InvalidRequestException(inner) => {
165 Error::InvalidRequestException(inner)
166 }
167 crate::operation::associate_availability_zones::AssociateAvailabilityZonesError::InvalidTokenException(inner) => {
168 Error::InvalidTokenException(inner)
169 }
170 crate::operation::associate_availability_zones::AssociateAvailabilityZonesError::ResourceNotFoundException(inner) => {
171 Error::ResourceNotFoundException(inner)
172 }
173 crate::operation::associate_availability_zones::AssociateAvailabilityZonesError::ThrottlingException(inner) => {
174 Error::ThrottlingException(inner)
175 }
176 crate::operation::associate_availability_zones::AssociateAvailabilityZonesError::Unhandled(inner) => Error::Unhandled(inner),
177 }
178 }
179}
180impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_firewall_policy::AssociateFirewallPolicyError, R>>
181 for Error
182where
183 R: Send + Sync + std::fmt::Debug + 'static,
184{
185 fn from(
186 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_firewall_policy::AssociateFirewallPolicyError, R>,
187 ) -> Self {
188 match err {
189 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
190 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
191 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
192 source: err.into(),
193 }),
194 }
195 }
196}
197impl From<crate::operation::associate_firewall_policy::AssociateFirewallPolicyError> for Error {
198 fn from(err: crate::operation::associate_firewall_policy::AssociateFirewallPolicyError) -> Self {
199 match err {
200 crate::operation::associate_firewall_policy::AssociateFirewallPolicyError::InternalServerError(inner) => {
201 Error::InternalServerError(inner)
202 }
203 crate::operation::associate_firewall_policy::AssociateFirewallPolicyError::InvalidOperationException(inner) => {
204 Error::InvalidOperationException(inner)
205 }
206 crate::operation::associate_firewall_policy::AssociateFirewallPolicyError::InvalidRequestException(inner) => {
207 Error::InvalidRequestException(inner)
208 }
209 crate::operation::associate_firewall_policy::AssociateFirewallPolicyError::InvalidTokenException(inner) => {
210 Error::InvalidTokenException(inner)
211 }
212 crate::operation::associate_firewall_policy::AssociateFirewallPolicyError::ResourceNotFoundException(inner) => {
213 Error::ResourceNotFoundException(inner)
214 }
215 crate::operation::associate_firewall_policy::AssociateFirewallPolicyError::ThrottlingException(inner) => {
216 Error::ThrottlingException(inner)
217 }
218 crate::operation::associate_firewall_policy::AssociateFirewallPolicyError::Unhandled(inner) => Error::Unhandled(inner),
219 }
220 }
221}
222impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_subnets::AssociateSubnetsError, R>> for Error
223where
224 R: Send + Sync + std::fmt::Debug + 'static,
225{
226 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_subnets::AssociateSubnetsError, R>) -> Self {
227 match err {
228 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
229 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
230 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
231 source: err.into(),
232 }),
233 }
234 }
235}
236impl From<crate::operation::associate_subnets::AssociateSubnetsError> for Error {
237 fn from(err: crate::operation::associate_subnets::AssociateSubnetsError) -> Self {
238 match err {
239 crate::operation::associate_subnets::AssociateSubnetsError::InsufficientCapacityException(inner) => {
240 Error::InsufficientCapacityException(inner)
241 }
242 crate::operation::associate_subnets::AssociateSubnetsError::InternalServerError(inner) => Error::InternalServerError(inner),
243 crate::operation::associate_subnets::AssociateSubnetsError::InvalidOperationException(inner) => Error::InvalidOperationException(inner),
244 crate::operation::associate_subnets::AssociateSubnetsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
245 crate::operation::associate_subnets::AssociateSubnetsError::InvalidTokenException(inner) => Error::InvalidTokenException(inner),
246 crate::operation::associate_subnets::AssociateSubnetsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
247 crate::operation::associate_subnets::AssociateSubnetsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
248 crate::operation::associate_subnets::AssociateSubnetsError::Unhandled(inner) => Error::Unhandled(inner),
249 }
250 }
251}
252impl<R>
253 From<
254 ::aws_smithy_runtime_api::client::result::SdkError<
255 crate::operation::attach_rule_groups_to_proxy_configuration::AttachRuleGroupsToProxyConfigurationError,
256 R,
257 >,
258 > for Error
259where
260 R: Send + Sync + std::fmt::Debug + 'static,
261{
262 fn from(
263 err: ::aws_smithy_runtime_api::client::result::SdkError<
264 crate::operation::attach_rule_groups_to_proxy_configuration::AttachRuleGroupsToProxyConfigurationError,
265 R,
266 >,
267 ) -> Self {
268 match err {
269 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
270 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
271 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
272 source: err.into(),
273 }),
274 }
275 }
276}
277impl From<crate::operation::attach_rule_groups_to_proxy_configuration::AttachRuleGroupsToProxyConfigurationError> for Error {
278 fn from(err: crate::operation::attach_rule_groups_to_proxy_configuration::AttachRuleGroupsToProxyConfigurationError) -> Self {
279 match err {
280 crate::operation::attach_rule_groups_to_proxy_configuration::AttachRuleGroupsToProxyConfigurationError::InternalServerError(inner) => {
281 Error::InternalServerError(inner)
282 }
283 crate::operation::attach_rule_groups_to_proxy_configuration::AttachRuleGroupsToProxyConfigurationError::InvalidRequestException(
284 inner,
285 ) => Error::InvalidRequestException(inner),
286 crate::operation::attach_rule_groups_to_proxy_configuration::AttachRuleGroupsToProxyConfigurationError::ResourceNotFoundException(
287 inner,
288 ) => Error::ResourceNotFoundException(inner),
289 crate::operation::attach_rule_groups_to_proxy_configuration::AttachRuleGroupsToProxyConfigurationError::ThrottlingException(inner) => {
290 Error::ThrottlingException(inner)
291 }
292 crate::operation::attach_rule_groups_to_proxy_configuration::AttachRuleGroupsToProxyConfigurationError::Unhandled(inner) => {
293 Error::Unhandled(inner)
294 }
295 }
296 }
297}
298impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_firewall::CreateFirewallError, R>> for Error
299where
300 R: Send + Sync + std::fmt::Debug + 'static,
301{
302 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_firewall::CreateFirewallError, R>) -> Self {
303 match err {
304 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
305 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
306 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
307 source: err.into(),
308 }),
309 }
310 }
311}
312impl From<crate::operation::create_firewall::CreateFirewallError> for Error {
313 fn from(err: crate::operation::create_firewall::CreateFirewallError) -> Self {
314 match err {
315 crate::operation::create_firewall::CreateFirewallError::InsufficientCapacityException(inner) => {
316 Error::InsufficientCapacityException(inner)
317 }
318 crate::operation::create_firewall::CreateFirewallError::InternalServerError(inner) => Error::InternalServerError(inner),
319 crate::operation::create_firewall::CreateFirewallError::InvalidOperationException(inner) => Error::InvalidOperationException(inner),
320 crate::operation::create_firewall::CreateFirewallError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
321 crate::operation::create_firewall::CreateFirewallError::LimitExceededException(inner) => Error::LimitExceededException(inner),
322 crate::operation::create_firewall::CreateFirewallError::ThrottlingException(inner) => Error::ThrottlingException(inner),
323 crate::operation::create_firewall::CreateFirewallError::Unhandled(inner) => Error::Unhandled(inner),
324 }
325 }
326}
327impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_firewall_policy::CreateFirewallPolicyError, R>> for Error
328where
329 R: Send + Sync + std::fmt::Debug + 'static,
330{
331 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_firewall_policy::CreateFirewallPolicyError, R>) -> Self {
332 match err {
333 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
334 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
335 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
336 source: err.into(),
337 }),
338 }
339 }
340}
341impl From<crate::operation::create_firewall_policy::CreateFirewallPolicyError> for Error {
342 fn from(err: crate::operation::create_firewall_policy::CreateFirewallPolicyError) -> Self {
343 match err {
344 crate::operation::create_firewall_policy::CreateFirewallPolicyError::InsufficientCapacityException(inner) => {
345 Error::InsufficientCapacityException(inner)
346 }
347 crate::operation::create_firewall_policy::CreateFirewallPolicyError::InternalServerError(inner) => Error::InternalServerError(inner),
348 crate::operation::create_firewall_policy::CreateFirewallPolicyError::InvalidRequestException(inner) => {
349 Error::InvalidRequestException(inner)
350 }
351 crate::operation::create_firewall_policy::CreateFirewallPolicyError::LimitExceededException(inner) => {
352 Error::LimitExceededException(inner)
353 }
354 crate::operation::create_firewall_policy::CreateFirewallPolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
355 crate::operation::create_firewall_policy::CreateFirewallPolicyError::Unhandled(inner) => Error::Unhandled(inner),
356 }
357 }
358}
359impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_proxy::CreateProxyError, R>> for Error
360where
361 R: Send + Sync + std::fmt::Debug + 'static,
362{
363 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_proxy::CreateProxyError, R>) -> Self {
364 match err {
365 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
366 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
367 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
368 source: err.into(),
369 }),
370 }
371 }
372}
373impl From<crate::operation::create_proxy::CreateProxyError> for Error {
374 fn from(err: crate::operation::create_proxy::CreateProxyError) -> Self {
375 match err {
376 crate::operation::create_proxy::CreateProxyError::InternalServerError(inner) => Error::InternalServerError(inner),
377 crate::operation::create_proxy::CreateProxyError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
378 crate::operation::create_proxy::CreateProxyError::LimitExceededException(inner) => Error::LimitExceededException(inner),
379 crate::operation::create_proxy::CreateProxyError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
380 crate::operation::create_proxy::CreateProxyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
381 crate::operation::create_proxy::CreateProxyError::UnsupportedOperationException(inner) => Error::UnsupportedOperationException(inner),
382 crate::operation::create_proxy::CreateProxyError::Unhandled(inner) => Error::Unhandled(inner),
383 }
384 }
385}
386impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_proxy_configuration::CreateProxyConfigurationError, R>>
387 for Error
388where
389 R: Send + Sync + std::fmt::Debug + 'static,
390{
391 fn from(
392 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_proxy_configuration::CreateProxyConfigurationError, R>,
393 ) -> Self {
394 match err {
395 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
396 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
397 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
398 source: err.into(),
399 }),
400 }
401 }
402}
403impl From<crate::operation::create_proxy_configuration::CreateProxyConfigurationError> for Error {
404 fn from(err: crate::operation::create_proxy_configuration::CreateProxyConfigurationError) -> Self {
405 match err {
406 crate::operation::create_proxy_configuration::CreateProxyConfigurationError::InternalServerError(inner) => {
407 Error::InternalServerError(inner)
408 }
409 crate::operation::create_proxy_configuration::CreateProxyConfigurationError::InvalidRequestException(inner) => {
410 Error::InvalidRequestException(inner)
411 }
412 crate::operation::create_proxy_configuration::CreateProxyConfigurationError::LimitExceededException(inner) => {
413 Error::LimitExceededException(inner)
414 }
415 crate::operation::create_proxy_configuration::CreateProxyConfigurationError::ResourceNotFoundException(inner) => {
416 Error::ResourceNotFoundException(inner)
417 }
418 crate::operation::create_proxy_configuration::CreateProxyConfigurationError::ThrottlingException(inner) => {
419 Error::ThrottlingException(inner)
420 }
421 crate::operation::create_proxy_configuration::CreateProxyConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
422 }
423 }
424}
425impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_proxy_rule_group::CreateProxyRuleGroupError, R>> for Error
426where
427 R: Send + Sync + std::fmt::Debug + 'static,
428{
429 fn from(
430 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_proxy_rule_group::CreateProxyRuleGroupError, R>,
431 ) -> Self {
432 match err {
433 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
434 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
435 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
436 source: err.into(),
437 }),
438 }
439 }
440}
441impl From<crate::operation::create_proxy_rule_group::CreateProxyRuleGroupError> for Error {
442 fn from(err: crate::operation::create_proxy_rule_group::CreateProxyRuleGroupError) -> Self {
443 match err {
444 crate::operation::create_proxy_rule_group::CreateProxyRuleGroupError::InternalServerError(inner) => Error::InternalServerError(inner),
445 crate::operation::create_proxy_rule_group::CreateProxyRuleGroupError::InvalidRequestException(inner) => {
446 Error::InvalidRequestException(inner)
447 }
448 crate::operation::create_proxy_rule_group::CreateProxyRuleGroupError::LimitExceededException(inner) => {
449 Error::LimitExceededException(inner)
450 }
451 crate::operation::create_proxy_rule_group::CreateProxyRuleGroupError::ThrottlingException(inner) => Error::ThrottlingException(inner),
452 crate::operation::create_proxy_rule_group::CreateProxyRuleGroupError::Unhandled(inner) => Error::Unhandled(inner),
453 }
454 }
455}
456impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_proxy_rules::CreateProxyRulesError, R>> for Error
457where
458 R: Send + Sync + std::fmt::Debug + 'static,
459{
460 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_proxy_rules::CreateProxyRulesError, R>) -> Self {
461 match err {
462 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
463 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
464 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
465 source: err.into(),
466 }),
467 }
468 }
469}
470impl From<crate::operation::create_proxy_rules::CreateProxyRulesError> for Error {
471 fn from(err: crate::operation::create_proxy_rules::CreateProxyRulesError) -> Self {
472 match err {
473 crate::operation::create_proxy_rules::CreateProxyRulesError::InternalServerError(inner) => Error::InternalServerError(inner),
474 crate::operation::create_proxy_rules::CreateProxyRulesError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
475 crate::operation::create_proxy_rules::CreateProxyRulesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
476 crate::operation::create_proxy_rules::CreateProxyRulesError::Unhandled(inner) => Error::Unhandled(inner),
477 }
478 }
479}
480impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_rule_group::CreateRuleGroupError, R>> for Error
481where
482 R: Send + Sync + std::fmt::Debug + 'static,
483{
484 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_rule_group::CreateRuleGroupError, R>) -> Self {
485 match err {
486 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
487 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
488 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
489 source: err.into(),
490 }),
491 }
492 }
493}
494impl From<crate::operation::create_rule_group::CreateRuleGroupError> for Error {
495 fn from(err: crate::operation::create_rule_group::CreateRuleGroupError) -> Self {
496 match err {
497 crate::operation::create_rule_group::CreateRuleGroupError::InsufficientCapacityException(inner) => {
498 Error::InsufficientCapacityException(inner)
499 }
500 crate::operation::create_rule_group::CreateRuleGroupError::InternalServerError(inner) => Error::InternalServerError(inner),
501 crate::operation::create_rule_group::CreateRuleGroupError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
502 crate::operation::create_rule_group::CreateRuleGroupError::LimitExceededException(inner) => Error::LimitExceededException(inner),
503 crate::operation::create_rule_group::CreateRuleGroupError::ThrottlingException(inner) => Error::ThrottlingException(inner),
504 crate::operation::create_rule_group::CreateRuleGroupError::Unhandled(inner) => Error::Unhandled(inner),
505 }
506 }
507}
508impl<R>
509 From<
510 ::aws_smithy_runtime_api::client::result::SdkError<
511 crate::operation::create_tls_inspection_configuration::CreateTLSInspectionConfigurationError,
512 R,
513 >,
514 > for Error
515where
516 R: Send + Sync + std::fmt::Debug + 'static,
517{
518 fn from(
519 err: ::aws_smithy_runtime_api::client::result::SdkError<
520 crate::operation::create_tls_inspection_configuration::CreateTLSInspectionConfigurationError,
521 R,
522 >,
523 ) -> Self {
524 match err {
525 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
526 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
527 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
528 source: err.into(),
529 }),
530 }
531 }
532}
533impl From<crate::operation::create_tls_inspection_configuration::CreateTLSInspectionConfigurationError> for Error {
534 fn from(err: crate::operation::create_tls_inspection_configuration::CreateTLSInspectionConfigurationError) -> Self {
535 match err {
536 crate::operation::create_tls_inspection_configuration::CreateTLSInspectionConfigurationError::InsufficientCapacityException(inner) => {
537 Error::InsufficientCapacityException(inner)
538 }
539 crate::operation::create_tls_inspection_configuration::CreateTLSInspectionConfigurationError::InternalServerError(inner) => {
540 Error::InternalServerError(inner)
541 }
542 crate::operation::create_tls_inspection_configuration::CreateTLSInspectionConfigurationError::InvalidRequestException(inner) => {
543 Error::InvalidRequestException(inner)
544 }
545 crate::operation::create_tls_inspection_configuration::CreateTLSInspectionConfigurationError::LimitExceededException(inner) => {
546 Error::LimitExceededException(inner)
547 }
548 crate::operation::create_tls_inspection_configuration::CreateTLSInspectionConfigurationError::ThrottlingException(inner) => {
549 Error::ThrottlingException(inner)
550 }
551 crate::operation::create_tls_inspection_configuration::CreateTLSInspectionConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
552 }
553 }
554}
555impl<R>
556 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpc_endpoint_association::CreateVpcEndpointAssociationError, R>>
557 for Error
558where
559 R: Send + Sync + std::fmt::Debug + 'static,
560{
561 fn from(
562 err: ::aws_smithy_runtime_api::client::result::SdkError<
563 crate::operation::create_vpc_endpoint_association::CreateVpcEndpointAssociationError,
564 R,
565 >,
566 ) -> Self {
567 match err {
568 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
569 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
570 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
571 source: err.into(),
572 }),
573 }
574 }
575}
576impl From<crate::operation::create_vpc_endpoint_association::CreateVpcEndpointAssociationError> for Error {
577 fn from(err: crate::operation::create_vpc_endpoint_association::CreateVpcEndpointAssociationError) -> Self {
578 match err {
579 crate::operation::create_vpc_endpoint_association::CreateVpcEndpointAssociationError::InsufficientCapacityException(inner) => {
580 Error::InsufficientCapacityException(inner)
581 }
582 crate::operation::create_vpc_endpoint_association::CreateVpcEndpointAssociationError::InternalServerError(inner) => {
583 Error::InternalServerError(inner)
584 }
585 crate::operation::create_vpc_endpoint_association::CreateVpcEndpointAssociationError::InvalidOperationException(inner) => {
586 Error::InvalidOperationException(inner)
587 }
588 crate::operation::create_vpc_endpoint_association::CreateVpcEndpointAssociationError::InvalidRequestException(inner) => {
589 Error::InvalidRequestException(inner)
590 }
591 crate::operation::create_vpc_endpoint_association::CreateVpcEndpointAssociationError::LimitExceededException(inner) => {
592 Error::LimitExceededException(inner)
593 }
594 crate::operation::create_vpc_endpoint_association::CreateVpcEndpointAssociationError::ResourceNotFoundException(inner) => {
595 Error::ResourceNotFoundException(inner)
596 }
597 crate::operation::create_vpc_endpoint_association::CreateVpcEndpointAssociationError::ThrottlingException(inner) => {
598 Error::ThrottlingException(inner)
599 }
600 crate::operation::create_vpc_endpoint_association::CreateVpcEndpointAssociationError::Unhandled(inner) => Error::Unhandled(inner),
601 }
602 }
603}
604impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_firewall::DeleteFirewallError, R>> for Error
605where
606 R: Send + Sync + std::fmt::Debug + 'static,
607{
608 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_firewall::DeleteFirewallError, R>) -> Self {
609 match err {
610 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
611 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
612 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
613 source: err.into(),
614 }),
615 }
616 }
617}
618impl From<crate::operation::delete_firewall::DeleteFirewallError> for Error {
619 fn from(err: crate::operation::delete_firewall::DeleteFirewallError) -> Self {
620 match err {
621 crate::operation::delete_firewall::DeleteFirewallError::InternalServerError(inner) => Error::InternalServerError(inner),
622 crate::operation::delete_firewall::DeleteFirewallError::InvalidOperationException(inner) => Error::InvalidOperationException(inner),
623 crate::operation::delete_firewall::DeleteFirewallError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
624 crate::operation::delete_firewall::DeleteFirewallError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
625 crate::operation::delete_firewall::DeleteFirewallError::ThrottlingException(inner) => Error::ThrottlingException(inner),
626 crate::operation::delete_firewall::DeleteFirewallError::UnsupportedOperationException(inner) => {
627 Error::UnsupportedOperationException(inner)
628 }
629 crate::operation::delete_firewall::DeleteFirewallError::Unhandled(inner) => Error::Unhandled(inner),
630 }
631 }
632}
633impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_firewall_policy::DeleteFirewallPolicyError, R>> for Error
634where
635 R: Send + Sync + std::fmt::Debug + 'static,
636{
637 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_firewall_policy::DeleteFirewallPolicyError, R>) -> Self {
638 match err {
639 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
640 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
641 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
642 source: err.into(),
643 }),
644 }
645 }
646}
647impl From<crate::operation::delete_firewall_policy::DeleteFirewallPolicyError> for Error {
648 fn from(err: crate::operation::delete_firewall_policy::DeleteFirewallPolicyError) -> Self {
649 match err {
650 crate::operation::delete_firewall_policy::DeleteFirewallPolicyError::InternalServerError(inner) => Error::InternalServerError(inner),
651 crate::operation::delete_firewall_policy::DeleteFirewallPolicyError::InvalidOperationException(inner) => {
652 Error::InvalidOperationException(inner)
653 }
654 crate::operation::delete_firewall_policy::DeleteFirewallPolicyError::InvalidRequestException(inner) => {
655 Error::InvalidRequestException(inner)
656 }
657 crate::operation::delete_firewall_policy::DeleteFirewallPolicyError::ResourceNotFoundException(inner) => {
658 Error::ResourceNotFoundException(inner)
659 }
660 crate::operation::delete_firewall_policy::DeleteFirewallPolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
661 crate::operation::delete_firewall_policy::DeleteFirewallPolicyError::UnsupportedOperationException(inner) => {
662 Error::UnsupportedOperationException(inner)
663 }
664 crate::operation::delete_firewall_policy::DeleteFirewallPolicyError::Unhandled(inner) => Error::Unhandled(inner),
665 }
666 }
667}
668impl<R>
669 From<
670 ::aws_smithy_runtime_api::client::result::SdkError<
671 crate::operation::delete_network_firewall_transit_gateway_attachment::DeleteNetworkFirewallTransitGatewayAttachmentError,
672 R,
673 >,
674 > for Error
675where
676 R: Send + Sync + std::fmt::Debug + 'static,
677{
678 fn from(
679 err: ::aws_smithy_runtime_api::client::result::SdkError<
680 crate::operation::delete_network_firewall_transit_gateway_attachment::DeleteNetworkFirewallTransitGatewayAttachmentError,
681 R,
682 >,
683 ) -> Self {
684 match err {
685 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
686 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
687 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
688 source: err.into(),
689 }),
690 }
691 }
692}
693impl From<crate::operation::delete_network_firewall_transit_gateway_attachment::DeleteNetworkFirewallTransitGatewayAttachmentError> for Error {
694 fn from(err: crate::operation::delete_network_firewall_transit_gateway_attachment::DeleteNetworkFirewallTransitGatewayAttachmentError) -> Self {
695 match err {
696 crate::operation::delete_network_firewall_transit_gateway_attachment::DeleteNetworkFirewallTransitGatewayAttachmentError::InternalServerError(inner) => Error::InternalServerError(inner),
697 crate::operation::delete_network_firewall_transit_gateway_attachment::DeleteNetworkFirewallTransitGatewayAttachmentError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
698 crate::operation::delete_network_firewall_transit_gateway_attachment::DeleteNetworkFirewallTransitGatewayAttachmentError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
699 crate::operation::delete_network_firewall_transit_gateway_attachment::DeleteNetworkFirewallTransitGatewayAttachmentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
700 crate::operation::delete_network_firewall_transit_gateway_attachment::DeleteNetworkFirewallTransitGatewayAttachmentError::Unhandled(inner) => Error::Unhandled(inner),
701 }
702 }
703}
704impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_proxy::DeleteProxyError, R>> for Error
705where
706 R: Send + Sync + std::fmt::Debug + 'static,
707{
708 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_proxy::DeleteProxyError, R>) -> Self {
709 match err {
710 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
711 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
712 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
713 source: err.into(),
714 }),
715 }
716 }
717}
718impl From<crate::operation::delete_proxy::DeleteProxyError> for Error {
719 fn from(err: crate::operation::delete_proxy::DeleteProxyError) -> Self {
720 match err {
721 crate::operation::delete_proxy::DeleteProxyError::InternalServerError(inner) => Error::InternalServerError(inner),
722 crate::operation::delete_proxy::DeleteProxyError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
723 crate::operation::delete_proxy::DeleteProxyError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
724 crate::operation::delete_proxy::DeleteProxyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
725 crate::operation::delete_proxy::DeleteProxyError::UnsupportedOperationException(inner) => Error::UnsupportedOperationException(inner),
726 crate::operation::delete_proxy::DeleteProxyError::Unhandled(inner) => Error::Unhandled(inner),
727 }
728 }
729}
730impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_proxy_configuration::DeleteProxyConfigurationError, R>>
731 for Error
732where
733 R: Send + Sync + std::fmt::Debug + 'static,
734{
735 fn from(
736 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_proxy_configuration::DeleteProxyConfigurationError, R>,
737 ) -> Self {
738 match err {
739 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
740 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
741 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
742 source: err.into(),
743 }),
744 }
745 }
746}
747impl From<crate::operation::delete_proxy_configuration::DeleteProxyConfigurationError> for Error {
748 fn from(err: crate::operation::delete_proxy_configuration::DeleteProxyConfigurationError) -> Self {
749 match err {
750 crate::operation::delete_proxy_configuration::DeleteProxyConfigurationError::InternalServerError(inner) => {
751 Error::InternalServerError(inner)
752 }
753 crate::operation::delete_proxy_configuration::DeleteProxyConfigurationError::InvalidRequestException(inner) => {
754 Error::InvalidRequestException(inner)
755 }
756 crate::operation::delete_proxy_configuration::DeleteProxyConfigurationError::ResourceNotFoundException(inner) => {
757 Error::ResourceNotFoundException(inner)
758 }
759 crate::operation::delete_proxy_configuration::DeleteProxyConfigurationError::ThrottlingException(inner) => {
760 Error::ThrottlingException(inner)
761 }
762 crate::operation::delete_proxy_configuration::DeleteProxyConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
763 }
764 }
765}
766impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_proxy_rule_group::DeleteProxyRuleGroupError, R>> for Error
767where
768 R: Send + Sync + std::fmt::Debug + 'static,
769{
770 fn from(
771 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_proxy_rule_group::DeleteProxyRuleGroupError, R>,
772 ) -> Self {
773 match err {
774 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
775 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
776 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
777 source: err.into(),
778 }),
779 }
780 }
781}
782impl From<crate::operation::delete_proxy_rule_group::DeleteProxyRuleGroupError> for Error {
783 fn from(err: crate::operation::delete_proxy_rule_group::DeleteProxyRuleGroupError) -> Self {
784 match err {
785 crate::operation::delete_proxy_rule_group::DeleteProxyRuleGroupError::InternalServerError(inner) => Error::InternalServerError(inner),
786 crate::operation::delete_proxy_rule_group::DeleteProxyRuleGroupError::InvalidRequestException(inner) => {
787 Error::InvalidRequestException(inner)
788 }
789 crate::operation::delete_proxy_rule_group::DeleteProxyRuleGroupError::ResourceNotFoundException(inner) => {
790 Error::ResourceNotFoundException(inner)
791 }
792 crate::operation::delete_proxy_rule_group::DeleteProxyRuleGroupError::ThrottlingException(inner) => Error::ThrottlingException(inner),
793 crate::operation::delete_proxy_rule_group::DeleteProxyRuleGroupError::Unhandled(inner) => Error::Unhandled(inner),
794 }
795 }
796}
797impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_proxy_rules::DeleteProxyRulesError, R>> for Error
798where
799 R: Send + Sync + std::fmt::Debug + 'static,
800{
801 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_proxy_rules::DeleteProxyRulesError, R>) -> Self {
802 match err {
803 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
804 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
805 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
806 source: err.into(),
807 }),
808 }
809 }
810}
811impl From<crate::operation::delete_proxy_rules::DeleteProxyRulesError> for Error {
812 fn from(err: crate::operation::delete_proxy_rules::DeleteProxyRulesError) -> Self {
813 match err {
814 crate::operation::delete_proxy_rules::DeleteProxyRulesError::InternalServerError(inner) => Error::InternalServerError(inner),
815 crate::operation::delete_proxy_rules::DeleteProxyRulesError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
816 crate::operation::delete_proxy_rules::DeleteProxyRulesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
817 crate::operation::delete_proxy_rules::DeleteProxyRulesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
818 crate::operation::delete_proxy_rules::DeleteProxyRulesError::Unhandled(inner) => Error::Unhandled(inner),
819 }
820 }
821}
822impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_policy::DeleteResourcePolicyError, R>> for Error
823where
824 R: Send + Sync + std::fmt::Debug + 'static,
825{
826 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_policy::DeleteResourcePolicyError, R>) -> Self {
827 match err {
828 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
829 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
830 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
831 source: err.into(),
832 }),
833 }
834 }
835}
836impl From<crate::operation::delete_resource_policy::DeleteResourcePolicyError> for Error {
837 fn from(err: crate::operation::delete_resource_policy::DeleteResourcePolicyError) -> Self {
838 match err {
839 crate::operation::delete_resource_policy::DeleteResourcePolicyError::InternalServerError(inner) => Error::InternalServerError(inner),
840 crate::operation::delete_resource_policy::DeleteResourcePolicyError::InvalidRequestException(inner) => {
841 Error::InvalidRequestException(inner)
842 }
843 crate::operation::delete_resource_policy::DeleteResourcePolicyError::InvalidResourcePolicyException(inner) => {
844 Error::InvalidResourcePolicyException(inner)
845 }
846 crate::operation::delete_resource_policy::DeleteResourcePolicyError::ResourceNotFoundException(inner) => {
847 Error::ResourceNotFoundException(inner)
848 }
849 crate::operation::delete_resource_policy::DeleteResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
850 crate::operation::delete_resource_policy::DeleteResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
851 }
852 }
853}
854impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_rule_group::DeleteRuleGroupError, R>> for Error
855where
856 R: Send + Sync + std::fmt::Debug + 'static,
857{
858 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_rule_group::DeleteRuleGroupError, R>) -> Self {
859 match err {
860 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
861 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
862 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
863 source: err.into(),
864 }),
865 }
866 }
867}
868impl From<crate::operation::delete_rule_group::DeleteRuleGroupError> for Error {
869 fn from(err: crate::operation::delete_rule_group::DeleteRuleGroupError) -> Self {
870 match err {
871 crate::operation::delete_rule_group::DeleteRuleGroupError::InternalServerError(inner) => Error::InternalServerError(inner),
872 crate::operation::delete_rule_group::DeleteRuleGroupError::InvalidOperationException(inner) => Error::InvalidOperationException(inner),
873 crate::operation::delete_rule_group::DeleteRuleGroupError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
874 crate::operation::delete_rule_group::DeleteRuleGroupError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
875 crate::operation::delete_rule_group::DeleteRuleGroupError::ThrottlingException(inner) => Error::ThrottlingException(inner),
876 crate::operation::delete_rule_group::DeleteRuleGroupError::UnsupportedOperationException(inner) => {
877 Error::UnsupportedOperationException(inner)
878 }
879 crate::operation::delete_rule_group::DeleteRuleGroupError::Unhandled(inner) => Error::Unhandled(inner),
880 }
881 }
882}
883impl<R>
884 From<
885 ::aws_smithy_runtime_api::client::result::SdkError<
886 crate::operation::delete_tls_inspection_configuration::DeleteTLSInspectionConfigurationError,
887 R,
888 >,
889 > for Error
890where
891 R: Send + Sync + std::fmt::Debug + 'static,
892{
893 fn from(
894 err: ::aws_smithy_runtime_api::client::result::SdkError<
895 crate::operation::delete_tls_inspection_configuration::DeleteTLSInspectionConfigurationError,
896 R,
897 >,
898 ) -> Self {
899 match err {
900 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
901 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
902 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
903 source: err.into(),
904 }),
905 }
906 }
907}
908impl From<crate::operation::delete_tls_inspection_configuration::DeleteTLSInspectionConfigurationError> for Error {
909 fn from(err: crate::operation::delete_tls_inspection_configuration::DeleteTLSInspectionConfigurationError) -> Self {
910 match err {
911 crate::operation::delete_tls_inspection_configuration::DeleteTLSInspectionConfigurationError::InternalServerError(inner) => {
912 Error::InternalServerError(inner)
913 }
914 crate::operation::delete_tls_inspection_configuration::DeleteTLSInspectionConfigurationError::InvalidOperationException(inner) => {
915 Error::InvalidOperationException(inner)
916 }
917 crate::operation::delete_tls_inspection_configuration::DeleteTLSInspectionConfigurationError::InvalidRequestException(inner) => {
918 Error::InvalidRequestException(inner)
919 }
920 crate::operation::delete_tls_inspection_configuration::DeleteTLSInspectionConfigurationError::ResourceNotFoundException(inner) => {
921 Error::ResourceNotFoundException(inner)
922 }
923 crate::operation::delete_tls_inspection_configuration::DeleteTLSInspectionConfigurationError::ThrottlingException(inner) => {
924 Error::ThrottlingException(inner)
925 }
926 crate::operation::delete_tls_inspection_configuration::DeleteTLSInspectionConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
927 }
928 }
929}
930impl<R>
931 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpc_endpoint_association::DeleteVpcEndpointAssociationError, R>>
932 for Error
933where
934 R: Send + Sync + std::fmt::Debug + 'static,
935{
936 fn from(
937 err: ::aws_smithy_runtime_api::client::result::SdkError<
938 crate::operation::delete_vpc_endpoint_association::DeleteVpcEndpointAssociationError,
939 R,
940 >,
941 ) -> Self {
942 match err {
943 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
944 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
945 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
946 source: err.into(),
947 }),
948 }
949 }
950}
951impl From<crate::operation::delete_vpc_endpoint_association::DeleteVpcEndpointAssociationError> for Error {
952 fn from(err: crate::operation::delete_vpc_endpoint_association::DeleteVpcEndpointAssociationError) -> Self {
953 match err {
954 crate::operation::delete_vpc_endpoint_association::DeleteVpcEndpointAssociationError::InternalServerError(inner) => {
955 Error::InternalServerError(inner)
956 }
957 crate::operation::delete_vpc_endpoint_association::DeleteVpcEndpointAssociationError::InvalidOperationException(inner) => {
958 Error::InvalidOperationException(inner)
959 }
960 crate::operation::delete_vpc_endpoint_association::DeleteVpcEndpointAssociationError::InvalidRequestException(inner) => {
961 Error::InvalidRequestException(inner)
962 }
963 crate::operation::delete_vpc_endpoint_association::DeleteVpcEndpointAssociationError::ResourceNotFoundException(inner) => {
964 Error::ResourceNotFoundException(inner)
965 }
966 crate::operation::delete_vpc_endpoint_association::DeleteVpcEndpointAssociationError::ThrottlingException(inner) => {
967 Error::ThrottlingException(inner)
968 }
969 crate::operation::delete_vpc_endpoint_association::DeleteVpcEndpointAssociationError::Unhandled(inner) => Error::Unhandled(inner),
970 }
971 }
972}
973impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_firewall::DescribeFirewallError, R>> for Error
974where
975 R: Send + Sync + std::fmt::Debug + 'static,
976{
977 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_firewall::DescribeFirewallError, R>) -> Self {
978 match err {
979 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
980 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
981 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
982 source: err.into(),
983 }),
984 }
985 }
986}
987impl From<crate::operation::describe_firewall::DescribeFirewallError> for Error {
988 fn from(err: crate::operation::describe_firewall::DescribeFirewallError) -> Self {
989 match err {
990 crate::operation::describe_firewall::DescribeFirewallError::InternalServerError(inner) => Error::InternalServerError(inner),
991 crate::operation::describe_firewall::DescribeFirewallError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
992 crate::operation::describe_firewall::DescribeFirewallError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
993 crate::operation::describe_firewall::DescribeFirewallError::ThrottlingException(inner) => Error::ThrottlingException(inner),
994 crate::operation::describe_firewall::DescribeFirewallError::Unhandled(inner) => Error::Unhandled(inner),
995 }
996 }
997}
998impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_firewall_metadata::DescribeFirewallMetadataError, R>>
999 for Error
1000where
1001 R: Send + Sync + std::fmt::Debug + 'static,
1002{
1003 fn from(
1004 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_firewall_metadata::DescribeFirewallMetadataError, R>,
1005 ) -> Self {
1006 match err {
1007 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1008 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1009 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1010 source: err.into(),
1011 }),
1012 }
1013 }
1014}
1015impl From<crate::operation::describe_firewall_metadata::DescribeFirewallMetadataError> for Error {
1016 fn from(err: crate::operation::describe_firewall_metadata::DescribeFirewallMetadataError) -> Self {
1017 match err {
1018 crate::operation::describe_firewall_metadata::DescribeFirewallMetadataError::InternalServerError(inner) => {
1019 Error::InternalServerError(inner)
1020 }
1021 crate::operation::describe_firewall_metadata::DescribeFirewallMetadataError::InvalidRequestException(inner) => {
1022 Error::InvalidRequestException(inner)
1023 }
1024 crate::operation::describe_firewall_metadata::DescribeFirewallMetadataError::ResourceNotFoundException(inner) => {
1025 Error::ResourceNotFoundException(inner)
1026 }
1027 crate::operation::describe_firewall_metadata::DescribeFirewallMetadataError::ThrottlingException(inner) => {
1028 Error::ThrottlingException(inner)
1029 }
1030 crate::operation::describe_firewall_metadata::DescribeFirewallMetadataError::Unhandled(inner) => Error::Unhandled(inner),
1031 }
1032 }
1033}
1034impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_firewall_policy::DescribeFirewallPolicyError, R>> for Error
1035where
1036 R: Send + Sync + std::fmt::Debug + 'static,
1037{
1038 fn from(
1039 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_firewall_policy::DescribeFirewallPolicyError, R>,
1040 ) -> Self {
1041 match err {
1042 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1043 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1044 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1045 source: err.into(),
1046 }),
1047 }
1048 }
1049}
1050impl From<crate::operation::describe_firewall_policy::DescribeFirewallPolicyError> for Error {
1051 fn from(err: crate::operation::describe_firewall_policy::DescribeFirewallPolicyError) -> Self {
1052 match err {
1053 crate::operation::describe_firewall_policy::DescribeFirewallPolicyError::InternalServerError(inner) => Error::InternalServerError(inner),
1054 crate::operation::describe_firewall_policy::DescribeFirewallPolicyError::InvalidRequestException(inner) => {
1055 Error::InvalidRequestException(inner)
1056 }
1057 crate::operation::describe_firewall_policy::DescribeFirewallPolicyError::ResourceNotFoundException(inner) => {
1058 Error::ResourceNotFoundException(inner)
1059 }
1060 crate::operation::describe_firewall_policy::DescribeFirewallPolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1061 crate::operation::describe_firewall_policy::DescribeFirewallPolicyError::Unhandled(inner) => Error::Unhandled(inner),
1062 }
1063 }
1064}
1065impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_flow_operation::DescribeFlowOperationError, R>> for Error
1066where
1067 R: Send + Sync + std::fmt::Debug + 'static,
1068{
1069 fn from(
1070 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_flow_operation::DescribeFlowOperationError, R>,
1071 ) -> Self {
1072 match err {
1073 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1074 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1075 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1076 source: err.into(),
1077 }),
1078 }
1079 }
1080}
1081impl From<crate::operation::describe_flow_operation::DescribeFlowOperationError> for Error {
1082 fn from(err: crate::operation::describe_flow_operation::DescribeFlowOperationError) -> Self {
1083 match err {
1084 crate::operation::describe_flow_operation::DescribeFlowOperationError::InternalServerError(inner) => Error::InternalServerError(inner),
1085 crate::operation::describe_flow_operation::DescribeFlowOperationError::InvalidRequestException(inner) => {
1086 Error::InvalidRequestException(inner)
1087 }
1088 crate::operation::describe_flow_operation::DescribeFlowOperationError::ResourceNotFoundException(inner) => {
1089 Error::ResourceNotFoundException(inner)
1090 }
1091 crate::operation::describe_flow_operation::DescribeFlowOperationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1092 crate::operation::describe_flow_operation::DescribeFlowOperationError::Unhandled(inner) => Error::Unhandled(inner),
1093 }
1094 }
1095}
1096impl<R>
1097 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError, R>>
1098 for Error
1099where
1100 R: Send + Sync + std::fmt::Debug + 'static,
1101{
1102 fn from(
1103 err: ::aws_smithy_runtime_api::client::result::SdkError<
1104 crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError,
1105 R,
1106 >,
1107 ) -> Self {
1108 match err {
1109 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1110 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1111 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1112 source: err.into(),
1113 }),
1114 }
1115 }
1116}
1117impl From<crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError> for Error {
1118 fn from(err: crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError) -> Self {
1119 match err {
1120 crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError::InternalServerError(inner) => {
1121 Error::InternalServerError(inner)
1122 }
1123 crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError::InvalidRequestException(inner) => {
1124 Error::InvalidRequestException(inner)
1125 }
1126 crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError::ResourceNotFoundException(inner) => {
1127 Error::ResourceNotFoundException(inner)
1128 }
1129 crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError::ThrottlingException(inner) => {
1130 Error::ThrottlingException(inner)
1131 }
1132 crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1133 }
1134 }
1135}
1136impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_proxy::DescribeProxyError, R>> for Error
1137where
1138 R: Send + Sync + std::fmt::Debug + 'static,
1139{
1140 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_proxy::DescribeProxyError, R>) -> Self {
1141 match err {
1142 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1143 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1144 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1145 source: err.into(),
1146 }),
1147 }
1148 }
1149}
1150impl From<crate::operation::describe_proxy::DescribeProxyError> for Error {
1151 fn from(err: crate::operation::describe_proxy::DescribeProxyError) -> Self {
1152 match err {
1153 crate::operation::describe_proxy::DescribeProxyError::InternalServerError(inner) => Error::InternalServerError(inner),
1154 crate::operation::describe_proxy::DescribeProxyError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1155 crate::operation::describe_proxy::DescribeProxyError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1156 crate::operation::describe_proxy::DescribeProxyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1157 crate::operation::describe_proxy::DescribeProxyError::Unhandled(inner) => Error::Unhandled(inner),
1158 }
1159 }
1160}
1161impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_proxy_configuration::DescribeProxyConfigurationError, R>>
1162 for Error
1163where
1164 R: Send + Sync + std::fmt::Debug + 'static,
1165{
1166 fn from(
1167 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_proxy_configuration::DescribeProxyConfigurationError, R>,
1168 ) -> Self {
1169 match err {
1170 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1171 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1172 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1173 source: err.into(),
1174 }),
1175 }
1176 }
1177}
1178impl From<crate::operation::describe_proxy_configuration::DescribeProxyConfigurationError> for Error {
1179 fn from(err: crate::operation::describe_proxy_configuration::DescribeProxyConfigurationError) -> Self {
1180 match err {
1181 crate::operation::describe_proxy_configuration::DescribeProxyConfigurationError::InternalServerError(inner) => {
1182 Error::InternalServerError(inner)
1183 }
1184 crate::operation::describe_proxy_configuration::DescribeProxyConfigurationError::InvalidRequestException(inner) => {
1185 Error::InvalidRequestException(inner)
1186 }
1187 crate::operation::describe_proxy_configuration::DescribeProxyConfigurationError::ResourceNotFoundException(inner) => {
1188 Error::ResourceNotFoundException(inner)
1189 }
1190 crate::operation::describe_proxy_configuration::DescribeProxyConfigurationError::ThrottlingException(inner) => {
1191 Error::ThrottlingException(inner)
1192 }
1193 crate::operation::describe_proxy_configuration::DescribeProxyConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1194 }
1195 }
1196}
1197impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_proxy_rule::DescribeProxyRuleError, R>> for Error
1198where
1199 R: Send + Sync + std::fmt::Debug + 'static,
1200{
1201 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_proxy_rule::DescribeProxyRuleError, R>) -> Self {
1202 match err {
1203 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1204 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1205 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1206 source: err.into(),
1207 }),
1208 }
1209 }
1210}
1211impl From<crate::operation::describe_proxy_rule::DescribeProxyRuleError> for Error {
1212 fn from(err: crate::operation::describe_proxy_rule::DescribeProxyRuleError) -> Self {
1213 match err {
1214 crate::operation::describe_proxy_rule::DescribeProxyRuleError::InternalServerError(inner) => Error::InternalServerError(inner),
1215 crate::operation::describe_proxy_rule::DescribeProxyRuleError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1216 crate::operation::describe_proxy_rule::DescribeProxyRuleError::ResourceNotFoundException(inner) => {
1217 Error::ResourceNotFoundException(inner)
1218 }
1219 crate::operation::describe_proxy_rule::DescribeProxyRuleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1220 crate::operation::describe_proxy_rule::DescribeProxyRuleError::Unhandled(inner) => Error::Unhandled(inner),
1221 }
1222 }
1223}
1224impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_proxy_rule_group::DescribeProxyRuleGroupError, R>>
1225 for Error
1226where
1227 R: Send + Sync + std::fmt::Debug + 'static,
1228{
1229 fn from(
1230 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_proxy_rule_group::DescribeProxyRuleGroupError, R>,
1231 ) -> Self {
1232 match err {
1233 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1234 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1235 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1236 source: err.into(),
1237 }),
1238 }
1239 }
1240}
1241impl From<crate::operation::describe_proxy_rule_group::DescribeProxyRuleGroupError> for Error {
1242 fn from(err: crate::operation::describe_proxy_rule_group::DescribeProxyRuleGroupError) -> Self {
1243 match err {
1244 crate::operation::describe_proxy_rule_group::DescribeProxyRuleGroupError::InternalServerError(inner) => Error::InternalServerError(inner),
1245 crate::operation::describe_proxy_rule_group::DescribeProxyRuleGroupError::InvalidRequestException(inner) => {
1246 Error::InvalidRequestException(inner)
1247 }
1248 crate::operation::describe_proxy_rule_group::DescribeProxyRuleGroupError::ResourceNotFoundException(inner) => {
1249 Error::ResourceNotFoundException(inner)
1250 }
1251 crate::operation::describe_proxy_rule_group::DescribeProxyRuleGroupError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1252 crate::operation::describe_proxy_rule_group::DescribeProxyRuleGroupError::Unhandled(inner) => Error::Unhandled(inner),
1253 }
1254 }
1255}
1256impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_resource_policy::DescribeResourcePolicyError, R>> for Error
1257where
1258 R: Send + Sync + std::fmt::Debug + 'static,
1259{
1260 fn from(
1261 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_resource_policy::DescribeResourcePolicyError, R>,
1262 ) -> Self {
1263 match err {
1264 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1265 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1266 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1267 source: err.into(),
1268 }),
1269 }
1270 }
1271}
1272impl From<crate::operation::describe_resource_policy::DescribeResourcePolicyError> for Error {
1273 fn from(err: crate::operation::describe_resource_policy::DescribeResourcePolicyError) -> Self {
1274 match err {
1275 crate::operation::describe_resource_policy::DescribeResourcePolicyError::InternalServerError(inner) => Error::InternalServerError(inner),
1276 crate::operation::describe_resource_policy::DescribeResourcePolicyError::InvalidRequestException(inner) => {
1277 Error::InvalidRequestException(inner)
1278 }
1279 crate::operation::describe_resource_policy::DescribeResourcePolicyError::ResourceNotFoundException(inner) => {
1280 Error::ResourceNotFoundException(inner)
1281 }
1282 crate::operation::describe_resource_policy::DescribeResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1283 crate::operation::describe_resource_policy::DescribeResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
1284 }
1285 }
1286}
1287impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_rule_group::DescribeRuleGroupError, R>> for Error
1288where
1289 R: Send + Sync + std::fmt::Debug + 'static,
1290{
1291 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_rule_group::DescribeRuleGroupError, R>) -> Self {
1292 match err {
1293 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1294 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1295 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1296 source: err.into(),
1297 }),
1298 }
1299 }
1300}
1301impl From<crate::operation::describe_rule_group::DescribeRuleGroupError> for Error {
1302 fn from(err: crate::operation::describe_rule_group::DescribeRuleGroupError) -> Self {
1303 match err {
1304 crate::operation::describe_rule_group::DescribeRuleGroupError::InternalServerError(inner) => Error::InternalServerError(inner),
1305 crate::operation::describe_rule_group::DescribeRuleGroupError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1306 crate::operation::describe_rule_group::DescribeRuleGroupError::ResourceNotFoundException(inner) => {
1307 Error::ResourceNotFoundException(inner)
1308 }
1309 crate::operation::describe_rule_group::DescribeRuleGroupError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1310 crate::operation::describe_rule_group::DescribeRuleGroupError::Unhandled(inner) => Error::Unhandled(inner),
1311 }
1312 }
1313}
1314impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_rule_group_metadata::DescribeRuleGroupMetadataError, R>>
1315 for Error
1316where
1317 R: Send + Sync + std::fmt::Debug + 'static,
1318{
1319 fn from(
1320 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_rule_group_metadata::DescribeRuleGroupMetadataError, R>,
1321 ) -> Self {
1322 match err {
1323 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1324 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1325 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1326 source: err.into(),
1327 }),
1328 }
1329 }
1330}
1331impl From<crate::operation::describe_rule_group_metadata::DescribeRuleGroupMetadataError> for Error {
1332 fn from(err: crate::operation::describe_rule_group_metadata::DescribeRuleGroupMetadataError) -> Self {
1333 match err {
1334 crate::operation::describe_rule_group_metadata::DescribeRuleGroupMetadataError::InternalServerError(inner) => {
1335 Error::InternalServerError(inner)
1336 }
1337 crate::operation::describe_rule_group_metadata::DescribeRuleGroupMetadataError::InvalidRequestException(inner) => {
1338 Error::InvalidRequestException(inner)
1339 }
1340 crate::operation::describe_rule_group_metadata::DescribeRuleGroupMetadataError::ResourceNotFoundException(inner) => {
1341 Error::ResourceNotFoundException(inner)
1342 }
1343 crate::operation::describe_rule_group_metadata::DescribeRuleGroupMetadataError::ThrottlingException(inner) => {
1344 Error::ThrottlingException(inner)
1345 }
1346 crate::operation::describe_rule_group_metadata::DescribeRuleGroupMetadataError::Unhandled(inner) => Error::Unhandled(inner),
1347 }
1348 }
1349}
1350impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_rule_group_summary::DescribeRuleGroupSummaryError, R>>
1351 for Error
1352where
1353 R: Send + Sync + std::fmt::Debug + 'static,
1354{
1355 fn from(
1356 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_rule_group_summary::DescribeRuleGroupSummaryError, R>,
1357 ) -> Self {
1358 match err {
1359 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1360 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1361 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1362 source: err.into(),
1363 }),
1364 }
1365 }
1366}
1367impl From<crate::operation::describe_rule_group_summary::DescribeRuleGroupSummaryError> for Error {
1368 fn from(err: crate::operation::describe_rule_group_summary::DescribeRuleGroupSummaryError) -> Self {
1369 match err {
1370 crate::operation::describe_rule_group_summary::DescribeRuleGroupSummaryError::InternalServerError(inner) => {
1371 Error::InternalServerError(inner)
1372 }
1373 crate::operation::describe_rule_group_summary::DescribeRuleGroupSummaryError::InvalidRequestException(inner) => {
1374 Error::InvalidRequestException(inner)
1375 }
1376 crate::operation::describe_rule_group_summary::DescribeRuleGroupSummaryError::ResourceNotFoundException(inner) => {
1377 Error::ResourceNotFoundException(inner)
1378 }
1379 crate::operation::describe_rule_group_summary::DescribeRuleGroupSummaryError::ThrottlingException(inner) => {
1380 Error::ThrottlingException(inner)
1381 }
1382 crate::operation::describe_rule_group_summary::DescribeRuleGroupSummaryError::Unhandled(inner) => Error::Unhandled(inner),
1383 }
1384 }
1385}
1386impl<R>
1387 From<
1388 ::aws_smithy_runtime_api::client::result::SdkError<
1389 crate::operation::describe_tls_inspection_configuration::DescribeTLSInspectionConfigurationError,
1390 R,
1391 >,
1392 > for Error
1393where
1394 R: Send + Sync + std::fmt::Debug + 'static,
1395{
1396 fn from(
1397 err: ::aws_smithy_runtime_api::client::result::SdkError<
1398 crate::operation::describe_tls_inspection_configuration::DescribeTLSInspectionConfigurationError,
1399 R,
1400 >,
1401 ) -> Self {
1402 match err {
1403 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1404 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1405 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1406 source: err.into(),
1407 }),
1408 }
1409 }
1410}
1411impl From<crate::operation::describe_tls_inspection_configuration::DescribeTLSInspectionConfigurationError> for Error {
1412 fn from(err: crate::operation::describe_tls_inspection_configuration::DescribeTLSInspectionConfigurationError) -> Self {
1413 match err {
1414 crate::operation::describe_tls_inspection_configuration::DescribeTLSInspectionConfigurationError::InternalServerError(inner) => {
1415 Error::InternalServerError(inner)
1416 }
1417 crate::operation::describe_tls_inspection_configuration::DescribeTLSInspectionConfigurationError::InvalidRequestException(inner) => {
1418 Error::InvalidRequestException(inner)
1419 }
1420 crate::operation::describe_tls_inspection_configuration::DescribeTLSInspectionConfigurationError::ResourceNotFoundException(inner) => {
1421 Error::ResourceNotFoundException(inner)
1422 }
1423 crate::operation::describe_tls_inspection_configuration::DescribeTLSInspectionConfigurationError::ThrottlingException(inner) => {
1424 Error::ThrottlingException(inner)
1425 }
1426 crate::operation::describe_tls_inspection_configuration::DescribeTLSInspectionConfigurationError::Unhandled(inner) => {
1427 Error::Unhandled(inner)
1428 }
1429 }
1430 }
1431}
1432impl<R>
1433 From<
1434 ::aws_smithy_runtime_api::client::result::SdkError<
1435 crate::operation::describe_vpc_endpoint_association::DescribeVpcEndpointAssociationError,
1436 R,
1437 >,
1438 > for Error
1439where
1440 R: Send + Sync + std::fmt::Debug + 'static,
1441{
1442 fn from(
1443 err: ::aws_smithy_runtime_api::client::result::SdkError<
1444 crate::operation::describe_vpc_endpoint_association::DescribeVpcEndpointAssociationError,
1445 R,
1446 >,
1447 ) -> Self {
1448 match err {
1449 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1450 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1451 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1452 source: err.into(),
1453 }),
1454 }
1455 }
1456}
1457impl From<crate::operation::describe_vpc_endpoint_association::DescribeVpcEndpointAssociationError> for Error {
1458 fn from(err: crate::operation::describe_vpc_endpoint_association::DescribeVpcEndpointAssociationError) -> Self {
1459 match err {
1460 crate::operation::describe_vpc_endpoint_association::DescribeVpcEndpointAssociationError::InternalServerError(inner) => {
1461 Error::InternalServerError(inner)
1462 }
1463 crate::operation::describe_vpc_endpoint_association::DescribeVpcEndpointAssociationError::InvalidRequestException(inner) => {
1464 Error::InvalidRequestException(inner)
1465 }
1466 crate::operation::describe_vpc_endpoint_association::DescribeVpcEndpointAssociationError::ResourceNotFoundException(inner) => {
1467 Error::ResourceNotFoundException(inner)
1468 }
1469 crate::operation::describe_vpc_endpoint_association::DescribeVpcEndpointAssociationError::ThrottlingException(inner) => {
1470 Error::ThrottlingException(inner)
1471 }
1472 crate::operation::describe_vpc_endpoint_association::DescribeVpcEndpointAssociationError::Unhandled(inner) => Error::Unhandled(inner),
1473 }
1474 }
1475}
1476impl<R>
1477 From<
1478 ::aws_smithy_runtime_api::client::result::SdkError<
1479 crate::operation::detach_rule_groups_from_proxy_configuration::DetachRuleGroupsFromProxyConfigurationError,
1480 R,
1481 >,
1482 > for Error
1483where
1484 R: Send + Sync + std::fmt::Debug + 'static,
1485{
1486 fn from(
1487 err: ::aws_smithy_runtime_api::client::result::SdkError<
1488 crate::operation::detach_rule_groups_from_proxy_configuration::DetachRuleGroupsFromProxyConfigurationError,
1489 R,
1490 >,
1491 ) -> Self {
1492 match err {
1493 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1494 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1495 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1496 source: err.into(),
1497 }),
1498 }
1499 }
1500}
1501impl From<crate::operation::detach_rule_groups_from_proxy_configuration::DetachRuleGroupsFromProxyConfigurationError> for Error {
1502 fn from(err: crate::operation::detach_rule_groups_from_proxy_configuration::DetachRuleGroupsFromProxyConfigurationError) -> Self {
1503 match err {
1504 crate::operation::detach_rule_groups_from_proxy_configuration::DetachRuleGroupsFromProxyConfigurationError::InternalServerError(
1505 inner,
1506 ) => Error::InternalServerError(inner),
1507 crate::operation::detach_rule_groups_from_proxy_configuration::DetachRuleGroupsFromProxyConfigurationError::InvalidRequestException(
1508 inner,
1509 ) => Error::InvalidRequestException(inner),
1510 crate::operation::detach_rule_groups_from_proxy_configuration::DetachRuleGroupsFromProxyConfigurationError::ResourceNotFoundException(
1511 inner,
1512 ) => Error::ResourceNotFoundException(inner),
1513 crate::operation::detach_rule_groups_from_proxy_configuration::DetachRuleGroupsFromProxyConfigurationError::ThrottlingException(
1514 inner,
1515 ) => Error::ThrottlingException(inner),
1516 crate::operation::detach_rule_groups_from_proxy_configuration::DetachRuleGroupsFromProxyConfigurationError::Unhandled(inner) => {
1517 Error::Unhandled(inner)
1518 }
1519 }
1520 }
1521}
1522impl<R>
1523 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_availability_zones::DisassociateAvailabilityZonesError, R>>
1524 for Error
1525where
1526 R: Send + Sync + std::fmt::Debug + 'static,
1527{
1528 fn from(
1529 err: ::aws_smithy_runtime_api::client::result::SdkError<
1530 crate::operation::disassociate_availability_zones::DisassociateAvailabilityZonesError,
1531 R,
1532 >,
1533 ) -> Self {
1534 match err {
1535 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1536 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1537 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1538 source: err.into(),
1539 }),
1540 }
1541 }
1542}
1543impl From<crate::operation::disassociate_availability_zones::DisassociateAvailabilityZonesError> for Error {
1544 fn from(err: crate::operation::disassociate_availability_zones::DisassociateAvailabilityZonesError) -> Self {
1545 match err {
1546 crate::operation::disassociate_availability_zones::DisassociateAvailabilityZonesError::InternalServerError(inner) => {
1547 Error::InternalServerError(inner)
1548 }
1549 crate::operation::disassociate_availability_zones::DisassociateAvailabilityZonesError::InvalidOperationException(inner) => {
1550 Error::InvalidOperationException(inner)
1551 }
1552 crate::operation::disassociate_availability_zones::DisassociateAvailabilityZonesError::InvalidRequestException(inner) => {
1553 Error::InvalidRequestException(inner)
1554 }
1555 crate::operation::disassociate_availability_zones::DisassociateAvailabilityZonesError::InvalidTokenException(inner) => {
1556 Error::InvalidTokenException(inner)
1557 }
1558 crate::operation::disassociate_availability_zones::DisassociateAvailabilityZonesError::ResourceNotFoundException(inner) => {
1559 Error::ResourceNotFoundException(inner)
1560 }
1561 crate::operation::disassociate_availability_zones::DisassociateAvailabilityZonesError::ThrottlingException(inner) => {
1562 Error::ThrottlingException(inner)
1563 }
1564 crate::operation::disassociate_availability_zones::DisassociateAvailabilityZonesError::Unhandled(inner) => Error::Unhandled(inner),
1565 }
1566 }
1567}
1568impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_subnets::DisassociateSubnetsError, R>> for Error
1569where
1570 R: Send + Sync + std::fmt::Debug + 'static,
1571{
1572 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_subnets::DisassociateSubnetsError, R>) -> Self {
1573 match err {
1574 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1575 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1576 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1577 source: err.into(),
1578 }),
1579 }
1580 }
1581}
1582impl From<crate::operation::disassociate_subnets::DisassociateSubnetsError> for Error {
1583 fn from(err: crate::operation::disassociate_subnets::DisassociateSubnetsError) -> Self {
1584 match err {
1585 crate::operation::disassociate_subnets::DisassociateSubnetsError::InternalServerError(inner) => Error::InternalServerError(inner),
1586 crate::operation::disassociate_subnets::DisassociateSubnetsError::InvalidOperationException(inner) => {
1587 Error::InvalidOperationException(inner)
1588 }
1589 crate::operation::disassociate_subnets::DisassociateSubnetsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1590 crate::operation::disassociate_subnets::DisassociateSubnetsError::InvalidTokenException(inner) => Error::InvalidTokenException(inner),
1591 crate::operation::disassociate_subnets::DisassociateSubnetsError::ResourceNotFoundException(inner) => {
1592 Error::ResourceNotFoundException(inner)
1593 }
1594 crate::operation::disassociate_subnets::DisassociateSubnetsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1595 crate::operation::disassociate_subnets::DisassociateSubnetsError::Unhandled(inner) => Error::Unhandled(inner),
1596 }
1597 }
1598}
1599impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_analysis_report_results::GetAnalysisReportResultsError, R>>
1600 for Error
1601where
1602 R: Send + Sync + std::fmt::Debug + 'static,
1603{
1604 fn from(
1605 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_analysis_report_results::GetAnalysisReportResultsError, R>,
1606 ) -> Self {
1607 match err {
1608 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1609 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1610 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1611 source: err.into(),
1612 }),
1613 }
1614 }
1615}
1616impl From<crate::operation::get_analysis_report_results::GetAnalysisReportResultsError> for Error {
1617 fn from(err: crate::operation::get_analysis_report_results::GetAnalysisReportResultsError) -> Self {
1618 match err {
1619 crate::operation::get_analysis_report_results::GetAnalysisReportResultsError::InternalServerError(inner) => {
1620 Error::InternalServerError(inner)
1621 }
1622 crate::operation::get_analysis_report_results::GetAnalysisReportResultsError::InvalidRequestException(inner) => {
1623 Error::InvalidRequestException(inner)
1624 }
1625 crate::operation::get_analysis_report_results::GetAnalysisReportResultsError::ResourceNotFoundException(inner) => {
1626 Error::ResourceNotFoundException(inner)
1627 }
1628 crate::operation::get_analysis_report_results::GetAnalysisReportResultsError::ThrottlingException(inner) => {
1629 Error::ThrottlingException(inner)
1630 }
1631 crate::operation::get_analysis_report_results::GetAnalysisReportResultsError::Unhandled(inner) => Error::Unhandled(inner),
1632 }
1633 }
1634}
1635impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_analysis_reports::ListAnalysisReportsError, R>> for Error
1636where
1637 R: Send + Sync + std::fmt::Debug + 'static,
1638{
1639 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_analysis_reports::ListAnalysisReportsError, R>) -> Self {
1640 match err {
1641 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1642 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1643 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1644 source: err.into(),
1645 }),
1646 }
1647 }
1648}
1649impl From<crate::operation::list_analysis_reports::ListAnalysisReportsError> for Error {
1650 fn from(err: crate::operation::list_analysis_reports::ListAnalysisReportsError) -> Self {
1651 match err {
1652 crate::operation::list_analysis_reports::ListAnalysisReportsError::InternalServerError(inner) => Error::InternalServerError(inner),
1653 crate::operation::list_analysis_reports::ListAnalysisReportsError::InvalidRequestException(inner) => {
1654 Error::InvalidRequestException(inner)
1655 }
1656 crate::operation::list_analysis_reports::ListAnalysisReportsError::ResourceNotFoundException(inner) => {
1657 Error::ResourceNotFoundException(inner)
1658 }
1659 crate::operation::list_analysis_reports::ListAnalysisReportsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1660 crate::operation::list_analysis_reports::ListAnalysisReportsError::Unhandled(inner) => Error::Unhandled(inner),
1661 }
1662 }
1663}
1664impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_firewall_policies::ListFirewallPoliciesError, R>> for Error
1665where
1666 R: Send + Sync + std::fmt::Debug + 'static,
1667{
1668 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_firewall_policies::ListFirewallPoliciesError, R>) -> Self {
1669 match err {
1670 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1671 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1672 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1673 source: err.into(),
1674 }),
1675 }
1676 }
1677}
1678impl From<crate::operation::list_firewall_policies::ListFirewallPoliciesError> for Error {
1679 fn from(err: crate::operation::list_firewall_policies::ListFirewallPoliciesError) -> Self {
1680 match err {
1681 crate::operation::list_firewall_policies::ListFirewallPoliciesError::InternalServerError(inner) => Error::InternalServerError(inner),
1682 crate::operation::list_firewall_policies::ListFirewallPoliciesError::InvalidRequestException(inner) => {
1683 Error::InvalidRequestException(inner)
1684 }
1685 crate::operation::list_firewall_policies::ListFirewallPoliciesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1686 crate::operation::list_firewall_policies::ListFirewallPoliciesError::Unhandled(inner) => Error::Unhandled(inner),
1687 }
1688 }
1689}
1690impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_firewalls::ListFirewallsError, R>> for Error
1691where
1692 R: Send + Sync + std::fmt::Debug + 'static,
1693{
1694 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_firewalls::ListFirewallsError, R>) -> Self {
1695 match err {
1696 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1697 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1698 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1699 source: err.into(),
1700 }),
1701 }
1702 }
1703}
1704impl From<crate::operation::list_firewalls::ListFirewallsError> for Error {
1705 fn from(err: crate::operation::list_firewalls::ListFirewallsError) -> Self {
1706 match err {
1707 crate::operation::list_firewalls::ListFirewallsError::InternalServerError(inner) => Error::InternalServerError(inner),
1708 crate::operation::list_firewalls::ListFirewallsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1709 crate::operation::list_firewalls::ListFirewallsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1710 crate::operation::list_firewalls::ListFirewallsError::Unhandled(inner) => Error::Unhandled(inner),
1711 }
1712 }
1713}
1714impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_flow_operation_results::ListFlowOperationResultsError, R>>
1715 for Error
1716where
1717 R: Send + Sync + std::fmt::Debug + 'static,
1718{
1719 fn from(
1720 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_flow_operation_results::ListFlowOperationResultsError, R>,
1721 ) -> Self {
1722 match err {
1723 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1724 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1725 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1726 source: err.into(),
1727 }),
1728 }
1729 }
1730}
1731impl From<crate::operation::list_flow_operation_results::ListFlowOperationResultsError> for Error {
1732 fn from(err: crate::operation::list_flow_operation_results::ListFlowOperationResultsError) -> Self {
1733 match err {
1734 crate::operation::list_flow_operation_results::ListFlowOperationResultsError::InternalServerError(inner) => {
1735 Error::InternalServerError(inner)
1736 }
1737 crate::operation::list_flow_operation_results::ListFlowOperationResultsError::InvalidRequestException(inner) => {
1738 Error::InvalidRequestException(inner)
1739 }
1740 crate::operation::list_flow_operation_results::ListFlowOperationResultsError::ResourceNotFoundException(inner) => {
1741 Error::ResourceNotFoundException(inner)
1742 }
1743 crate::operation::list_flow_operation_results::ListFlowOperationResultsError::ThrottlingException(inner) => {
1744 Error::ThrottlingException(inner)
1745 }
1746 crate::operation::list_flow_operation_results::ListFlowOperationResultsError::Unhandled(inner) => Error::Unhandled(inner),
1747 }
1748 }
1749}
1750impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_flow_operations::ListFlowOperationsError, R>> for Error
1751where
1752 R: Send + Sync + std::fmt::Debug + 'static,
1753{
1754 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_flow_operations::ListFlowOperationsError, R>) -> Self {
1755 match err {
1756 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1757 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1758 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1759 source: err.into(),
1760 }),
1761 }
1762 }
1763}
1764impl From<crate::operation::list_flow_operations::ListFlowOperationsError> for Error {
1765 fn from(err: crate::operation::list_flow_operations::ListFlowOperationsError) -> Self {
1766 match err {
1767 crate::operation::list_flow_operations::ListFlowOperationsError::InternalServerError(inner) => Error::InternalServerError(inner),
1768 crate::operation::list_flow_operations::ListFlowOperationsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1769 crate::operation::list_flow_operations::ListFlowOperationsError::ResourceNotFoundException(inner) => {
1770 Error::ResourceNotFoundException(inner)
1771 }
1772 crate::operation::list_flow_operations::ListFlowOperationsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1773 crate::operation::list_flow_operations::ListFlowOperationsError::Unhandled(inner) => Error::Unhandled(inner),
1774 }
1775 }
1776}
1777impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_proxies::ListProxiesError, R>> for Error
1778where
1779 R: Send + Sync + std::fmt::Debug + 'static,
1780{
1781 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_proxies::ListProxiesError, R>) -> Self {
1782 match err {
1783 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1784 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1785 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1786 source: err.into(),
1787 }),
1788 }
1789 }
1790}
1791impl From<crate::operation::list_proxies::ListProxiesError> for Error {
1792 fn from(err: crate::operation::list_proxies::ListProxiesError) -> Self {
1793 match err {
1794 crate::operation::list_proxies::ListProxiesError::InternalServerError(inner) => Error::InternalServerError(inner),
1795 crate::operation::list_proxies::ListProxiesError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1796 crate::operation::list_proxies::ListProxiesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1797 crate::operation::list_proxies::ListProxiesError::Unhandled(inner) => Error::Unhandled(inner),
1798 }
1799 }
1800}
1801impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_proxy_configurations::ListProxyConfigurationsError, R>>
1802 for Error
1803where
1804 R: Send + Sync + std::fmt::Debug + 'static,
1805{
1806 fn from(
1807 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_proxy_configurations::ListProxyConfigurationsError, R>,
1808 ) -> Self {
1809 match err {
1810 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1811 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1812 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1813 source: err.into(),
1814 }),
1815 }
1816 }
1817}
1818impl From<crate::operation::list_proxy_configurations::ListProxyConfigurationsError> for Error {
1819 fn from(err: crate::operation::list_proxy_configurations::ListProxyConfigurationsError) -> Self {
1820 match err {
1821 crate::operation::list_proxy_configurations::ListProxyConfigurationsError::InternalServerError(inner) => {
1822 Error::InternalServerError(inner)
1823 }
1824 crate::operation::list_proxy_configurations::ListProxyConfigurationsError::InvalidRequestException(inner) => {
1825 Error::InvalidRequestException(inner)
1826 }
1827 crate::operation::list_proxy_configurations::ListProxyConfigurationsError::ResourceNotFoundException(inner) => {
1828 Error::ResourceNotFoundException(inner)
1829 }
1830 crate::operation::list_proxy_configurations::ListProxyConfigurationsError::ThrottlingException(inner) => {
1831 Error::ThrottlingException(inner)
1832 }
1833 crate::operation::list_proxy_configurations::ListProxyConfigurationsError::Unhandled(inner) => Error::Unhandled(inner),
1834 }
1835 }
1836}
1837impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_proxy_rule_groups::ListProxyRuleGroupsError, R>> for Error
1838where
1839 R: Send + Sync + std::fmt::Debug + 'static,
1840{
1841 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_proxy_rule_groups::ListProxyRuleGroupsError, R>) -> Self {
1842 match err {
1843 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1844 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1845 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1846 source: err.into(),
1847 }),
1848 }
1849 }
1850}
1851impl From<crate::operation::list_proxy_rule_groups::ListProxyRuleGroupsError> for Error {
1852 fn from(err: crate::operation::list_proxy_rule_groups::ListProxyRuleGroupsError) -> Self {
1853 match err {
1854 crate::operation::list_proxy_rule_groups::ListProxyRuleGroupsError::InternalServerError(inner) => Error::InternalServerError(inner),
1855 crate::operation::list_proxy_rule_groups::ListProxyRuleGroupsError::InvalidRequestException(inner) => {
1856 Error::InvalidRequestException(inner)
1857 }
1858 crate::operation::list_proxy_rule_groups::ListProxyRuleGroupsError::ResourceNotFoundException(inner) => {
1859 Error::ResourceNotFoundException(inner)
1860 }
1861 crate::operation::list_proxy_rule_groups::ListProxyRuleGroupsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1862 crate::operation::list_proxy_rule_groups::ListProxyRuleGroupsError::Unhandled(inner) => Error::Unhandled(inner),
1863 }
1864 }
1865}
1866impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_rule_groups::ListRuleGroupsError, R>> for Error
1867where
1868 R: Send + Sync + std::fmt::Debug + 'static,
1869{
1870 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_rule_groups::ListRuleGroupsError, R>) -> Self {
1871 match err {
1872 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1873 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1874 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1875 source: err.into(),
1876 }),
1877 }
1878 }
1879}
1880impl From<crate::operation::list_rule_groups::ListRuleGroupsError> for Error {
1881 fn from(err: crate::operation::list_rule_groups::ListRuleGroupsError) -> Self {
1882 match err {
1883 crate::operation::list_rule_groups::ListRuleGroupsError::InternalServerError(inner) => Error::InternalServerError(inner),
1884 crate::operation::list_rule_groups::ListRuleGroupsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1885 crate::operation::list_rule_groups::ListRuleGroupsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1886 crate::operation::list_rule_groups::ListRuleGroupsError::Unhandled(inner) => Error::Unhandled(inner),
1887 }
1888 }
1889}
1890impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
1891where
1892 R: Send + Sync + std::fmt::Debug + 'static,
1893{
1894 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
1895 match err {
1896 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1897 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1898 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1899 source: err.into(),
1900 }),
1901 }
1902 }
1903}
1904impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
1905 fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
1906 match err {
1907 crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerError(inner) => Error::InternalServerError(inner),
1908 crate::operation::list_tags_for_resource::ListTagsForResourceError::InvalidRequestException(inner) => {
1909 Error::InvalidRequestException(inner)
1910 }
1911 crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
1912 Error::ResourceNotFoundException(inner)
1913 }
1914 crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1915 crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
1916 }
1917 }
1918}
1919impl<R>
1920 From<
1921 ::aws_smithy_runtime_api::client::result::SdkError<
1922 crate::operation::list_tls_inspection_configurations::ListTLSInspectionConfigurationsError,
1923 R,
1924 >,
1925 > for Error
1926where
1927 R: Send + Sync + std::fmt::Debug + 'static,
1928{
1929 fn from(
1930 err: ::aws_smithy_runtime_api::client::result::SdkError<
1931 crate::operation::list_tls_inspection_configurations::ListTLSInspectionConfigurationsError,
1932 R,
1933 >,
1934 ) -> Self {
1935 match err {
1936 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1937 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1938 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1939 source: err.into(),
1940 }),
1941 }
1942 }
1943}
1944impl From<crate::operation::list_tls_inspection_configurations::ListTLSInspectionConfigurationsError> for Error {
1945 fn from(err: crate::operation::list_tls_inspection_configurations::ListTLSInspectionConfigurationsError) -> Self {
1946 match err {
1947 crate::operation::list_tls_inspection_configurations::ListTLSInspectionConfigurationsError::InternalServerError(inner) => {
1948 Error::InternalServerError(inner)
1949 }
1950 crate::operation::list_tls_inspection_configurations::ListTLSInspectionConfigurationsError::InvalidRequestException(inner) => {
1951 Error::InvalidRequestException(inner)
1952 }
1953 crate::operation::list_tls_inspection_configurations::ListTLSInspectionConfigurationsError::ThrottlingException(inner) => {
1954 Error::ThrottlingException(inner)
1955 }
1956 crate::operation::list_tls_inspection_configurations::ListTLSInspectionConfigurationsError::Unhandled(inner) => Error::Unhandled(inner),
1957 }
1958 }
1959}
1960impl<R>
1961 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_vpc_endpoint_associations::ListVpcEndpointAssociationsError, R>>
1962 for Error
1963where
1964 R: Send + Sync + std::fmt::Debug + 'static,
1965{
1966 fn from(
1967 err: ::aws_smithy_runtime_api::client::result::SdkError<
1968 crate::operation::list_vpc_endpoint_associations::ListVpcEndpointAssociationsError,
1969 R,
1970 >,
1971 ) -> Self {
1972 match err {
1973 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1974 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1975 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1976 source: err.into(),
1977 }),
1978 }
1979 }
1980}
1981impl From<crate::operation::list_vpc_endpoint_associations::ListVpcEndpointAssociationsError> for Error {
1982 fn from(err: crate::operation::list_vpc_endpoint_associations::ListVpcEndpointAssociationsError) -> Self {
1983 match err {
1984 crate::operation::list_vpc_endpoint_associations::ListVpcEndpointAssociationsError::InternalServerError(inner) => {
1985 Error::InternalServerError(inner)
1986 }
1987 crate::operation::list_vpc_endpoint_associations::ListVpcEndpointAssociationsError::InvalidRequestException(inner) => {
1988 Error::InvalidRequestException(inner)
1989 }
1990 crate::operation::list_vpc_endpoint_associations::ListVpcEndpointAssociationsError::ThrottlingException(inner) => {
1991 Error::ThrottlingException(inner)
1992 }
1993 crate::operation::list_vpc_endpoint_associations::ListVpcEndpointAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
1994 }
1995 }
1996}
1997impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_resource_policy::PutResourcePolicyError, R>> for Error
1998where
1999 R: Send + Sync + std::fmt::Debug + 'static,
2000{
2001 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_resource_policy::PutResourcePolicyError, R>) -> Self {
2002 match err {
2003 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2004 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2005 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2006 source: err.into(),
2007 }),
2008 }
2009 }
2010}
2011impl From<crate::operation::put_resource_policy::PutResourcePolicyError> for Error {
2012 fn from(err: crate::operation::put_resource_policy::PutResourcePolicyError) -> Self {
2013 match err {
2014 crate::operation::put_resource_policy::PutResourcePolicyError::InternalServerError(inner) => Error::InternalServerError(inner),
2015 crate::operation::put_resource_policy::PutResourcePolicyError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
2016 crate::operation::put_resource_policy::PutResourcePolicyError::InvalidResourcePolicyException(inner) => {
2017 Error::InvalidResourcePolicyException(inner)
2018 }
2019 crate::operation::put_resource_policy::PutResourcePolicyError::ResourceNotFoundException(inner) => {
2020 Error::ResourceNotFoundException(inner)
2021 }
2022 crate::operation::put_resource_policy::PutResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2023 crate::operation::put_resource_policy::PutResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
2024 }
2025 }
2026}
2027impl<R>
2028 From<
2029 ::aws_smithy_runtime_api::client::result::SdkError<
2030 crate::operation::reject_network_firewall_transit_gateway_attachment::RejectNetworkFirewallTransitGatewayAttachmentError,
2031 R,
2032 >,
2033 > for Error
2034where
2035 R: Send + Sync + std::fmt::Debug + 'static,
2036{
2037 fn from(
2038 err: ::aws_smithy_runtime_api::client::result::SdkError<
2039 crate::operation::reject_network_firewall_transit_gateway_attachment::RejectNetworkFirewallTransitGatewayAttachmentError,
2040 R,
2041 >,
2042 ) -> Self {
2043 match err {
2044 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2045 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2046 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2047 source: err.into(),
2048 }),
2049 }
2050 }
2051}
2052impl From<crate::operation::reject_network_firewall_transit_gateway_attachment::RejectNetworkFirewallTransitGatewayAttachmentError> for Error {
2053 fn from(err: crate::operation::reject_network_firewall_transit_gateway_attachment::RejectNetworkFirewallTransitGatewayAttachmentError) -> Self {
2054 match err {
2055 crate::operation::reject_network_firewall_transit_gateway_attachment::RejectNetworkFirewallTransitGatewayAttachmentError::InternalServerError(inner) => Error::InternalServerError(inner),
2056 crate::operation::reject_network_firewall_transit_gateway_attachment::RejectNetworkFirewallTransitGatewayAttachmentError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
2057 crate::operation::reject_network_firewall_transit_gateway_attachment::RejectNetworkFirewallTransitGatewayAttachmentError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2058 crate::operation::reject_network_firewall_transit_gateway_attachment::RejectNetworkFirewallTransitGatewayAttachmentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2059 crate::operation::reject_network_firewall_transit_gateway_attachment::RejectNetworkFirewallTransitGatewayAttachmentError::Unhandled(inner) => Error::Unhandled(inner),
2060 }
2061 }
2062}
2063impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_analysis_report::StartAnalysisReportError, R>> for Error
2064where
2065 R: Send + Sync + std::fmt::Debug + 'static,
2066{
2067 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_analysis_report::StartAnalysisReportError, R>) -> Self {
2068 match err {
2069 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2070 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2071 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2072 source: err.into(),
2073 }),
2074 }
2075 }
2076}
2077impl From<crate::operation::start_analysis_report::StartAnalysisReportError> for Error {
2078 fn from(err: crate::operation::start_analysis_report::StartAnalysisReportError) -> Self {
2079 match err {
2080 crate::operation::start_analysis_report::StartAnalysisReportError::InternalServerError(inner) => Error::InternalServerError(inner),
2081 crate::operation::start_analysis_report::StartAnalysisReportError::InvalidRequestException(inner) => {
2082 Error::InvalidRequestException(inner)
2083 }
2084 crate::operation::start_analysis_report::StartAnalysisReportError::ResourceNotFoundException(inner) => {
2085 Error::ResourceNotFoundException(inner)
2086 }
2087 crate::operation::start_analysis_report::StartAnalysisReportError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2088 crate::operation::start_analysis_report::StartAnalysisReportError::Unhandled(inner) => Error::Unhandled(inner),
2089 }
2090 }
2091}
2092impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_flow_capture::StartFlowCaptureError, R>> for Error
2093where
2094 R: Send + Sync + std::fmt::Debug + 'static,
2095{
2096 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_flow_capture::StartFlowCaptureError, R>) -> Self {
2097 match err {
2098 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2099 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2100 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2101 source: err.into(),
2102 }),
2103 }
2104 }
2105}
2106impl From<crate::operation::start_flow_capture::StartFlowCaptureError> for Error {
2107 fn from(err: crate::operation::start_flow_capture::StartFlowCaptureError) -> Self {
2108 match err {
2109 crate::operation::start_flow_capture::StartFlowCaptureError::InternalServerError(inner) => Error::InternalServerError(inner),
2110 crate::operation::start_flow_capture::StartFlowCaptureError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
2111 crate::operation::start_flow_capture::StartFlowCaptureError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2112 crate::operation::start_flow_capture::StartFlowCaptureError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2113 crate::operation::start_flow_capture::StartFlowCaptureError::Unhandled(inner) => Error::Unhandled(inner),
2114 }
2115 }
2116}
2117impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_flow_flush::StartFlowFlushError, R>> for Error
2118where
2119 R: Send + Sync + std::fmt::Debug + 'static,
2120{
2121 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_flow_flush::StartFlowFlushError, R>) -> Self {
2122 match err {
2123 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2124 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2125 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2126 source: err.into(),
2127 }),
2128 }
2129 }
2130}
2131impl From<crate::operation::start_flow_flush::StartFlowFlushError> for Error {
2132 fn from(err: crate::operation::start_flow_flush::StartFlowFlushError) -> Self {
2133 match err {
2134 crate::operation::start_flow_flush::StartFlowFlushError::InternalServerError(inner) => Error::InternalServerError(inner),
2135 crate::operation::start_flow_flush::StartFlowFlushError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
2136 crate::operation::start_flow_flush::StartFlowFlushError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2137 crate::operation::start_flow_flush::StartFlowFlushError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2138 crate::operation::start_flow_flush::StartFlowFlushError::Unhandled(inner) => Error::Unhandled(inner),
2139 }
2140 }
2141}
2142impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
2143where
2144 R: Send + Sync + std::fmt::Debug + 'static,
2145{
2146 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
2147 match err {
2148 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2149 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2150 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2151 source: err.into(),
2152 }),
2153 }
2154 }
2155}
2156impl From<crate::operation::tag_resource::TagResourceError> for Error {
2157 fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
2158 match err {
2159 crate::operation::tag_resource::TagResourceError::InternalServerError(inner) => Error::InternalServerError(inner),
2160 crate::operation::tag_resource::TagResourceError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
2161 crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2162 crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2163 crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
2164 }
2165 }
2166}
2167impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
2168where
2169 R: Send + Sync + std::fmt::Debug + 'static,
2170{
2171 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
2172 match err {
2173 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2174 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2175 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2176 source: err.into(),
2177 }),
2178 }
2179 }
2180}
2181impl From<crate::operation::untag_resource::UntagResourceError> for Error {
2182 fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
2183 match err {
2184 crate::operation::untag_resource::UntagResourceError::InternalServerError(inner) => Error::InternalServerError(inner),
2185 crate::operation::untag_resource::UntagResourceError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
2186 crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2187 crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2188 crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
2189 }
2190 }
2191}
2192impl<R>
2193 From<
2194 ::aws_smithy_runtime_api::client::result::SdkError<
2195 crate::operation::update_availability_zone_change_protection::UpdateAvailabilityZoneChangeProtectionError,
2196 R,
2197 >,
2198 > for Error
2199where
2200 R: Send + Sync + std::fmt::Debug + 'static,
2201{
2202 fn from(
2203 err: ::aws_smithy_runtime_api::client::result::SdkError<
2204 crate::operation::update_availability_zone_change_protection::UpdateAvailabilityZoneChangeProtectionError,
2205 R,
2206 >,
2207 ) -> Self {
2208 match err {
2209 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2210 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2211 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2212 source: err.into(),
2213 }),
2214 }
2215 }
2216}
2217impl From<crate::operation::update_availability_zone_change_protection::UpdateAvailabilityZoneChangeProtectionError> for Error {
2218 fn from(err: crate::operation::update_availability_zone_change_protection::UpdateAvailabilityZoneChangeProtectionError) -> Self {
2219 match err {
2220 crate::operation::update_availability_zone_change_protection::UpdateAvailabilityZoneChangeProtectionError::InternalServerError(inner) => Error::InternalServerError(inner),
2221 crate::operation::update_availability_zone_change_protection::UpdateAvailabilityZoneChangeProtectionError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
2222 crate::operation::update_availability_zone_change_protection::UpdateAvailabilityZoneChangeProtectionError::InvalidTokenException(inner) => Error::InvalidTokenException(inner),
2223 crate::operation::update_availability_zone_change_protection::UpdateAvailabilityZoneChangeProtectionError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2224 crate::operation::update_availability_zone_change_protection::UpdateAvailabilityZoneChangeProtectionError::ResourceOwnerCheckException(inner) => Error::ResourceOwnerCheckException(inner),
2225 crate::operation::update_availability_zone_change_protection::UpdateAvailabilityZoneChangeProtectionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2226 crate::operation::update_availability_zone_change_protection::UpdateAvailabilityZoneChangeProtectionError::Unhandled(inner) => Error::Unhandled(inner),
2227 }
2228 }
2229}
2230impl<R>
2231 From<
2232 ::aws_smithy_runtime_api::client::result::SdkError<
2233 crate::operation::update_firewall_analysis_settings::UpdateFirewallAnalysisSettingsError,
2234 R,
2235 >,
2236 > for Error
2237where
2238 R: Send + Sync + std::fmt::Debug + 'static,
2239{
2240 fn from(
2241 err: ::aws_smithy_runtime_api::client::result::SdkError<
2242 crate::operation::update_firewall_analysis_settings::UpdateFirewallAnalysisSettingsError,
2243 R,
2244 >,
2245 ) -> Self {
2246 match err {
2247 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2248 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2249 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2250 source: err.into(),
2251 }),
2252 }
2253 }
2254}
2255impl From<crate::operation::update_firewall_analysis_settings::UpdateFirewallAnalysisSettingsError> for Error {
2256 fn from(err: crate::operation::update_firewall_analysis_settings::UpdateFirewallAnalysisSettingsError) -> Self {
2257 match err {
2258 crate::operation::update_firewall_analysis_settings::UpdateFirewallAnalysisSettingsError::InternalServerError(inner) => {
2259 Error::InternalServerError(inner)
2260 }
2261 crate::operation::update_firewall_analysis_settings::UpdateFirewallAnalysisSettingsError::InvalidRequestException(inner) => {
2262 Error::InvalidRequestException(inner)
2263 }
2264 crate::operation::update_firewall_analysis_settings::UpdateFirewallAnalysisSettingsError::InvalidTokenException(inner) => {
2265 Error::InvalidTokenException(inner)
2266 }
2267 crate::operation::update_firewall_analysis_settings::UpdateFirewallAnalysisSettingsError::ResourceNotFoundException(inner) => {
2268 Error::ResourceNotFoundException(inner)
2269 }
2270 crate::operation::update_firewall_analysis_settings::UpdateFirewallAnalysisSettingsError::ThrottlingException(inner) => {
2271 Error::ThrottlingException(inner)
2272 }
2273 crate::operation::update_firewall_analysis_settings::UpdateFirewallAnalysisSettingsError::Unhandled(inner) => Error::Unhandled(inner),
2274 }
2275 }
2276}
2277impl<R>
2278 From<
2279 ::aws_smithy_runtime_api::client::result::SdkError<
2280 crate::operation::update_firewall_delete_protection::UpdateFirewallDeleteProtectionError,
2281 R,
2282 >,
2283 > for Error
2284where
2285 R: Send + Sync + std::fmt::Debug + 'static,
2286{
2287 fn from(
2288 err: ::aws_smithy_runtime_api::client::result::SdkError<
2289 crate::operation::update_firewall_delete_protection::UpdateFirewallDeleteProtectionError,
2290 R,
2291 >,
2292 ) -> Self {
2293 match err {
2294 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2295 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2296 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2297 source: err.into(),
2298 }),
2299 }
2300 }
2301}
2302impl From<crate::operation::update_firewall_delete_protection::UpdateFirewallDeleteProtectionError> for Error {
2303 fn from(err: crate::operation::update_firewall_delete_protection::UpdateFirewallDeleteProtectionError) -> Self {
2304 match err {
2305 crate::operation::update_firewall_delete_protection::UpdateFirewallDeleteProtectionError::InternalServerError(inner) => {
2306 Error::InternalServerError(inner)
2307 }
2308 crate::operation::update_firewall_delete_protection::UpdateFirewallDeleteProtectionError::InvalidRequestException(inner) => {
2309 Error::InvalidRequestException(inner)
2310 }
2311 crate::operation::update_firewall_delete_protection::UpdateFirewallDeleteProtectionError::InvalidTokenException(inner) => {
2312 Error::InvalidTokenException(inner)
2313 }
2314 crate::operation::update_firewall_delete_protection::UpdateFirewallDeleteProtectionError::ResourceNotFoundException(inner) => {
2315 Error::ResourceNotFoundException(inner)
2316 }
2317 crate::operation::update_firewall_delete_protection::UpdateFirewallDeleteProtectionError::ResourceOwnerCheckException(inner) => {
2318 Error::ResourceOwnerCheckException(inner)
2319 }
2320 crate::operation::update_firewall_delete_protection::UpdateFirewallDeleteProtectionError::ThrottlingException(inner) => {
2321 Error::ThrottlingException(inner)
2322 }
2323 crate::operation::update_firewall_delete_protection::UpdateFirewallDeleteProtectionError::Unhandled(inner) => Error::Unhandled(inner),
2324 }
2325 }
2326}
2327impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_firewall_description::UpdateFirewallDescriptionError, R>>
2328 for Error
2329where
2330 R: Send + Sync + std::fmt::Debug + 'static,
2331{
2332 fn from(
2333 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_firewall_description::UpdateFirewallDescriptionError, R>,
2334 ) -> Self {
2335 match err {
2336 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2337 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2338 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2339 source: err.into(),
2340 }),
2341 }
2342 }
2343}
2344impl From<crate::operation::update_firewall_description::UpdateFirewallDescriptionError> for Error {
2345 fn from(err: crate::operation::update_firewall_description::UpdateFirewallDescriptionError) -> Self {
2346 match err {
2347 crate::operation::update_firewall_description::UpdateFirewallDescriptionError::InternalServerError(inner) => {
2348 Error::InternalServerError(inner)
2349 }
2350 crate::operation::update_firewall_description::UpdateFirewallDescriptionError::InvalidRequestException(inner) => {
2351 Error::InvalidRequestException(inner)
2352 }
2353 crate::operation::update_firewall_description::UpdateFirewallDescriptionError::InvalidTokenException(inner) => {
2354 Error::InvalidTokenException(inner)
2355 }
2356 crate::operation::update_firewall_description::UpdateFirewallDescriptionError::ResourceNotFoundException(inner) => {
2357 Error::ResourceNotFoundException(inner)
2358 }
2359 crate::operation::update_firewall_description::UpdateFirewallDescriptionError::ThrottlingException(inner) => {
2360 Error::ThrottlingException(inner)
2361 }
2362 crate::operation::update_firewall_description::UpdateFirewallDescriptionError::Unhandled(inner) => Error::Unhandled(inner),
2363 }
2364 }
2365}
2366impl<R>
2367 From<
2368 ::aws_smithy_runtime_api::client::result::SdkError<
2369 crate::operation::update_firewall_encryption_configuration::UpdateFirewallEncryptionConfigurationError,
2370 R,
2371 >,
2372 > for Error
2373where
2374 R: Send + Sync + std::fmt::Debug + 'static,
2375{
2376 fn from(
2377 err: ::aws_smithy_runtime_api::client::result::SdkError<
2378 crate::operation::update_firewall_encryption_configuration::UpdateFirewallEncryptionConfigurationError,
2379 R,
2380 >,
2381 ) -> Self {
2382 match err {
2383 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2384 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2385 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2386 source: err.into(),
2387 }),
2388 }
2389 }
2390}
2391impl From<crate::operation::update_firewall_encryption_configuration::UpdateFirewallEncryptionConfigurationError> for Error {
2392 fn from(err: crate::operation::update_firewall_encryption_configuration::UpdateFirewallEncryptionConfigurationError) -> Self {
2393 match err {
2394 crate::operation::update_firewall_encryption_configuration::UpdateFirewallEncryptionConfigurationError::InternalServerError(inner) => {
2395 Error::InternalServerError(inner)
2396 }
2397 crate::operation::update_firewall_encryption_configuration::UpdateFirewallEncryptionConfigurationError::InvalidRequestException(
2398 inner,
2399 ) => Error::InvalidRequestException(inner),
2400 crate::operation::update_firewall_encryption_configuration::UpdateFirewallEncryptionConfigurationError::InvalidTokenException(inner) => {
2401 Error::InvalidTokenException(inner)
2402 }
2403 crate::operation::update_firewall_encryption_configuration::UpdateFirewallEncryptionConfigurationError::ResourceNotFoundException(
2404 inner,
2405 ) => Error::ResourceNotFoundException(inner),
2406 crate::operation::update_firewall_encryption_configuration::UpdateFirewallEncryptionConfigurationError::ResourceOwnerCheckException(
2407 inner,
2408 ) => Error::ResourceOwnerCheckException(inner),
2409 crate::operation::update_firewall_encryption_configuration::UpdateFirewallEncryptionConfigurationError::ThrottlingException(inner) => {
2410 Error::ThrottlingException(inner)
2411 }
2412 crate::operation::update_firewall_encryption_configuration::UpdateFirewallEncryptionConfigurationError::Unhandled(inner) => {
2413 Error::Unhandled(inner)
2414 }
2415 }
2416 }
2417}
2418impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_firewall_policy::UpdateFirewallPolicyError, R>> for Error
2419where
2420 R: Send + Sync + std::fmt::Debug + 'static,
2421{
2422 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_firewall_policy::UpdateFirewallPolicyError, R>) -> Self {
2423 match err {
2424 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2425 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2426 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2427 source: err.into(),
2428 }),
2429 }
2430 }
2431}
2432impl From<crate::operation::update_firewall_policy::UpdateFirewallPolicyError> for Error {
2433 fn from(err: crate::operation::update_firewall_policy::UpdateFirewallPolicyError) -> Self {
2434 match err {
2435 crate::operation::update_firewall_policy::UpdateFirewallPolicyError::InternalServerError(inner) => Error::InternalServerError(inner),
2436 crate::operation::update_firewall_policy::UpdateFirewallPolicyError::InvalidRequestException(inner) => {
2437 Error::InvalidRequestException(inner)
2438 }
2439 crate::operation::update_firewall_policy::UpdateFirewallPolicyError::InvalidTokenException(inner) => Error::InvalidTokenException(inner),
2440 crate::operation::update_firewall_policy::UpdateFirewallPolicyError::ResourceNotFoundException(inner) => {
2441 Error::ResourceNotFoundException(inner)
2442 }
2443 crate::operation::update_firewall_policy::UpdateFirewallPolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2444 crate::operation::update_firewall_policy::UpdateFirewallPolicyError::Unhandled(inner) => Error::Unhandled(inner),
2445 }
2446 }
2447}
2448impl<R>
2449 From<
2450 ::aws_smithy_runtime_api::client::result::SdkError<
2451 crate::operation::update_firewall_policy_change_protection::UpdateFirewallPolicyChangeProtectionError,
2452 R,
2453 >,
2454 > for Error
2455where
2456 R: Send + Sync + std::fmt::Debug + 'static,
2457{
2458 fn from(
2459 err: ::aws_smithy_runtime_api::client::result::SdkError<
2460 crate::operation::update_firewall_policy_change_protection::UpdateFirewallPolicyChangeProtectionError,
2461 R,
2462 >,
2463 ) -> Self {
2464 match err {
2465 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2466 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2467 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2468 source: err.into(),
2469 }),
2470 }
2471 }
2472}
2473impl From<crate::operation::update_firewall_policy_change_protection::UpdateFirewallPolicyChangeProtectionError> for Error {
2474 fn from(err: crate::operation::update_firewall_policy_change_protection::UpdateFirewallPolicyChangeProtectionError) -> Self {
2475 match err {
2476 crate::operation::update_firewall_policy_change_protection::UpdateFirewallPolicyChangeProtectionError::InternalServerError(inner) => {
2477 Error::InternalServerError(inner)
2478 }
2479 crate::operation::update_firewall_policy_change_protection::UpdateFirewallPolicyChangeProtectionError::InvalidRequestException(inner) => {
2480 Error::InvalidRequestException(inner)
2481 }
2482 crate::operation::update_firewall_policy_change_protection::UpdateFirewallPolicyChangeProtectionError::InvalidTokenException(inner) => {
2483 Error::InvalidTokenException(inner)
2484 }
2485 crate::operation::update_firewall_policy_change_protection::UpdateFirewallPolicyChangeProtectionError::ResourceNotFoundException(
2486 inner,
2487 ) => Error::ResourceNotFoundException(inner),
2488 crate::operation::update_firewall_policy_change_protection::UpdateFirewallPolicyChangeProtectionError::ResourceOwnerCheckException(
2489 inner,
2490 ) => Error::ResourceOwnerCheckException(inner),
2491 crate::operation::update_firewall_policy_change_protection::UpdateFirewallPolicyChangeProtectionError::ThrottlingException(inner) => {
2492 Error::ThrottlingException(inner)
2493 }
2494 crate::operation::update_firewall_policy_change_protection::UpdateFirewallPolicyChangeProtectionError::Unhandled(inner) => {
2495 Error::Unhandled(inner)
2496 }
2497 }
2498 }
2499}
2500impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_logging_configuration::UpdateLoggingConfigurationError, R>>
2501 for Error
2502where
2503 R: Send + Sync + std::fmt::Debug + 'static,
2504{
2505 fn from(
2506 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_logging_configuration::UpdateLoggingConfigurationError, R>,
2507 ) -> Self {
2508 match err {
2509 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2510 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2511 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2512 source: err.into(),
2513 }),
2514 }
2515 }
2516}
2517impl From<crate::operation::update_logging_configuration::UpdateLoggingConfigurationError> for Error {
2518 fn from(err: crate::operation::update_logging_configuration::UpdateLoggingConfigurationError) -> Self {
2519 match err {
2520 crate::operation::update_logging_configuration::UpdateLoggingConfigurationError::InternalServerError(inner) => {
2521 Error::InternalServerError(inner)
2522 }
2523 crate::operation::update_logging_configuration::UpdateLoggingConfigurationError::InvalidRequestException(inner) => {
2524 Error::InvalidRequestException(inner)
2525 }
2526 crate::operation::update_logging_configuration::UpdateLoggingConfigurationError::InvalidTokenException(inner) => {
2527 Error::InvalidTokenException(inner)
2528 }
2529 crate::operation::update_logging_configuration::UpdateLoggingConfigurationError::LogDestinationPermissionException(inner) => {
2530 Error::LogDestinationPermissionException(inner)
2531 }
2532 crate::operation::update_logging_configuration::UpdateLoggingConfigurationError::ResourceNotFoundException(inner) => {
2533 Error::ResourceNotFoundException(inner)
2534 }
2535 crate::operation::update_logging_configuration::UpdateLoggingConfigurationError::ThrottlingException(inner) => {
2536 Error::ThrottlingException(inner)
2537 }
2538 crate::operation::update_logging_configuration::UpdateLoggingConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
2539 }
2540 }
2541}
2542impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_proxy::UpdateProxyError, R>> for Error
2543where
2544 R: Send + Sync + std::fmt::Debug + 'static,
2545{
2546 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_proxy::UpdateProxyError, R>) -> Self {
2547 match err {
2548 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2549 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2550 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2551 source: err.into(),
2552 }),
2553 }
2554 }
2555}
2556impl From<crate::operation::update_proxy::UpdateProxyError> for Error {
2557 fn from(err: crate::operation::update_proxy::UpdateProxyError) -> Self {
2558 match err {
2559 crate::operation::update_proxy::UpdateProxyError::InternalServerError(inner) => Error::InternalServerError(inner),
2560 crate::operation::update_proxy::UpdateProxyError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
2561 crate::operation::update_proxy::UpdateProxyError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2562 crate::operation::update_proxy::UpdateProxyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2563 crate::operation::update_proxy::UpdateProxyError::UnsupportedOperationException(inner) => Error::UnsupportedOperationException(inner),
2564 crate::operation::update_proxy::UpdateProxyError::Unhandled(inner) => Error::Unhandled(inner),
2565 }
2566 }
2567}
2568impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_proxy_configuration::UpdateProxyConfigurationError, R>>
2569 for Error
2570where
2571 R: Send + Sync + std::fmt::Debug + 'static,
2572{
2573 fn from(
2574 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_proxy_configuration::UpdateProxyConfigurationError, R>,
2575 ) -> Self {
2576 match err {
2577 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2578 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2579 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2580 source: err.into(),
2581 }),
2582 }
2583 }
2584}
2585impl From<crate::operation::update_proxy_configuration::UpdateProxyConfigurationError> for Error {
2586 fn from(err: crate::operation::update_proxy_configuration::UpdateProxyConfigurationError) -> Self {
2587 match err {
2588 crate::operation::update_proxy_configuration::UpdateProxyConfigurationError::InternalServerError(inner) => {
2589 Error::InternalServerError(inner)
2590 }
2591 crate::operation::update_proxy_configuration::UpdateProxyConfigurationError::InvalidRequestException(inner) => {
2592 Error::InvalidRequestException(inner)
2593 }
2594 crate::operation::update_proxy_configuration::UpdateProxyConfigurationError::ResourceNotFoundException(inner) => {
2595 Error::ResourceNotFoundException(inner)
2596 }
2597 crate::operation::update_proxy_configuration::UpdateProxyConfigurationError::ThrottlingException(inner) => {
2598 Error::ThrottlingException(inner)
2599 }
2600 crate::operation::update_proxy_configuration::UpdateProxyConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
2601 }
2602 }
2603}
2604impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_proxy_rule::UpdateProxyRuleError, R>> for Error
2605where
2606 R: Send + Sync + std::fmt::Debug + 'static,
2607{
2608 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_proxy_rule::UpdateProxyRuleError, R>) -> Self {
2609 match err {
2610 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2611 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2612 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2613 source: err.into(),
2614 }),
2615 }
2616 }
2617}
2618impl From<crate::operation::update_proxy_rule::UpdateProxyRuleError> for Error {
2619 fn from(err: crate::operation::update_proxy_rule::UpdateProxyRuleError) -> Self {
2620 match err {
2621 crate::operation::update_proxy_rule::UpdateProxyRuleError::InternalServerError(inner) => Error::InternalServerError(inner),
2622 crate::operation::update_proxy_rule::UpdateProxyRuleError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
2623 crate::operation::update_proxy_rule::UpdateProxyRuleError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2624 crate::operation::update_proxy_rule::UpdateProxyRuleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2625 crate::operation::update_proxy_rule::UpdateProxyRuleError::Unhandled(inner) => Error::Unhandled(inner),
2626 }
2627 }
2628}
2629impl<R>
2630 From<
2631 ::aws_smithy_runtime_api::client::result::SdkError<
2632 crate::operation::update_proxy_rule_group_priorities::UpdateProxyRuleGroupPrioritiesError,
2633 R,
2634 >,
2635 > for Error
2636where
2637 R: Send + Sync + std::fmt::Debug + 'static,
2638{
2639 fn from(
2640 err: ::aws_smithy_runtime_api::client::result::SdkError<
2641 crate::operation::update_proxy_rule_group_priorities::UpdateProxyRuleGroupPrioritiesError,
2642 R,
2643 >,
2644 ) -> Self {
2645 match err {
2646 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2647 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2648 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2649 source: err.into(),
2650 }),
2651 }
2652 }
2653}
2654impl From<crate::operation::update_proxy_rule_group_priorities::UpdateProxyRuleGroupPrioritiesError> for Error {
2655 fn from(err: crate::operation::update_proxy_rule_group_priorities::UpdateProxyRuleGroupPrioritiesError) -> Self {
2656 match err {
2657 crate::operation::update_proxy_rule_group_priorities::UpdateProxyRuleGroupPrioritiesError::InternalServerError(inner) => {
2658 Error::InternalServerError(inner)
2659 }
2660 crate::operation::update_proxy_rule_group_priorities::UpdateProxyRuleGroupPrioritiesError::InvalidRequestException(inner) => {
2661 Error::InvalidRequestException(inner)
2662 }
2663 crate::operation::update_proxy_rule_group_priorities::UpdateProxyRuleGroupPrioritiesError::ResourceNotFoundException(inner) => {
2664 Error::ResourceNotFoundException(inner)
2665 }
2666 crate::operation::update_proxy_rule_group_priorities::UpdateProxyRuleGroupPrioritiesError::ThrottlingException(inner) => {
2667 Error::ThrottlingException(inner)
2668 }
2669 crate::operation::update_proxy_rule_group_priorities::UpdateProxyRuleGroupPrioritiesError::Unhandled(inner) => Error::Unhandled(inner),
2670 }
2671 }
2672}
2673impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_proxy_rule_priorities::UpdateProxyRulePrioritiesError, R>>
2674 for Error
2675where
2676 R: Send + Sync + std::fmt::Debug + 'static,
2677{
2678 fn from(
2679 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_proxy_rule_priorities::UpdateProxyRulePrioritiesError, R>,
2680 ) -> Self {
2681 match err {
2682 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2683 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2684 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2685 source: err.into(),
2686 }),
2687 }
2688 }
2689}
2690impl From<crate::operation::update_proxy_rule_priorities::UpdateProxyRulePrioritiesError> for Error {
2691 fn from(err: crate::operation::update_proxy_rule_priorities::UpdateProxyRulePrioritiesError) -> Self {
2692 match err {
2693 crate::operation::update_proxy_rule_priorities::UpdateProxyRulePrioritiesError::InternalServerError(inner) => {
2694 Error::InternalServerError(inner)
2695 }
2696 crate::operation::update_proxy_rule_priorities::UpdateProxyRulePrioritiesError::InvalidRequestException(inner) => {
2697 Error::InvalidRequestException(inner)
2698 }
2699 crate::operation::update_proxy_rule_priorities::UpdateProxyRulePrioritiesError::ResourceNotFoundException(inner) => {
2700 Error::ResourceNotFoundException(inner)
2701 }
2702 crate::operation::update_proxy_rule_priorities::UpdateProxyRulePrioritiesError::ThrottlingException(inner) => {
2703 Error::ThrottlingException(inner)
2704 }
2705 crate::operation::update_proxy_rule_priorities::UpdateProxyRulePrioritiesError::Unhandled(inner) => Error::Unhandled(inner),
2706 }
2707 }
2708}
2709impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_rule_group::UpdateRuleGroupError, R>> for Error
2710where
2711 R: Send + Sync + std::fmt::Debug + 'static,
2712{
2713 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_rule_group::UpdateRuleGroupError, R>) -> Self {
2714 match err {
2715 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2716 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2717 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2718 source: err.into(),
2719 }),
2720 }
2721 }
2722}
2723impl From<crate::operation::update_rule_group::UpdateRuleGroupError> for Error {
2724 fn from(err: crate::operation::update_rule_group::UpdateRuleGroupError) -> Self {
2725 match err {
2726 crate::operation::update_rule_group::UpdateRuleGroupError::InternalServerError(inner) => Error::InternalServerError(inner),
2727 crate::operation::update_rule_group::UpdateRuleGroupError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
2728 crate::operation::update_rule_group::UpdateRuleGroupError::InvalidTokenException(inner) => Error::InvalidTokenException(inner),
2729 crate::operation::update_rule_group::UpdateRuleGroupError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2730 crate::operation::update_rule_group::UpdateRuleGroupError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2731 crate::operation::update_rule_group::UpdateRuleGroupError::Unhandled(inner) => Error::Unhandled(inner),
2732 }
2733 }
2734}
2735impl<R>
2736 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_subnet_change_protection::UpdateSubnetChangeProtectionError, R>>
2737 for Error
2738where
2739 R: Send + Sync + std::fmt::Debug + 'static,
2740{
2741 fn from(
2742 err: ::aws_smithy_runtime_api::client::result::SdkError<
2743 crate::operation::update_subnet_change_protection::UpdateSubnetChangeProtectionError,
2744 R,
2745 >,
2746 ) -> Self {
2747 match err {
2748 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2749 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2750 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2751 source: err.into(),
2752 }),
2753 }
2754 }
2755}
2756impl From<crate::operation::update_subnet_change_protection::UpdateSubnetChangeProtectionError> for Error {
2757 fn from(err: crate::operation::update_subnet_change_protection::UpdateSubnetChangeProtectionError) -> Self {
2758 match err {
2759 crate::operation::update_subnet_change_protection::UpdateSubnetChangeProtectionError::InternalServerError(inner) => {
2760 Error::InternalServerError(inner)
2761 }
2762 crate::operation::update_subnet_change_protection::UpdateSubnetChangeProtectionError::InvalidRequestException(inner) => {
2763 Error::InvalidRequestException(inner)
2764 }
2765 crate::operation::update_subnet_change_protection::UpdateSubnetChangeProtectionError::InvalidTokenException(inner) => {
2766 Error::InvalidTokenException(inner)
2767 }
2768 crate::operation::update_subnet_change_protection::UpdateSubnetChangeProtectionError::ResourceNotFoundException(inner) => {
2769 Error::ResourceNotFoundException(inner)
2770 }
2771 crate::operation::update_subnet_change_protection::UpdateSubnetChangeProtectionError::ResourceOwnerCheckException(inner) => {
2772 Error::ResourceOwnerCheckException(inner)
2773 }
2774 crate::operation::update_subnet_change_protection::UpdateSubnetChangeProtectionError::ThrottlingException(inner) => {
2775 Error::ThrottlingException(inner)
2776 }
2777 crate::operation::update_subnet_change_protection::UpdateSubnetChangeProtectionError::Unhandled(inner) => Error::Unhandled(inner),
2778 }
2779 }
2780}
2781impl<R>
2782 From<
2783 ::aws_smithy_runtime_api::client::result::SdkError<
2784 crate::operation::update_tls_inspection_configuration::UpdateTLSInspectionConfigurationError,
2785 R,
2786 >,
2787 > for Error
2788where
2789 R: Send + Sync + std::fmt::Debug + 'static,
2790{
2791 fn from(
2792 err: ::aws_smithy_runtime_api::client::result::SdkError<
2793 crate::operation::update_tls_inspection_configuration::UpdateTLSInspectionConfigurationError,
2794 R,
2795 >,
2796 ) -> Self {
2797 match err {
2798 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2799 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2800 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2801 source: err.into(),
2802 }),
2803 }
2804 }
2805}
2806impl From<crate::operation::update_tls_inspection_configuration::UpdateTLSInspectionConfigurationError> for Error {
2807 fn from(err: crate::operation::update_tls_inspection_configuration::UpdateTLSInspectionConfigurationError) -> Self {
2808 match err {
2809 crate::operation::update_tls_inspection_configuration::UpdateTLSInspectionConfigurationError::InternalServerError(inner) => {
2810 Error::InternalServerError(inner)
2811 }
2812 crate::operation::update_tls_inspection_configuration::UpdateTLSInspectionConfigurationError::InvalidRequestException(inner) => {
2813 Error::InvalidRequestException(inner)
2814 }
2815 crate::operation::update_tls_inspection_configuration::UpdateTLSInspectionConfigurationError::InvalidTokenException(inner) => {
2816 Error::InvalidTokenException(inner)
2817 }
2818 crate::operation::update_tls_inspection_configuration::UpdateTLSInspectionConfigurationError::ResourceNotFoundException(inner) => {
2819 Error::ResourceNotFoundException(inner)
2820 }
2821 crate::operation::update_tls_inspection_configuration::UpdateTLSInspectionConfigurationError::ThrottlingException(inner) => {
2822 Error::ThrottlingException(inner)
2823 }
2824 crate::operation::update_tls_inspection_configuration::UpdateTLSInspectionConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
2825 }
2826 }
2827}
2828impl ::std::error::Error for Error {
2829 fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
2830 match self {
2831 Error::InsufficientCapacityException(inner) => inner.source(),
2832 Error::InternalServerError(inner) => inner.source(),
2833 Error::InvalidOperationException(inner) => inner.source(),
2834 Error::InvalidRequestException(inner) => inner.source(),
2835 Error::InvalidResourcePolicyException(inner) => inner.source(),
2836 Error::InvalidTokenException(inner) => inner.source(),
2837 Error::LimitExceededException(inner) => inner.source(),
2838 Error::LogDestinationPermissionException(inner) => inner.source(),
2839 Error::ResourceNotFoundException(inner) => inner.source(),
2840 Error::ResourceOwnerCheckException(inner) => inner.source(),
2841 Error::ThrottlingException(inner) => inner.source(),
2842 Error::UnsupportedOperationException(inner) => inner.source(),
2843 Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
2844 }
2845 }
2846}
2847impl ::aws_types::request_id::RequestId for Error {
2848 fn request_id(&self) -> Option<&str> {
2849 match self {
2850 Self::InsufficientCapacityException(e) => e.request_id(),
2851 Self::InternalServerError(e) => e.request_id(),
2852 Self::InvalidOperationException(e) => e.request_id(),
2853 Self::InvalidRequestException(e) => e.request_id(),
2854 Self::InvalidResourcePolicyException(e) => e.request_id(),
2855 Self::InvalidTokenException(e) => e.request_id(),
2856 Self::LimitExceededException(e) => e.request_id(),
2857 Self::LogDestinationPermissionException(e) => e.request_id(),
2858 Self::ResourceNotFoundException(e) => e.request_id(),
2859 Self::ResourceOwnerCheckException(e) => e.request_id(),
2860 Self::ThrottlingException(e) => e.request_id(),
2861 Self::UnsupportedOperationException(e) => e.request_id(),
2862 Self::Unhandled(e) => e.meta.request_id(),
2863 }
2864 }
2865}