1#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6 AccessDeniedException(crate::types::error::AccessDeniedException),
8 ConflictException(crate::types::error::ConflictException),
10 InternalServerException(crate::types::error::InternalServerException),
12 ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
14 ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
16 ThrottlingException(crate::types::error::ThrottlingException),
18 ValidationException(crate::types::error::ValidationException),
20 #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
22 variable wildcard pattern and check `.code()`:
23 \
24 `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
25 \
26 See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
27 Unhandled(crate::error::sealed_unhandled::Unhandled),
28}
29impl ::std::fmt::Display for Error {
30 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
31 match self {
32 Error::AccessDeniedException(inner) => inner.fmt(f),
33 Error::ConflictException(inner) => inner.fmt(f),
34 Error::InternalServerException(inner) => inner.fmt(f),
35 Error::ResourceNotFoundException(inner) => inner.fmt(f),
36 Error::ServiceQuotaExceededException(inner) => inner.fmt(f),
37 Error::ThrottlingException(inner) => inner.fmt(f),
38 Error::ValidationException(inner) => inner.fmt(f),
39 Error::Unhandled(_) => {
40 if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
41 write!(f, "unhandled error ({code})")
42 } else {
43 f.write_str("unhandled error")
44 }
45 }
46 }
47 }
48}
49impl From<::aws_smithy_types::error::operation::BuildError> for Error {
50 fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
51 Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
52 source: value.into(),
53 meta: ::std::default::Default::default(),
54 })
55 }
56}
57impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
58 fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
59 match self {
60 Self::AccessDeniedException(inner) => inner.meta(),
61 Self::ConflictException(inner) => inner.meta(),
62 Self::InternalServerException(inner) => inner.meta(),
63 Self::ResourceNotFoundException(inner) => inner.meta(),
64 Self::ServiceQuotaExceededException(inner) => inner.meta(),
65 Self::ThrottlingException(inner) => inner.meta(),
66 Self::ValidationException(inner) => inner.meta(),
67 Self::Unhandled(inner) => &inner.meta,
68 }
69 }
70}
71impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_hosted_zone::AssociateHostedZoneError, R>> for Error
72where
73 R: Send + Sync + std::fmt::Debug + 'static,
74{
75 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_hosted_zone::AssociateHostedZoneError, R>) -> Self {
76 match err {
77 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
78 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
79 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
80 source: err.into(),
81 }),
82 }
83 }
84}
85impl From<crate::operation::associate_hosted_zone::AssociateHostedZoneError> for Error {
86 fn from(err: crate::operation::associate_hosted_zone::AssociateHostedZoneError) -> Self {
87 match err {
88 crate::operation::associate_hosted_zone::AssociateHostedZoneError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
89 crate::operation::associate_hosted_zone::AssociateHostedZoneError::ConflictException(inner) => Error::ConflictException(inner),
90 crate::operation::associate_hosted_zone::AssociateHostedZoneError::InternalServerException(inner) => {
91 Error::InternalServerException(inner)
92 }
93 crate::operation::associate_hosted_zone::AssociateHostedZoneError::ResourceNotFoundException(inner) => {
94 Error::ResourceNotFoundException(inner)
95 }
96 crate::operation::associate_hosted_zone::AssociateHostedZoneError::ServiceQuotaExceededException(inner) => {
97 Error::ServiceQuotaExceededException(inner)
98 }
99 crate::operation::associate_hosted_zone::AssociateHostedZoneError::ThrottlingException(inner) => Error::ThrottlingException(inner),
100 crate::operation::associate_hosted_zone::AssociateHostedZoneError::ValidationException(inner) => Error::ValidationException(inner),
101 crate::operation::associate_hosted_zone::AssociateHostedZoneError::Unhandled(inner) => Error::Unhandled(inner),
102 }
103 }
104}
105impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_create_firewall_rule::BatchCreateFirewallRuleError, R>>
106 for Error
107where
108 R: Send + Sync + std::fmt::Debug + 'static,
109{
110 fn from(
111 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_create_firewall_rule::BatchCreateFirewallRuleError, R>,
112 ) -> Self {
113 match err {
114 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
115 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
116 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
117 source: err.into(),
118 }),
119 }
120 }
121}
122impl From<crate::operation::batch_create_firewall_rule::BatchCreateFirewallRuleError> for Error {
123 fn from(err: crate::operation::batch_create_firewall_rule::BatchCreateFirewallRuleError) -> Self {
124 match err {
125 crate::operation::batch_create_firewall_rule::BatchCreateFirewallRuleError::AccessDeniedException(inner) => {
126 Error::AccessDeniedException(inner)
127 }
128 crate::operation::batch_create_firewall_rule::BatchCreateFirewallRuleError::InternalServerException(inner) => {
129 Error::InternalServerException(inner)
130 }
131 crate::operation::batch_create_firewall_rule::BatchCreateFirewallRuleError::ThrottlingException(inner) => {
132 Error::ThrottlingException(inner)
133 }
134 crate::operation::batch_create_firewall_rule::BatchCreateFirewallRuleError::ValidationException(inner) => {
135 Error::ValidationException(inner)
136 }
137 crate::operation::batch_create_firewall_rule::BatchCreateFirewallRuleError::Unhandled(inner) => Error::Unhandled(inner),
138 }
139 }
140}
141impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_delete_firewall_rule::BatchDeleteFirewallRuleError, R>>
142 for Error
143where
144 R: Send + Sync + std::fmt::Debug + 'static,
145{
146 fn from(
147 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_delete_firewall_rule::BatchDeleteFirewallRuleError, R>,
148 ) -> Self {
149 match err {
150 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
151 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
152 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
153 source: err.into(),
154 }),
155 }
156 }
157}
158impl From<crate::operation::batch_delete_firewall_rule::BatchDeleteFirewallRuleError> for Error {
159 fn from(err: crate::operation::batch_delete_firewall_rule::BatchDeleteFirewallRuleError) -> Self {
160 match err {
161 crate::operation::batch_delete_firewall_rule::BatchDeleteFirewallRuleError::AccessDeniedException(inner) => {
162 Error::AccessDeniedException(inner)
163 }
164 crate::operation::batch_delete_firewall_rule::BatchDeleteFirewallRuleError::InternalServerException(inner) => {
165 Error::InternalServerException(inner)
166 }
167 crate::operation::batch_delete_firewall_rule::BatchDeleteFirewallRuleError::ThrottlingException(inner) => {
168 Error::ThrottlingException(inner)
169 }
170 crate::operation::batch_delete_firewall_rule::BatchDeleteFirewallRuleError::ValidationException(inner) => {
171 Error::ValidationException(inner)
172 }
173 crate::operation::batch_delete_firewall_rule::BatchDeleteFirewallRuleError::Unhandled(inner) => Error::Unhandled(inner),
174 }
175 }
176}
177impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_update_firewall_rule::BatchUpdateFirewallRuleError, R>>
178 for Error
179where
180 R: Send + Sync + std::fmt::Debug + 'static,
181{
182 fn from(
183 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_update_firewall_rule::BatchUpdateFirewallRuleError, R>,
184 ) -> Self {
185 match err {
186 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
187 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
188 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
189 source: err.into(),
190 }),
191 }
192 }
193}
194impl From<crate::operation::batch_update_firewall_rule::BatchUpdateFirewallRuleError> for Error {
195 fn from(err: crate::operation::batch_update_firewall_rule::BatchUpdateFirewallRuleError) -> Self {
196 match err {
197 crate::operation::batch_update_firewall_rule::BatchUpdateFirewallRuleError::AccessDeniedException(inner) => {
198 Error::AccessDeniedException(inner)
199 }
200 crate::operation::batch_update_firewall_rule::BatchUpdateFirewallRuleError::InternalServerException(inner) => {
201 Error::InternalServerException(inner)
202 }
203 crate::operation::batch_update_firewall_rule::BatchUpdateFirewallRuleError::ThrottlingException(inner) => {
204 Error::ThrottlingException(inner)
205 }
206 crate::operation::batch_update_firewall_rule::BatchUpdateFirewallRuleError::ValidationException(inner) => {
207 Error::ValidationException(inner)
208 }
209 crate::operation::batch_update_firewall_rule::BatchUpdateFirewallRuleError::Unhandled(inner) => Error::Unhandled(inner),
210 }
211 }
212}
213impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_access_source::CreateAccessSourceError, R>> for Error
214where
215 R: Send + Sync + std::fmt::Debug + 'static,
216{
217 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_access_source::CreateAccessSourceError, R>) -> Self {
218 match err {
219 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
220 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
221 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
222 source: err.into(),
223 }),
224 }
225 }
226}
227impl From<crate::operation::create_access_source::CreateAccessSourceError> for Error {
228 fn from(err: crate::operation::create_access_source::CreateAccessSourceError) -> Self {
229 match err {
230 crate::operation::create_access_source::CreateAccessSourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
231 crate::operation::create_access_source::CreateAccessSourceError::ConflictException(inner) => Error::ConflictException(inner),
232 crate::operation::create_access_source::CreateAccessSourceError::InternalServerException(inner) => Error::InternalServerException(inner),
233 crate::operation::create_access_source::CreateAccessSourceError::ResourceNotFoundException(inner) => {
234 Error::ResourceNotFoundException(inner)
235 }
236 crate::operation::create_access_source::CreateAccessSourceError::ServiceQuotaExceededException(inner) => {
237 Error::ServiceQuotaExceededException(inner)
238 }
239 crate::operation::create_access_source::CreateAccessSourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
240 crate::operation::create_access_source::CreateAccessSourceError::ValidationException(inner) => Error::ValidationException(inner),
241 crate::operation::create_access_source::CreateAccessSourceError::Unhandled(inner) => Error::Unhandled(inner),
242 }
243 }
244}
245impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_access_token::CreateAccessTokenError, R>> for Error
246where
247 R: Send + Sync + std::fmt::Debug + 'static,
248{
249 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_access_token::CreateAccessTokenError, R>) -> Self {
250 match err {
251 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
252 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
253 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
254 source: err.into(),
255 }),
256 }
257 }
258}
259impl From<crate::operation::create_access_token::CreateAccessTokenError> for Error {
260 fn from(err: crate::operation::create_access_token::CreateAccessTokenError) -> Self {
261 match err {
262 crate::operation::create_access_token::CreateAccessTokenError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
263 crate::operation::create_access_token::CreateAccessTokenError::ConflictException(inner) => Error::ConflictException(inner),
264 crate::operation::create_access_token::CreateAccessTokenError::InternalServerException(inner) => Error::InternalServerException(inner),
265 crate::operation::create_access_token::CreateAccessTokenError::ResourceNotFoundException(inner) => {
266 Error::ResourceNotFoundException(inner)
267 }
268 crate::operation::create_access_token::CreateAccessTokenError::ServiceQuotaExceededException(inner) => {
269 Error::ServiceQuotaExceededException(inner)
270 }
271 crate::operation::create_access_token::CreateAccessTokenError::ThrottlingException(inner) => Error::ThrottlingException(inner),
272 crate::operation::create_access_token::CreateAccessTokenError::ValidationException(inner) => Error::ValidationException(inner),
273 crate::operation::create_access_token::CreateAccessTokenError::Unhandled(inner) => Error::Unhandled(inner),
274 }
275 }
276}
277impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_dns_view::CreateDNSViewError, R>> for Error
278where
279 R: Send + Sync + std::fmt::Debug + 'static,
280{
281 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_dns_view::CreateDNSViewError, R>) -> Self {
282 match err {
283 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
284 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
285 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
286 source: err.into(),
287 }),
288 }
289 }
290}
291impl From<crate::operation::create_dns_view::CreateDNSViewError> for Error {
292 fn from(err: crate::operation::create_dns_view::CreateDNSViewError) -> Self {
293 match err {
294 crate::operation::create_dns_view::CreateDNSViewError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
295 crate::operation::create_dns_view::CreateDNSViewError::ConflictException(inner) => Error::ConflictException(inner),
296 crate::operation::create_dns_view::CreateDNSViewError::InternalServerException(inner) => Error::InternalServerException(inner),
297 crate::operation::create_dns_view::CreateDNSViewError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
298 crate::operation::create_dns_view::CreateDNSViewError::ServiceQuotaExceededException(inner) => {
299 Error::ServiceQuotaExceededException(inner)
300 }
301 crate::operation::create_dns_view::CreateDNSViewError::ThrottlingException(inner) => Error::ThrottlingException(inner),
302 crate::operation::create_dns_view::CreateDNSViewError::ValidationException(inner) => Error::ValidationException(inner),
303 crate::operation::create_dns_view::CreateDNSViewError::Unhandled(inner) => Error::Unhandled(inner),
304 }
305 }
306}
307impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_firewall_domain_list::CreateFirewallDomainListError, R>>
308 for Error
309where
310 R: Send + Sync + std::fmt::Debug + 'static,
311{
312 fn from(
313 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_firewall_domain_list::CreateFirewallDomainListError, R>,
314 ) -> Self {
315 match err {
316 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
317 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
318 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
319 source: err.into(),
320 }),
321 }
322 }
323}
324impl From<crate::operation::create_firewall_domain_list::CreateFirewallDomainListError> for Error {
325 fn from(err: crate::operation::create_firewall_domain_list::CreateFirewallDomainListError) -> Self {
326 match err {
327 crate::operation::create_firewall_domain_list::CreateFirewallDomainListError::AccessDeniedException(inner) => {
328 Error::AccessDeniedException(inner)
329 }
330 crate::operation::create_firewall_domain_list::CreateFirewallDomainListError::ConflictException(inner) => Error::ConflictException(inner),
331 crate::operation::create_firewall_domain_list::CreateFirewallDomainListError::InternalServerException(inner) => {
332 Error::InternalServerException(inner)
333 }
334 crate::operation::create_firewall_domain_list::CreateFirewallDomainListError::ResourceNotFoundException(inner) => {
335 Error::ResourceNotFoundException(inner)
336 }
337 crate::operation::create_firewall_domain_list::CreateFirewallDomainListError::ServiceQuotaExceededException(inner) => {
338 Error::ServiceQuotaExceededException(inner)
339 }
340 crate::operation::create_firewall_domain_list::CreateFirewallDomainListError::ThrottlingException(inner) => {
341 Error::ThrottlingException(inner)
342 }
343 crate::operation::create_firewall_domain_list::CreateFirewallDomainListError::ValidationException(inner) => {
344 Error::ValidationException(inner)
345 }
346 crate::operation::create_firewall_domain_list::CreateFirewallDomainListError::Unhandled(inner) => Error::Unhandled(inner),
347 }
348 }
349}
350impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_firewall_rule::CreateFirewallRuleError, R>> for Error
351where
352 R: Send + Sync + std::fmt::Debug + 'static,
353{
354 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_firewall_rule::CreateFirewallRuleError, R>) -> Self {
355 match err {
356 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
357 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
358 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
359 source: err.into(),
360 }),
361 }
362 }
363}
364impl From<crate::operation::create_firewall_rule::CreateFirewallRuleError> for Error {
365 fn from(err: crate::operation::create_firewall_rule::CreateFirewallRuleError) -> Self {
366 match err {
367 crate::operation::create_firewall_rule::CreateFirewallRuleError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
368 crate::operation::create_firewall_rule::CreateFirewallRuleError::ConflictException(inner) => Error::ConflictException(inner),
369 crate::operation::create_firewall_rule::CreateFirewallRuleError::InternalServerException(inner) => Error::InternalServerException(inner),
370 crate::operation::create_firewall_rule::CreateFirewallRuleError::ResourceNotFoundException(inner) => {
371 Error::ResourceNotFoundException(inner)
372 }
373 crate::operation::create_firewall_rule::CreateFirewallRuleError::ServiceQuotaExceededException(inner) => {
374 Error::ServiceQuotaExceededException(inner)
375 }
376 crate::operation::create_firewall_rule::CreateFirewallRuleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
377 crate::operation::create_firewall_rule::CreateFirewallRuleError::ValidationException(inner) => Error::ValidationException(inner),
378 crate::operation::create_firewall_rule::CreateFirewallRuleError::Unhandled(inner) => Error::Unhandled(inner),
379 }
380 }
381}
382impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_global_resolver::CreateGlobalResolverError, R>> for Error
383where
384 R: Send + Sync + std::fmt::Debug + 'static,
385{
386 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_global_resolver::CreateGlobalResolverError, R>) -> Self {
387 match err {
388 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
389 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
390 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
391 source: err.into(),
392 }),
393 }
394 }
395}
396impl From<crate::operation::create_global_resolver::CreateGlobalResolverError> for Error {
397 fn from(err: crate::operation::create_global_resolver::CreateGlobalResolverError) -> Self {
398 match err {
399 crate::operation::create_global_resolver::CreateGlobalResolverError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
400 crate::operation::create_global_resolver::CreateGlobalResolverError::ConflictException(inner) => Error::ConflictException(inner),
401 crate::operation::create_global_resolver::CreateGlobalResolverError::InternalServerException(inner) => {
402 Error::InternalServerException(inner)
403 }
404 crate::operation::create_global_resolver::CreateGlobalResolverError::ServiceQuotaExceededException(inner) => {
405 Error::ServiceQuotaExceededException(inner)
406 }
407 crate::operation::create_global_resolver::CreateGlobalResolverError::ThrottlingException(inner) => Error::ThrottlingException(inner),
408 crate::operation::create_global_resolver::CreateGlobalResolverError::ValidationException(inner) => Error::ValidationException(inner),
409 crate::operation::create_global_resolver::CreateGlobalResolverError::Unhandled(inner) => Error::Unhandled(inner),
410 }
411 }
412}
413impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_access_source::DeleteAccessSourceError, R>> for Error
414where
415 R: Send + Sync + std::fmt::Debug + 'static,
416{
417 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_access_source::DeleteAccessSourceError, R>) -> Self {
418 match err {
419 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
420 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
421 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
422 source: err.into(),
423 }),
424 }
425 }
426}
427impl From<crate::operation::delete_access_source::DeleteAccessSourceError> for Error {
428 fn from(err: crate::operation::delete_access_source::DeleteAccessSourceError) -> Self {
429 match err {
430 crate::operation::delete_access_source::DeleteAccessSourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
431 crate::operation::delete_access_source::DeleteAccessSourceError::ConflictException(inner) => Error::ConflictException(inner),
432 crate::operation::delete_access_source::DeleteAccessSourceError::InternalServerException(inner) => Error::InternalServerException(inner),
433 crate::operation::delete_access_source::DeleteAccessSourceError::ResourceNotFoundException(inner) => {
434 Error::ResourceNotFoundException(inner)
435 }
436 crate::operation::delete_access_source::DeleteAccessSourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
437 crate::operation::delete_access_source::DeleteAccessSourceError::ValidationException(inner) => Error::ValidationException(inner),
438 crate::operation::delete_access_source::DeleteAccessSourceError::Unhandled(inner) => Error::Unhandled(inner),
439 }
440 }
441}
442impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_access_token::DeleteAccessTokenError, R>> for Error
443where
444 R: Send + Sync + std::fmt::Debug + 'static,
445{
446 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_access_token::DeleteAccessTokenError, R>) -> Self {
447 match err {
448 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
449 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
450 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
451 source: err.into(),
452 }),
453 }
454 }
455}
456impl From<crate::operation::delete_access_token::DeleteAccessTokenError> for Error {
457 fn from(err: crate::operation::delete_access_token::DeleteAccessTokenError) -> Self {
458 match err {
459 crate::operation::delete_access_token::DeleteAccessTokenError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
460 crate::operation::delete_access_token::DeleteAccessTokenError::InternalServerException(inner) => Error::InternalServerException(inner),
461 crate::operation::delete_access_token::DeleteAccessTokenError::ResourceNotFoundException(inner) => {
462 Error::ResourceNotFoundException(inner)
463 }
464 crate::operation::delete_access_token::DeleteAccessTokenError::ThrottlingException(inner) => Error::ThrottlingException(inner),
465 crate::operation::delete_access_token::DeleteAccessTokenError::ValidationException(inner) => Error::ValidationException(inner),
466 crate::operation::delete_access_token::DeleteAccessTokenError::Unhandled(inner) => Error::Unhandled(inner),
467 }
468 }
469}
470impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_dns_view::DeleteDNSViewError, R>> for Error
471where
472 R: Send + Sync + std::fmt::Debug + 'static,
473{
474 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_dns_view::DeleteDNSViewError, R>) -> Self {
475 match err {
476 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
477 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
478 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
479 source: err.into(),
480 }),
481 }
482 }
483}
484impl From<crate::operation::delete_dns_view::DeleteDNSViewError> for Error {
485 fn from(err: crate::operation::delete_dns_view::DeleteDNSViewError) -> Self {
486 match err {
487 crate::operation::delete_dns_view::DeleteDNSViewError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
488 crate::operation::delete_dns_view::DeleteDNSViewError::ConflictException(inner) => Error::ConflictException(inner),
489 crate::operation::delete_dns_view::DeleteDNSViewError::InternalServerException(inner) => Error::InternalServerException(inner),
490 crate::operation::delete_dns_view::DeleteDNSViewError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
491 crate::operation::delete_dns_view::DeleteDNSViewError::ThrottlingException(inner) => Error::ThrottlingException(inner),
492 crate::operation::delete_dns_view::DeleteDNSViewError::ValidationException(inner) => Error::ValidationException(inner),
493 crate::operation::delete_dns_view::DeleteDNSViewError::Unhandled(inner) => Error::Unhandled(inner),
494 }
495 }
496}
497impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_firewall_domain_list::DeleteFirewallDomainListError, R>>
498 for Error
499where
500 R: Send + Sync + std::fmt::Debug + 'static,
501{
502 fn from(
503 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_firewall_domain_list::DeleteFirewallDomainListError, R>,
504 ) -> Self {
505 match err {
506 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
507 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
508 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
509 source: err.into(),
510 }),
511 }
512 }
513}
514impl From<crate::operation::delete_firewall_domain_list::DeleteFirewallDomainListError> for Error {
515 fn from(err: crate::operation::delete_firewall_domain_list::DeleteFirewallDomainListError) -> Self {
516 match err {
517 crate::operation::delete_firewall_domain_list::DeleteFirewallDomainListError::AccessDeniedException(inner) => {
518 Error::AccessDeniedException(inner)
519 }
520 crate::operation::delete_firewall_domain_list::DeleteFirewallDomainListError::ConflictException(inner) => Error::ConflictException(inner),
521 crate::operation::delete_firewall_domain_list::DeleteFirewallDomainListError::InternalServerException(inner) => {
522 Error::InternalServerException(inner)
523 }
524 crate::operation::delete_firewall_domain_list::DeleteFirewallDomainListError::ResourceNotFoundException(inner) => {
525 Error::ResourceNotFoundException(inner)
526 }
527 crate::operation::delete_firewall_domain_list::DeleteFirewallDomainListError::ThrottlingException(inner) => {
528 Error::ThrottlingException(inner)
529 }
530 crate::operation::delete_firewall_domain_list::DeleteFirewallDomainListError::ValidationException(inner) => {
531 Error::ValidationException(inner)
532 }
533 crate::operation::delete_firewall_domain_list::DeleteFirewallDomainListError::Unhandled(inner) => Error::Unhandled(inner),
534 }
535 }
536}
537impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_firewall_rule::DeleteFirewallRuleError, R>> for Error
538where
539 R: Send + Sync + std::fmt::Debug + 'static,
540{
541 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_firewall_rule::DeleteFirewallRuleError, R>) -> Self {
542 match err {
543 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
544 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
545 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
546 source: err.into(),
547 }),
548 }
549 }
550}
551impl From<crate::operation::delete_firewall_rule::DeleteFirewallRuleError> for Error {
552 fn from(err: crate::operation::delete_firewall_rule::DeleteFirewallRuleError) -> Self {
553 match err {
554 crate::operation::delete_firewall_rule::DeleteFirewallRuleError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
555 crate::operation::delete_firewall_rule::DeleteFirewallRuleError::ConflictException(inner) => Error::ConflictException(inner),
556 crate::operation::delete_firewall_rule::DeleteFirewallRuleError::InternalServerException(inner) => Error::InternalServerException(inner),
557 crate::operation::delete_firewall_rule::DeleteFirewallRuleError::ResourceNotFoundException(inner) => {
558 Error::ResourceNotFoundException(inner)
559 }
560 crate::operation::delete_firewall_rule::DeleteFirewallRuleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
561 crate::operation::delete_firewall_rule::DeleteFirewallRuleError::ValidationException(inner) => Error::ValidationException(inner),
562 crate::operation::delete_firewall_rule::DeleteFirewallRuleError::Unhandled(inner) => Error::Unhandled(inner),
563 }
564 }
565}
566impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_global_resolver::DeleteGlobalResolverError, R>> for Error
567where
568 R: Send + Sync + std::fmt::Debug + 'static,
569{
570 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_global_resolver::DeleteGlobalResolverError, R>) -> Self {
571 match err {
572 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
573 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
574 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
575 source: err.into(),
576 }),
577 }
578 }
579}
580impl From<crate::operation::delete_global_resolver::DeleteGlobalResolverError> for Error {
581 fn from(err: crate::operation::delete_global_resolver::DeleteGlobalResolverError) -> Self {
582 match err {
583 crate::operation::delete_global_resolver::DeleteGlobalResolverError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
584 crate::operation::delete_global_resolver::DeleteGlobalResolverError::ConflictException(inner) => Error::ConflictException(inner),
585 crate::operation::delete_global_resolver::DeleteGlobalResolverError::InternalServerException(inner) => {
586 Error::InternalServerException(inner)
587 }
588 crate::operation::delete_global_resolver::DeleteGlobalResolverError::ResourceNotFoundException(inner) => {
589 Error::ResourceNotFoundException(inner)
590 }
591 crate::operation::delete_global_resolver::DeleteGlobalResolverError::ThrottlingException(inner) => Error::ThrottlingException(inner),
592 crate::operation::delete_global_resolver::DeleteGlobalResolverError::ValidationException(inner) => Error::ValidationException(inner),
593 crate::operation::delete_global_resolver::DeleteGlobalResolverError::Unhandled(inner) => Error::Unhandled(inner),
594 }
595 }
596}
597impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_dns_view::DisableDNSViewError, R>> for Error
598where
599 R: Send + Sync + std::fmt::Debug + 'static,
600{
601 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_dns_view::DisableDNSViewError, R>) -> Self {
602 match err {
603 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
604 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
605 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
606 source: err.into(),
607 }),
608 }
609 }
610}
611impl From<crate::operation::disable_dns_view::DisableDNSViewError> for Error {
612 fn from(err: crate::operation::disable_dns_view::DisableDNSViewError) -> Self {
613 match err {
614 crate::operation::disable_dns_view::DisableDNSViewError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
615 crate::operation::disable_dns_view::DisableDNSViewError::ConflictException(inner) => Error::ConflictException(inner),
616 crate::operation::disable_dns_view::DisableDNSViewError::InternalServerException(inner) => Error::InternalServerException(inner),
617 crate::operation::disable_dns_view::DisableDNSViewError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
618 crate::operation::disable_dns_view::DisableDNSViewError::ThrottlingException(inner) => Error::ThrottlingException(inner),
619 crate::operation::disable_dns_view::DisableDNSViewError::ValidationException(inner) => Error::ValidationException(inner),
620 crate::operation::disable_dns_view::DisableDNSViewError::Unhandled(inner) => Error::Unhandled(inner),
621 }
622 }
623}
624impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_hosted_zone::DisassociateHostedZoneError, R>> for Error
625where
626 R: Send + Sync + std::fmt::Debug + 'static,
627{
628 fn from(
629 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_hosted_zone::DisassociateHostedZoneError, R>,
630 ) -> Self {
631 match err {
632 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
633 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
634 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
635 source: err.into(),
636 }),
637 }
638 }
639}
640impl From<crate::operation::disassociate_hosted_zone::DisassociateHostedZoneError> for Error {
641 fn from(err: crate::operation::disassociate_hosted_zone::DisassociateHostedZoneError) -> Self {
642 match err {
643 crate::operation::disassociate_hosted_zone::DisassociateHostedZoneError::AccessDeniedException(inner) => {
644 Error::AccessDeniedException(inner)
645 }
646 crate::operation::disassociate_hosted_zone::DisassociateHostedZoneError::ConflictException(inner) => Error::ConflictException(inner),
647 crate::operation::disassociate_hosted_zone::DisassociateHostedZoneError::InternalServerException(inner) => {
648 Error::InternalServerException(inner)
649 }
650 crate::operation::disassociate_hosted_zone::DisassociateHostedZoneError::ResourceNotFoundException(inner) => {
651 Error::ResourceNotFoundException(inner)
652 }
653 crate::operation::disassociate_hosted_zone::DisassociateHostedZoneError::ThrottlingException(inner) => Error::ThrottlingException(inner),
654 crate::operation::disassociate_hosted_zone::DisassociateHostedZoneError::ValidationException(inner) => Error::ValidationException(inner),
655 crate::operation::disassociate_hosted_zone::DisassociateHostedZoneError::Unhandled(inner) => Error::Unhandled(inner),
656 }
657 }
658}
659impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_dns_view::EnableDNSViewError, R>> for Error
660where
661 R: Send + Sync + std::fmt::Debug + 'static,
662{
663 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_dns_view::EnableDNSViewError, R>) -> Self {
664 match err {
665 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
666 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
667 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
668 source: err.into(),
669 }),
670 }
671 }
672}
673impl From<crate::operation::enable_dns_view::EnableDNSViewError> for Error {
674 fn from(err: crate::operation::enable_dns_view::EnableDNSViewError) -> Self {
675 match err {
676 crate::operation::enable_dns_view::EnableDNSViewError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
677 crate::operation::enable_dns_view::EnableDNSViewError::ConflictException(inner) => Error::ConflictException(inner),
678 crate::operation::enable_dns_view::EnableDNSViewError::InternalServerException(inner) => Error::InternalServerException(inner),
679 crate::operation::enable_dns_view::EnableDNSViewError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
680 crate::operation::enable_dns_view::EnableDNSViewError::ThrottlingException(inner) => Error::ThrottlingException(inner),
681 crate::operation::enable_dns_view::EnableDNSViewError::ValidationException(inner) => Error::ValidationException(inner),
682 crate::operation::enable_dns_view::EnableDNSViewError::Unhandled(inner) => Error::Unhandled(inner),
683 }
684 }
685}
686impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_access_source::GetAccessSourceError, R>> for Error
687where
688 R: Send + Sync + std::fmt::Debug + 'static,
689{
690 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_access_source::GetAccessSourceError, R>) -> Self {
691 match err {
692 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
693 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
694 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
695 source: err.into(),
696 }),
697 }
698 }
699}
700impl From<crate::operation::get_access_source::GetAccessSourceError> for Error {
701 fn from(err: crate::operation::get_access_source::GetAccessSourceError) -> Self {
702 match err {
703 crate::operation::get_access_source::GetAccessSourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
704 crate::operation::get_access_source::GetAccessSourceError::InternalServerException(inner) => Error::InternalServerException(inner),
705 crate::operation::get_access_source::GetAccessSourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
706 crate::operation::get_access_source::GetAccessSourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
707 crate::operation::get_access_source::GetAccessSourceError::ValidationException(inner) => Error::ValidationException(inner),
708 crate::operation::get_access_source::GetAccessSourceError::Unhandled(inner) => Error::Unhandled(inner),
709 }
710 }
711}
712impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_access_token::GetAccessTokenError, R>> for Error
713where
714 R: Send + Sync + std::fmt::Debug + 'static,
715{
716 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_access_token::GetAccessTokenError, R>) -> Self {
717 match err {
718 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
719 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
720 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
721 source: err.into(),
722 }),
723 }
724 }
725}
726impl From<crate::operation::get_access_token::GetAccessTokenError> for Error {
727 fn from(err: crate::operation::get_access_token::GetAccessTokenError) -> Self {
728 match err {
729 crate::operation::get_access_token::GetAccessTokenError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
730 crate::operation::get_access_token::GetAccessTokenError::InternalServerException(inner) => Error::InternalServerException(inner),
731 crate::operation::get_access_token::GetAccessTokenError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
732 crate::operation::get_access_token::GetAccessTokenError::ThrottlingException(inner) => Error::ThrottlingException(inner),
733 crate::operation::get_access_token::GetAccessTokenError::ValidationException(inner) => Error::ValidationException(inner),
734 crate::operation::get_access_token::GetAccessTokenError::Unhandled(inner) => Error::Unhandled(inner),
735 }
736 }
737}
738impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_dns_view::GetDNSViewError, R>> for Error
739where
740 R: Send + Sync + std::fmt::Debug + 'static,
741{
742 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_dns_view::GetDNSViewError, R>) -> Self {
743 match err {
744 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
745 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
746 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
747 source: err.into(),
748 }),
749 }
750 }
751}
752impl From<crate::operation::get_dns_view::GetDNSViewError> for Error {
753 fn from(err: crate::operation::get_dns_view::GetDNSViewError) -> Self {
754 match err {
755 crate::operation::get_dns_view::GetDNSViewError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
756 crate::operation::get_dns_view::GetDNSViewError::InternalServerException(inner) => Error::InternalServerException(inner),
757 crate::operation::get_dns_view::GetDNSViewError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
758 crate::operation::get_dns_view::GetDNSViewError::ThrottlingException(inner) => Error::ThrottlingException(inner),
759 crate::operation::get_dns_view::GetDNSViewError::ValidationException(inner) => Error::ValidationException(inner),
760 crate::operation::get_dns_view::GetDNSViewError::Unhandled(inner) => Error::Unhandled(inner),
761 }
762 }
763}
764impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_firewall_domain_list::GetFirewallDomainListError, R>> for Error
765where
766 R: Send + Sync + std::fmt::Debug + 'static,
767{
768 fn from(
769 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_firewall_domain_list::GetFirewallDomainListError, R>,
770 ) -> Self {
771 match err {
772 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
773 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
774 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
775 source: err.into(),
776 }),
777 }
778 }
779}
780impl From<crate::operation::get_firewall_domain_list::GetFirewallDomainListError> for Error {
781 fn from(err: crate::operation::get_firewall_domain_list::GetFirewallDomainListError) -> Self {
782 match err {
783 crate::operation::get_firewall_domain_list::GetFirewallDomainListError::AccessDeniedException(inner) => {
784 Error::AccessDeniedException(inner)
785 }
786 crate::operation::get_firewall_domain_list::GetFirewallDomainListError::InternalServerException(inner) => {
787 Error::InternalServerException(inner)
788 }
789 crate::operation::get_firewall_domain_list::GetFirewallDomainListError::ResourceNotFoundException(inner) => {
790 Error::ResourceNotFoundException(inner)
791 }
792 crate::operation::get_firewall_domain_list::GetFirewallDomainListError::ThrottlingException(inner) => Error::ThrottlingException(inner),
793 crate::operation::get_firewall_domain_list::GetFirewallDomainListError::ValidationException(inner) => Error::ValidationException(inner),
794 crate::operation::get_firewall_domain_list::GetFirewallDomainListError::Unhandled(inner) => Error::Unhandled(inner),
795 }
796 }
797}
798impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_firewall_rule::GetFirewallRuleError, R>> for Error
799where
800 R: Send + Sync + std::fmt::Debug + 'static,
801{
802 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_firewall_rule::GetFirewallRuleError, R>) -> Self {
803 match err {
804 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
805 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
806 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
807 source: err.into(),
808 }),
809 }
810 }
811}
812impl From<crate::operation::get_firewall_rule::GetFirewallRuleError> for Error {
813 fn from(err: crate::operation::get_firewall_rule::GetFirewallRuleError) -> Self {
814 match err {
815 crate::operation::get_firewall_rule::GetFirewallRuleError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
816 crate::operation::get_firewall_rule::GetFirewallRuleError::InternalServerException(inner) => Error::InternalServerException(inner),
817 crate::operation::get_firewall_rule::GetFirewallRuleError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
818 crate::operation::get_firewall_rule::GetFirewallRuleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
819 crate::operation::get_firewall_rule::GetFirewallRuleError::ValidationException(inner) => Error::ValidationException(inner),
820 crate::operation::get_firewall_rule::GetFirewallRuleError::Unhandled(inner) => Error::Unhandled(inner),
821 }
822 }
823}
824impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_global_resolver::GetGlobalResolverError, R>> for Error
825where
826 R: Send + Sync + std::fmt::Debug + 'static,
827{
828 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_global_resolver::GetGlobalResolverError, R>) -> Self {
829 match err {
830 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
831 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
832 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
833 source: err.into(),
834 }),
835 }
836 }
837}
838impl From<crate::operation::get_global_resolver::GetGlobalResolverError> for Error {
839 fn from(err: crate::operation::get_global_resolver::GetGlobalResolverError) -> Self {
840 match err {
841 crate::operation::get_global_resolver::GetGlobalResolverError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
842 crate::operation::get_global_resolver::GetGlobalResolverError::InternalServerException(inner) => Error::InternalServerException(inner),
843 crate::operation::get_global_resolver::GetGlobalResolverError::ResourceNotFoundException(inner) => {
844 Error::ResourceNotFoundException(inner)
845 }
846 crate::operation::get_global_resolver::GetGlobalResolverError::ThrottlingException(inner) => Error::ThrottlingException(inner),
847 crate::operation::get_global_resolver::GetGlobalResolverError::ValidationException(inner) => Error::ValidationException(inner),
848 crate::operation::get_global_resolver::GetGlobalResolverError::Unhandled(inner) => Error::Unhandled(inner),
849 }
850 }
851}
852impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_hosted_zone_association::GetHostedZoneAssociationError, R>>
853 for Error
854where
855 R: Send + Sync + std::fmt::Debug + 'static,
856{
857 fn from(
858 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_hosted_zone_association::GetHostedZoneAssociationError, R>,
859 ) -> Self {
860 match err {
861 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
862 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
863 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
864 source: err.into(),
865 }),
866 }
867 }
868}
869impl From<crate::operation::get_hosted_zone_association::GetHostedZoneAssociationError> for Error {
870 fn from(err: crate::operation::get_hosted_zone_association::GetHostedZoneAssociationError) -> Self {
871 match err {
872 crate::operation::get_hosted_zone_association::GetHostedZoneAssociationError::AccessDeniedException(inner) => {
873 Error::AccessDeniedException(inner)
874 }
875 crate::operation::get_hosted_zone_association::GetHostedZoneAssociationError::InternalServerException(inner) => {
876 Error::InternalServerException(inner)
877 }
878 crate::operation::get_hosted_zone_association::GetHostedZoneAssociationError::ResourceNotFoundException(inner) => {
879 Error::ResourceNotFoundException(inner)
880 }
881 crate::operation::get_hosted_zone_association::GetHostedZoneAssociationError::ThrottlingException(inner) => {
882 Error::ThrottlingException(inner)
883 }
884 crate::operation::get_hosted_zone_association::GetHostedZoneAssociationError::ValidationException(inner) => {
885 Error::ValidationException(inner)
886 }
887 crate::operation::get_hosted_zone_association::GetHostedZoneAssociationError::Unhandled(inner) => Error::Unhandled(inner),
888 }
889 }
890}
891impl<R>
892 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_managed_firewall_domain_list::GetManagedFirewallDomainListError, R>>
893 for Error
894where
895 R: Send + Sync + std::fmt::Debug + 'static,
896{
897 fn from(
898 err: ::aws_smithy_runtime_api::client::result::SdkError<
899 crate::operation::get_managed_firewall_domain_list::GetManagedFirewallDomainListError,
900 R,
901 >,
902 ) -> Self {
903 match err {
904 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
905 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
906 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
907 source: err.into(),
908 }),
909 }
910 }
911}
912impl From<crate::operation::get_managed_firewall_domain_list::GetManagedFirewallDomainListError> for Error {
913 fn from(err: crate::operation::get_managed_firewall_domain_list::GetManagedFirewallDomainListError) -> Self {
914 match err {
915 crate::operation::get_managed_firewall_domain_list::GetManagedFirewallDomainListError::AccessDeniedException(inner) => {
916 Error::AccessDeniedException(inner)
917 }
918 crate::operation::get_managed_firewall_domain_list::GetManagedFirewallDomainListError::InternalServerException(inner) => {
919 Error::InternalServerException(inner)
920 }
921 crate::operation::get_managed_firewall_domain_list::GetManagedFirewallDomainListError::ResourceNotFoundException(inner) => {
922 Error::ResourceNotFoundException(inner)
923 }
924 crate::operation::get_managed_firewall_domain_list::GetManagedFirewallDomainListError::ThrottlingException(inner) => {
925 Error::ThrottlingException(inner)
926 }
927 crate::operation::get_managed_firewall_domain_list::GetManagedFirewallDomainListError::ValidationException(inner) => {
928 Error::ValidationException(inner)
929 }
930 crate::operation::get_managed_firewall_domain_list::GetManagedFirewallDomainListError::Unhandled(inner) => Error::Unhandled(inner),
931 }
932 }
933}
934impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_firewall_domains::ImportFirewallDomainsError, R>> for Error
935where
936 R: Send + Sync + std::fmt::Debug + 'static,
937{
938 fn from(
939 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_firewall_domains::ImportFirewallDomainsError, R>,
940 ) -> Self {
941 match err {
942 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
943 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
944 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
945 source: err.into(),
946 }),
947 }
948 }
949}
950impl From<crate::operation::import_firewall_domains::ImportFirewallDomainsError> for Error {
951 fn from(err: crate::operation::import_firewall_domains::ImportFirewallDomainsError) -> Self {
952 match err {
953 crate::operation::import_firewall_domains::ImportFirewallDomainsError::AccessDeniedException(inner) => {
954 Error::AccessDeniedException(inner)
955 }
956 crate::operation::import_firewall_domains::ImportFirewallDomainsError::ConflictException(inner) => Error::ConflictException(inner),
957 crate::operation::import_firewall_domains::ImportFirewallDomainsError::InternalServerException(inner) => {
958 Error::InternalServerException(inner)
959 }
960 crate::operation::import_firewall_domains::ImportFirewallDomainsError::ResourceNotFoundException(inner) => {
961 Error::ResourceNotFoundException(inner)
962 }
963 crate::operation::import_firewall_domains::ImportFirewallDomainsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
964 crate::operation::import_firewall_domains::ImportFirewallDomainsError::ValidationException(inner) => Error::ValidationException(inner),
965 crate::operation::import_firewall_domains::ImportFirewallDomainsError::Unhandled(inner) => Error::Unhandled(inner),
966 }
967 }
968}
969impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_access_sources::ListAccessSourcesError, R>> for Error
970where
971 R: Send + Sync + std::fmt::Debug + 'static,
972{
973 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_access_sources::ListAccessSourcesError, R>) -> Self {
974 match err {
975 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
976 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
977 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
978 source: err.into(),
979 }),
980 }
981 }
982}
983impl From<crate::operation::list_access_sources::ListAccessSourcesError> for Error {
984 fn from(err: crate::operation::list_access_sources::ListAccessSourcesError) -> Self {
985 match err {
986 crate::operation::list_access_sources::ListAccessSourcesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
987 crate::operation::list_access_sources::ListAccessSourcesError::InternalServerException(inner) => Error::InternalServerException(inner),
988 crate::operation::list_access_sources::ListAccessSourcesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
989 crate::operation::list_access_sources::ListAccessSourcesError::ValidationException(inner) => Error::ValidationException(inner),
990 crate::operation::list_access_sources::ListAccessSourcesError::Unhandled(inner) => Error::Unhandled(inner),
991 }
992 }
993}
994impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_access_tokens::ListAccessTokensError, R>> for Error
995where
996 R: Send + Sync + std::fmt::Debug + 'static,
997{
998 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_access_tokens::ListAccessTokensError, R>) -> Self {
999 match err {
1000 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1001 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1002 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1003 source: err.into(),
1004 }),
1005 }
1006 }
1007}
1008impl From<crate::operation::list_access_tokens::ListAccessTokensError> for Error {
1009 fn from(err: crate::operation::list_access_tokens::ListAccessTokensError) -> Self {
1010 match err {
1011 crate::operation::list_access_tokens::ListAccessTokensError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1012 crate::operation::list_access_tokens::ListAccessTokensError::InternalServerException(inner) => Error::InternalServerException(inner),
1013 crate::operation::list_access_tokens::ListAccessTokensError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1014 crate::operation::list_access_tokens::ListAccessTokensError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1015 crate::operation::list_access_tokens::ListAccessTokensError::ValidationException(inner) => Error::ValidationException(inner),
1016 crate::operation::list_access_tokens::ListAccessTokensError::Unhandled(inner) => Error::Unhandled(inner),
1017 }
1018 }
1019}
1020impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_dns_views::ListDNSViewsError, R>> for Error
1021where
1022 R: Send + Sync + std::fmt::Debug + 'static,
1023{
1024 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_dns_views::ListDNSViewsError, R>) -> Self {
1025 match err {
1026 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1027 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1028 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1029 source: err.into(),
1030 }),
1031 }
1032 }
1033}
1034impl From<crate::operation::list_dns_views::ListDNSViewsError> for Error {
1035 fn from(err: crate::operation::list_dns_views::ListDNSViewsError) -> Self {
1036 match err {
1037 crate::operation::list_dns_views::ListDNSViewsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1038 crate::operation::list_dns_views::ListDNSViewsError::InternalServerException(inner) => Error::InternalServerException(inner),
1039 crate::operation::list_dns_views::ListDNSViewsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1040 crate::operation::list_dns_views::ListDNSViewsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1041 crate::operation::list_dns_views::ListDNSViewsError::ValidationException(inner) => Error::ValidationException(inner),
1042 crate::operation::list_dns_views::ListDNSViewsError::Unhandled(inner) => Error::Unhandled(inner),
1043 }
1044 }
1045}
1046impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_firewall_domain_lists::ListFirewallDomainListsError, R>>
1047 for Error
1048where
1049 R: Send + Sync + std::fmt::Debug + 'static,
1050{
1051 fn from(
1052 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_firewall_domain_lists::ListFirewallDomainListsError, R>,
1053 ) -> Self {
1054 match err {
1055 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1056 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1057 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1058 source: err.into(),
1059 }),
1060 }
1061 }
1062}
1063impl From<crate::operation::list_firewall_domain_lists::ListFirewallDomainListsError> for Error {
1064 fn from(err: crate::operation::list_firewall_domain_lists::ListFirewallDomainListsError) -> Self {
1065 match err {
1066 crate::operation::list_firewall_domain_lists::ListFirewallDomainListsError::AccessDeniedException(inner) => {
1067 Error::AccessDeniedException(inner)
1068 }
1069 crate::operation::list_firewall_domain_lists::ListFirewallDomainListsError::InternalServerException(inner) => {
1070 Error::InternalServerException(inner)
1071 }
1072 crate::operation::list_firewall_domain_lists::ListFirewallDomainListsError::ResourceNotFoundException(inner) => {
1073 Error::ResourceNotFoundException(inner)
1074 }
1075 crate::operation::list_firewall_domain_lists::ListFirewallDomainListsError::ThrottlingException(inner) => {
1076 Error::ThrottlingException(inner)
1077 }
1078 crate::operation::list_firewall_domain_lists::ListFirewallDomainListsError::ValidationException(inner) => {
1079 Error::ValidationException(inner)
1080 }
1081 crate::operation::list_firewall_domain_lists::ListFirewallDomainListsError::Unhandled(inner) => Error::Unhandled(inner),
1082 }
1083 }
1084}
1085impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_firewall_domains::ListFirewallDomainsError, R>> for Error
1086where
1087 R: Send + Sync + std::fmt::Debug + 'static,
1088{
1089 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_firewall_domains::ListFirewallDomainsError, R>) -> Self {
1090 match err {
1091 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1092 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1093 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1094 source: err.into(),
1095 }),
1096 }
1097 }
1098}
1099impl From<crate::operation::list_firewall_domains::ListFirewallDomainsError> for Error {
1100 fn from(err: crate::operation::list_firewall_domains::ListFirewallDomainsError) -> Self {
1101 match err {
1102 crate::operation::list_firewall_domains::ListFirewallDomainsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1103 crate::operation::list_firewall_domains::ListFirewallDomainsError::InternalServerException(inner) => {
1104 Error::InternalServerException(inner)
1105 }
1106 crate::operation::list_firewall_domains::ListFirewallDomainsError::ResourceNotFoundException(inner) => {
1107 Error::ResourceNotFoundException(inner)
1108 }
1109 crate::operation::list_firewall_domains::ListFirewallDomainsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1110 crate::operation::list_firewall_domains::ListFirewallDomainsError::ValidationException(inner) => Error::ValidationException(inner),
1111 crate::operation::list_firewall_domains::ListFirewallDomainsError::Unhandled(inner) => Error::Unhandled(inner),
1112 }
1113 }
1114}
1115impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_firewall_rules::ListFirewallRulesError, R>> for Error
1116where
1117 R: Send + Sync + std::fmt::Debug + 'static,
1118{
1119 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_firewall_rules::ListFirewallRulesError, R>) -> Self {
1120 match err {
1121 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1122 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1123 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1124 source: err.into(),
1125 }),
1126 }
1127 }
1128}
1129impl From<crate::operation::list_firewall_rules::ListFirewallRulesError> for Error {
1130 fn from(err: crate::operation::list_firewall_rules::ListFirewallRulesError) -> Self {
1131 match err {
1132 crate::operation::list_firewall_rules::ListFirewallRulesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1133 crate::operation::list_firewall_rules::ListFirewallRulesError::InternalServerException(inner) => Error::InternalServerException(inner),
1134 crate::operation::list_firewall_rules::ListFirewallRulesError::ResourceNotFoundException(inner) => {
1135 Error::ResourceNotFoundException(inner)
1136 }
1137 crate::operation::list_firewall_rules::ListFirewallRulesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1138 crate::operation::list_firewall_rules::ListFirewallRulesError::ValidationException(inner) => Error::ValidationException(inner),
1139 crate::operation::list_firewall_rules::ListFirewallRulesError::Unhandled(inner) => Error::Unhandled(inner),
1140 }
1141 }
1142}
1143impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_global_resolvers::ListGlobalResolversError, R>> for Error
1144where
1145 R: Send + Sync + std::fmt::Debug + 'static,
1146{
1147 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_global_resolvers::ListGlobalResolversError, R>) -> Self {
1148 match err {
1149 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1150 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1151 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1152 source: err.into(),
1153 }),
1154 }
1155 }
1156}
1157impl From<crate::operation::list_global_resolvers::ListGlobalResolversError> for Error {
1158 fn from(err: crate::operation::list_global_resolvers::ListGlobalResolversError) -> Self {
1159 match err {
1160 crate::operation::list_global_resolvers::ListGlobalResolversError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1161 crate::operation::list_global_resolvers::ListGlobalResolversError::InternalServerException(inner) => {
1162 Error::InternalServerException(inner)
1163 }
1164 crate::operation::list_global_resolvers::ListGlobalResolversError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1165 crate::operation::list_global_resolvers::ListGlobalResolversError::ValidationException(inner) => Error::ValidationException(inner),
1166 crate::operation::list_global_resolvers::ListGlobalResolversError::Unhandled(inner) => Error::Unhandled(inner),
1167 }
1168 }
1169}
1170impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_hosted_zone_associations::ListHostedZoneAssociationsError, R>>
1171 for Error
1172where
1173 R: Send + Sync + std::fmt::Debug + 'static,
1174{
1175 fn from(
1176 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_hosted_zone_associations::ListHostedZoneAssociationsError, R>,
1177 ) -> Self {
1178 match err {
1179 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1180 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1181 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1182 source: err.into(),
1183 }),
1184 }
1185 }
1186}
1187impl From<crate::operation::list_hosted_zone_associations::ListHostedZoneAssociationsError> for Error {
1188 fn from(err: crate::operation::list_hosted_zone_associations::ListHostedZoneAssociationsError) -> Self {
1189 match err {
1190 crate::operation::list_hosted_zone_associations::ListHostedZoneAssociationsError::AccessDeniedException(inner) => {
1191 Error::AccessDeniedException(inner)
1192 }
1193 crate::operation::list_hosted_zone_associations::ListHostedZoneAssociationsError::InternalServerException(inner) => {
1194 Error::InternalServerException(inner)
1195 }
1196 crate::operation::list_hosted_zone_associations::ListHostedZoneAssociationsError::ResourceNotFoundException(inner) => {
1197 Error::ResourceNotFoundException(inner)
1198 }
1199 crate::operation::list_hosted_zone_associations::ListHostedZoneAssociationsError::ThrottlingException(inner) => {
1200 Error::ThrottlingException(inner)
1201 }
1202 crate::operation::list_hosted_zone_associations::ListHostedZoneAssociationsError::ValidationException(inner) => {
1203 Error::ValidationException(inner)
1204 }
1205 crate::operation::list_hosted_zone_associations::ListHostedZoneAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
1206 }
1207 }
1208}
1209impl<R>
1210 From<
1211 ::aws_smithy_runtime_api::client::result::SdkError<
1212 crate::operation::list_managed_firewall_domain_lists::ListManagedFirewallDomainListsError,
1213 R,
1214 >,
1215 > for Error
1216where
1217 R: Send + Sync + std::fmt::Debug + 'static,
1218{
1219 fn from(
1220 err: ::aws_smithy_runtime_api::client::result::SdkError<
1221 crate::operation::list_managed_firewall_domain_lists::ListManagedFirewallDomainListsError,
1222 R,
1223 >,
1224 ) -> Self {
1225 match err {
1226 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1227 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1228 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1229 source: err.into(),
1230 }),
1231 }
1232 }
1233}
1234impl From<crate::operation::list_managed_firewall_domain_lists::ListManagedFirewallDomainListsError> for Error {
1235 fn from(err: crate::operation::list_managed_firewall_domain_lists::ListManagedFirewallDomainListsError) -> Self {
1236 match err {
1237 crate::operation::list_managed_firewall_domain_lists::ListManagedFirewallDomainListsError::AccessDeniedException(inner) => {
1238 Error::AccessDeniedException(inner)
1239 }
1240 crate::operation::list_managed_firewall_domain_lists::ListManagedFirewallDomainListsError::InternalServerException(inner) => {
1241 Error::InternalServerException(inner)
1242 }
1243 crate::operation::list_managed_firewall_domain_lists::ListManagedFirewallDomainListsError::ThrottlingException(inner) => {
1244 Error::ThrottlingException(inner)
1245 }
1246 crate::operation::list_managed_firewall_domain_lists::ListManagedFirewallDomainListsError::ValidationException(inner) => {
1247 Error::ValidationException(inner)
1248 }
1249 crate::operation::list_managed_firewall_domain_lists::ListManagedFirewallDomainListsError::Unhandled(inner) => Error::Unhandled(inner),
1250 }
1251 }
1252}
1253impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
1254where
1255 R: Send + Sync + std::fmt::Debug + 'static,
1256{
1257 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
1258 match err {
1259 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1260 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1261 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1262 source: err.into(),
1263 }),
1264 }
1265 }
1266}
1267impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
1268 fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
1269 match err {
1270 crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
1271 Error::ResourceNotFoundException(inner)
1272 }
1273 crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
1274 }
1275 }
1276}
1277impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
1278where
1279 R: Send + Sync + std::fmt::Debug + 'static,
1280{
1281 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
1282 match err {
1283 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1284 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1285 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1286 source: err.into(),
1287 }),
1288 }
1289 }
1290}
1291impl From<crate::operation::tag_resource::TagResourceError> for Error {
1292 fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
1293 match err {
1294 crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1295 crate::operation::tag_resource::TagResourceError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1296 crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
1297 crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1298 }
1299 }
1300}
1301impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
1302where
1303 R: Send + Sync + std::fmt::Debug + 'static,
1304{
1305 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
1306 match err {
1307 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1308 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1309 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1310 source: err.into(),
1311 }),
1312 }
1313 }
1314}
1315impl From<crate::operation::untag_resource::UntagResourceError> for Error {
1316 fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
1317 match err {
1318 crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1319 crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
1320 crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1321 }
1322 }
1323}
1324impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_access_source::UpdateAccessSourceError, R>> for Error
1325where
1326 R: Send + Sync + std::fmt::Debug + 'static,
1327{
1328 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_access_source::UpdateAccessSourceError, R>) -> Self {
1329 match err {
1330 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1331 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1332 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1333 source: err.into(),
1334 }),
1335 }
1336 }
1337}
1338impl From<crate::operation::update_access_source::UpdateAccessSourceError> for Error {
1339 fn from(err: crate::operation::update_access_source::UpdateAccessSourceError) -> Self {
1340 match err {
1341 crate::operation::update_access_source::UpdateAccessSourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1342 crate::operation::update_access_source::UpdateAccessSourceError::ConflictException(inner) => Error::ConflictException(inner),
1343 crate::operation::update_access_source::UpdateAccessSourceError::InternalServerException(inner) => Error::InternalServerException(inner),
1344 crate::operation::update_access_source::UpdateAccessSourceError::ResourceNotFoundException(inner) => {
1345 Error::ResourceNotFoundException(inner)
1346 }
1347 crate::operation::update_access_source::UpdateAccessSourceError::ServiceQuotaExceededException(inner) => {
1348 Error::ServiceQuotaExceededException(inner)
1349 }
1350 crate::operation::update_access_source::UpdateAccessSourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1351 crate::operation::update_access_source::UpdateAccessSourceError::ValidationException(inner) => Error::ValidationException(inner),
1352 crate::operation::update_access_source::UpdateAccessSourceError::Unhandled(inner) => Error::Unhandled(inner),
1353 }
1354 }
1355}
1356impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_access_token::UpdateAccessTokenError, R>> for Error
1357where
1358 R: Send + Sync + std::fmt::Debug + 'static,
1359{
1360 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_access_token::UpdateAccessTokenError, R>) -> Self {
1361 match err {
1362 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1363 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1364 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1365 source: err.into(),
1366 }),
1367 }
1368 }
1369}
1370impl From<crate::operation::update_access_token::UpdateAccessTokenError> for Error {
1371 fn from(err: crate::operation::update_access_token::UpdateAccessTokenError) -> Self {
1372 match err {
1373 crate::operation::update_access_token::UpdateAccessTokenError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1374 crate::operation::update_access_token::UpdateAccessTokenError::ConflictException(inner) => Error::ConflictException(inner),
1375 crate::operation::update_access_token::UpdateAccessTokenError::InternalServerException(inner) => Error::InternalServerException(inner),
1376 crate::operation::update_access_token::UpdateAccessTokenError::ResourceNotFoundException(inner) => {
1377 Error::ResourceNotFoundException(inner)
1378 }
1379 crate::operation::update_access_token::UpdateAccessTokenError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1380 crate::operation::update_access_token::UpdateAccessTokenError::ValidationException(inner) => Error::ValidationException(inner),
1381 crate::operation::update_access_token::UpdateAccessTokenError::Unhandled(inner) => Error::Unhandled(inner),
1382 }
1383 }
1384}
1385impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_dns_view::UpdateDNSViewError, R>> for Error
1386where
1387 R: Send + Sync + std::fmt::Debug + 'static,
1388{
1389 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_dns_view::UpdateDNSViewError, R>) -> Self {
1390 match err {
1391 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1392 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1393 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1394 source: err.into(),
1395 }),
1396 }
1397 }
1398}
1399impl From<crate::operation::update_dns_view::UpdateDNSViewError> for Error {
1400 fn from(err: crate::operation::update_dns_view::UpdateDNSViewError) -> Self {
1401 match err {
1402 crate::operation::update_dns_view::UpdateDNSViewError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1403 crate::operation::update_dns_view::UpdateDNSViewError::ConflictException(inner) => Error::ConflictException(inner),
1404 crate::operation::update_dns_view::UpdateDNSViewError::InternalServerException(inner) => Error::InternalServerException(inner),
1405 crate::operation::update_dns_view::UpdateDNSViewError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1406 crate::operation::update_dns_view::UpdateDNSViewError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1407 crate::operation::update_dns_view::UpdateDNSViewError::ValidationException(inner) => Error::ValidationException(inner),
1408 crate::operation::update_dns_view::UpdateDNSViewError::Unhandled(inner) => Error::Unhandled(inner),
1409 }
1410 }
1411}
1412impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_firewall_domains::UpdateFirewallDomainsError, R>> for Error
1413where
1414 R: Send + Sync + std::fmt::Debug + 'static,
1415{
1416 fn from(
1417 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_firewall_domains::UpdateFirewallDomainsError, R>,
1418 ) -> Self {
1419 match err {
1420 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1421 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1422 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1423 source: err.into(),
1424 }),
1425 }
1426 }
1427}
1428impl From<crate::operation::update_firewall_domains::UpdateFirewallDomainsError> for Error {
1429 fn from(err: crate::operation::update_firewall_domains::UpdateFirewallDomainsError) -> Self {
1430 match err {
1431 crate::operation::update_firewall_domains::UpdateFirewallDomainsError::AccessDeniedException(inner) => {
1432 Error::AccessDeniedException(inner)
1433 }
1434 crate::operation::update_firewall_domains::UpdateFirewallDomainsError::ConflictException(inner) => Error::ConflictException(inner),
1435 crate::operation::update_firewall_domains::UpdateFirewallDomainsError::InternalServerException(inner) => {
1436 Error::InternalServerException(inner)
1437 }
1438 crate::operation::update_firewall_domains::UpdateFirewallDomainsError::ResourceNotFoundException(inner) => {
1439 Error::ResourceNotFoundException(inner)
1440 }
1441 crate::operation::update_firewall_domains::UpdateFirewallDomainsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1442 crate::operation::update_firewall_domains::UpdateFirewallDomainsError::ValidationException(inner) => Error::ValidationException(inner),
1443 crate::operation::update_firewall_domains::UpdateFirewallDomainsError::Unhandled(inner) => Error::Unhandled(inner),
1444 }
1445 }
1446}
1447impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_firewall_rule::UpdateFirewallRuleError, R>> for Error
1448where
1449 R: Send + Sync + std::fmt::Debug + 'static,
1450{
1451 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_firewall_rule::UpdateFirewallRuleError, R>) -> Self {
1452 match err {
1453 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1454 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1455 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1456 source: err.into(),
1457 }),
1458 }
1459 }
1460}
1461impl From<crate::operation::update_firewall_rule::UpdateFirewallRuleError> for Error {
1462 fn from(err: crate::operation::update_firewall_rule::UpdateFirewallRuleError) -> Self {
1463 match err {
1464 crate::operation::update_firewall_rule::UpdateFirewallRuleError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1465 crate::operation::update_firewall_rule::UpdateFirewallRuleError::ConflictException(inner) => Error::ConflictException(inner),
1466 crate::operation::update_firewall_rule::UpdateFirewallRuleError::InternalServerException(inner) => Error::InternalServerException(inner),
1467 crate::operation::update_firewall_rule::UpdateFirewallRuleError::ResourceNotFoundException(inner) => {
1468 Error::ResourceNotFoundException(inner)
1469 }
1470 crate::operation::update_firewall_rule::UpdateFirewallRuleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1471 crate::operation::update_firewall_rule::UpdateFirewallRuleError::ValidationException(inner) => Error::ValidationException(inner),
1472 crate::operation::update_firewall_rule::UpdateFirewallRuleError::Unhandled(inner) => Error::Unhandled(inner),
1473 }
1474 }
1475}
1476impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_global_resolver::UpdateGlobalResolverError, R>> for Error
1477where
1478 R: Send + Sync + std::fmt::Debug + 'static,
1479{
1480 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_global_resolver::UpdateGlobalResolverError, R>) -> Self {
1481 match err {
1482 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1483 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1484 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1485 source: err.into(),
1486 }),
1487 }
1488 }
1489}
1490impl From<crate::operation::update_global_resolver::UpdateGlobalResolverError> for Error {
1491 fn from(err: crate::operation::update_global_resolver::UpdateGlobalResolverError) -> Self {
1492 match err {
1493 crate::operation::update_global_resolver::UpdateGlobalResolverError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1494 crate::operation::update_global_resolver::UpdateGlobalResolverError::ConflictException(inner) => Error::ConflictException(inner),
1495 crate::operation::update_global_resolver::UpdateGlobalResolverError::InternalServerException(inner) => {
1496 Error::InternalServerException(inner)
1497 }
1498 crate::operation::update_global_resolver::UpdateGlobalResolverError::ResourceNotFoundException(inner) => {
1499 Error::ResourceNotFoundException(inner)
1500 }
1501 crate::operation::update_global_resolver::UpdateGlobalResolverError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1502 crate::operation::update_global_resolver::UpdateGlobalResolverError::ValidationException(inner) => Error::ValidationException(inner),
1503 crate::operation::update_global_resolver::UpdateGlobalResolverError::Unhandled(inner) => Error::Unhandled(inner),
1504 }
1505 }
1506}
1507impl<R>
1508 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_hosted_zone_association::UpdateHostedZoneAssociationError, R>>
1509 for Error
1510where
1511 R: Send + Sync + std::fmt::Debug + 'static,
1512{
1513 fn from(
1514 err: ::aws_smithy_runtime_api::client::result::SdkError<
1515 crate::operation::update_hosted_zone_association::UpdateHostedZoneAssociationError,
1516 R,
1517 >,
1518 ) -> Self {
1519 match err {
1520 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1521 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1522 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1523 source: err.into(),
1524 }),
1525 }
1526 }
1527}
1528impl From<crate::operation::update_hosted_zone_association::UpdateHostedZoneAssociationError> for Error {
1529 fn from(err: crate::operation::update_hosted_zone_association::UpdateHostedZoneAssociationError) -> Self {
1530 match err {
1531 crate::operation::update_hosted_zone_association::UpdateHostedZoneAssociationError::AccessDeniedException(inner) => {
1532 Error::AccessDeniedException(inner)
1533 }
1534 crate::operation::update_hosted_zone_association::UpdateHostedZoneAssociationError::ConflictException(inner) => {
1535 Error::ConflictException(inner)
1536 }
1537 crate::operation::update_hosted_zone_association::UpdateHostedZoneAssociationError::InternalServerException(inner) => {
1538 Error::InternalServerException(inner)
1539 }
1540 crate::operation::update_hosted_zone_association::UpdateHostedZoneAssociationError::ResourceNotFoundException(inner) => {
1541 Error::ResourceNotFoundException(inner)
1542 }
1543 crate::operation::update_hosted_zone_association::UpdateHostedZoneAssociationError::ThrottlingException(inner) => {
1544 Error::ThrottlingException(inner)
1545 }
1546 crate::operation::update_hosted_zone_association::UpdateHostedZoneAssociationError::ValidationException(inner) => {
1547 Error::ValidationException(inner)
1548 }
1549 crate::operation::update_hosted_zone_association::UpdateHostedZoneAssociationError::Unhandled(inner) => Error::Unhandled(inner),
1550 }
1551 }
1552}
1553impl ::std::error::Error for Error {
1554 fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
1555 match self {
1556 Error::AccessDeniedException(inner) => inner.source(),
1557 Error::ConflictException(inner) => inner.source(),
1558 Error::InternalServerException(inner) => inner.source(),
1559 Error::ResourceNotFoundException(inner) => inner.source(),
1560 Error::ServiceQuotaExceededException(inner) => inner.source(),
1561 Error::ThrottlingException(inner) => inner.source(),
1562 Error::ValidationException(inner) => inner.source(),
1563 Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
1564 }
1565 }
1566}
1567impl ::aws_types::request_id::RequestId for Error {
1568 fn request_id(&self) -> Option<&str> {
1569 match self {
1570 Self::AccessDeniedException(e) => e.request_id(),
1571 Self::ConflictException(e) => e.request_id(),
1572 Self::InternalServerException(e) => e.request_id(),
1573 Self::ResourceNotFoundException(e) => e.request_id(),
1574 Self::ServiceQuotaExceededException(e) => e.request_id(),
1575 Self::ThrottlingException(e) => e.request_id(),
1576 Self::ValidationException(e) => e.request_id(),
1577 Self::Unhandled(e) => e.meta.request_id(),
1578 }
1579 }
1580}