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