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