1#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6 AccessDeniedException(crate::types::error::AccessDeniedException),
8 BadRequestException(crate::types::error::BadRequestException),
10 ConflictException(crate::types::error::ConflictException),
12 InternalServerException(crate::types::error::InternalServerException),
14 ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
16 ThrottlingException(crate::types::error::ThrottlingException),
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::BadRequestException(inner) => inner.fmt(f),
32 Error::ConflictException(inner) => inner.fmt(f),
33 Error::InternalServerException(inner) => inner.fmt(f),
34 Error::ResourceNotFoundException(inner) => inner.fmt(f),
35 Error::ThrottlingException(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::BadRequestException(inner) => inner.meta(),
59 Self::ConflictException(inner) => inner.meta(),
60 Self::InternalServerException(inner) => inner.meta(),
61 Self::ResourceNotFoundException(inner) => inner.meta(),
62 Self::ThrottlingException(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_aws_log_source::CreateAwsLogSourceError, 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_aws_log_source::CreateAwsLogSourceError, 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_aws_log_source::CreateAwsLogSourceError> for Error {
82 fn from(err: crate::operation::create_aws_log_source::CreateAwsLogSourceError) -> Self {
83 match err {
84 crate::operation::create_aws_log_source::CreateAwsLogSourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
85 crate::operation::create_aws_log_source::CreateAwsLogSourceError::BadRequestException(inner) => Error::BadRequestException(inner),
86 crate::operation::create_aws_log_source::CreateAwsLogSourceError::ConflictException(inner) => Error::ConflictException(inner),
87 crate::operation::create_aws_log_source::CreateAwsLogSourceError::InternalServerException(inner) => Error::InternalServerException(inner),
88 crate::operation::create_aws_log_source::CreateAwsLogSourceError::ResourceNotFoundException(inner) => {
89 Error::ResourceNotFoundException(inner)
90 }
91 crate::operation::create_aws_log_source::CreateAwsLogSourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
92 crate::operation::create_aws_log_source::CreateAwsLogSourceError::Unhandled(inner) => Error::Unhandled(inner),
93 }
94 }
95}
96impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_custom_log_source::CreateCustomLogSourceError, R>> for Error
97where
98 R: Send + Sync + std::fmt::Debug + 'static,
99{
100 fn from(
101 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_custom_log_source::CreateCustomLogSourceError, R>,
102 ) -> Self {
103 match err {
104 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
105 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
106 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
107 source: err.into(),
108 }),
109 }
110 }
111}
112impl From<crate::operation::create_custom_log_source::CreateCustomLogSourceError> for Error {
113 fn from(err: crate::operation::create_custom_log_source::CreateCustomLogSourceError) -> Self {
114 match err {
115 crate::operation::create_custom_log_source::CreateCustomLogSourceError::AccessDeniedException(inner) => {
116 Error::AccessDeniedException(inner)
117 }
118 crate::operation::create_custom_log_source::CreateCustomLogSourceError::BadRequestException(inner) => Error::BadRequestException(inner),
119 crate::operation::create_custom_log_source::CreateCustomLogSourceError::ConflictException(inner) => Error::ConflictException(inner),
120 crate::operation::create_custom_log_source::CreateCustomLogSourceError::InternalServerException(inner) => {
121 Error::InternalServerException(inner)
122 }
123 crate::operation::create_custom_log_source::CreateCustomLogSourceError::ResourceNotFoundException(inner) => {
124 Error::ResourceNotFoundException(inner)
125 }
126 crate::operation::create_custom_log_source::CreateCustomLogSourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
127 crate::operation::create_custom_log_source::CreateCustomLogSourceError::Unhandled(inner) => Error::Unhandled(inner),
128 }
129 }
130}
131impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_data_lake::CreateDataLakeError, R>> for Error
132where
133 R: Send + Sync + std::fmt::Debug + 'static,
134{
135 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_data_lake::CreateDataLakeError, R>) -> Self {
136 match err {
137 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
138 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
139 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
140 source: err.into(),
141 }),
142 }
143 }
144}
145impl From<crate::operation::create_data_lake::CreateDataLakeError> for Error {
146 fn from(err: crate::operation::create_data_lake::CreateDataLakeError) -> Self {
147 match err {
148 crate::operation::create_data_lake::CreateDataLakeError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
149 crate::operation::create_data_lake::CreateDataLakeError::BadRequestException(inner) => Error::BadRequestException(inner),
150 crate::operation::create_data_lake::CreateDataLakeError::ConflictException(inner) => Error::ConflictException(inner),
151 crate::operation::create_data_lake::CreateDataLakeError::InternalServerException(inner) => Error::InternalServerException(inner),
152 crate::operation::create_data_lake::CreateDataLakeError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
153 crate::operation::create_data_lake::CreateDataLakeError::ThrottlingException(inner) => Error::ThrottlingException(inner),
154 crate::operation::create_data_lake::CreateDataLakeError::Unhandled(inner) => Error::Unhandled(inner),
155 }
156 }
157}
158impl<R>
159 From<
160 ::aws_smithy_runtime_api::client::result::SdkError<
161 crate::operation::create_data_lake_exception_subscription::CreateDataLakeExceptionSubscriptionError,
162 R,
163 >,
164 > for Error
165where
166 R: Send + Sync + std::fmt::Debug + 'static,
167{
168 fn from(
169 err: ::aws_smithy_runtime_api::client::result::SdkError<
170 crate::operation::create_data_lake_exception_subscription::CreateDataLakeExceptionSubscriptionError,
171 R,
172 >,
173 ) -> Self {
174 match err {
175 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
176 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
177 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
178 source: err.into(),
179 }),
180 }
181 }
182}
183impl From<crate::operation::create_data_lake_exception_subscription::CreateDataLakeExceptionSubscriptionError> for Error {
184 fn from(err: crate::operation::create_data_lake_exception_subscription::CreateDataLakeExceptionSubscriptionError) -> Self {
185 match err {
186 crate::operation::create_data_lake_exception_subscription::CreateDataLakeExceptionSubscriptionError::AccessDeniedException(inner) => {
187 Error::AccessDeniedException(inner)
188 }
189 crate::operation::create_data_lake_exception_subscription::CreateDataLakeExceptionSubscriptionError::BadRequestException(inner) => {
190 Error::BadRequestException(inner)
191 }
192 crate::operation::create_data_lake_exception_subscription::CreateDataLakeExceptionSubscriptionError::ConflictException(inner) => {
193 Error::ConflictException(inner)
194 }
195 crate::operation::create_data_lake_exception_subscription::CreateDataLakeExceptionSubscriptionError::InternalServerException(inner) => {
196 Error::InternalServerException(inner)
197 }
198 crate::operation::create_data_lake_exception_subscription::CreateDataLakeExceptionSubscriptionError::ResourceNotFoundException(inner) => {
199 Error::ResourceNotFoundException(inner)
200 }
201 crate::operation::create_data_lake_exception_subscription::CreateDataLakeExceptionSubscriptionError::ThrottlingException(inner) => {
202 Error::ThrottlingException(inner)
203 }
204 crate::operation::create_data_lake_exception_subscription::CreateDataLakeExceptionSubscriptionError::Unhandled(inner) => {
205 Error::Unhandled(inner)
206 }
207 }
208 }
209}
210impl<R>
211 From<
212 ::aws_smithy_runtime_api::client::result::SdkError<
213 crate::operation::create_data_lake_organization_configuration::CreateDataLakeOrganizationConfigurationError,
214 R,
215 >,
216 > for Error
217where
218 R: Send + Sync + std::fmt::Debug + 'static,
219{
220 fn from(
221 err: ::aws_smithy_runtime_api::client::result::SdkError<
222 crate::operation::create_data_lake_organization_configuration::CreateDataLakeOrganizationConfigurationError,
223 R,
224 >,
225 ) -> Self {
226 match err {
227 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
228 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
229 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
230 source: err.into(),
231 }),
232 }
233 }
234}
235impl From<crate::operation::create_data_lake_organization_configuration::CreateDataLakeOrganizationConfigurationError> for Error {
236 fn from(err: crate::operation::create_data_lake_organization_configuration::CreateDataLakeOrganizationConfigurationError) -> Self {
237 match err {
238 crate::operation::create_data_lake_organization_configuration::CreateDataLakeOrganizationConfigurationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
239 crate::operation::create_data_lake_organization_configuration::CreateDataLakeOrganizationConfigurationError::BadRequestException(inner) => Error::BadRequestException(inner),
240 crate::operation::create_data_lake_organization_configuration::CreateDataLakeOrganizationConfigurationError::ConflictException(inner) => Error::ConflictException(inner),
241 crate::operation::create_data_lake_organization_configuration::CreateDataLakeOrganizationConfigurationError::InternalServerException(inner) => Error::InternalServerException(inner),
242 crate::operation::create_data_lake_organization_configuration::CreateDataLakeOrganizationConfigurationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
243 crate::operation::create_data_lake_organization_configuration::CreateDataLakeOrganizationConfigurationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
244 crate::operation::create_data_lake_organization_configuration::CreateDataLakeOrganizationConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
245 }
246 }
247}
248impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_subscriber::CreateSubscriberError, R>> for Error
249where
250 R: Send + Sync + std::fmt::Debug + 'static,
251{
252 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_subscriber::CreateSubscriberError, R>) -> Self {
253 match err {
254 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
255 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
256 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
257 source: err.into(),
258 }),
259 }
260 }
261}
262impl From<crate::operation::create_subscriber::CreateSubscriberError> for Error {
263 fn from(err: crate::operation::create_subscriber::CreateSubscriberError) -> Self {
264 match err {
265 crate::operation::create_subscriber::CreateSubscriberError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
266 crate::operation::create_subscriber::CreateSubscriberError::BadRequestException(inner) => Error::BadRequestException(inner),
267 crate::operation::create_subscriber::CreateSubscriberError::ConflictException(inner) => Error::ConflictException(inner),
268 crate::operation::create_subscriber::CreateSubscriberError::InternalServerException(inner) => Error::InternalServerException(inner),
269 crate::operation::create_subscriber::CreateSubscriberError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
270 crate::operation::create_subscriber::CreateSubscriberError::ThrottlingException(inner) => Error::ThrottlingException(inner),
271 crate::operation::create_subscriber::CreateSubscriberError::Unhandled(inner) => Error::Unhandled(inner),
272 }
273 }
274}
275impl<R>
276 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_subscriber_notification::CreateSubscriberNotificationError, R>>
277 for Error
278where
279 R: Send + Sync + std::fmt::Debug + 'static,
280{
281 fn from(
282 err: ::aws_smithy_runtime_api::client::result::SdkError<
283 crate::operation::create_subscriber_notification::CreateSubscriberNotificationError,
284 R,
285 >,
286 ) -> Self {
287 match err {
288 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
289 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
290 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
291 source: err.into(),
292 }),
293 }
294 }
295}
296impl From<crate::operation::create_subscriber_notification::CreateSubscriberNotificationError> for Error {
297 fn from(err: crate::operation::create_subscriber_notification::CreateSubscriberNotificationError) -> Self {
298 match err {
299 crate::operation::create_subscriber_notification::CreateSubscriberNotificationError::AccessDeniedException(inner) => {
300 Error::AccessDeniedException(inner)
301 }
302 crate::operation::create_subscriber_notification::CreateSubscriberNotificationError::BadRequestException(inner) => {
303 Error::BadRequestException(inner)
304 }
305 crate::operation::create_subscriber_notification::CreateSubscriberNotificationError::ConflictException(inner) => {
306 Error::ConflictException(inner)
307 }
308 crate::operation::create_subscriber_notification::CreateSubscriberNotificationError::InternalServerException(inner) => {
309 Error::InternalServerException(inner)
310 }
311 crate::operation::create_subscriber_notification::CreateSubscriberNotificationError::ResourceNotFoundException(inner) => {
312 Error::ResourceNotFoundException(inner)
313 }
314 crate::operation::create_subscriber_notification::CreateSubscriberNotificationError::ThrottlingException(inner) => {
315 Error::ThrottlingException(inner)
316 }
317 crate::operation::create_subscriber_notification::CreateSubscriberNotificationError::Unhandled(inner) => Error::Unhandled(inner),
318 }
319 }
320}
321impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_aws_log_source::DeleteAwsLogSourceError, R>> for Error
322where
323 R: Send + Sync + std::fmt::Debug + 'static,
324{
325 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_aws_log_source::DeleteAwsLogSourceError, R>) -> Self {
326 match err {
327 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
328 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
329 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
330 source: err.into(),
331 }),
332 }
333 }
334}
335impl From<crate::operation::delete_aws_log_source::DeleteAwsLogSourceError> for Error {
336 fn from(err: crate::operation::delete_aws_log_source::DeleteAwsLogSourceError) -> Self {
337 match err {
338 crate::operation::delete_aws_log_source::DeleteAwsLogSourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
339 crate::operation::delete_aws_log_source::DeleteAwsLogSourceError::BadRequestException(inner) => Error::BadRequestException(inner),
340 crate::operation::delete_aws_log_source::DeleteAwsLogSourceError::ConflictException(inner) => Error::ConflictException(inner),
341 crate::operation::delete_aws_log_source::DeleteAwsLogSourceError::InternalServerException(inner) => Error::InternalServerException(inner),
342 crate::operation::delete_aws_log_source::DeleteAwsLogSourceError::ResourceNotFoundException(inner) => {
343 Error::ResourceNotFoundException(inner)
344 }
345 crate::operation::delete_aws_log_source::DeleteAwsLogSourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
346 crate::operation::delete_aws_log_source::DeleteAwsLogSourceError::Unhandled(inner) => Error::Unhandled(inner),
347 }
348 }
349}
350impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_custom_log_source::DeleteCustomLogSourceError, R>> for Error
351where
352 R: Send + Sync + std::fmt::Debug + 'static,
353{
354 fn from(
355 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_custom_log_source::DeleteCustomLogSourceError, R>,
356 ) -> Self {
357 match err {
358 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
359 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
360 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
361 source: err.into(),
362 }),
363 }
364 }
365}
366impl From<crate::operation::delete_custom_log_source::DeleteCustomLogSourceError> for Error {
367 fn from(err: crate::operation::delete_custom_log_source::DeleteCustomLogSourceError) -> Self {
368 match err {
369 crate::operation::delete_custom_log_source::DeleteCustomLogSourceError::AccessDeniedException(inner) => {
370 Error::AccessDeniedException(inner)
371 }
372 crate::operation::delete_custom_log_source::DeleteCustomLogSourceError::BadRequestException(inner) => Error::BadRequestException(inner),
373 crate::operation::delete_custom_log_source::DeleteCustomLogSourceError::ConflictException(inner) => Error::ConflictException(inner),
374 crate::operation::delete_custom_log_source::DeleteCustomLogSourceError::InternalServerException(inner) => {
375 Error::InternalServerException(inner)
376 }
377 crate::operation::delete_custom_log_source::DeleteCustomLogSourceError::ResourceNotFoundException(inner) => {
378 Error::ResourceNotFoundException(inner)
379 }
380 crate::operation::delete_custom_log_source::DeleteCustomLogSourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
381 crate::operation::delete_custom_log_source::DeleteCustomLogSourceError::Unhandled(inner) => Error::Unhandled(inner),
382 }
383 }
384}
385impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_data_lake::DeleteDataLakeError, R>> for Error
386where
387 R: Send + Sync + std::fmt::Debug + 'static,
388{
389 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_data_lake::DeleteDataLakeError, R>) -> Self {
390 match err {
391 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
392 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
393 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
394 source: err.into(),
395 }),
396 }
397 }
398}
399impl From<crate::operation::delete_data_lake::DeleteDataLakeError> for Error {
400 fn from(err: crate::operation::delete_data_lake::DeleteDataLakeError) -> Self {
401 match err {
402 crate::operation::delete_data_lake::DeleteDataLakeError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
403 crate::operation::delete_data_lake::DeleteDataLakeError::BadRequestException(inner) => Error::BadRequestException(inner),
404 crate::operation::delete_data_lake::DeleteDataLakeError::ConflictException(inner) => Error::ConflictException(inner),
405 crate::operation::delete_data_lake::DeleteDataLakeError::InternalServerException(inner) => Error::InternalServerException(inner),
406 crate::operation::delete_data_lake::DeleteDataLakeError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
407 crate::operation::delete_data_lake::DeleteDataLakeError::ThrottlingException(inner) => Error::ThrottlingException(inner),
408 crate::operation::delete_data_lake::DeleteDataLakeError::Unhandled(inner) => Error::Unhandled(inner),
409 }
410 }
411}
412impl<R>
413 From<
414 ::aws_smithy_runtime_api::client::result::SdkError<
415 crate::operation::delete_data_lake_exception_subscription::DeleteDataLakeExceptionSubscriptionError,
416 R,
417 >,
418 > for Error
419where
420 R: Send + Sync + std::fmt::Debug + 'static,
421{
422 fn from(
423 err: ::aws_smithy_runtime_api::client::result::SdkError<
424 crate::operation::delete_data_lake_exception_subscription::DeleteDataLakeExceptionSubscriptionError,
425 R,
426 >,
427 ) -> 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_data_lake_exception_subscription::DeleteDataLakeExceptionSubscriptionError> for Error {
438 fn from(err: crate::operation::delete_data_lake_exception_subscription::DeleteDataLakeExceptionSubscriptionError) -> Self {
439 match err {
440 crate::operation::delete_data_lake_exception_subscription::DeleteDataLakeExceptionSubscriptionError::AccessDeniedException(inner) => {
441 Error::AccessDeniedException(inner)
442 }
443 crate::operation::delete_data_lake_exception_subscription::DeleteDataLakeExceptionSubscriptionError::BadRequestException(inner) => {
444 Error::BadRequestException(inner)
445 }
446 crate::operation::delete_data_lake_exception_subscription::DeleteDataLakeExceptionSubscriptionError::ConflictException(inner) => {
447 Error::ConflictException(inner)
448 }
449 crate::operation::delete_data_lake_exception_subscription::DeleteDataLakeExceptionSubscriptionError::InternalServerException(inner) => {
450 Error::InternalServerException(inner)
451 }
452 crate::operation::delete_data_lake_exception_subscription::DeleteDataLakeExceptionSubscriptionError::ResourceNotFoundException(inner) => {
453 Error::ResourceNotFoundException(inner)
454 }
455 crate::operation::delete_data_lake_exception_subscription::DeleteDataLakeExceptionSubscriptionError::ThrottlingException(inner) => {
456 Error::ThrottlingException(inner)
457 }
458 crate::operation::delete_data_lake_exception_subscription::DeleteDataLakeExceptionSubscriptionError::Unhandled(inner) => {
459 Error::Unhandled(inner)
460 }
461 }
462 }
463}
464impl<R>
465 From<
466 ::aws_smithy_runtime_api::client::result::SdkError<
467 crate::operation::delete_data_lake_organization_configuration::DeleteDataLakeOrganizationConfigurationError,
468 R,
469 >,
470 > for Error
471where
472 R: Send + Sync + std::fmt::Debug + 'static,
473{
474 fn from(
475 err: ::aws_smithy_runtime_api::client::result::SdkError<
476 crate::operation::delete_data_lake_organization_configuration::DeleteDataLakeOrganizationConfigurationError,
477 R,
478 >,
479 ) -> Self {
480 match err {
481 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
482 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
483 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
484 source: err.into(),
485 }),
486 }
487 }
488}
489impl From<crate::operation::delete_data_lake_organization_configuration::DeleteDataLakeOrganizationConfigurationError> for Error {
490 fn from(err: crate::operation::delete_data_lake_organization_configuration::DeleteDataLakeOrganizationConfigurationError) -> Self {
491 match err {
492 crate::operation::delete_data_lake_organization_configuration::DeleteDataLakeOrganizationConfigurationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
493 crate::operation::delete_data_lake_organization_configuration::DeleteDataLakeOrganizationConfigurationError::BadRequestException(inner) => Error::BadRequestException(inner),
494 crate::operation::delete_data_lake_organization_configuration::DeleteDataLakeOrganizationConfigurationError::ConflictException(inner) => Error::ConflictException(inner),
495 crate::operation::delete_data_lake_organization_configuration::DeleteDataLakeOrganizationConfigurationError::InternalServerException(inner) => Error::InternalServerException(inner),
496 crate::operation::delete_data_lake_organization_configuration::DeleteDataLakeOrganizationConfigurationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
497 crate::operation::delete_data_lake_organization_configuration::DeleteDataLakeOrganizationConfigurationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
498 crate::operation::delete_data_lake_organization_configuration::DeleteDataLakeOrganizationConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
499 }
500 }
501}
502impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_subscriber::DeleteSubscriberError, R>> for Error
503where
504 R: Send + Sync + std::fmt::Debug + 'static,
505{
506 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_subscriber::DeleteSubscriberError, R>) -> Self {
507 match err {
508 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
509 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
510 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
511 source: err.into(),
512 }),
513 }
514 }
515}
516impl From<crate::operation::delete_subscriber::DeleteSubscriberError> for Error {
517 fn from(err: crate::operation::delete_subscriber::DeleteSubscriberError) -> Self {
518 match err {
519 crate::operation::delete_subscriber::DeleteSubscriberError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
520 crate::operation::delete_subscriber::DeleteSubscriberError::BadRequestException(inner) => Error::BadRequestException(inner),
521 crate::operation::delete_subscriber::DeleteSubscriberError::ConflictException(inner) => Error::ConflictException(inner),
522 crate::operation::delete_subscriber::DeleteSubscriberError::InternalServerException(inner) => Error::InternalServerException(inner),
523 crate::operation::delete_subscriber::DeleteSubscriberError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
524 crate::operation::delete_subscriber::DeleteSubscriberError::ThrottlingException(inner) => Error::ThrottlingException(inner),
525 crate::operation::delete_subscriber::DeleteSubscriberError::Unhandled(inner) => Error::Unhandled(inner),
526 }
527 }
528}
529impl<R>
530 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_subscriber_notification::DeleteSubscriberNotificationError, R>>
531 for Error
532where
533 R: Send + Sync + std::fmt::Debug + 'static,
534{
535 fn from(
536 err: ::aws_smithy_runtime_api::client::result::SdkError<
537 crate::operation::delete_subscriber_notification::DeleteSubscriberNotificationError,
538 R,
539 >,
540 ) -> Self {
541 match err {
542 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
543 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
544 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
545 source: err.into(),
546 }),
547 }
548 }
549}
550impl From<crate::operation::delete_subscriber_notification::DeleteSubscriberNotificationError> for Error {
551 fn from(err: crate::operation::delete_subscriber_notification::DeleteSubscriberNotificationError) -> Self {
552 match err {
553 crate::operation::delete_subscriber_notification::DeleteSubscriberNotificationError::AccessDeniedException(inner) => {
554 Error::AccessDeniedException(inner)
555 }
556 crate::operation::delete_subscriber_notification::DeleteSubscriberNotificationError::BadRequestException(inner) => {
557 Error::BadRequestException(inner)
558 }
559 crate::operation::delete_subscriber_notification::DeleteSubscriberNotificationError::ConflictException(inner) => {
560 Error::ConflictException(inner)
561 }
562 crate::operation::delete_subscriber_notification::DeleteSubscriberNotificationError::InternalServerException(inner) => {
563 Error::InternalServerException(inner)
564 }
565 crate::operation::delete_subscriber_notification::DeleteSubscriberNotificationError::ResourceNotFoundException(inner) => {
566 Error::ResourceNotFoundException(inner)
567 }
568 crate::operation::delete_subscriber_notification::DeleteSubscriberNotificationError::ThrottlingException(inner) => {
569 Error::ThrottlingException(inner)
570 }
571 crate::operation::delete_subscriber_notification::DeleteSubscriberNotificationError::Unhandled(inner) => Error::Unhandled(inner),
572 }
573 }
574}
575impl<R>
576 From<
577 ::aws_smithy_runtime_api::client::result::SdkError<
578 crate::operation::deregister_data_lake_delegated_administrator::DeregisterDataLakeDelegatedAdministratorError,
579 R,
580 >,
581 > for Error
582where
583 R: Send + Sync + std::fmt::Debug + 'static,
584{
585 fn from(
586 err: ::aws_smithy_runtime_api::client::result::SdkError<
587 crate::operation::deregister_data_lake_delegated_administrator::DeregisterDataLakeDelegatedAdministratorError,
588 R,
589 >,
590 ) -> Self {
591 match err {
592 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
593 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
594 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
595 source: err.into(),
596 }),
597 }
598 }
599}
600impl From<crate::operation::deregister_data_lake_delegated_administrator::DeregisterDataLakeDelegatedAdministratorError> for Error {
601 fn from(err: crate::operation::deregister_data_lake_delegated_administrator::DeregisterDataLakeDelegatedAdministratorError) -> Self {
602 match err {
603 crate::operation::deregister_data_lake_delegated_administrator::DeregisterDataLakeDelegatedAdministratorError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
604 crate::operation::deregister_data_lake_delegated_administrator::DeregisterDataLakeDelegatedAdministratorError::BadRequestException(inner) => Error::BadRequestException(inner),
605 crate::operation::deregister_data_lake_delegated_administrator::DeregisterDataLakeDelegatedAdministratorError::ConflictException(inner) => Error::ConflictException(inner),
606 crate::operation::deregister_data_lake_delegated_administrator::DeregisterDataLakeDelegatedAdministratorError::InternalServerException(inner) => Error::InternalServerException(inner),
607 crate::operation::deregister_data_lake_delegated_administrator::DeregisterDataLakeDelegatedAdministratorError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
608 crate::operation::deregister_data_lake_delegated_administrator::DeregisterDataLakeDelegatedAdministratorError::ThrottlingException(inner) => Error::ThrottlingException(inner),
609 crate::operation::deregister_data_lake_delegated_administrator::DeregisterDataLakeDelegatedAdministratorError::Unhandled(inner) => Error::Unhandled(inner),
610 }
611 }
612}
613impl<R>
614 From<
615 ::aws_smithy_runtime_api::client::result::SdkError<
616 crate::operation::get_data_lake_exception_subscription::GetDataLakeExceptionSubscriptionError,
617 R,
618 >,
619 > for Error
620where
621 R: Send + Sync + std::fmt::Debug + 'static,
622{
623 fn from(
624 err: ::aws_smithy_runtime_api::client::result::SdkError<
625 crate::operation::get_data_lake_exception_subscription::GetDataLakeExceptionSubscriptionError,
626 R,
627 >,
628 ) -> Self {
629 match err {
630 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
631 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
632 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
633 source: err.into(),
634 }),
635 }
636 }
637}
638impl From<crate::operation::get_data_lake_exception_subscription::GetDataLakeExceptionSubscriptionError> for Error {
639 fn from(err: crate::operation::get_data_lake_exception_subscription::GetDataLakeExceptionSubscriptionError) -> Self {
640 match err {
641 crate::operation::get_data_lake_exception_subscription::GetDataLakeExceptionSubscriptionError::AccessDeniedException(inner) => {
642 Error::AccessDeniedException(inner)
643 }
644 crate::operation::get_data_lake_exception_subscription::GetDataLakeExceptionSubscriptionError::BadRequestException(inner) => {
645 Error::BadRequestException(inner)
646 }
647 crate::operation::get_data_lake_exception_subscription::GetDataLakeExceptionSubscriptionError::ConflictException(inner) => {
648 Error::ConflictException(inner)
649 }
650 crate::operation::get_data_lake_exception_subscription::GetDataLakeExceptionSubscriptionError::InternalServerException(inner) => {
651 Error::InternalServerException(inner)
652 }
653 crate::operation::get_data_lake_exception_subscription::GetDataLakeExceptionSubscriptionError::ResourceNotFoundException(inner) => {
654 Error::ResourceNotFoundException(inner)
655 }
656 crate::operation::get_data_lake_exception_subscription::GetDataLakeExceptionSubscriptionError::ThrottlingException(inner) => {
657 Error::ThrottlingException(inner)
658 }
659 crate::operation::get_data_lake_exception_subscription::GetDataLakeExceptionSubscriptionError::Unhandled(inner) => {
660 Error::Unhandled(inner)
661 }
662 }
663 }
664}
665impl<R>
666 From<
667 ::aws_smithy_runtime_api::client::result::SdkError<
668 crate::operation::get_data_lake_organization_configuration::GetDataLakeOrganizationConfigurationError,
669 R,
670 >,
671 > for Error
672where
673 R: Send + Sync + std::fmt::Debug + 'static,
674{
675 fn from(
676 err: ::aws_smithy_runtime_api::client::result::SdkError<
677 crate::operation::get_data_lake_organization_configuration::GetDataLakeOrganizationConfigurationError,
678 R,
679 >,
680 ) -> Self {
681 match err {
682 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
683 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
684 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
685 source: err.into(),
686 }),
687 }
688 }
689}
690impl From<crate::operation::get_data_lake_organization_configuration::GetDataLakeOrganizationConfigurationError> for Error {
691 fn from(err: crate::operation::get_data_lake_organization_configuration::GetDataLakeOrganizationConfigurationError) -> Self {
692 match err {
693 crate::operation::get_data_lake_organization_configuration::GetDataLakeOrganizationConfigurationError::AccessDeniedException(inner) => {
694 Error::AccessDeniedException(inner)
695 }
696 crate::operation::get_data_lake_organization_configuration::GetDataLakeOrganizationConfigurationError::BadRequestException(inner) => {
697 Error::BadRequestException(inner)
698 }
699 crate::operation::get_data_lake_organization_configuration::GetDataLakeOrganizationConfigurationError::ConflictException(inner) => {
700 Error::ConflictException(inner)
701 }
702 crate::operation::get_data_lake_organization_configuration::GetDataLakeOrganizationConfigurationError::InternalServerException(inner) => {
703 Error::InternalServerException(inner)
704 }
705 crate::operation::get_data_lake_organization_configuration::GetDataLakeOrganizationConfigurationError::ResourceNotFoundException(
706 inner,
707 ) => Error::ResourceNotFoundException(inner),
708 crate::operation::get_data_lake_organization_configuration::GetDataLakeOrganizationConfigurationError::ThrottlingException(inner) => {
709 Error::ThrottlingException(inner)
710 }
711 crate::operation::get_data_lake_organization_configuration::GetDataLakeOrganizationConfigurationError::Unhandled(inner) => {
712 Error::Unhandled(inner)
713 }
714 }
715 }
716}
717impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_data_lake_sources::GetDataLakeSourcesError, R>> for Error
718where
719 R: Send + Sync + std::fmt::Debug + 'static,
720{
721 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_data_lake_sources::GetDataLakeSourcesError, R>) -> Self {
722 match err {
723 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
724 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
725 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
726 source: err.into(),
727 }),
728 }
729 }
730}
731impl From<crate::operation::get_data_lake_sources::GetDataLakeSourcesError> for Error {
732 fn from(err: crate::operation::get_data_lake_sources::GetDataLakeSourcesError) -> Self {
733 match err {
734 crate::operation::get_data_lake_sources::GetDataLakeSourcesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
735 crate::operation::get_data_lake_sources::GetDataLakeSourcesError::BadRequestException(inner) => Error::BadRequestException(inner),
736 crate::operation::get_data_lake_sources::GetDataLakeSourcesError::ConflictException(inner) => Error::ConflictException(inner),
737 crate::operation::get_data_lake_sources::GetDataLakeSourcesError::InternalServerException(inner) => Error::InternalServerException(inner),
738 crate::operation::get_data_lake_sources::GetDataLakeSourcesError::ResourceNotFoundException(inner) => {
739 Error::ResourceNotFoundException(inner)
740 }
741 crate::operation::get_data_lake_sources::GetDataLakeSourcesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
742 crate::operation::get_data_lake_sources::GetDataLakeSourcesError::Unhandled(inner) => Error::Unhandled(inner),
743 }
744 }
745}
746impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_subscriber::GetSubscriberError, R>> for Error
747where
748 R: Send + Sync + std::fmt::Debug + 'static,
749{
750 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_subscriber::GetSubscriberError, R>) -> Self {
751 match err {
752 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
753 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
754 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
755 source: err.into(),
756 }),
757 }
758 }
759}
760impl From<crate::operation::get_subscriber::GetSubscriberError> for Error {
761 fn from(err: crate::operation::get_subscriber::GetSubscriberError) -> Self {
762 match err {
763 crate::operation::get_subscriber::GetSubscriberError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
764 crate::operation::get_subscriber::GetSubscriberError::BadRequestException(inner) => Error::BadRequestException(inner),
765 crate::operation::get_subscriber::GetSubscriberError::ConflictException(inner) => Error::ConflictException(inner),
766 crate::operation::get_subscriber::GetSubscriberError::InternalServerException(inner) => Error::InternalServerException(inner),
767 crate::operation::get_subscriber::GetSubscriberError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
768 crate::operation::get_subscriber::GetSubscriberError::ThrottlingException(inner) => Error::ThrottlingException(inner),
769 crate::operation::get_subscriber::GetSubscriberError::Unhandled(inner) => Error::Unhandled(inner),
770 }
771 }
772}
773impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_data_lake_exceptions::ListDataLakeExceptionsError, R>>
774 for Error
775where
776 R: Send + Sync + std::fmt::Debug + 'static,
777{
778 fn from(
779 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_data_lake_exceptions::ListDataLakeExceptionsError, R>,
780 ) -> Self {
781 match err {
782 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
783 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
784 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
785 source: err.into(),
786 }),
787 }
788 }
789}
790impl From<crate::operation::list_data_lake_exceptions::ListDataLakeExceptionsError> for Error {
791 fn from(err: crate::operation::list_data_lake_exceptions::ListDataLakeExceptionsError) -> Self {
792 match err {
793 crate::operation::list_data_lake_exceptions::ListDataLakeExceptionsError::AccessDeniedException(inner) => {
794 Error::AccessDeniedException(inner)
795 }
796 crate::operation::list_data_lake_exceptions::ListDataLakeExceptionsError::BadRequestException(inner) => Error::BadRequestException(inner),
797 crate::operation::list_data_lake_exceptions::ListDataLakeExceptionsError::ConflictException(inner) => Error::ConflictException(inner),
798 crate::operation::list_data_lake_exceptions::ListDataLakeExceptionsError::InternalServerException(inner) => {
799 Error::InternalServerException(inner)
800 }
801 crate::operation::list_data_lake_exceptions::ListDataLakeExceptionsError::ResourceNotFoundException(inner) => {
802 Error::ResourceNotFoundException(inner)
803 }
804 crate::operation::list_data_lake_exceptions::ListDataLakeExceptionsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
805 crate::operation::list_data_lake_exceptions::ListDataLakeExceptionsError::Unhandled(inner) => Error::Unhandled(inner),
806 }
807 }
808}
809impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_data_lakes::ListDataLakesError, R>> for Error
810where
811 R: Send + Sync + std::fmt::Debug + 'static,
812{
813 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_data_lakes::ListDataLakesError, R>) -> Self {
814 match err {
815 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
816 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
817 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
818 source: err.into(),
819 }),
820 }
821 }
822}
823impl From<crate::operation::list_data_lakes::ListDataLakesError> for Error {
824 fn from(err: crate::operation::list_data_lakes::ListDataLakesError) -> Self {
825 match err {
826 crate::operation::list_data_lakes::ListDataLakesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
827 crate::operation::list_data_lakes::ListDataLakesError::BadRequestException(inner) => Error::BadRequestException(inner),
828 crate::operation::list_data_lakes::ListDataLakesError::ConflictException(inner) => Error::ConflictException(inner),
829 crate::operation::list_data_lakes::ListDataLakesError::InternalServerException(inner) => Error::InternalServerException(inner),
830 crate::operation::list_data_lakes::ListDataLakesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
831 crate::operation::list_data_lakes::ListDataLakesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
832 crate::operation::list_data_lakes::ListDataLakesError::Unhandled(inner) => Error::Unhandled(inner),
833 }
834 }
835}
836impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_log_sources::ListLogSourcesError, R>> for Error
837where
838 R: Send + Sync + std::fmt::Debug + 'static,
839{
840 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_log_sources::ListLogSourcesError, R>) -> Self {
841 match err {
842 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
843 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
844 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
845 source: err.into(),
846 }),
847 }
848 }
849}
850impl From<crate::operation::list_log_sources::ListLogSourcesError> for Error {
851 fn from(err: crate::operation::list_log_sources::ListLogSourcesError) -> Self {
852 match err {
853 crate::operation::list_log_sources::ListLogSourcesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
854 crate::operation::list_log_sources::ListLogSourcesError::BadRequestException(inner) => Error::BadRequestException(inner),
855 crate::operation::list_log_sources::ListLogSourcesError::ConflictException(inner) => Error::ConflictException(inner),
856 crate::operation::list_log_sources::ListLogSourcesError::InternalServerException(inner) => Error::InternalServerException(inner),
857 crate::operation::list_log_sources::ListLogSourcesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
858 crate::operation::list_log_sources::ListLogSourcesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
859 crate::operation::list_log_sources::ListLogSourcesError::Unhandled(inner) => Error::Unhandled(inner),
860 }
861 }
862}
863impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_subscribers::ListSubscribersError, R>> for Error
864where
865 R: Send + Sync + std::fmt::Debug + 'static,
866{
867 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_subscribers::ListSubscribersError, R>) -> Self {
868 match err {
869 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
870 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
871 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
872 source: err.into(),
873 }),
874 }
875 }
876}
877impl From<crate::operation::list_subscribers::ListSubscribersError> for Error {
878 fn from(err: crate::operation::list_subscribers::ListSubscribersError) -> Self {
879 match err {
880 crate::operation::list_subscribers::ListSubscribersError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
881 crate::operation::list_subscribers::ListSubscribersError::BadRequestException(inner) => Error::BadRequestException(inner),
882 crate::operation::list_subscribers::ListSubscribersError::ConflictException(inner) => Error::ConflictException(inner),
883 crate::operation::list_subscribers::ListSubscribersError::InternalServerException(inner) => Error::InternalServerException(inner),
884 crate::operation::list_subscribers::ListSubscribersError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
885 crate::operation::list_subscribers::ListSubscribersError::ThrottlingException(inner) => Error::ThrottlingException(inner),
886 crate::operation::list_subscribers::ListSubscribersError::Unhandled(inner) => Error::Unhandled(inner),
887 }
888 }
889}
890impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
891where
892 R: Send + Sync + std::fmt::Debug + 'static,
893{
894 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
895 match err {
896 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
897 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
898 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
899 source: err.into(),
900 }),
901 }
902 }
903}
904impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
905 fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
906 match err {
907 crate::operation::list_tags_for_resource::ListTagsForResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
908 crate::operation::list_tags_for_resource::ListTagsForResourceError::BadRequestException(inner) => Error::BadRequestException(inner),
909 crate::operation::list_tags_for_resource::ListTagsForResourceError::ConflictException(inner) => Error::ConflictException(inner),
910 crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerException(inner) => {
911 Error::InternalServerException(inner)
912 }
913 crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
914 Error::ResourceNotFoundException(inner)
915 }
916 crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
917 crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
918 }
919 }
920}
921impl<R>
922 From<
923 ::aws_smithy_runtime_api::client::result::SdkError<
924 crate::operation::register_data_lake_delegated_administrator::RegisterDataLakeDelegatedAdministratorError,
925 R,
926 >,
927 > for Error
928where
929 R: Send + Sync + std::fmt::Debug + 'static,
930{
931 fn from(
932 err: ::aws_smithy_runtime_api::client::result::SdkError<
933 crate::operation::register_data_lake_delegated_administrator::RegisterDataLakeDelegatedAdministratorError,
934 R,
935 >,
936 ) -> Self {
937 match err {
938 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
939 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
940 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
941 source: err.into(),
942 }),
943 }
944 }
945}
946impl From<crate::operation::register_data_lake_delegated_administrator::RegisterDataLakeDelegatedAdministratorError> for Error {
947 fn from(err: crate::operation::register_data_lake_delegated_administrator::RegisterDataLakeDelegatedAdministratorError) -> Self {
948 match err {
949 crate::operation::register_data_lake_delegated_administrator::RegisterDataLakeDelegatedAdministratorError::AccessDeniedException(
950 inner,
951 ) => Error::AccessDeniedException(inner),
952 crate::operation::register_data_lake_delegated_administrator::RegisterDataLakeDelegatedAdministratorError::BadRequestException(inner) => {
953 Error::BadRequestException(inner)
954 }
955 crate::operation::register_data_lake_delegated_administrator::RegisterDataLakeDelegatedAdministratorError::ConflictException(inner) => {
956 Error::ConflictException(inner)
957 }
958 crate::operation::register_data_lake_delegated_administrator::RegisterDataLakeDelegatedAdministratorError::InternalServerException(
959 inner,
960 ) => Error::InternalServerException(inner),
961 crate::operation::register_data_lake_delegated_administrator::RegisterDataLakeDelegatedAdministratorError::ResourceNotFoundException(
962 inner,
963 ) => Error::ResourceNotFoundException(inner),
964 crate::operation::register_data_lake_delegated_administrator::RegisterDataLakeDelegatedAdministratorError::ThrottlingException(inner) => {
965 Error::ThrottlingException(inner)
966 }
967 crate::operation::register_data_lake_delegated_administrator::RegisterDataLakeDelegatedAdministratorError::Unhandled(inner) => {
968 Error::Unhandled(inner)
969 }
970 }
971 }
972}
973impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
974where
975 R: Send + Sync + std::fmt::Debug + 'static,
976{
977 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
978 match err {
979 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
980 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
981 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
982 source: err.into(),
983 }),
984 }
985 }
986}
987impl From<crate::operation::tag_resource::TagResourceError> for Error {
988 fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
989 match err {
990 crate::operation::tag_resource::TagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
991 crate::operation::tag_resource::TagResourceError::BadRequestException(inner) => Error::BadRequestException(inner),
992 crate::operation::tag_resource::TagResourceError::ConflictException(inner) => Error::ConflictException(inner),
993 crate::operation::tag_resource::TagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
994 crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
995 crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
996 crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
997 }
998 }
999}
1000impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
1001where
1002 R: Send + Sync + std::fmt::Debug + 'static,
1003{
1004 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
1005 match err {
1006 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1007 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1008 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1009 source: err.into(),
1010 }),
1011 }
1012 }
1013}
1014impl From<crate::operation::untag_resource::UntagResourceError> for Error {
1015 fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
1016 match err {
1017 crate::operation::untag_resource::UntagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1018 crate::operation::untag_resource::UntagResourceError::BadRequestException(inner) => Error::BadRequestException(inner),
1019 crate::operation::untag_resource::UntagResourceError::ConflictException(inner) => Error::ConflictException(inner),
1020 crate::operation::untag_resource::UntagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
1021 crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1022 crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1023 crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1024 }
1025 }
1026}
1027impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_data_lake::UpdateDataLakeError, R>> for Error
1028where
1029 R: Send + Sync + std::fmt::Debug + 'static,
1030{
1031 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_data_lake::UpdateDataLakeError, R>) -> Self {
1032 match err {
1033 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1034 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1035 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1036 source: err.into(),
1037 }),
1038 }
1039 }
1040}
1041impl From<crate::operation::update_data_lake::UpdateDataLakeError> for Error {
1042 fn from(err: crate::operation::update_data_lake::UpdateDataLakeError) -> Self {
1043 match err {
1044 crate::operation::update_data_lake::UpdateDataLakeError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1045 crate::operation::update_data_lake::UpdateDataLakeError::BadRequestException(inner) => Error::BadRequestException(inner),
1046 crate::operation::update_data_lake::UpdateDataLakeError::ConflictException(inner) => Error::ConflictException(inner),
1047 crate::operation::update_data_lake::UpdateDataLakeError::InternalServerException(inner) => Error::InternalServerException(inner),
1048 crate::operation::update_data_lake::UpdateDataLakeError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1049 crate::operation::update_data_lake::UpdateDataLakeError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1050 crate::operation::update_data_lake::UpdateDataLakeError::Unhandled(inner) => Error::Unhandled(inner),
1051 }
1052 }
1053}
1054impl<R>
1055 From<
1056 ::aws_smithy_runtime_api::client::result::SdkError<
1057 crate::operation::update_data_lake_exception_subscription::UpdateDataLakeExceptionSubscriptionError,
1058 R,
1059 >,
1060 > for Error
1061where
1062 R: Send + Sync + std::fmt::Debug + 'static,
1063{
1064 fn from(
1065 err: ::aws_smithy_runtime_api::client::result::SdkError<
1066 crate::operation::update_data_lake_exception_subscription::UpdateDataLakeExceptionSubscriptionError,
1067 R,
1068 >,
1069 ) -> Self {
1070 match err {
1071 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1072 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1073 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1074 source: err.into(),
1075 }),
1076 }
1077 }
1078}
1079impl From<crate::operation::update_data_lake_exception_subscription::UpdateDataLakeExceptionSubscriptionError> for Error {
1080 fn from(err: crate::operation::update_data_lake_exception_subscription::UpdateDataLakeExceptionSubscriptionError) -> Self {
1081 match err {
1082 crate::operation::update_data_lake_exception_subscription::UpdateDataLakeExceptionSubscriptionError::AccessDeniedException(inner) => {
1083 Error::AccessDeniedException(inner)
1084 }
1085 crate::operation::update_data_lake_exception_subscription::UpdateDataLakeExceptionSubscriptionError::BadRequestException(inner) => {
1086 Error::BadRequestException(inner)
1087 }
1088 crate::operation::update_data_lake_exception_subscription::UpdateDataLakeExceptionSubscriptionError::ConflictException(inner) => {
1089 Error::ConflictException(inner)
1090 }
1091 crate::operation::update_data_lake_exception_subscription::UpdateDataLakeExceptionSubscriptionError::InternalServerException(inner) => {
1092 Error::InternalServerException(inner)
1093 }
1094 crate::operation::update_data_lake_exception_subscription::UpdateDataLakeExceptionSubscriptionError::ResourceNotFoundException(inner) => {
1095 Error::ResourceNotFoundException(inner)
1096 }
1097 crate::operation::update_data_lake_exception_subscription::UpdateDataLakeExceptionSubscriptionError::ThrottlingException(inner) => {
1098 Error::ThrottlingException(inner)
1099 }
1100 crate::operation::update_data_lake_exception_subscription::UpdateDataLakeExceptionSubscriptionError::Unhandled(inner) => {
1101 Error::Unhandled(inner)
1102 }
1103 }
1104 }
1105}
1106impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_subscriber::UpdateSubscriberError, R>> for Error
1107where
1108 R: Send + Sync + std::fmt::Debug + 'static,
1109{
1110 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_subscriber::UpdateSubscriberError, R>) -> Self {
1111 match err {
1112 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1113 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1114 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1115 source: err.into(),
1116 }),
1117 }
1118 }
1119}
1120impl From<crate::operation::update_subscriber::UpdateSubscriberError> for Error {
1121 fn from(err: crate::operation::update_subscriber::UpdateSubscriberError) -> Self {
1122 match err {
1123 crate::operation::update_subscriber::UpdateSubscriberError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1124 crate::operation::update_subscriber::UpdateSubscriberError::BadRequestException(inner) => Error::BadRequestException(inner),
1125 crate::operation::update_subscriber::UpdateSubscriberError::ConflictException(inner) => Error::ConflictException(inner),
1126 crate::operation::update_subscriber::UpdateSubscriberError::InternalServerException(inner) => Error::InternalServerException(inner),
1127 crate::operation::update_subscriber::UpdateSubscriberError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1128 crate::operation::update_subscriber::UpdateSubscriberError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1129 crate::operation::update_subscriber::UpdateSubscriberError::Unhandled(inner) => Error::Unhandled(inner),
1130 }
1131 }
1132}
1133impl<R>
1134 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_subscriber_notification::UpdateSubscriberNotificationError, R>>
1135 for Error
1136where
1137 R: Send + Sync + std::fmt::Debug + 'static,
1138{
1139 fn from(
1140 err: ::aws_smithy_runtime_api::client::result::SdkError<
1141 crate::operation::update_subscriber_notification::UpdateSubscriberNotificationError,
1142 R,
1143 >,
1144 ) -> Self {
1145 match err {
1146 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1147 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1148 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1149 source: err.into(),
1150 }),
1151 }
1152 }
1153}
1154impl From<crate::operation::update_subscriber_notification::UpdateSubscriberNotificationError> for Error {
1155 fn from(err: crate::operation::update_subscriber_notification::UpdateSubscriberNotificationError) -> Self {
1156 match err {
1157 crate::operation::update_subscriber_notification::UpdateSubscriberNotificationError::AccessDeniedException(inner) => {
1158 Error::AccessDeniedException(inner)
1159 }
1160 crate::operation::update_subscriber_notification::UpdateSubscriberNotificationError::BadRequestException(inner) => {
1161 Error::BadRequestException(inner)
1162 }
1163 crate::operation::update_subscriber_notification::UpdateSubscriberNotificationError::ConflictException(inner) => {
1164 Error::ConflictException(inner)
1165 }
1166 crate::operation::update_subscriber_notification::UpdateSubscriberNotificationError::InternalServerException(inner) => {
1167 Error::InternalServerException(inner)
1168 }
1169 crate::operation::update_subscriber_notification::UpdateSubscriberNotificationError::ResourceNotFoundException(inner) => {
1170 Error::ResourceNotFoundException(inner)
1171 }
1172 crate::operation::update_subscriber_notification::UpdateSubscriberNotificationError::ThrottlingException(inner) => {
1173 Error::ThrottlingException(inner)
1174 }
1175 crate::operation::update_subscriber_notification::UpdateSubscriberNotificationError::Unhandled(inner) => Error::Unhandled(inner),
1176 }
1177 }
1178}
1179impl ::std::error::Error for Error {
1180 fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
1181 match self {
1182 Error::AccessDeniedException(inner) => inner.source(),
1183 Error::BadRequestException(inner) => inner.source(),
1184 Error::ConflictException(inner) => inner.source(),
1185 Error::InternalServerException(inner) => inner.source(),
1186 Error::ResourceNotFoundException(inner) => inner.source(),
1187 Error::ThrottlingException(inner) => inner.source(),
1188 Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
1189 }
1190 }
1191}
1192impl ::aws_types::request_id::RequestId for Error {
1193 fn request_id(&self) -> Option<&str> {
1194 match self {
1195 Self::AccessDeniedException(e) => e.request_id(),
1196 Self::BadRequestException(e) => e.request_id(),
1197 Self::ConflictException(e) => e.request_id(),
1198 Self::InternalServerException(e) => e.request_id(),
1199 Self::ResourceNotFoundException(e) => e.request_id(),
1200 Self::ThrottlingException(e) => e.request_id(),
1201 Self::Unhandled(e) => e.meta.request_id(),
1202 }
1203 }
1204}