1#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6 CertificateConflictException(crate::types::error::CertificateConflictException),
8 CertificateStateException(crate::types::error::CertificateStateException),
10 CertificateValidationException(crate::types::error::CertificateValidationException),
12 ConflictException(crate::types::error::ConflictException),
14 ConflictingResourceUpdateException(crate::types::error::ConflictingResourceUpdateException),
16 DeleteConflictException(crate::types::error::DeleteConflictException),
18 IndexNotReadyException(crate::types::error::IndexNotReadyException),
20 InternalException(crate::types::error::InternalException),
22 InternalFailureException(crate::types::error::InternalFailureException),
24 InternalServerException(crate::types::error::InternalServerException),
26 InvalidAggregationException(crate::types::error::InvalidAggregationException),
28 InvalidQueryException(crate::types::error::InvalidQueryException),
30 InvalidRequestException(crate::types::error::InvalidRequestException),
32 InvalidResponseException(crate::types::error::InvalidResponseException),
34 InvalidStateTransitionException(crate::types::error::InvalidStateTransitionException),
36 LimitExceededException(crate::types::error::LimitExceededException),
38 MalformedPolicyException(crate::types::error::MalformedPolicyException),
40 NotConfiguredException(crate::types::error::NotConfiguredException),
42 RegistrationCodeValidationException(crate::types::error::RegistrationCodeValidationException),
44 ResourceAlreadyExistsException(crate::types::error::ResourceAlreadyExistsException),
46 ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
48 ResourceRegistrationFailureException(crate::types::error::ResourceRegistrationFailureException),
50 ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
52 ServiceUnavailableException(crate::types::error::ServiceUnavailableException),
54 SqlParseException(crate::types::error::SqlParseException),
56 TaskAlreadyExistsException(crate::types::error::TaskAlreadyExistsException),
58 ThrottlingException(crate::types::error::ThrottlingException),
60 TransferAlreadyCompletedException(crate::types::error::TransferAlreadyCompletedException),
62 TransferConflictException(crate::types::error::TransferConflictException),
64 UnauthorizedException(crate::types::error::UnauthorizedException),
66 ValidationException(crate::types::error::ValidationException),
68 VersionConflictException(crate::types::error::VersionConflictException),
70 VersionsLimitExceededException(crate::types::error::VersionsLimitExceededException),
72 #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
74 variable wildcard pattern and check `.code()`:
75 \
76 `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
77 \
78 See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
79 Unhandled(crate::error::sealed_unhandled::Unhandled),
80}
81impl ::std::fmt::Display for Error {
82 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
83 match self {
84 Error::CertificateConflictException(inner) => inner.fmt(f),
85 Error::CertificateStateException(inner) => inner.fmt(f),
86 Error::CertificateValidationException(inner) => inner.fmt(f),
87 Error::ConflictException(inner) => inner.fmt(f),
88 Error::ConflictingResourceUpdateException(inner) => inner.fmt(f),
89 Error::DeleteConflictException(inner) => inner.fmt(f),
90 Error::IndexNotReadyException(inner) => inner.fmt(f),
91 Error::InternalException(inner) => inner.fmt(f),
92 Error::InternalFailureException(inner) => inner.fmt(f),
93 Error::InternalServerException(inner) => inner.fmt(f),
94 Error::InvalidAggregationException(inner) => inner.fmt(f),
95 Error::InvalidQueryException(inner) => inner.fmt(f),
96 Error::InvalidRequestException(inner) => inner.fmt(f),
97 Error::InvalidResponseException(inner) => inner.fmt(f),
98 Error::InvalidStateTransitionException(inner) => inner.fmt(f),
99 Error::LimitExceededException(inner) => inner.fmt(f),
100 Error::MalformedPolicyException(inner) => inner.fmt(f),
101 Error::NotConfiguredException(inner) => inner.fmt(f),
102 Error::RegistrationCodeValidationException(inner) => inner.fmt(f),
103 Error::ResourceAlreadyExistsException(inner) => inner.fmt(f),
104 Error::ResourceNotFoundException(inner) => inner.fmt(f),
105 Error::ResourceRegistrationFailureException(inner) => inner.fmt(f),
106 Error::ServiceQuotaExceededException(inner) => inner.fmt(f),
107 Error::ServiceUnavailableException(inner) => inner.fmt(f),
108 Error::SqlParseException(inner) => inner.fmt(f),
109 Error::TaskAlreadyExistsException(inner) => inner.fmt(f),
110 Error::ThrottlingException(inner) => inner.fmt(f),
111 Error::TransferAlreadyCompletedException(inner) => inner.fmt(f),
112 Error::TransferConflictException(inner) => inner.fmt(f),
113 Error::UnauthorizedException(inner) => inner.fmt(f),
114 Error::ValidationException(inner) => inner.fmt(f),
115 Error::VersionConflictException(inner) => inner.fmt(f),
116 Error::VersionsLimitExceededException(inner) => inner.fmt(f),
117 Error::Unhandled(_) => {
118 if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
119 write!(f, "unhandled error ({code})")
120 } else {
121 f.write_str("unhandled error")
122 }
123 }
124 }
125 }
126}
127impl From<::aws_smithy_types::error::operation::BuildError> for Error {
128 fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
129 Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
130 source: value.into(),
131 meta: ::std::default::Default::default(),
132 })
133 }
134}
135impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
136 fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
137 match self {
138 Self::CertificateConflictException(inner) => inner.meta(),
139 Self::CertificateStateException(inner) => inner.meta(),
140 Self::CertificateValidationException(inner) => inner.meta(),
141 Self::ConflictException(inner) => inner.meta(),
142 Self::ConflictingResourceUpdateException(inner) => inner.meta(),
143 Self::DeleteConflictException(inner) => inner.meta(),
144 Self::IndexNotReadyException(inner) => inner.meta(),
145 Self::InternalException(inner) => inner.meta(),
146 Self::InternalFailureException(inner) => inner.meta(),
147 Self::InternalServerException(inner) => inner.meta(),
148 Self::InvalidAggregationException(inner) => inner.meta(),
149 Self::InvalidQueryException(inner) => inner.meta(),
150 Self::InvalidRequestException(inner) => inner.meta(),
151 Self::InvalidResponseException(inner) => inner.meta(),
152 Self::InvalidStateTransitionException(inner) => inner.meta(),
153 Self::LimitExceededException(inner) => inner.meta(),
154 Self::MalformedPolicyException(inner) => inner.meta(),
155 Self::NotConfiguredException(inner) => inner.meta(),
156 Self::RegistrationCodeValidationException(inner) => inner.meta(),
157 Self::ResourceAlreadyExistsException(inner) => inner.meta(),
158 Self::ResourceNotFoundException(inner) => inner.meta(),
159 Self::ResourceRegistrationFailureException(inner) => inner.meta(),
160 Self::ServiceQuotaExceededException(inner) => inner.meta(),
161 Self::ServiceUnavailableException(inner) => inner.meta(),
162 Self::SqlParseException(inner) => inner.meta(),
163 Self::TaskAlreadyExistsException(inner) => inner.meta(),
164 Self::ThrottlingException(inner) => inner.meta(),
165 Self::TransferAlreadyCompletedException(inner) => inner.meta(),
166 Self::TransferConflictException(inner) => inner.meta(),
167 Self::UnauthorizedException(inner) => inner.meta(),
168 Self::ValidationException(inner) => inner.meta(),
169 Self::VersionConflictException(inner) => inner.meta(),
170 Self::VersionsLimitExceededException(inner) => inner.meta(),
171 Self::Unhandled(inner) => &inner.meta,
172 }
173 }
174}
175impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::accept_certificate_transfer::AcceptCertificateTransferError, R>>
176 for Error
177where
178 R: Send + Sync + std::fmt::Debug + 'static,
179{
180 fn from(
181 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::accept_certificate_transfer::AcceptCertificateTransferError, R>,
182 ) -> Self {
183 match err {
184 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
185 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
186 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
187 source: err.into(),
188 }),
189 }
190 }
191}
192impl From<crate::operation::accept_certificate_transfer::AcceptCertificateTransferError> for Error {
193 fn from(err: crate::operation::accept_certificate_transfer::AcceptCertificateTransferError) -> Self {
194 match err {
195 crate::operation::accept_certificate_transfer::AcceptCertificateTransferError::InternalFailureException(inner) => {
196 Error::InternalFailureException(inner)
197 }
198 crate::operation::accept_certificate_transfer::AcceptCertificateTransferError::InvalidRequestException(inner) => {
199 Error::InvalidRequestException(inner)
200 }
201 crate::operation::accept_certificate_transfer::AcceptCertificateTransferError::ResourceNotFoundException(inner) => {
202 Error::ResourceNotFoundException(inner)
203 }
204 crate::operation::accept_certificate_transfer::AcceptCertificateTransferError::ServiceUnavailableException(inner) => {
205 Error::ServiceUnavailableException(inner)
206 }
207 crate::operation::accept_certificate_transfer::AcceptCertificateTransferError::ThrottlingException(inner) => {
208 Error::ThrottlingException(inner)
209 }
210 crate::operation::accept_certificate_transfer::AcceptCertificateTransferError::TransferAlreadyCompletedException(inner) => {
211 Error::TransferAlreadyCompletedException(inner)
212 }
213 crate::operation::accept_certificate_transfer::AcceptCertificateTransferError::UnauthorizedException(inner) => {
214 Error::UnauthorizedException(inner)
215 }
216 crate::operation::accept_certificate_transfer::AcceptCertificateTransferError::Unhandled(inner) => Error::Unhandled(inner),
217 }
218 }
219}
220impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::add_thing_to_billing_group::AddThingToBillingGroupError, R>>
221 for Error
222where
223 R: Send + Sync + std::fmt::Debug + 'static,
224{
225 fn from(
226 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::add_thing_to_billing_group::AddThingToBillingGroupError, R>,
227 ) -> Self {
228 match err {
229 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
230 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
231 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
232 source: err.into(),
233 }),
234 }
235 }
236}
237impl From<crate::operation::add_thing_to_billing_group::AddThingToBillingGroupError> for Error {
238 fn from(err: crate::operation::add_thing_to_billing_group::AddThingToBillingGroupError) -> Self {
239 match err {
240 crate::operation::add_thing_to_billing_group::AddThingToBillingGroupError::InternalFailureException(inner) => {
241 Error::InternalFailureException(inner)
242 }
243 crate::operation::add_thing_to_billing_group::AddThingToBillingGroupError::InvalidRequestException(inner) => {
244 Error::InvalidRequestException(inner)
245 }
246 crate::operation::add_thing_to_billing_group::AddThingToBillingGroupError::ResourceNotFoundException(inner) => {
247 Error::ResourceNotFoundException(inner)
248 }
249 crate::operation::add_thing_to_billing_group::AddThingToBillingGroupError::ThrottlingException(inner) => {
250 Error::ThrottlingException(inner)
251 }
252 crate::operation::add_thing_to_billing_group::AddThingToBillingGroupError::Unhandled(inner) => Error::Unhandled(inner),
253 }
254 }
255}
256impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::add_thing_to_thing_group::AddThingToThingGroupError, R>> for Error
257where
258 R: Send + Sync + std::fmt::Debug + 'static,
259{
260 fn from(
261 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::add_thing_to_thing_group::AddThingToThingGroupError, R>,
262 ) -> Self {
263 match err {
264 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
265 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
266 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
267 source: err.into(),
268 }),
269 }
270 }
271}
272impl From<crate::operation::add_thing_to_thing_group::AddThingToThingGroupError> for Error {
273 fn from(err: crate::operation::add_thing_to_thing_group::AddThingToThingGroupError) -> Self {
274 match err {
275 crate::operation::add_thing_to_thing_group::AddThingToThingGroupError::InternalFailureException(inner) => {
276 Error::InternalFailureException(inner)
277 }
278 crate::operation::add_thing_to_thing_group::AddThingToThingGroupError::InvalidRequestException(inner) => {
279 Error::InvalidRequestException(inner)
280 }
281 crate::operation::add_thing_to_thing_group::AddThingToThingGroupError::ResourceNotFoundException(inner) => {
282 Error::ResourceNotFoundException(inner)
283 }
284 crate::operation::add_thing_to_thing_group::AddThingToThingGroupError::ThrottlingException(inner) => Error::ThrottlingException(inner),
285 crate::operation::add_thing_to_thing_group::AddThingToThingGroupError::Unhandled(inner) => Error::Unhandled(inner),
286 }
287 }
288}
289impl<R>
290 From<
291 ::aws_smithy_runtime_api::client::result::SdkError<
292 crate::operation::associate_sbom_with_package_version::AssociateSbomWithPackageVersionError,
293 R,
294 >,
295 > for Error
296where
297 R: Send + Sync + std::fmt::Debug + 'static,
298{
299 fn from(
300 err: ::aws_smithy_runtime_api::client::result::SdkError<
301 crate::operation::associate_sbom_with_package_version::AssociateSbomWithPackageVersionError,
302 R,
303 >,
304 ) -> Self {
305 match err {
306 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
307 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
308 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
309 source: err.into(),
310 }),
311 }
312 }
313}
314impl From<crate::operation::associate_sbom_with_package_version::AssociateSbomWithPackageVersionError> for Error {
315 fn from(err: crate::operation::associate_sbom_with_package_version::AssociateSbomWithPackageVersionError) -> Self {
316 match err {
317 crate::operation::associate_sbom_with_package_version::AssociateSbomWithPackageVersionError::ConflictException(inner) => {
318 Error::ConflictException(inner)
319 }
320 crate::operation::associate_sbom_with_package_version::AssociateSbomWithPackageVersionError::InternalServerException(inner) => {
321 Error::InternalServerException(inner)
322 }
323 crate::operation::associate_sbom_with_package_version::AssociateSbomWithPackageVersionError::ResourceNotFoundException(inner) => {
324 Error::ResourceNotFoundException(inner)
325 }
326 crate::operation::associate_sbom_with_package_version::AssociateSbomWithPackageVersionError::ServiceQuotaExceededException(inner) => {
327 Error::ServiceQuotaExceededException(inner)
328 }
329 crate::operation::associate_sbom_with_package_version::AssociateSbomWithPackageVersionError::ThrottlingException(inner) => {
330 Error::ThrottlingException(inner)
331 }
332 crate::operation::associate_sbom_with_package_version::AssociateSbomWithPackageVersionError::ValidationException(inner) => {
333 Error::ValidationException(inner)
334 }
335 crate::operation::associate_sbom_with_package_version::AssociateSbomWithPackageVersionError::Unhandled(inner) => Error::Unhandled(inner),
336 }
337 }
338}
339impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_targets_with_job::AssociateTargetsWithJobError, R>>
340 for Error
341where
342 R: Send + Sync + std::fmt::Debug + 'static,
343{
344 fn from(
345 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_targets_with_job::AssociateTargetsWithJobError, R>,
346 ) -> Self {
347 match err {
348 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
349 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
350 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
351 source: err.into(),
352 }),
353 }
354 }
355}
356impl From<crate::operation::associate_targets_with_job::AssociateTargetsWithJobError> for Error {
357 fn from(err: crate::operation::associate_targets_with_job::AssociateTargetsWithJobError) -> Self {
358 match err {
359 crate::operation::associate_targets_with_job::AssociateTargetsWithJobError::InvalidRequestException(inner) => {
360 Error::InvalidRequestException(inner)
361 }
362 crate::operation::associate_targets_with_job::AssociateTargetsWithJobError::LimitExceededException(inner) => {
363 Error::LimitExceededException(inner)
364 }
365 crate::operation::associate_targets_with_job::AssociateTargetsWithJobError::ResourceNotFoundException(inner) => {
366 Error::ResourceNotFoundException(inner)
367 }
368 crate::operation::associate_targets_with_job::AssociateTargetsWithJobError::ServiceUnavailableException(inner) => {
369 Error::ServiceUnavailableException(inner)
370 }
371 crate::operation::associate_targets_with_job::AssociateTargetsWithJobError::ThrottlingException(inner) => {
372 Error::ThrottlingException(inner)
373 }
374 crate::operation::associate_targets_with_job::AssociateTargetsWithJobError::Unhandled(inner) => Error::Unhandled(inner),
375 }
376 }
377}
378impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::attach_policy::AttachPolicyError, R>> for Error
379where
380 R: Send + Sync + std::fmt::Debug + 'static,
381{
382 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::attach_policy::AttachPolicyError, R>) -> Self {
383 match err {
384 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
385 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
386 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
387 source: err.into(),
388 }),
389 }
390 }
391}
392impl From<crate::operation::attach_policy::AttachPolicyError> for Error {
393 fn from(err: crate::operation::attach_policy::AttachPolicyError) -> Self {
394 match err {
395 crate::operation::attach_policy::AttachPolicyError::InternalFailureException(inner) => Error::InternalFailureException(inner),
396 crate::operation::attach_policy::AttachPolicyError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
397 crate::operation::attach_policy::AttachPolicyError::LimitExceededException(inner) => Error::LimitExceededException(inner),
398 crate::operation::attach_policy::AttachPolicyError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
399 crate::operation::attach_policy::AttachPolicyError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
400 crate::operation::attach_policy::AttachPolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
401 crate::operation::attach_policy::AttachPolicyError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
402 crate::operation::attach_policy::AttachPolicyError::Unhandled(inner) => Error::Unhandled(inner),
403 }
404 }
405}
406impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::attach_principal_policy::AttachPrincipalPolicyError, R>> for Error
407where
408 R: Send + Sync + std::fmt::Debug + 'static,
409{
410 fn from(
411 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::attach_principal_policy::AttachPrincipalPolicyError, R>,
412 ) -> Self {
413 match err {
414 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
415 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
416 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
417 source: err.into(),
418 }),
419 }
420 }
421}
422impl From<crate::operation::attach_principal_policy::AttachPrincipalPolicyError> for Error {
423 fn from(err: crate::operation::attach_principal_policy::AttachPrincipalPolicyError) -> Self {
424 match err {
425 crate::operation::attach_principal_policy::AttachPrincipalPolicyError::InternalFailureException(inner) => {
426 Error::InternalFailureException(inner)
427 }
428 crate::operation::attach_principal_policy::AttachPrincipalPolicyError::InvalidRequestException(inner) => {
429 Error::InvalidRequestException(inner)
430 }
431 crate::operation::attach_principal_policy::AttachPrincipalPolicyError::LimitExceededException(inner) => {
432 Error::LimitExceededException(inner)
433 }
434 crate::operation::attach_principal_policy::AttachPrincipalPolicyError::ResourceNotFoundException(inner) => {
435 Error::ResourceNotFoundException(inner)
436 }
437 crate::operation::attach_principal_policy::AttachPrincipalPolicyError::ServiceUnavailableException(inner) => {
438 Error::ServiceUnavailableException(inner)
439 }
440 crate::operation::attach_principal_policy::AttachPrincipalPolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
441 crate::operation::attach_principal_policy::AttachPrincipalPolicyError::UnauthorizedException(inner) => {
442 Error::UnauthorizedException(inner)
443 }
444 crate::operation::attach_principal_policy::AttachPrincipalPolicyError::Unhandled(inner) => Error::Unhandled(inner),
445 }
446 }
447}
448impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::attach_security_profile::AttachSecurityProfileError, R>> for Error
449where
450 R: Send + Sync + std::fmt::Debug + 'static,
451{
452 fn from(
453 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::attach_security_profile::AttachSecurityProfileError, R>,
454 ) -> Self {
455 match err {
456 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
457 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
458 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
459 source: err.into(),
460 }),
461 }
462 }
463}
464impl From<crate::operation::attach_security_profile::AttachSecurityProfileError> for Error {
465 fn from(err: crate::operation::attach_security_profile::AttachSecurityProfileError) -> Self {
466 match err {
467 crate::operation::attach_security_profile::AttachSecurityProfileError::InternalFailureException(inner) => {
468 Error::InternalFailureException(inner)
469 }
470 crate::operation::attach_security_profile::AttachSecurityProfileError::InvalidRequestException(inner) => {
471 Error::InvalidRequestException(inner)
472 }
473 crate::operation::attach_security_profile::AttachSecurityProfileError::LimitExceededException(inner) => {
474 Error::LimitExceededException(inner)
475 }
476 crate::operation::attach_security_profile::AttachSecurityProfileError::ResourceNotFoundException(inner) => {
477 Error::ResourceNotFoundException(inner)
478 }
479 crate::operation::attach_security_profile::AttachSecurityProfileError::ThrottlingException(inner) => Error::ThrottlingException(inner),
480 crate::operation::attach_security_profile::AttachSecurityProfileError::VersionConflictException(inner) => {
481 Error::VersionConflictException(inner)
482 }
483 crate::operation::attach_security_profile::AttachSecurityProfileError::Unhandled(inner) => Error::Unhandled(inner),
484 }
485 }
486}
487impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::attach_thing_principal::AttachThingPrincipalError, R>> for Error
488where
489 R: Send + Sync + std::fmt::Debug + 'static,
490{
491 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::attach_thing_principal::AttachThingPrincipalError, R>) -> Self {
492 match err {
493 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
494 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
495 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
496 source: err.into(),
497 }),
498 }
499 }
500}
501impl From<crate::operation::attach_thing_principal::AttachThingPrincipalError> for Error {
502 fn from(err: crate::operation::attach_thing_principal::AttachThingPrincipalError) -> Self {
503 match err {
504 crate::operation::attach_thing_principal::AttachThingPrincipalError::InternalFailureException(inner) => {
505 Error::InternalFailureException(inner)
506 }
507 crate::operation::attach_thing_principal::AttachThingPrincipalError::InvalidRequestException(inner) => {
508 Error::InvalidRequestException(inner)
509 }
510 crate::operation::attach_thing_principal::AttachThingPrincipalError::ResourceNotFoundException(inner) => {
511 Error::ResourceNotFoundException(inner)
512 }
513 crate::operation::attach_thing_principal::AttachThingPrincipalError::ServiceUnavailableException(inner) => {
514 Error::ServiceUnavailableException(inner)
515 }
516 crate::operation::attach_thing_principal::AttachThingPrincipalError::ThrottlingException(inner) => Error::ThrottlingException(inner),
517 crate::operation::attach_thing_principal::AttachThingPrincipalError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
518 crate::operation::attach_thing_principal::AttachThingPrincipalError::Unhandled(inner) => Error::Unhandled(inner),
519 }
520 }
521}
522impl<R>
523 From<
524 ::aws_smithy_runtime_api::client::result::SdkError<
525 crate::operation::cancel_audit_mitigation_actions_task::CancelAuditMitigationActionsTaskError,
526 R,
527 >,
528 > for Error
529where
530 R: Send + Sync + std::fmt::Debug + 'static,
531{
532 fn from(
533 err: ::aws_smithy_runtime_api::client::result::SdkError<
534 crate::operation::cancel_audit_mitigation_actions_task::CancelAuditMitigationActionsTaskError,
535 R,
536 >,
537 ) -> Self {
538 match err {
539 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
540 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
541 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
542 source: err.into(),
543 }),
544 }
545 }
546}
547impl From<crate::operation::cancel_audit_mitigation_actions_task::CancelAuditMitigationActionsTaskError> for Error {
548 fn from(err: crate::operation::cancel_audit_mitigation_actions_task::CancelAuditMitigationActionsTaskError) -> Self {
549 match err {
550 crate::operation::cancel_audit_mitigation_actions_task::CancelAuditMitigationActionsTaskError::InternalFailureException(inner) => {
551 Error::InternalFailureException(inner)
552 }
553 crate::operation::cancel_audit_mitigation_actions_task::CancelAuditMitigationActionsTaskError::InvalidRequestException(inner) => {
554 Error::InvalidRequestException(inner)
555 }
556 crate::operation::cancel_audit_mitigation_actions_task::CancelAuditMitigationActionsTaskError::ResourceNotFoundException(inner) => {
557 Error::ResourceNotFoundException(inner)
558 }
559 crate::operation::cancel_audit_mitigation_actions_task::CancelAuditMitigationActionsTaskError::ThrottlingException(inner) => {
560 Error::ThrottlingException(inner)
561 }
562 crate::operation::cancel_audit_mitigation_actions_task::CancelAuditMitigationActionsTaskError::Unhandled(inner) => {
563 Error::Unhandled(inner)
564 }
565 }
566 }
567}
568impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_audit_task::CancelAuditTaskError, R>> for Error
569where
570 R: Send + Sync + std::fmt::Debug + 'static,
571{
572 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_audit_task::CancelAuditTaskError, R>) -> Self {
573 match err {
574 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
575 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
576 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
577 source: err.into(),
578 }),
579 }
580 }
581}
582impl From<crate::operation::cancel_audit_task::CancelAuditTaskError> for Error {
583 fn from(err: crate::operation::cancel_audit_task::CancelAuditTaskError) -> Self {
584 match err {
585 crate::operation::cancel_audit_task::CancelAuditTaskError::InternalFailureException(inner) => Error::InternalFailureException(inner),
586 crate::operation::cancel_audit_task::CancelAuditTaskError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
587 crate::operation::cancel_audit_task::CancelAuditTaskError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
588 crate::operation::cancel_audit_task::CancelAuditTaskError::ThrottlingException(inner) => Error::ThrottlingException(inner),
589 crate::operation::cancel_audit_task::CancelAuditTaskError::Unhandled(inner) => Error::Unhandled(inner),
590 }
591 }
592}
593impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_certificate_transfer::CancelCertificateTransferError, R>>
594 for Error
595where
596 R: Send + Sync + std::fmt::Debug + 'static,
597{
598 fn from(
599 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_certificate_transfer::CancelCertificateTransferError, R>,
600 ) -> Self {
601 match err {
602 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
603 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
604 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
605 source: err.into(),
606 }),
607 }
608 }
609}
610impl From<crate::operation::cancel_certificate_transfer::CancelCertificateTransferError> for Error {
611 fn from(err: crate::operation::cancel_certificate_transfer::CancelCertificateTransferError) -> Self {
612 match err {
613 crate::operation::cancel_certificate_transfer::CancelCertificateTransferError::InternalFailureException(inner) => {
614 Error::InternalFailureException(inner)
615 }
616 crate::operation::cancel_certificate_transfer::CancelCertificateTransferError::InvalidRequestException(inner) => {
617 Error::InvalidRequestException(inner)
618 }
619 crate::operation::cancel_certificate_transfer::CancelCertificateTransferError::ResourceNotFoundException(inner) => {
620 Error::ResourceNotFoundException(inner)
621 }
622 crate::operation::cancel_certificate_transfer::CancelCertificateTransferError::ServiceUnavailableException(inner) => {
623 Error::ServiceUnavailableException(inner)
624 }
625 crate::operation::cancel_certificate_transfer::CancelCertificateTransferError::ThrottlingException(inner) => {
626 Error::ThrottlingException(inner)
627 }
628 crate::operation::cancel_certificate_transfer::CancelCertificateTransferError::TransferAlreadyCompletedException(inner) => {
629 Error::TransferAlreadyCompletedException(inner)
630 }
631 crate::operation::cancel_certificate_transfer::CancelCertificateTransferError::UnauthorizedException(inner) => {
632 Error::UnauthorizedException(inner)
633 }
634 crate::operation::cancel_certificate_transfer::CancelCertificateTransferError::Unhandled(inner) => Error::Unhandled(inner),
635 }
636 }
637}
638impl<R>
639 From<
640 ::aws_smithy_runtime_api::client::result::SdkError<
641 crate::operation::cancel_detect_mitigation_actions_task::CancelDetectMitigationActionsTaskError,
642 R,
643 >,
644 > for Error
645where
646 R: Send + Sync + std::fmt::Debug + 'static,
647{
648 fn from(
649 err: ::aws_smithy_runtime_api::client::result::SdkError<
650 crate::operation::cancel_detect_mitigation_actions_task::CancelDetectMitigationActionsTaskError,
651 R,
652 >,
653 ) -> Self {
654 match err {
655 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
656 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
657 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
658 source: err.into(),
659 }),
660 }
661 }
662}
663impl From<crate::operation::cancel_detect_mitigation_actions_task::CancelDetectMitigationActionsTaskError> for Error {
664 fn from(err: crate::operation::cancel_detect_mitigation_actions_task::CancelDetectMitigationActionsTaskError) -> Self {
665 match err {
666 crate::operation::cancel_detect_mitigation_actions_task::CancelDetectMitigationActionsTaskError::InternalFailureException(inner) => {
667 Error::InternalFailureException(inner)
668 }
669 crate::operation::cancel_detect_mitigation_actions_task::CancelDetectMitigationActionsTaskError::InvalidRequestException(inner) => {
670 Error::InvalidRequestException(inner)
671 }
672 crate::operation::cancel_detect_mitigation_actions_task::CancelDetectMitigationActionsTaskError::ResourceNotFoundException(inner) => {
673 Error::ResourceNotFoundException(inner)
674 }
675 crate::operation::cancel_detect_mitigation_actions_task::CancelDetectMitigationActionsTaskError::ThrottlingException(inner) => {
676 Error::ThrottlingException(inner)
677 }
678 crate::operation::cancel_detect_mitigation_actions_task::CancelDetectMitigationActionsTaskError::Unhandled(inner) => {
679 Error::Unhandled(inner)
680 }
681 }
682 }
683}
684impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_job::CancelJobError, R>> for Error
685where
686 R: Send + Sync + std::fmt::Debug + 'static,
687{
688 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_job::CancelJobError, R>) -> Self {
689 match err {
690 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
691 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
692 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
693 source: err.into(),
694 }),
695 }
696 }
697}
698impl From<crate::operation::cancel_job::CancelJobError> for Error {
699 fn from(err: crate::operation::cancel_job::CancelJobError) -> Self {
700 match err {
701 crate::operation::cancel_job::CancelJobError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
702 crate::operation::cancel_job::CancelJobError::LimitExceededException(inner) => Error::LimitExceededException(inner),
703 crate::operation::cancel_job::CancelJobError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
704 crate::operation::cancel_job::CancelJobError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
705 crate::operation::cancel_job::CancelJobError::ThrottlingException(inner) => Error::ThrottlingException(inner),
706 crate::operation::cancel_job::CancelJobError::Unhandled(inner) => Error::Unhandled(inner),
707 }
708 }
709}
710impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_job_execution::CancelJobExecutionError, R>> for Error
711where
712 R: Send + Sync + std::fmt::Debug + 'static,
713{
714 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_job_execution::CancelJobExecutionError, R>) -> Self {
715 match err {
716 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
717 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
718 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
719 source: err.into(),
720 }),
721 }
722 }
723}
724impl From<crate::operation::cancel_job_execution::CancelJobExecutionError> for Error {
725 fn from(err: crate::operation::cancel_job_execution::CancelJobExecutionError) -> Self {
726 match err {
727 crate::operation::cancel_job_execution::CancelJobExecutionError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
728 crate::operation::cancel_job_execution::CancelJobExecutionError::InvalidStateTransitionException(inner) => {
729 Error::InvalidStateTransitionException(inner)
730 }
731 crate::operation::cancel_job_execution::CancelJobExecutionError::ResourceNotFoundException(inner) => {
732 Error::ResourceNotFoundException(inner)
733 }
734 crate::operation::cancel_job_execution::CancelJobExecutionError::ServiceUnavailableException(inner) => {
735 Error::ServiceUnavailableException(inner)
736 }
737 crate::operation::cancel_job_execution::CancelJobExecutionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
738 crate::operation::cancel_job_execution::CancelJobExecutionError::VersionConflictException(inner) => {
739 Error::VersionConflictException(inner)
740 }
741 crate::operation::cancel_job_execution::CancelJobExecutionError::Unhandled(inner) => Error::Unhandled(inner),
742 }
743 }
744}
745impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::clear_default_authorizer::ClearDefaultAuthorizerError, R>> for Error
746where
747 R: Send + Sync + std::fmt::Debug + 'static,
748{
749 fn from(
750 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::clear_default_authorizer::ClearDefaultAuthorizerError, R>,
751 ) -> Self {
752 match err {
753 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
754 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
755 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
756 source: err.into(),
757 }),
758 }
759 }
760}
761impl From<crate::operation::clear_default_authorizer::ClearDefaultAuthorizerError> for Error {
762 fn from(err: crate::operation::clear_default_authorizer::ClearDefaultAuthorizerError) -> Self {
763 match err {
764 crate::operation::clear_default_authorizer::ClearDefaultAuthorizerError::InternalFailureException(inner) => {
765 Error::InternalFailureException(inner)
766 }
767 crate::operation::clear_default_authorizer::ClearDefaultAuthorizerError::InvalidRequestException(inner) => {
768 Error::InvalidRequestException(inner)
769 }
770 crate::operation::clear_default_authorizer::ClearDefaultAuthorizerError::ResourceNotFoundException(inner) => {
771 Error::ResourceNotFoundException(inner)
772 }
773 crate::operation::clear_default_authorizer::ClearDefaultAuthorizerError::ServiceUnavailableException(inner) => {
774 Error::ServiceUnavailableException(inner)
775 }
776 crate::operation::clear_default_authorizer::ClearDefaultAuthorizerError::ThrottlingException(inner) => Error::ThrottlingException(inner),
777 crate::operation::clear_default_authorizer::ClearDefaultAuthorizerError::UnauthorizedException(inner) => {
778 Error::UnauthorizedException(inner)
779 }
780 crate::operation::clear_default_authorizer::ClearDefaultAuthorizerError::Unhandled(inner) => Error::Unhandled(inner),
781 }
782 }
783}
784impl<R>
785 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::confirm_topic_rule_destination::ConfirmTopicRuleDestinationError, R>>
786 for Error
787where
788 R: Send + Sync + std::fmt::Debug + 'static,
789{
790 fn from(
791 err: ::aws_smithy_runtime_api::client::result::SdkError<
792 crate::operation::confirm_topic_rule_destination::ConfirmTopicRuleDestinationError,
793 R,
794 >,
795 ) -> Self {
796 match err {
797 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
798 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
799 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
800 source: err.into(),
801 }),
802 }
803 }
804}
805impl From<crate::operation::confirm_topic_rule_destination::ConfirmTopicRuleDestinationError> for Error {
806 fn from(err: crate::operation::confirm_topic_rule_destination::ConfirmTopicRuleDestinationError) -> Self {
807 match err {
808 crate::operation::confirm_topic_rule_destination::ConfirmTopicRuleDestinationError::ConflictingResourceUpdateException(inner) => {
809 Error::ConflictingResourceUpdateException(inner)
810 }
811 crate::operation::confirm_topic_rule_destination::ConfirmTopicRuleDestinationError::InternalException(inner) => {
812 Error::InternalException(inner)
813 }
814 crate::operation::confirm_topic_rule_destination::ConfirmTopicRuleDestinationError::InvalidRequestException(inner) => {
815 Error::InvalidRequestException(inner)
816 }
817 crate::operation::confirm_topic_rule_destination::ConfirmTopicRuleDestinationError::ServiceUnavailableException(inner) => {
818 Error::ServiceUnavailableException(inner)
819 }
820 crate::operation::confirm_topic_rule_destination::ConfirmTopicRuleDestinationError::UnauthorizedException(inner) => {
821 Error::UnauthorizedException(inner)
822 }
823 crate::operation::confirm_topic_rule_destination::ConfirmTopicRuleDestinationError::Unhandled(inner) => Error::Unhandled(inner),
824 }
825 }
826}
827impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_audit_suppression::CreateAuditSuppressionError, 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::create_audit_suppression::CreateAuditSuppressionError, 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::create_audit_suppression::CreateAuditSuppressionError> for Error {
844 fn from(err: crate::operation::create_audit_suppression::CreateAuditSuppressionError) -> Self {
845 match err {
846 crate::operation::create_audit_suppression::CreateAuditSuppressionError::InternalFailureException(inner) => {
847 Error::InternalFailureException(inner)
848 }
849 crate::operation::create_audit_suppression::CreateAuditSuppressionError::InvalidRequestException(inner) => {
850 Error::InvalidRequestException(inner)
851 }
852 crate::operation::create_audit_suppression::CreateAuditSuppressionError::LimitExceededException(inner) => {
853 Error::LimitExceededException(inner)
854 }
855 crate::operation::create_audit_suppression::CreateAuditSuppressionError::ResourceAlreadyExistsException(inner) => {
856 Error::ResourceAlreadyExistsException(inner)
857 }
858 crate::operation::create_audit_suppression::CreateAuditSuppressionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
859 crate::operation::create_audit_suppression::CreateAuditSuppressionError::Unhandled(inner) => Error::Unhandled(inner),
860 }
861 }
862}
863impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_authorizer::CreateAuthorizerError, 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::create_authorizer::CreateAuthorizerError, 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::create_authorizer::CreateAuthorizerError> for Error {
878 fn from(err: crate::operation::create_authorizer::CreateAuthorizerError) -> Self {
879 match err {
880 crate::operation::create_authorizer::CreateAuthorizerError::InternalFailureException(inner) => Error::InternalFailureException(inner),
881 crate::operation::create_authorizer::CreateAuthorizerError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
882 crate::operation::create_authorizer::CreateAuthorizerError::LimitExceededException(inner) => Error::LimitExceededException(inner),
883 crate::operation::create_authorizer::CreateAuthorizerError::ResourceAlreadyExistsException(inner) => {
884 Error::ResourceAlreadyExistsException(inner)
885 }
886 crate::operation::create_authorizer::CreateAuthorizerError::ServiceUnavailableException(inner) => {
887 Error::ServiceUnavailableException(inner)
888 }
889 crate::operation::create_authorizer::CreateAuthorizerError::ThrottlingException(inner) => Error::ThrottlingException(inner),
890 crate::operation::create_authorizer::CreateAuthorizerError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
891 crate::operation::create_authorizer::CreateAuthorizerError::Unhandled(inner) => Error::Unhandled(inner),
892 }
893 }
894}
895impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_billing_group::CreateBillingGroupError, R>> for Error
896where
897 R: Send + Sync + std::fmt::Debug + 'static,
898{
899 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_billing_group::CreateBillingGroupError, R>) -> Self {
900 match err {
901 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
902 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
903 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
904 source: err.into(),
905 }),
906 }
907 }
908}
909impl From<crate::operation::create_billing_group::CreateBillingGroupError> for Error {
910 fn from(err: crate::operation::create_billing_group::CreateBillingGroupError) -> Self {
911 match err {
912 crate::operation::create_billing_group::CreateBillingGroupError::InternalFailureException(inner) => {
913 Error::InternalFailureException(inner)
914 }
915 crate::operation::create_billing_group::CreateBillingGroupError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
916 crate::operation::create_billing_group::CreateBillingGroupError::ResourceAlreadyExistsException(inner) => {
917 Error::ResourceAlreadyExistsException(inner)
918 }
919 crate::operation::create_billing_group::CreateBillingGroupError::ThrottlingException(inner) => Error::ThrottlingException(inner),
920 crate::operation::create_billing_group::CreateBillingGroupError::Unhandled(inner) => Error::Unhandled(inner),
921 }
922 }
923}
924impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_certificate_from_csr::CreateCertificateFromCsrError, R>>
925 for Error
926where
927 R: Send + Sync + std::fmt::Debug + 'static,
928{
929 fn from(
930 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_certificate_from_csr::CreateCertificateFromCsrError, R>,
931 ) -> Self {
932 match err {
933 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
934 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
935 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
936 source: err.into(),
937 }),
938 }
939 }
940}
941impl From<crate::operation::create_certificate_from_csr::CreateCertificateFromCsrError> for Error {
942 fn from(err: crate::operation::create_certificate_from_csr::CreateCertificateFromCsrError) -> Self {
943 match err {
944 crate::operation::create_certificate_from_csr::CreateCertificateFromCsrError::InternalFailureException(inner) => {
945 Error::InternalFailureException(inner)
946 }
947 crate::operation::create_certificate_from_csr::CreateCertificateFromCsrError::InvalidRequestException(inner) => {
948 Error::InvalidRequestException(inner)
949 }
950 crate::operation::create_certificate_from_csr::CreateCertificateFromCsrError::ServiceUnavailableException(inner) => {
951 Error::ServiceUnavailableException(inner)
952 }
953 crate::operation::create_certificate_from_csr::CreateCertificateFromCsrError::ThrottlingException(inner) => {
954 Error::ThrottlingException(inner)
955 }
956 crate::operation::create_certificate_from_csr::CreateCertificateFromCsrError::UnauthorizedException(inner) => {
957 Error::UnauthorizedException(inner)
958 }
959 crate::operation::create_certificate_from_csr::CreateCertificateFromCsrError::Unhandled(inner) => Error::Unhandled(inner),
960 }
961 }
962}
963impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_certificate_provider::CreateCertificateProviderError, R>>
964 for Error
965where
966 R: Send + Sync + std::fmt::Debug + 'static,
967{
968 fn from(
969 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_certificate_provider::CreateCertificateProviderError, R>,
970 ) -> Self {
971 match err {
972 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
973 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
974 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
975 source: err.into(),
976 }),
977 }
978 }
979}
980impl From<crate::operation::create_certificate_provider::CreateCertificateProviderError> for Error {
981 fn from(err: crate::operation::create_certificate_provider::CreateCertificateProviderError) -> Self {
982 match err {
983 crate::operation::create_certificate_provider::CreateCertificateProviderError::InternalFailureException(inner) => {
984 Error::InternalFailureException(inner)
985 }
986 crate::operation::create_certificate_provider::CreateCertificateProviderError::InvalidRequestException(inner) => {
987 Error::InvalidRequestException(inner)
988 }
989 crate::operation::create_certificate_provider::CreateCertificateProviderError::LimitExceededException(inner) => {
990 Error::LimitExceededException(inner)
991 }
992 crate::operation::create_certificate_provider::CreateCertificateProviderError::ResourceAlreadyExistsException(inner) => {
993 Error::ResourceAlreadyExistsException(inner)
994 }
995 crate::operation::create_certificate_provider::CreateCertificateProviderError::ServiceUnavailableException(inner) => {
996 Error::ServiceUnavailableException(inner)
997 }
998 crate::operation::create_certificate_provider::CreateCertificateProviderError::ThrottlingException(inner) => {
999 Error::ThrottlingException(inner)
1000 }
1001 crate::operation::create_certificate_provider::CreateCertificateProviderError::UnauthorizedException(inner) => {
1002 Error::UnauthorizedException(inner)
1003 }
1004 crate::operation::create_certificate_provider::CreateCertificateProviderError::Unhandled(inner) => Error::Unhandled(inner),
1005 }
1006 }
1007}
1008impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_command::CreateCommandError, R>> for Error
1009where
1010 R: Send + Sync + std::fmt::Debug + 'static,
1011{
1012 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_command::CreateCommandError, R>) -> Self {
1013 match err {
1014 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1015 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1016 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1017 source: err.into(),
1018 }),
1019 }
1020 }
1021}
1022impl From<crate::operation::create_command::CreateCommandError> for Error {
1023 fn from(err: crate::operation::create_command::CreateCommandError) -> Self {
1024 match err {
1025 crate::operation::create_command::CreateCommandError::ConflictException(inner) => Error::ConflictException(inner),
1026 crate::operation::create_command::CreateCommandError::InternalServerException(inner) => Error::InternalServerException(inner),
1027 crate::operation::create_command::CreateCommandError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1028 crate::operation::create_command::CreateCommandError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1029 crate::operation::create_command::CreateCommandError::ValidationException(inner) => Error::ValidationException(inner),
1030 crate::operation::create_command::CreateCommandError::Unhandled(inner) => Error::Unhandled(inner),
1031 }
1032 }
1033}
1034impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_custom_metric::CreateCustomMetricError, R>> for Error
1035where
1036 R: Send + Sync + std::fmt::Debug + 'static,
1037{
1038 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_custom_metric::CreateCustomMetricError, R>) -> Self {
1039 match err {
1040 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1041 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1042 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1043 source: err.into(),
1044 }),
1045 }
1046 }
1047}
1048impl From<crate::operation::create_custom_metric::CreateCustomMetricError> for Error {
1049 fn from(err: crate::operation::create_custom_metric::CreateCustomMetricError) -> Self {
1050 match err {
1051 crate::operation::create_custom_metric::CreateCustomMetricError::InternalFailureException(inner) => {
1052 Error::InternalFailureException(inner)
1053 }
1054 crate::operation::create_custom_metric::CreateCustomMetricError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1055 crate::operation::create_custom_metric::CreateCustomMetricError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1056 crate::operation::create_custom_metric::CreateCustomMetricError::ResourceAlreadyExistsException(inner) => {
1057 Error::ResourceAlreadyExistsException(inner)
1058 }
1059 crate::operation::create_custom_metric::CreateCustomMetricError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1060 crate::operation::create_custom_metric::CreateCustomMetricError::Unhandled(inner) => Error::Unhandled(inner),
1061 }
1062 }
1063}
1064impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_dimension::CreateDimensionError, R>> for Error
1065where
1066 R: Send + Sync + std::fmt::Debug + 'static,
1067{
1068 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_dimension::CreateDimensionError, R>) -> Self {
1069 match err {
1070 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1071 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1072 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1073 source: err.into(),
1074 }),
1075 }
1076 }
1077}
1078impl From<crate::operation::create_dimension::CreateDimensionError> for Error {
1079 fn from(err: crate::operation::create_dimension::CreateDimensionError) -> Self {
1080 match err {
1081 crate::operation::create_dimension::CreateDimensionError::InternalFailureException(inner) => Error::InternalFailureException(inner),
1082 crate::operation::create_dimension::CreateDimensionError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1083 crate::operation::create_dimension::CreateDimensionError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1084 crate::operation::create_dimension::CreateDimensionError::ResourceAlreadyExistsException(inner) => {
1085 Error::ResourceAlreadyExistsException(inner)
1086 }
1087 crate::operation::create_dimension::CreateDimensionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1088 crate::operation::create_dimension::CreateDimensionError::Unhandled(inner) => Error::Unhandled(inner),
1089 }
1090 }
1091}
1092impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_domain_configuration::CreateDomainConfigurationError, R>>
1093 for Error
1094where
1095 R: Send + Sync + std::fmt::Debug + 'static,
1096{
1097 fn from(
1098 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_domain_configuration::CreateDomainConfigurationError, R>,
1099 ) -> Self {
1100 match err {
1101 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1102 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1103 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1104 source: err.into(),
1105 }),
1106 }
1107 }
1108}
1109impl From<crate::operation::create_domain_configuration::CreateDomainConfigurationError> for Error {
1110 fn from(err: crate::operation::create_domain_configuration::CreateDomainConfigurationError) -> Self {
1111 match err {
1112 crate::operation::create_domain_configuration::CreateDomainConfigurationError::CertificateValidationException(inner) => {
1113 Error::CertificateValidationException(inner)
1114 }
1115 crate::operation::create_domain_configuration::CreateDomainConfigurationError::InternalFailureException(inner) => {
1116 Error::InternalFailureException(inner)
1117 }
1118 crate::operation::create_domain_configuration::CreateDomainConfigurationError::InvalidRequestException(inner) => {
1119 Error::InvalidRequestException(inner)
1120 }
1121 crate::operation::create_domain_configuration::CreateDomainConfigurationError::LimitExceededException(inner) => {
1122 Error::LimitExceededException(inner)
1123 }
1124 crate::operation::create_domain_configuration::CreateDomainConfigurationError::ResourceAlreadyExistsException(inner) => {
1125 Error::ResourceAlreadyExistsException(inner)
1126 }
1127 crate::operation::create_domain_configuration::CreateDomainConfigurationError::ServiceUnavailableException(inner) => {
1128 Error::ServiceUnavailableException(inner)
1129 }
1130 crate::operation::create_domain_configuration::CreateDomainConfigurationError::ThrottlingException(inner) => {
1131 Error::ThrottlingException(inner)
1132 }
1133 crate::operation::create_domain_configuration::CreateDomainConfigurationError::UnauthorizedException(inner) => {
1134 Error::UnauthorizedException(inner)
1135 }
1136 crate::operation::create_domain_configuration::CreateDomainConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1137 }
1138 }
1139}
1140impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_dynamic_thing_group::CreateDynamicThingGroupError, R>>
1141 for Error
1142where
1143 R: Send + Sync + std::fmt::Debug + 'static,
1144{
1145 fn from(
1146 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_dynamic_thing_group::CreateDynamicThingGroupError, R>,
1147 ) -> Self {
1148 match err {
1149 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1150 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1151 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1152 source: err.into(),
1153 }),
1154 }
1155 }
1156}
1157impl From<crate::operation::create_dynamic_thing_group::CreateDynamicThingGroupError> for Error {
1158 fn from(err: crate::operation::create_dynamic_thing_group::CreateDynamicThingGroupError) -> Self {
1159 match err {
1160 crate::operation::create_dynamic_thing_group::CreateDynamicThingGroupError::InternalFailureException(inner) => {
1161 Error::InternalFailureException(inner)
1162 }
1163 crate::operation::create_dynamic_thing_group::CreateDynamicThingGroupError::InvalidQueryException(inner) => {
1164 Error::InvalidQueryException(inner)
1165 }
1166 crate::operation::create_dynamic_thing_group::CreateDynamicThingGroupError::InvalidRequestException(inner) => {
1167 Error::InvalidRequestException(inner)
1168 }
1169 crate::operation::create_dynamic_thing_group::CreateDynamicThingGroupError::LimitExceededException(inner) => {
1170 Error::LimitExceededException(inner)
1171 }
1172 crate::operation::create_dynamic_thing_group::CreateDynamicThingGroupError::ResourceAlreadyExistsException(inner) => {
1173 Error::ResourceAlreadyExistsException(inner)
1174 }
1175 crate::operation::create_dynamic_thing_group::CreateDynamicThingGroupError::ResourceNotFoundException(inner) => {
1176 Error::ResourceNotFoundException(inner)
1177 }
1178 crate::operation::create_dynamic_thing_group::CreateDynamicThingGroupError::ThrottlingException(inner) => {
1179 Error::ThrottlingException(inner)
1180 }
1181 crate::operation::create_dynamic_thing_group::CreateDynamicThingGroupError::Unhandled(inner) => Error::Unhandled(inner),
1182 }
1183 }
1184}
1185impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_fleet_metric::CreateFleetMetricError, R>> for Error
1186where
1187 R: Send + Sync + std::fmt::Debug + 'static,
1188{
1189 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_fleet_metric::CreateFleetMetricError, R>) -> Self {
1190 match err {
1191 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1192 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1193 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1194 source: err.into(),
1195 }),
1196 }
1197 }
1198}
1199impl From<crate::operation::create_fleet_metric::CreateFleetMetricError> for Error {
1200 fn from(err: crate::operation::create_fleet_metric::CreateFleetMetricError) -> Self {
1201 match err {
1202 crate::operation::create_fleet_metric::CreateFleetMetricError::IndexNotReadyException(inner) => Error::IndexNotReadyException(inner),
1203 crate::operation::create_fleet_metric::CreateFleetMetricError::InternalFailureException(inner) => Error::InternalFailureException(inner),
1204 crate::operation::create_fleet_metric::CreateFleetMetricError::InvalidAggregationException(inner) => {
1205 Error::InvalidAggregationException(inner)
1206 }
1207 crate::operation::create_fleet_metric::CreateFleetMetricError::InvalidQueryException(inner) => Error::InvalidQueryException(inner),
1208 crate::operation::create_fleet_metric::CreateFleetMetricError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1209 crate::operation::create_fleet_metric::CreateFleetMetricError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1210 crate::operation::create_fleet_metric::CreateFleetMetricError::ResourceAlreadyExistsException(inner) => {
1211 Error::ResourceAlreadyExistsException(inner)
1212 }
1213 crate::operation::create_fleet_metric::CreateFleetMetricError::ResourceNotFoundException(inner) => {
1214 Error::ResourceNotFoundException(inner)
1215 }
1216 crate::operation::create_fleet_metric::CreateFleetMetricError::ServiceUnavailableException(inner) => {
1217 Error::ServiceUnavailableException(inner)
1218 }
1219 crate::operation::create_fleet_metric::CreateFleetMetricError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1220 crate::operation::create_fleet_metric::CreateFleetMetricError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1221 crate::operation::create_fleet_metric::CreateFleetMetricError::Unhandled(inner) => Error::Unhandled(inner),
1222 }
1223 }
1224}
1225impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_job::CreateJobError, R>> for Error
1226where
1227 R: Send + Sync + std::fmt::Debug + 'static,
1228{
1229 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_job::CreateJobError, R>) -> Self {
1230 match err {
1231 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1232 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1233 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1234 source: err.into(),
1235 }),
1236 }
1237 }
1238}
1239impl From<crate::operation::create_job::CreateJobError> for Error {
1240 fn from(err: crate::operation::create_job::CreateJobError) -> Self {
1241 match err {
1242 crate::operation::create_job::CreateJobError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1243 crate::operation::create_job::CreateJobError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1244 crate::operation::create_job::CreateJobError::ResourceAlreadyExistsException(inner) => Error::ResourceAlreadyExistsException(inner),
1245 crate::operation::create_job::CreateJobError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1246 crate::operation::create_job::CreateJobError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
1247 crate::operation::create_job::CreateJobError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1248 crate::operation::create_job::CreateJobError::Unhandled(inner) => Error::Unhandled(inner),
1249 }
1250 }
1251}
1252impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_job_template::CreateJobTemplateError, R>> for Error
1253where
1254 R: Send + Sync + std::fmt::Debug + 'static,
1255{
1256 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_job_template::CreateJobTemplateError, R>) -> Self {
1257 match err {
1258 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1259 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1260 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1261 source: err.into(),
1262 }),
1263 }
1264 }
1265}
1266impl From<crate::operation::create_job_template::CreateJobTemplateError> for Error {
1267 fn from(err: crate::operation::create_job_template::CreateJobTemplateError) -> Self {
1268 match err {
1269 crate::operation::create_job_template::CreateJobTemplateError::ConflictException(inner) => Error::ConflictException(inner),
1270 crate::operation::create_job_template::CreateJobTemplateError::InternalFailureException(inner) => Error::InternalFailureException(inner),
1271 crate::operation::create_job_template::CreateJobTemplateError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1272 crate::operation::create_job_template::CreateJobTemplateError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1273 crate::operation::create_job_template::CreateJobTemplateError::ResourceNotFoundException(inner) => {
1274 Error::ResourceNotFoundException(inner)
1275 }
1276 crate::operation::create_job_template::CreateJobTemplateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1277 crate::operation::create_job_template::CreateJobTemplateError::Unhandled(inner) => Error::Unhandled(inner),
1278 }
1279 }
1280}
1281impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_keys_and_certificate::CreateKeysAndCertificateError, R>>
1282 for Error
1283where
1284 R: Send + Sync + std::fmt::Debug + 'static,
1285{
1286 fn from(
1287 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_keys_and_certificate::CreateKeysAndCertificateError, R>,
1288 ) -> Self {
1289 match err {
1290 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1291 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1292 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1293 source: err.into(),
1294 }),
1295 }
1296 }
1297}
1298impl From<crate::operation::create_keys_and_certificate::CreateKeysAndCertificateError> for Error {
1299 fn from(err: crate::operation::create_keys_and_certificate::CreateKeysAndCertificateError) -> Self {
1300 match err {
1301 crate::operation::create_keys_and_certificate::CreateKeysAndCertificateError::InternalFailureException(inner) => {
1302 Error::InternalFailureException(inner)
1303 }
1304 crate::operation::create_keys_and_certificate::CreateKeysAndCertificateError::InvalidRequestException(inner) => {
1305 Error::InvalidRequestException(inner)
1306 }
1307 crate::operation::create_keys_and_certificate::CreateKeysAndCertificateError::ServiceUnavailableException(inner) => {
1308 Error::ServiceUnavailableException(inner)
1309 }
1310 crate::operation::create_keys_and_certificate::CreateKeysAndCertificateError::ThrottlingException(inner) => {
1311 Error::ThrottlingException(inner)
1312 }
1313 crate::operation::create_keys_and_certificate::CreateKeysAndCertificateError::UnauthorizedException(inner) => {
1314 Error::UnauthorizedException(inner)
1315 }
1316 crate::operation::create_keys_and_certificate::CreateKeysAndCertificateError::Unhandled(inner) => Error::Unhandled(inner),
1317 }
1318 }
1319}
1320impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_mitigation_action::CreateMitigationActionError, R>> for Error
1321where
1322 R: Send + Sync + std::fmt::Debug + 'static,
1323{
1324 fn from(
1325 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_mitigation_action::CreateMitigationActionError, R>,
1326 ) -> Self {
1327 match err {
1328 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1329 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1330 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1331 source: err.into(),
1332 }),
1333 }
1334 }
1335}
1336impl From<crate::operation::create_mitigation_action::CreateMitigationActionError> for Error {
1337 fn from(err: crate::operation::create_mitigation_action::CreateMitigationActionError) -> Self {
1338 match err {
1339 crate::operation::create_mitigation_action::CreateMitigationActionError::InternalFailureException(inner) => {
1340 Error::InternalFailureException(inner)
1341 }
1342 crate::operation::create_mitigation_action::CreateMitigationActionError::InvalidRequestException(inner) => {
1343 Error::InvalidRequestException(inner)
1344 }
1345 crate::operation::create_mitigation_action::CreateMitigationActionError::LimitExceededException(inner) => {
1346 Error::LimitExceededException(inner)
1347 }
1348 crate::operation::create_mitigation_action::CreateMitigationActionError::ResourceAlreadyExistsException(inner) => {
1349 Error::ResourceAlreadyExistsException(inner)
1350 }
1351 crate::operation::create_mitigation_action::CreateMitigationActionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1352 crate::operation::create_mitigation_action::CreateMitigationActionError::Unhandled(inner) => Error::Unhandled(inner),
1353 }
1354 }
1355}
1356impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ota_update::CreateOTAUpdateError, R>> for Error
1357where
1358 R: Send + Sync + std::fmt::Debug + 'static,
1359{
1360 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ota_update::CreateOTAUpdateError, R>) -> Self {
1361 match err {
1362 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1363 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1364 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1365 source: err.into(),
1366 }),
1367 }
1368 }
1369}
1370impl From<crate::operation::create_ota_update::CreateOTAUpdateError> for Error {
1371 fn from(err: crate::operation::create_ota_update::CreateOTAUpdateError) -> Self {
1372 match err {
1373 crate::operation::create_ota_update::CreateOTAUpdateError::InternalFailureException(inner) => Error::InternalFailureException(inner),
1374 crate::operation::create_ota_update::CreateOTAUpdateError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1375 crate::operation::create_ota_update::CreateOTAUpdateError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1376 crate::operation::create_ota_update::CreateOTAUpdateError::ResourceAlreadyExistsException(inner) => {
1377 Error::ResourceAlreadyExistsException(inner)
1378 }
1379 crate::operation::create_ota_update::CreateOTAUpdateError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1380 crate::operation::create_ota_update::CreateOTAUpdateError::ServiceUnavailableException(inner) => {
1381 Error::ServiceUnavailableException(inner)
1382 }
1383 crate::operation::create_ota_update::CreateOTAUpdateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1384 crate::operation::create_ota_update::CreateOTAUpdateError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1385 crate::operation::create_ota_update::CreateOTAUpdateError::Unhandled(inner) => Error::Unhandled(inner),
1386 }
1387 }
1388}
1389impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_package::CreatePackageError, R>> for Error
1390where
1391 R: Send + Sync + std::fmt::Debug + 'static,
1392{
1393 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_package::CreatePackageError, R>) -> Self {
1394 match err {
1395 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1396 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1397 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1398 source: err.into(),
1399 }),
1400 }
1401 }
1402}
1403impl From<crate::operation::create_package::CreatePackageError> for Error {
1404 fn from(err: crate::operation::create_package::CreatePackageError) -> Self {
1405 match err {
1406 crate::operation::create_package::CreatePackageError::ConflictException(inner) => Error::ConflictException(inner),
1407 crate::operation::create_package::CreatePackageError::InternalServerException(inner) => Error::InternalServerException(inner),
1408 crate::operation::create_package::CreatePackageError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1409 crate::operation::create_package::CreatePackageError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1410 crate::operation::create_package::CreatePackageError::ValidationException(inner) => Error::ValidationException(inner),
1411 crate::operation::create_package::CreatePackageError::Unhandled(inner) => Error::Unhandled(inner),
1412 }
1413 }
1414}
1415impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_package_version::CreatePackageVersionError, R>> for Error
1416where
1417 R: Send + Sync + std::fmt::Debug + 'static,
1418{
1419 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_package_version::CreatePackageVersionError, R>) -> Self {
1420 match err {
1421 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1422 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1423 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1424 source: err.into(),
1425 }),
1426 }
1427 }
1428}
1429impl From<crate::operation::create_package_version::CreatePackageVersionError> for Error {
1430 fn from(err: crate::operation::create_package_version::CreatePackageVersionError) -> Self {
1431 match err {
1432 crate::operation::create_package_version::CreatePackageVersionError::ConflictException(inner) => Error::ConflictException(inner),
1433 crate::operation::create_package_version::CreatePackageVersionError::InternalServerException(inner) => {
1434 Error::InternalServerException(inner)
1435 }
1436 crate::operation::create_package_version::CreatePackageVersionError::ServiceQuotaExceededException(inner) => {
1437 Error::ServiceQuotaExceededException(inner)
1438 }
1439 crate::operation::create_package_version::CreatePackageVersionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1440 crate::operation::create_package_version::CreatePackageVersionError::ValidationException(inner) => Error::ValidationException(inner),
1441 crate::operation::create_package_version::CreatePackageVersionError::Unhandled(inner) => Error::Unhandled(inner),
1442 }
1443 }
1444}
1445impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_policy::CreatePolicyError, R>> for Error
1446where
1447 R: Send + Sync + std::fmt::Debug + 'static,
1448{
1449 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_policy::CreatePolicyError, R>) -> Self {
1450 match err {
1451 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1452 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1453 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1454 source: err.into(),
1455 }),
1456 }
1457 }
1458}
1459impl From<crate::operation::create_policy::CreatePolicyError> for Error {
1460 fn from(err: crate::operation::create_policy::CreatePolicyError) -> Self {
1461 match err {
1462 crate::operation::create_policy::CreatePolicyError::InternalFailureException(inner) => Error::InternalFailureException(inner),
1463 crate::operation::create_policy::CreatePolicyError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1464 crate::operation::create_policy::CreatePolicyError::MalformedPolicyException(inner) => Error::MalformedPolicyException(inner),
1465 crate::operation::create_policy::CreatePolicyError::ResourceAlreadyExistsException(inner) => Error::ResourceAlreadyExistsException(inner),
1466 crate::operation::create_policy::CreatePolicyError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
1467 crate::operation::create_policy::CreatePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1468 crate::operation::create_policy::CreatePolicyError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1469 crate::operation::create_policy::CreatePolicyError::Unhandled(inner) => Error::Unhandled(inner),
1470 }
1471 }
1472}
1473impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_policy_version::CreatePolicyVersionError, R>> for Error
1474where
1475 R: Send + Sync + std::fmt::Debug + 'static,
1476{
1477 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_policy_version::CreatePolicyVersionError, R>) -> Self {
1478 match err {
1479 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1480 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1481 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1482 source: err.into(),
1483 }),
1484 }
1485 }
1486}
1487impl From<crate::operation::create_policy_version::CreatePolicyVersionError> for Error {
1488 fn from(err: crate::operation::create_policy_version::CreatePolicyVersionError) -> Self {
1489 match err {
1490 crate::operation::create_policy_version::CreatePolicyVersionError::InternalFailureException(inner) => {
1491 Error::InternalFailureException(inner)
1492 }
1493 crate::operation::create_policy_version::CreatePolicyVersionError::InvalidRequestException(inner) => {
1494 Error::InvalidRequestException(inner)
1495 }
1496 crate::operation::create_policy_version::CreatePolicyVersionError::MalformedPolicyException(inner) => {
1497 Error::MalformedPolicyException(inner)
1498 }
1499 crate::operation::create_policy_version::CreatePolicyVersionError::ResourceNotFoundException(inner) => {
1500 Error::ResourceNotFoundException(inner)
1501 }
1502 crate::operation::create_policy_version::CreatePolicyVersionError::ServiceUnavailableException(inner) => {
1503 Error::ServiceUnavailableException(inner)
1504 }
1505 crate::operation::create_policy_version::CreatePolicyVersionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1506 crate::operation::create_policy_version::CreatePolicyVersionError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1507 crate::operation::create_policy_version::CreatePolicyVersionError::VersionsLimitExceededException(inner) => {
1508 Error::VersionsLimitExceededException(inner)
1509 }
1510 crate::operation::create_policy_version::CreatePolicyVersionError::Unhandled(inner) => Error::Unhandled(inner),
1511 }
1512 }
1513}
1514impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_provisioning_claim::CreateProvisioningClaimError, R>>
1515 for Error
1516where
1517 R: Send + Sync + std::fmt::Debug + 'static,
1518{
1519 fn from(
1520 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_provisioning_claim::CreateProvisioningClaimError, R>,
1521 ) -> Self {
1522 match err {
1523 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1524 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1525 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1526 source: err.into(),
1527 }),
1528 }
1529 }
1530}
1531impl From<crate::operation::create_provisioning_claim::CreateProvisioningClaimError> for Error {
1532 fn from(err: crate::operation::create_provisioning_claim::CreateProvisioningClaimError) -> Self {
1533 match err {
1534 crate::operation::create_provisioning_claim::CreateProvisioningClaimError::InternalFailureException(inner) => {
1535 Error::InternalFailureException(inner)
1536 }
1537 crate::operation::create_provisioning_claim::CreateProvisioningClaimError::InvalidRequestException(inner) => {
1538 Error::InvalidRequestException(inner)
1539 }
1540 crate::operation::create_provisioning_claim::CreateProvisioningClaimError::ResourceNotFoundException(inner) => {
1541 Error::ResourceNotFoundException(inner)
1542 }
1543 crate::operation::create_provisioning_claim::CreateProvisioningClaimError::ServiceUnavailableException(inner) => {
1544 Error::ServiceUnavailableException(inner)
1545 }
1546 crate::operation::create_provisioning_claim::CreateProvisioningClaimError::ThrottlingException(inner) => {
1547 Error::ThrottlingException(inner)
1548 }
1549 crate::operation::create_provisioning_claim::CreateProvisioningClaimError::UnauthorizedException(inner) => {
1550 Error::UnauthorizedException(inner)
1551 }
1552 crate::operation::create_provisioning_claim::CreateProvisioningClaimError::Unhandled(inner) => Error::Unhandled(inner),
1553 }
1554 }
1555}
1556impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_provisioning_template::CreateProvisioningTemplateError, R>>
1557 for Error
1558where
1559 R: Send + Sync + std::fmt::Debug + 'static,
1560{
1561 fn from(
1562 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_provisioning_template::CreateProvisioningTemplateError, R>,
1563 ) -> Self {
1564 match err {
1565 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1566 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1567 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1568 source: err.into(),
1569 }),
1570 }
1571 }
1572}
1573impl From<crate::operation::create_provisioning_template::CreateProvisioningTemplateError> for Error {
1574 fn from(err: crate::operation::create_provisioning_template::CreateProvisioningTemplateError) -> Self {
1575 match err {
1576 crate::operation::create_provisioning_template::CreateProvisioningTemplateError::InternalFailureException(inner) => {
1577 Error::InternalFailureException(inner)
1578 }
1579 crate::operation::create_provisioning_template::CreateProvisioningTemplateError::InvalidRequestException(inner) => {
1580 Error::InvalidRequestException(inner)
1581 }
1582 crate::operation::create_provisioning_template::CreateProvisioningTemplateError::LimitExceededException(inner) => {
1583 Error::LimitExceededException(inner)
1584 }
1585 crate::operation::create_provisioning_template::CreateProvisioningTemplateError::ResourceAlreadyExistsException(inner) => {
1586 Error::ResourceAlreadyExistsException(inner)
1587 }
1588 crate::operation::create_provisioning_template::CreateProvisioningTemplateError::ThrottlingException(inner) => {
1589 Error::ThrottlingException(inner)
1590 }
1591 crate::operation::create_provisioning_template::CreateProvisioningTemplateError::UnauthorizedException(inner) => {
1592 Error::UnauthorizedException(inner)
1593 }
1594 crate::operation::create_provisioning_template::CreateProvisioningTemplateError::Unhandled(inner) => Error::Unhandled(inner),
1595 }
1596 }
1597}
1598impl<R>
1599 From<
1600 ::aws_smithy_runtime_api::client::result::SdkError<
1601 crate::operation::create_provisioning_template_version::CreateProvisioningTemplateVersionError,
1602 R,
1603 >,
1604 > for Error
1605where
1606 R: Send + Sync + std::fmt::Debug + 'static,
1607{
1608 fn from(
1609 err: ::aws_smithy_runtime_api::client::result::SdkError<
1610 crate::operation::create_provisioning_template_version::CreateProvisioningTemplateVersionError,
1611 R,
1612 >,
1613 ) -> Self {
1614 match err {
1615 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1616 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1617 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1618 source: err.into(),
1619 }),
1620 }
1621 }
1622}
1623impl From<crate::operation::create_provisioning_template_version::CreateProvisioningTemplateVersionError> for Error {
1624 fn from(err: crate::operation::create_provisioning_template_version::CreateProvisioningTemplateVersionError) -> Self {
1625 match err {
1626 crate::operation::create_provisioning_template_version::CreateProvisioningTemplateVersionError::ConflictingResourceUpdateException(
1627 inner,
1628 ) => Error::ConflictingResourceUpdateException(inner),
1629 crate::operation::create_provisioning_template_version::CreateProvisioningTemplateVersionError::InternalFailureException(inner) => {
1630 Error::InternalFailureException(inner)
1631 }
1632 crate::operation::create_provisioning_template_version::CreateProvisioningTemplateVersionError::InvalidRequestException(inner) => {
1633 Error::InvalidRequestException(inner)
1634 }
1635 crate::operation::create_provisioning_template_version::CreateProvisioningTemplateVersionError::ResourceNotFoundException(inner) => {
1636 Error::ResourceNotFoundException(inner)
1637 }
1638 crate::operation::create_provisioning_template_version::CreateProvisioningTemplateVersionError::ThrottlingException(inner) => {
1639 Error::ThrottlingException(inner)
1640 }
1641 crate::operation::create_provisioning_template_version::CreateProvisioningTemplateVersionError::UnauthorizedException(inner) => {
1642 Error::UnauthorizedException(inner)
1643 }
1644 crate::operation::create_provisioning_template_version::CreateProvisioningTemplateVersionError::VersionsLimitExceededException(inner) => {
1645 Error::VersionsLimitExceededException(inner)
1646 }
1647 crate::operation::create_provisioning_template_version::CreateProvisioningTemplateVersionError::Unhandled(inner) => {
1648 Error::Unhandled(inner)
1649 }
1650 }
1651 }
1652}
1653impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_role_alias::CreateRoleAliasError, R>> for Error
1654where
1655 R: Send + Sync + std::fmt::Debug + 'static,
1656{
1657 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_role_alias::CreateRoleAliasError, R>) -> Self {
1658 match err {
1659 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1660 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1661 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1662 source: err.into(),
1663 }),
1664 }
1665 }
1666}
1667impl From<crate::operation::create_role_alias::CreateRoleAliasError> for Error {
1668 fn from(err: crate::operation::create_role_alias::CreateRoleAliasError) -> Self {
1669 match err {
1670 crate::operation::create_role_alias::CreateRoleAliasError::InternalFailureException(inner) => Error::InternalFailureException(inner),
1671 crate::operation::create_role_alias::CreateRoleAliasError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1672 crate::operation::create_role_alias::CreateRoleAliasError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1673 crate::operation::create_role_alias::CreateRoleAliasError::ResourceAlreadyExistsException(inner) => {
1674 Error::ResourceAlreadyExistsException(inner)
1675 }
1676 crate::operation::create_role_alias::CreateRoleAliasError::ServiceUnavailableException(inner) => {
1677 Error::ServiceUnavailableException(inner)
1678 }
1679 crate::operation::create_role_alias::CreateRoleAliasError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1680 crate::operation::create_role_alias::CreateRoleAliasError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1681 crate::operation::create_role_alias::CreateRoleAliasError::Unhandled(inner) => Error::Unhandled(inner),
1682 }
1683 }
1684}
1685impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_scheduled_audit::CreateScheduledAuditError, R>> for Error
1686where
1687 R: Send + Sync + std::fmt::Debug + 'static,
1688{
1689 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_scheduled_audit::CreateScheduledAuditError, R>) -> Self {
1690 match err {
1691 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1692 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1693 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1694 source: err.into(),
1695 }),
1696 }
1697 }
1698}
1699impl From<crate::operation::create_scheduled_audit::CreateScheduledAuditError> for Error {
1700 fn from(err: crate::operation::create_scheduled_audit::CreateScheduledAuditError) -> Self {
1701 match err {
1702 crate::operation::create_scheduled_audit::CreateScheduledAuditError::InternalFailureException(inner) => {
1703 Error::InternalFailureException(inner)
1704 }
1705 crate::operation::create_scheduled_audit::CreateScheduledAuditError::InvalidRequestException(inner) => {
1706 Error::InvalidRequestException(inner)
1707 }
1708 crate::operation::create_scheduled_audit::CreateScheduledAuditError::LimitExceededException(inner) => {
1709 Error::LimitExceededException(inner)
1710 }
1711 crate::operation::create_scheduled_audit::CreateScheduledAuditError::ResourceAlreadyExistsException(inner) => {
1712 Error::ResourceAlreadyExistsException(inner)
1713 }
1714 crate::operation::create_scheduled_audit::CreateScheduledAuditError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1715 crate::operation::create_scheduled_audit::CreateScheduledAuditError::Unhandled(inner) => Error::Unhandled(inner),
1716 }
1717 }
1718}
1719impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_security_profile::CreateSecurityProfileError, R>> for Error
1720where
1721 R: Send + Sync + std::fmt::Debug + 'static,
1722{
1723 fn from(
1724 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_security_profile::CreateSecurityProfileError, R>,
1725 ) -> Self {
1726 match err {
1727 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1728 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1729 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1730 source: err.into(),
1731 }),
1732 }
1733 }
1734}
1735impl From<crate::operation::create_security_profile::CreateSecurityProfileError> for Error {
1736 fn from(err: crate::operation::create_security_profile::CreateSecurityProfileError) -> Self {
1737 match err {
1738 crate::operation::create_security_profile::CreateSecurityProfileError::InternalFailureException(inner) => {
1739 Error::InternalFailureException(inner)
1740 }
1741 crate::operation::create_security_profile::CreateSecurityProfileError::InvalidRequestException(inner) => {
1742 Error::InvalidRequestException(inner)
1743 }
1744 crate::operation::create_security_profile::CreateSecurityProfileError::ResourceAlreadyExistsException(inner) => {
1745 Error::ResourceAlreadyExistsException(inner)
1746 }
1747 crate::operation::create_security_profile::CreateSecurityProfileError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1748 crate::operation::create_security_profile::CreateSecurityProfileError::Unhandled(inner) => Error::Unhandled(inner),
1749 }
1750 }
1751}
1752impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_stream::CreateStreamError, R>> for Error
1753where
1754 R: Send + Sync + std::fmt::Debug + 'static,
1755{
1756 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_stream::CreateStreamError, R>) -> Self {
1757 match err {
1758 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1759 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1760 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1761 source: err.into(),
1762 }),
1763 }
1764 }
1765}
1766impl From<crate::operation::create_stream::CreateStreamError> for Error {
1767 fn from(err: crate::operation::create_stream::CreateStreamError) -> Self {
1768 match err {
1769 crate::operation::create_stream::CreateStreamError::InternalFailureException(inner) => Error::InternalFailureException(inner),
1770 crate::operation::create_stream::CreateStreamError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1771 crate::operation::create_stream::CreateStreamError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1772 crate::operation::create_stream::CreateStreamError::ResourceAlreadyExistsException(inner) => Error::ResourceAlreadyExistsException(inner),
1773 crate::operation::create_stream::CreateStreamError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1774 crate::operation::create_stream::CreateStreamError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
1775 crate::operation::create_stream::CreateStreamError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1776 crate::operation::create_stream::CreateStreamError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1777 crate::operation::create_stream::CreateStreamError::Unhandled(inner) => Error::Unhandled(inner),
1778 }
1779 }
1780}
1781impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_thing::CreateThingError, R>> for Error
1782where
1783 R: Send + Sync + std::fmt::Debug + 'static,
1784{
1785 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_thing::CreateThingError, R>) -> Self {
1786 match err {
1787 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1788 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1789 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1790 source: err.into(),
1791 }),
1792 }
1793 }
1794}
1795impl From<crate::operation::create_thing::CreateThingError> for Error {
1796 fn from(err: crate::operation::create_thing::CreateThingError) -> Self {
1797 match err {
1798 crate::operation::create_thing::CreateThingError::InternalFailureException(inner) => Error::InternalFailureException(inner),
1799 crate::operation::create_thing::CreateThingError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1800 crate::operation::create_thing::CreateThingError::ResourceAlreadyExistsException(inner) => Error::ResourceAlreadyExistsException(inner),
1801 crate::operation::create_thing::CreateThingError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1802 crate::operation::create_thing::CreateThingError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
1803 crate::operation::create_thing::CreateThingError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1804 crate::operation::create_thing::CreateThingError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1805 crate::operation::create_thing::CreateThingError::Unhandled(inner) => Error::Unhandled(inner),
1806 }
1807 }
1808}
1809impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_thing_group::CreateThingGroupError, R>> for Error
1810where
1811 R: Send + Sync + std::fmt::Debug + 'static,
1812{
1813 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_thing_group::CreateThingGroupError, R>) -> Self {
1814 match err {
1815 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1816 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1817 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1818 source: err.into(),
1819 }),
1820 }
1821 }
1822}
1823impl From<crate::operation::create_thing_group::CreateThingGroupError> for Error {
1824 fn from(err: crate::operation::create_thing_group::CreateThingGroupError) -> Self {
1825 match err {
1826 crate::operation::create_thing_group::CreateThingGroupError::InternalFailureException(inner) => Error::InternalFailureException(inner),
1827 crate::operation::create_thing_group::CreateThingGroupError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1828 crate::operation::create_thing_group::CreateThingGroupError::ResourceAlreadyExistsException(inner) => {
1829 Error::ResourceAlreadyExistsException(inner)
1830 }
1831 crate::operation::create_thing_group::CreateThingGroupError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1832 crate::operation::create_thing_group::CreateThingGroupError::Unhandled(inner) => Error::Unhandled(inner),
1833 }
1834 }
1835}
1836impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_thing_type::CreateThingTypeError, R>> for Error
1837where
1838 R: Send + Sync + std::fmt::Debug + 'static,
1839{
1840 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_thing_type::CreateThingTypeError, R>) -> Self {
1841 match err {
1842 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1843 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1844 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1845 source: err.into(),
1846 }),
1847 }
1848 }
1849}
1850impl From<crate::operation::create_thing_type::CreateThingTypeError> for Error {
1851 fn from(err: crate::operation::create_thing_type::CreateThingTypeError) -> Self {
1852 match err {
1853 crate::operation::create_thing_type::CreateThingTypeError::InternalFailureException(inner) => Error::InternalFailureException(inner),
1854 crate::operation::create_thing_type::CreateThingTypeError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1855 crate::operation::create_thing_type::CreateThingTypeError::ResourceAlreadyExistsException(inner) => {
1856 Error::ResourceAlreadyExistsException(inner)
1857 }
1858 crate::operation::create_thing_type::CreateThingTypeError::ServiceUnavailableException(inner) => {
1859 Error::ServiceUnavailableException(inner)
1860 }
1861 crate::operation::create_thing_type::CreateThingTypeError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1862 crate::operation::create_thing_type::CreateThingTypeError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1863 crate::operation::create_thing_type::CreateThingTypeError::Unhandled(inner) => Error::Unhandled(inner),
1864 }
1865 }
1866}
1867impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_topic_rule::CreateTopicRuleError, R>> for Error
1868where
1869 R: Send + Sync + std::fmt::Debug + 'static,
1870{
1871 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_topic_rule::CreateTopicRuleError, R>) -> Self {
1872 match err {
1873 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1874 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1875 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1876 source: err.into(),
1877 }),
1878 }
1879 }
1880}
1881impl From<crate::operation::create_topic_rule::CreateTopicRuleError> for Error {
1882 fn from(err: crate::operation::create_topic_rule::CreateTopicRuleError) -> Self {
1883 match err {
1884 crate::operation::create_topic_rule::CreateTopicRuleError::ConflictingResourceUpdateException(inner) => {
1885 Error::ConflictingResourceUpdateException(inner)
1886 }
1887 crate::operation::create_topic_rule::CreateTopicRuleError::InternalException(inner) => Error::InternalException(inner),
1888 crate::operation::create_topic_rule::CreateTopicRuleError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1889 crate::operation::create_topic_rule::CreateTopicRuleError::ResourceAlreadyExistsException(inner) => {
1890 Error::ResourceAlreadyExistsException(inner)
1891 }
1892 crate::operation::create_topic_rule::CreateTopicRuleError::ServiceUnavailableException(inner) => {
1893 Error::ServiceUnavailableException(inner)
1894 }
1895 crate::operation::create_topic_rule::CreateTopicRuleError::SqlParseException(inner) => Error::SqlParseException(inner),
1896 crate::operation::create_topic_rule::CreateTopicRuleError::Unhandled(inner) => Error::Unhandled(inner),
1897 }
1898 }
1899}
1900impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_topic_rule_destination::CreateTopicRuleDestinationError, R>>
1901 for Error
1902where
1903 R: Send + Sync + std::fmt::Debug + 'static,
1904{
1905 fn from(
1906 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_topic_rule_destination::CreateTopicRuleDestinationError, R>,
1907 ) -> Self {
1908 match err {
1909 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1910 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1911 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1912 source: err.into(),
1913 }),
1914 }
1915 }
1916}
1917impl From<crate::operation::create_topic_rule_destination::CreateTopicRuleDestinationError> for Error {
1918 fn from(err: crate::operation::create_topic_rule_destination::CreateTopicRuleDestinationError) -> Self {
1919 match err {
1920 crate::operation::create_topic_rule_destination::CreateTopicRuleDestinationError::ConflictingResourceUpdateException(inner) => {
1921 Error::ConflictingResourceUpdateException(inner)
1922 }
1923 crate::operation::create_topic_rule_destination::CreateTopicRuleDestinationError::InternalException(inner) => {
1924 Error::InternalException(inner)
1925 }
1926 crate::operation::create_topic_rule_destination::CreateTopicRuleDestinationError::InvalidRequestException(inner) => {
1927 Error::InvalidRequestException(inner)
1928 }
1929 crate::operation::create_topic_rule_destination::CreateTopicRuleDestinationError::ResourceAlreadyExistsException(inner) => {
1930 Error::ResourceAlreadyExistsException(inner)
1931 }
1932 crate::operation::create_topic_rule_destination::CreateTopicRuleDestinationError::ServiceUnavailableException(inner) => {
1933 Error::ServiceUnavailableException(inner)
1934 }
1935 crate::operation::create_topic_rule_destination::CreateTopicRuleDestinationError::Unhandled(inner) => Error::Unhandled(inner),
1936 }
1937 }
1938}
1939impl<R>
1940 From<
1941 ::aws_smithy_runtime_api::client::result::SdkError<
1942 crate::operation::delete_account_audit_configuration::DeleteAccountAuditConfigurationError,
1943 R,
1944 >,
1945 > for Error
1946where
1947 R: Send + Sync + std::fmt::Debug + 'static,
1948{
1949 fn from(
1950 err: ::aws_smithy_runtime_api::client::result::SdkError<
1951 crate::operation::delete_account_audit_configuration::DeleteAccountAuditConfigurationError,
1952 R,
1953 >,
1954 ) -> Self {
1955 match err {
1956 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1957 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1958 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1959 source: err.into(),
1960 }),
1961 }
1962 }
1963}
1964impl From<crate::operation::delete_account_audit_configuration::DeleteAccountAuditConfigurationError> for Error {
1965 fn from(err: crate::operation::delete_account_audit_configuration::DeleteAccountAuditConfigurationError) -> Self {
1966 match err {
1967 crate::operation::delete_account_audit_configuration::DeleteAccountAuditConfigurationError::InternalFailureException(inner) => {
1968 Error::InternalFailureException(inner)
1969 }
1970 crate::operation::delete_account_audit_configuration::DeleteAccountAuditConfigurationError::InvalidRequestException(inner) => {
1971 Error::InvalidRequestException(inner)
1972 }
1973 crate::operation::delete_account_audit_configuration::DeleteAccountAuditConfigurationError::ResourceNotFoundException(inner) => {
1974 Error::ResourceNotFoundException(inner)
1975 }
1976 crate::operation::delete_account_audit_configuration::DeleteAccountAuditConfigurationError::ThrottlingException(inner) => {
1977 Error::ThrottlingException(inner)
1978 }
1979 crate::operation::delete_account_audit_configuration::DeleteAccountAuditConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1980 }
1981 }
1982}
1983impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_audit_suppression::DeleteAuditSuppressionError, R>> for Error
1984where
1985 R: Send + Sync + std::fmt::Debug + 'static,
1986{
1987 fn from(
1988 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_audit_suppression::DeleteAuditSuppressionError, R>,
1989 ) -> Self {
1990 match err {
1991 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1992 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1993 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1994 source: err.into(),
1995 }),
1996 }
1997 }
1998}
1999impl From<crate::operation::delete_audit_suppression::DeleteAuditSuppressionError> for Error {
2000 fn from(err: crate::operation::delete_audit_suppression::DeleteAuditSuppressionError) -> Self {
2001 match err {
2002 crate::operation::delete_audit_suppression::DeleteAuditSuppressionError::InternalFailureException(inner) => {
2003 Error::InternalFailureException(inner)
2004 }
2005 crate::operation::delete_audit_suppression::DeleteAuditSuppressionError::InvalidRequestException(inner) => {
2006 Error::InvalidRequestException(inner)
2007 }
2008 crate::operation::delete_audit_suppression::DeleteAuditSuppressionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2009 crate::operation::delete_audit_suppression::DeleteAuditSuppressionError::Unhandled(inner) => Error::Unhandled(inner),
2010 }
2011 }
2012}
2013impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_authorizer::DeleteAuthorizerError, R>> for Error
2014where
2015 R: Send + Sync + std::fmt::Debug + 'static,
2016{
2017 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_authorizer::DeleteAuthorizerError, R>) -> Self {
2018 match err {
2019 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2020 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2021 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2022 source: err.into(),
2023 }),
2024 }
2025 }
2026}
2027impl From<crate::operation::delete_authorizer::DeleteAuthorizerError> for Error {
2028 fn from(err: crate::operation::delete_authorizer::DeleteAuthorizerError) -> Self {
2029 match err {
2030 crate::operation::delete_authorizer::DeleteAuthorizerError::DeleteConflictException(inner) => Error::DeleteConflictException(inner),
2031 crate::operation::delete_authorizer::DeleteAuthorizerError::InternalFailureException(inner) => Error::InternalFailureException(inner),
2032 crate::operation::delete_authorizer::DeleteAuthorizerError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
2033 crate::operation::delete_authorizer::DeleteAuthorizerError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2034 crate::operation::delete_authorizer::DeleteAuthorizerError::ServiceUnavailableException(inner) => {
2035 Error::ServiceUnavailableException(inner)
2036 }
2037 crate::operation::delete_authorizer::DeleteAuthorizerError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2038 crate::operation::delete_authorizer::DeleteAuthorizerError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
2039 crate::operation::delete_authorizer::DeleteAuthorizerError::Unhandled(inner) => Error::Unhandled(inner),
2040 }
2041 }
2042}
2043impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_billing_group::DeleteBillingGroupError, R>> for Error
2044where
2045 R: Send + Sync + std::fmt::Debug + 'static,
2046{
2047 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_billing_group::DeleteBillingGroupError, R>) -> Self {
2048 match err {
2049 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2050 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2051 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2052 source: err.into(),
2053 }),
2054 }
2055 }
2056}
2057impl From<crate::operation::delete_billing_group::DeleteBillingGroupError> for Error {
2058 fn from(err: crate::operation::delete_billing_group::DeleteBillingGroupError) -> Self {
2059 match err {
2060 crate::operation::delete_billing_group::DeleteBillingGroupError::InternalFailureException(inner) => {
2061 Error::InternalFailureException(inner)
2062 }
2063 crate::operation::delete_billing_group::DeleteBillingGroupError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
2064 crate::operation::delete_billing_group::DeleteBillingGroupError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2065 crate::operation::delete_billing_group::DeleteBillingGroupError::VersionConflictException(inner) => {
2066 Error::VersionConflictException(inner)
2067 }
2068 crate::operation::delete_billing_group::DeleteBillingGroupError::Unhandled(inner) => Error::Unhandled(inner),
2069 }
2070 }
2071}
2072impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ca_certificate::DeleteCACertificateError, R>> for Error
2073where
2074 R: Send + Sync + std::fmt::Debug + 'static,
2075{
2076 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ca_certificate::DeleteCACertificateError, R>) -> Self {
2077 match err {
2078 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2079 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2080 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2081 source: err.into(),
2082 }),
2083 }
2084 }
2085}
2086impl From<crate::operation::delete_ca_certificate::DeleteCACertificateError> for Error {
2087 fn from(err: crate::operation::delete_ca_certificate::DeleteCACertificateError) -> Self {
2088 match err {
2089 crate::operation::delete_ca_certificate::DeleteCACertificateError::CertificateStateException(inner) => {
2090 Error::CertificateStateException(inner)
2091 }
2092 crate::operation::delete_ca_certificate::DeleteCACertificateError::InternalFailureException(inner) => {
2093 Error::InternalFailureException(inner)
2094 }
2095 crate::operation::delete_ca_certificate::DeleteCACertificateError::InvalidRequestException(inner) => {
2096 Error::InvalidRequestException(inner)
2097 }
2098 crate::operation::delete_ca_certificate::DeleteCACertificateError::ResourceNotFoundException(inner) => {
2099 Error::ResourceNotFoundException(inner)
2100 }
2101 crate::operation::delete_ca_certificate::DeleteCACertificateError::ServiceUnavailableException(inner) => {
2102 Error::ServiceUnavailableException(inner)
2103 }
2104 crate::operation::delete_ca_certificate::DeleteCACertificateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2105 crate::operation::delete_ca_certificate::DeleteCACertificateError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
2106 crate::operation::delete_ca_certificate::DeleteCACertificateError::Unhandled(inner) => Error::Unhandled(inner),
2107 }
2108 }
2109}
2110impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_certificate::DeleteCertificateError, R>> for Error
2111where
2112 R: Send + Sync + std::fmt::Debug + 'static,
2113{
2114 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_certificate::DeleteCertificateError, R>) -> Self {
2115 match err {
2116 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2117 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2118 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2119 source: err.into(),
2120 }),
2121 }
2122 }
2123}
2124impl From<crate::operation::delete_certificate::DeleteCertificateError> for Error {
2125 fn from(err: crate::operation::delete_certificate::DeleteCertificateError) -> Self {
2126 match err {
2127 crate::operation::delete_certificate::DeleteCertificateError::CertificateStateException(inner) => Error::CertificateStateException(inner),
2128 crate::operation::delete_certificate::DeleteCertificateError::DeleteConflictException(inner) => Error::DeleteConflictException(inner),
2129 crate::operation::delete_certificate::DeleteCertificateError::InternalFailureException(inner) => Error::InternalFailureException(inner),
2130 crate::operation::delete_certificate::DeleteCertificateError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
2131 crate::operation::delete_certificate::DeleteCertificateError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2132 crate::operation::delete_certificate::DeleteCertificateError::ServiceUnavailableException(inner) => {
2133 Error::ServiceUnavailableException(inner)
2134 }
2135 crate::operation::delete_certificate::DeleteCertificateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2136 crate::operation::delete_certificate::DeleteCertificateError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
2137 crate::operation::delete_certificate::DeleteCertificateError::Unhandled(inner) => Error::Unhandled(inner),
2138 }
2139 }
2140}
2141impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_certificate_provider::DeleteCertificateProviderError, R>>
2142 for Error
2143where
2144 R: Send + Sync + std::fmt::Debug + 'static,
2145{
2146 fn from(
2147 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_certificate_provider::DeleteCertificateProviderError, R>,
2148 ) -> Self {
2149 match err {
2150 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2151 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2152 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2153 source: err.into(),
2154 }),
2155 }
2156 }
2157}
2158impl From<crate::operation::delete_certificate_provider::DeleteCertificateProviderError> for Error {
2159 fn from(err: crate::operation::delete_certificate_provider::DeleteCertificateProviderError) -> Self {
2160 match err {
2161 crate::operation::delete_certificate_provider::DeleteCertificateProviderError::DeleteConflictException(inner) => {
2162 Error::DeleteConflictException(inner)
2163 }
2164 crate::operation::delete_certificate_provider::DeleteCertificateProviderError::InternalFailureException(inner) => {
2165 Error::InternalFailureException(inner)
2166 }
2167 crate::operation::delete_certificate_provider::DeleteCertificateProviderError::InvalidRequestException(inner) => {
2168 Error::InvalidRequestException(inner)
2169 }
2170 crate::operation::delete_certificate_provider::DeleteCertificateProviderError::ResourceNotFoundException(inner) => {
2171 Error::ResourceNotFoundException(inner)
2172 }
2173 crate::operation::delete_certificate_provider::DeleteCertificateProviderError::ServiceUnavailableException(inner) => {
2174 Error::ServiceUnavailableException(inner)
2175 }
2176 crate::operation::delete_certificate_provider::DeleteCertificateProviderError::ThrottlingException(inner) => {
2177 Error::ThrottlingException(inner)
2178 }
2179 crate::operation::delete_certificate_provider::DeleteCertificateProviderError::UnauthorizedException(inner) => {
2180 Error::UnauthorizedException(inner)
2181 }
2182 crate::operation::delete_certificate_provider::DeleteCertificateProviderError::Unhandled(inner) => Error::Unhandled(inner),
2183 }
2184 }
2185}
2186impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_command::DeleteCommandError, R>> for Error
2187where
2188 R: Send + Sync + std::fmt::Debug + 'static,
2189{
2190 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_command::DeleteCommandError, R>) -> Self {
2191 match err {
2192 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2193 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2194 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2195 source: err.into(),
2196 }),
2197 }
2198 }
2199}
2200impl From<crate::operation::delete_command::DeleteCommandError> for Error {
2201 fn from(err: crate::operation::delete_command::DeleteCommandError) -> Self {
2202 match err {
2203 crate::operation::delete_command::DeleteCommandError::ConflictException(inner) => Error::ConflictException(inner),
2204 crate::operation::delete_command::DeleteCommandError::InternalServerException(inner) => Error::InternalServerException(inner),
2205 crate::operation::delete_command::DeleteCommandError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2206 crate::operation::delete_command::DeleteCommandError::ValidationException(inner) => Error::ValidationException(inner),
2207 crate::operation::delete_command::DeleteCommandError::Unhandled(inner) => Error::Unhandled(inner),
2208 }
2209 }
2210}
2211impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_command_execution::DeleteCommandExecutionError, R>> for Error
2212where
2213 R: Send + Sync + std::fmt::Debug + 'static,
2214{
2215 fn from(
2216 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_command_execution::DeleteCommandExecutionError, R>,
2217 ) -> Self {
2218 match err {
2219 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2220 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2221 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2222 source: err.into(),
2223 }),
2224 }
2225 }
2226}
2227impl From<crate::operation::delete_command_execution::DeleteCommandExecutionError> for Error {
2228 fn from(err: crate::operation::delete_command_execution::DeleteCommandExecutionError) -> Self {
2229 match err {
2230 crate::operation::delete_command_execution::DeleteCommandExecutionError::ConflictException(inner) => Error::ConflictException(inner),
2231 crate::operation::delete_command_execution::DeleteCommandExecutionError::InternalServerException(inner) => {
2232 Error::InternalServerException(inner)
2233 }
2234 crate::operation::delete_command_execution::DeleteCommandExecutionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2235 crate::operation::delete_command_execution::DeleteCommandExecutionError::ValidationException(inner) => Error::ValidationException(inner),
2236 crate::operation::delete_command_execution::DeleteCommandExecutionError::Unhandled(inner) => Error::Unhandled(inner),
2237 }
2238 }
2239}
2240impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_custom_metric::DeleteCustomMetricError, R>> for Error
2241where
2242 R: Send + Sync + std::fmt::Debug + 'static,
2243{
2244 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_custom_metric::DeleteCustomMetricError, R>) -> Self {
2245 match err {
2246 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2247 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2248 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2249 source: err.into(),
2250 }),
2251 }
2252 }
2253}
2254impl From<crate::operation::delete_custom_metric::DeleteCustomMetricError> for Error {
2255 fn from(err: crate::operation::delete_custom_metric::DeleteCustomMetricError) -> Self {
2256 match err {
2257 crate::operation::delete_custom_metric::DeleteCustomMetricError::InternalFailureException(inner) => {
2258 Error::InternalFailureException(inner)
2259 }
2260 crate::operation::delete_custom_metric::DeleteCustomMetricError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
2261 crate::operation::delete_custom_metric::DeleteCustomMetricError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2262 crate::operation::delete_custom_metric::DeleteCustomMetricError::Unhandled(inner) => Error::Unhandled(inner),
2263 }
2264 }
2265}
2266impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_dimension::DeleteDimensionError, R>> for Error
2267where
2268 R: Send + Sync + std::fmt::Debug + 'static,
2269{
2270 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_dimension::DeleteDimensionError, R>) -> Self {
2271 match err {
2272 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2273 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2274 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2275 source: err.into(),
2276 }),
2277 }
2278 }
2279}
2280impl From<crate::operation::delete_dimension::DeleteDimensionError> for Error {
2281 fn from(err: crate::operation::delete_dimension::DeleteDimensionError) -> Self {
2282 match err {
2283 crate::operation::delete_dimension::DeleteDimensionError::InternalFailureException(inner) => Error::InternalFailureException(inner),
2284 crate::operation::delete_dimension::DeleteDimensionError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
2285 crate::operation::delete_dimension::DeleteDimensionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2286 crate::operation::delete_dimension::DeleteDimensionError::Unhandled(inner) => Error::Unhandled(inner),
2287 }
2288 }
2289}
2290impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_domain_configuration::DeleteDomainConfigurationError, R>>
2291 for Error
2292where
2293 R: Send + Sync + std::fmt::Debug + 'static,
2294{
2295 fn from(
2296 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_domain_configuration::DeleteDomainConfigurationError, R>,
2297 ) -> Self {
2298 match err {
2299 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2300 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2301 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2302 source: err.into(),
2303 }),
2304 }
2305 }
2306}
2307impl From<crate::operation::delete_domain_configuration::DeleteDomainConfigurationError> for Error {
2308 fn from(err: crate::operation::delete_domain_configuration::DeleteDomainConfigurationError) -> Self {
2309 match err {
2310 crate::operation::delete_domain_configuration::DeleteDomainConfigurationError::InternalFailureException(inner) => {
2311 Error::InternalFailureException(inner)
2312 }
2313 crate::operation::delete_domain_configuration::DeleteDomainConfigurationError::InvalidRequestException(inner) => {
2314 Error::InvalidRequestException(inner)
2315 }
2316 crate::operation::delete_domain_configuration::DeleteDomainConfigurationError::ResourceNotFoundException(inner) => {
2317 Error::ResourceNotFoundException(inner)
2318 }
2319 crate::operation::delete_domain_configuration::DeleteDomainConfigurationError::ServiceUnavailableException(inner) => {
2320 Error::ServiceUnavailableException(inner)
2321 }
2322 crate::operation::delete_domain_configuration::DeleteDomainConfigurationError::ThrottlingException(inner) => {
2323 Error::ThrottlingException(inner)
2324 }
2325 crate::operation::delete_domain_configuration::DeleteDomainConfigurationError::UnauthorizedException(inner) => {
2326 Error::UnauthorizedException(inner)
2327 }
2328 crate::operation::delete_domain_configuration::DeleteDomainConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
2329 }
2330 }
2331}
2332impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_dynamic_thing_group::DeleteDynamicThingGroupError, R>>
2333 for Error
2334where
2335 R: Send + Sync + std::fmt::Debug + 'static,
2336{
2337 fn from(
2338 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_dynamic_thing_group::DeleteDynamicThingGroupError, R>,
2339 ) -> Self {
2340 match err {
2341 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2342 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2343 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2344 source: err.into(),
2345 }),
2346 }
2347 }
2348}
2349impl From<crate::operation::delete_dynamic_thing_group::DeleteDynamicThingGroupError> for Error {
2350 fn from(err: crate::operation::delete_dynamic_thing_group::DeleteDynamicThingGroupError) -> Self {
2351 match err {
2352 crate::operation::delete_dynamic_thing_group::DeleteDynamicThingGroupError::InternalFailureException(inner) => {
2353 Error::InternalFailureException(inner)
2354 }
2355 crate::operation::delete_dynamic_thing_group::DeleteDynamicThingGroupError::InvalidRequestException(inner) => {
2356 Error::InvalidRequestException(inner)
2357 }
2358 crate::operation::delete_dynamic_thing_group::DeleteDynamicThingGroupError::ThrottlingException(inner) => {
2359 Error::ThrottlingException(inner)
2360 }
2361 crate::operation::delete_dynamic_thing_group::DeleteDynamicThingGroupError::VersionConflictException(inner) => {
2362 Error::VersionConflictException(inner)
2363 }
2364 crate::operation::delete_dynamic_thing_group::DeleteDynamicThingGroupError::Unhandled(inner) => Error::Unhandled(inner),
2365 }
2366 }
2367}
2368impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_fleet_metric::DeleteFleetMetricError, R>> for Error
2369where
2370 R: Send + Sync + std::fmt::Debug + 'static,
2371{
2372 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_fleet_metric::DeleteFleetMetricError, R>) -> Self {
2373 match err {
2374 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2375 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2376 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2377 source: err.into(),
2378 }),
2379 }
2380 }
2381}
2382impl From<crate::operation::delete_fleet_metric::DeleteFleetMetricError> for Error {
2383 fn from(err: crate::operation::delete_fleet_metric::DeleteFleetMetricError) -> Self {
2384 match err {
2385 crate::operation::delete_fleet_metric::DeleteFleetMetricError::InternalFailureException(inner) => Error::InternalFailureException(inner),
2386 crate::operation::delete_fleet_metric::DeleteFleetMetricError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
2387 crate::operation::delete_fleet_metric::DeleteFleetMetricError::ServiceUnavailableException(inner) => {
2388 Error::ServiceUnavailableException(inner)
2389 }
2390 crate::operation::delete_fleet_metric::DeleteFleetMetricError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2391 crate::operation::delete_fleet_metric::DeleteFleetMetricError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
2392 crate::operation::delete_fleet_metric::DeleteFleetMetricError::VersionConflictException(inner) => Error::VersionConflictException(inner),
2393 crate::operation::delete_fleet_metric::DeleteFleetMetricError::Unhandled(inner) => Error::Unhandled(inner),
2394 }
2395 }
2396}
2397impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_job::DeleteJobError, R>> for Error
2398where
2399 R: Send + Sync + std::fmt::Debug + 'static,
2400{
2401 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_job::DeleteJobError, R>) -> Self {
2402 match err {
2403 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2404 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2405 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2406 source: err.into(),
2407 }),
2408 }
2409 }
2410}
2411impl From<crate::operation::delete_job::DeleteJobError> for Error {
2412 fn from(err: crate::operation::delete_job::DeleteJobError) -> Self {
2413 match err {
2414 crate::operation::delete_job::DeleteJobError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
2415 crate::operation::delete_job::DeleteJobError::InvalidStateTransitionException(inner) => Error::InvalidStateTransitionException(inner),
2416 crate::operation::delete_job::DeleteJobError::LimitExceededException(inner) => Error::LimitExceededException(inner),
2417 crate::operation::delete_job::DeleteJobError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2418 crate::operation::delete_job::DeleteJobError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
2419 crate::operation::delete_job::DeleteJobError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2420 crate::operation::delete_job::DeleteJobError::Unhandled(inner) => Error::Unhandled(inner),
2421 }
2422 }
2423}
2424impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_job_execution::DeleteJobExecutionError, R>> for Error
2425where
2426 R: Send + Sync + std::fmt::Debug + 'static,
2427{
2428 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_job_execution::DeleteJobExecutionError, R>) -> Self {
2429 match err {
2430 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2431 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2432 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2433 source: err.into(),
2434 }),
2435 }
2436 }
2437}
2438impl From<crate::operation::delete_job_execution::DeleteJobExecutionError> for Error {
2439 fn from(err: crate::operation::delete_job_execution::DeleteJobExecutionError) -> Self {
2440 match err {
2441 crate::operation::delete_job_execution::DeleteJobExecutionError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
2442 crate::operation::delete_job_execution::DeleteJobExecutionError::InvalidStateTransitionException(inner) => {
2443 Error::InvalidStateTransitionException(inner)
2444 }
2445 crate::operation::delete_job_execution::DeleteJobExecutionError::ResourceNotFoundException(inner) => {
2446 Error::ResourceNotFoundException(inner)
2447 }
2448 crate::operation::delete_job_execution::DeleteJobExecutionError::ServiceUnavailableException(inner) => {
2449 Error::ServiceUnavailableException(inner)
2450 }
2451 crate::operation::delete_job_execution::DeleteJobExecutionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2452 crate::operation::delete_job_execution::DeleteJobExecutionError::Unhandled(inner) => Error::Unhandled(inner),
2453 }
2454 }
2455}
2456impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_job_template::DeleteJobTemplateError, R>> for Error
2457where
2458 R: Send + Sync + std::fmt::Debug + 'static,
2459{
2460 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_job_template::DeleteJobTemplateError, R>) -> Self {
2461 match err {
2462 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2463 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2464 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2465 source: err.into(),
2466 }),
2467 }
2468 }
2469}
2470impl From<crate::operation::delete_job_template::DeleteJobTemplateError> for Error {
2471 fn from(err: crate::operation::delete_job_template::DeleteJobTemplateError) -> Self {
2472 match err {
2473 crate::operation::delete_job_template::DeleteJobTemplateError::InternalFailureException(inner) => Error::InternalFailureException(inner),
2474 crate::operation::delete_job_template::DeleteJobTemplateError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
2475 crate::operation::delete_job_template::DeleteJobTemplateError::ResourceNotFoundException(inner) => {
2476 Error::ResourceNotFoundException(inner)
2477 }
2478 crate::operation::delete_job_template::DeleteJobTemplateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2479 crate::operation::delete_job_template::DeleteJobTemplateError::Unhandled(inner) => Error::Unhandled(inner),
2480 }
2481 }
2482}
2483impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_mitigation_action::DeleteMitigationActionError, R>> for Error
2484where
2485 R: Send + Sync + std::fmt::Debug + 'static,
2486{
2487 fn from(
2488 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_mitigation_action::DeleteMitigationActionError, R>,
2489 ) -> Self {
2490 match err {
2491 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2492 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2493 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2494 source: err.into(),
2495 }),
2496 }
2497 }
2498}
2499impl From<crate::operation::delete_mitigation_action::DeleteMitigationActionError> for Error {
2500 fn from(err: crate::operation::delete_mitigation_action::DeleteMitigationActionError) -> Self {
2501 match err {
2502 crate::operation::delete_mitigation_action::DeleteMitigationActionError::InternalFailureException(inner) => {
2503 Error::InternalFailureException(inner)
2504 }
2505 crate::operation::delete_mitigation_action::DeleteMitigationActionError::InvalidRequestException(inner) => {
2506 Error::InvalidRequestException(inner)
2507 }
2508 crate::operation::delete_mitigation_action::DeleteMitigationActionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2509 crate::operation::delete_mitigation_action::DeleteMitigationActionError::Unhandled(inner) => Error::Unhandled(inner),
2510 }
2511 }
2512}
2513impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ota_update::DeleteOTAUpdateError, R>> for Error
2514where
2515 R: Send + Sync + std::fmt::Debug + 'static,
2516{
2517 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ota_update::DeleteOTAUpdateError, R>) -> Self {
2518 match err {
2519 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2520 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2521 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2522 source: err.into(),
2523 }),
2524 }
2525 }
2526}
2527impl From<crate::operation::delete_ota_update::DeleteOTAUpdateError> for Error {
2528 fn from(err: crate::operation::delete_ota_update::DeleteOTAUpdateError) -> Self {
2529 match err {
2530 crate::operation::delete_ota_update::DeleteOTAUpdateError::InternalFailureException(inner) => Error::InternalFailureException(inner),
2531 crate::operation::delete_ota_update::DeleteOTAUpdateError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
2532 crate::operation::delete_ota_update::DeleteOTAUpdateError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2533 crate::operation::delete_ota_update::DeleteOTAUpdateError::ServiceUnavailableException(inner) => {
2534 Error::ServiceUnavailableException(inner)
2535 }
2536 crate::operation::delete_ota_update::DeleteOTAUpdateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2537 crate::operation::delete_ota_update::DeleteOTAUpdateError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
2538 crate::operation::delete_ota_update::DeleteOTAUpdateError::VersionConflictException(inner) => Error::VersionConflictException(inner),
2539 crate::operation::delete_ota_update::DeleteOTAUpdateError::Unhandled(inner) => Error::Unhandled(inner),
2540 }
2541 }
2542}
2543impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_package::DeletePackageError, R>> for Error
2544where
2545 R: Send + Sync + std::fmt::Debug + 'static,
2546{
2547 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_package::DeletePackageError, R>) -> Self {
2548 match err {
2549 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2550 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2551 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2552 source: err.into(),
2553 }),
2554 }
2555 }
2556}
2557impl From<crate::operation::delete_package::DeletePackageError> for Error {
2558 fn from(err: crate::operation::delete_package::DeletePackageError) -> Self {
2559 match err {
2560 crate::operation::delete_package::DeletePackageError::InternalServerException(inner) => Error::InternalServerException(inner),
2561 crate::operation::delete_package::DeletePackageError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2562 crate::operation::delete_package::DeletePackageError::ValidationException(inner) => Error::ValidationException(inner),
2563 crate::operation::delete_package::DeletePackageError::Unhandled(inner) => Error::Unhandled(inner),
2564 }
2565 }
2566}
2567impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_package_version::DeletePackageVersionError, R>> for Error
2568where
2569 R: Send + Sync + std::fmt::Debug + 'static,
2570{
2571 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_package_version::DeletePackageVersionError, R>) -> Self {
2572 match err {
2573 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2574 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2575 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2576 source: err.into(),
2577 }),
2578 }
2579 }
2580}
2581impl From<crate::operation::delete_package_version::DeletePackageVersionError> for Error {
2582 fn from(err: crate::operation::delete_package_version::DeletePackageVersionError) -> Self {
2583 match err {
2584 crate::operation::delete_package_version::DeletePackageVersionError::InternalServerException(inner) => {
2585 Error::InternalServerException(inner)
2586 }
2587 crate::operation::delete_package_version::DeletePackageVersionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2588 crate::operation::delete_package_version::DeletePackageVersionError::ValidationException(inner) => Error::ValidationException(inner),
2589 crate::operation::delete_package_version::DeletePackageVersionError::Unhandled(inner) => Error::Unhandled(inner),
2590 }
2591 }
2592}
2593impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_policy::DeletePolicyError, R>> for Error
2594where
2595 R: Send + Sync + std::fmt::Debug + 'static,
2596{
2597 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_policy::DeletePolicyError, R>) -> Self {
2598 match err {
2599 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2600 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2601 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2602 source: err.into(),
2603 }),
2604 }
2605 }
2606}
2607impl From<crate::operation::delete_policy::DeletePolicyError> for Error {
2608 fn from(err: crate::operation::delete_policy::DeletePolicyError) -> Self {
2609 match err {
2610 crate::operation::delete_policy::DeletePolicyError::DeleteConflictException(inner) => Error::DeleteConflictException(inner),
2611 crate::operation::delete_policy::DeletePolicyError::InternalFailureException(inner) => Error::InternalFailureException(inner),
2612 crate::operation::delete_policy::DeletePolicyError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
2613 crate::operation::delete_policy::DeletePolicyError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2614 crate::operation::delete_policy::DeletePolicyError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
2615 crate::operation::delete_policy::DeletePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2616 crate::operation::delete_policy::DeletePolicyError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
2617 crate::operation::delete_policy::DeletePolicyError::Unhandled(inner) => Error::Unhandled(inner),
2618 }
2619 }
2620}
2621impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_policy_version::DeletePolicyVersionError, R>> for Error
2622where
2623 R: Send + Sync + std::fmt::Debug + 'static,
2624{
2625 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_policy_version::DeletePolicyVersionError, R>) -> Self {
2626 match err {
2627 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2628 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2629 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2630 source: err.into(),
2631 }),
2632 }
2633 }
2634}
2635impl From<crate::operation::delete_policy_version::DeletePolicyVersionError> for Error {
2636 fn from(err: crate::operation::delete_policy_version::DeletePolicyVersionError) -> Self {
2637 match err {
2638 crate::operation::delete_policy_version::DeletePolicyVersionError::DeleteConflictException(inner) => {
2639 Error::DeleteConflictException(inner)
2640 }
2641 crate::operation::delete_policy_version::DeletePolicyVersionError::InternalFailureException(inner) => {
2642 Error::InternalFailureException(inner)
2643 }
2644 crate::operation::delete_policy_version::DeletePolicyVersionError::InvalidRequestException(inner) => {
2645 Error::InvalidRequestException(inner)
2646 }
2647 crate::operation::delete_policy_version::DeletePolicyVersionError::ResourceNotFoundException(inner) => {
2648 Error::ResourceNotFoundException(inner)
2649 }
2650 crate::operation::delete_policy_version::DeletePolicyVersionError::ServiceUnavailableException(inner) => {
2651 Error::ServiceUnavailableException(inner)
2652 }
2653 crate::operation::delete_policy_version::DeletePolicyVersionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2654 crate::operation::delete_policy_version::DeletePolicyVersionError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
2655 crate::operation::delete_policy_version::DeletePolicyVersionError::Unhandled(inner) => Error::Unhandled(inner),
2656 }
2657 }
2658}
2659impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_provisioning_template::DeleteProvisioningTemplateError, R>>
2660 for Error
2661where
2662 R: Send + Sync + std::fmt::Debug + 'static,
2663{
2664 fn from(
2665 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_provisioning_template::DeleteProvisioningTemplateError, R>,
2666 ) -> Self {
2667 match err {
2668 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2669 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2670 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2671 source: err.into(),
2672 }),
2673 }
2674 }
2675}
2676impl From<crate::operation::delete_provisioning_template::DeleteProvisioningTemplateError> for Error {
2677 fn from(err: crate::operation::delete_provisioning_template::DeleteProvisioningTemplateError) -> Self {
2678 match err {
2679 crate::operation::delete_provisioning_template::DeleteProvisioningTemplateError::ConflictingResourceUpdateException(inner) => {
2680 Error::ConflictingResourceUpdateException(inner)
2681 }
2682 crate::operation::delete_provisioning_template::DeleteProvisioningTemplateError::DeleteConflictException(inner) => {
2683 Error::DeleteConflictException(inner)
2684 }
2685 crate::operation::delete_provisioning_template::DeleteProvisioningTemplateError::InternalFailureException(inner) => {
2686 Error::InternalFailureException(inner)
2687 }
2688 crate::operation::delete_provisioning_template::DeleteProvisioningTemplateError::InvalidRequestException(inner) => {
2689 Error::InvalidRequestException(inner)
2690 }
2691 crate::operation::delete_provisioning_template::DeleteProvisioningTemplateError::ResourceNotFoundException(inner) => {
2692 Error::ResourceNotFoundException(inner)
2693 }
2694 crate::operation::delete_provisioning_template::DeleteProvisioningTemplateError::ThrottlingException(inner) => {
2695 Error::ThrottlingException(inner)
2696 }
2697 crate::operation::delete_provisioning_template::DeleteProvisioningTemplateError::UnauthorizedException(inner) => {
2698 Error::UnauthorizedException(inner)
2699 }
2700 crate::operation::delete_provisioning_template::DeleteProvisioningTemplateError::Unhandled(inner) => Error::Unhandled(inner),
2701 }
2702 }
2703}
2704impl<R>
2705 From<
2706 ::aws_smithy_runtime_api::client::result::SdkError<
2707 crate::operation::delete_provisioning_template_version::DeleteProvisioningTemplateVersionError,
2708 R,
2709 >,
2710 > for Error
2711where
2712 R: Send + Sync + std::fmt::Debug + 'static,
2713{
2714 fn from(
2715 err: ::aws_smithy_runtime_api::client::result::SdkError<
2716 crate::operation::delete_provisioning_template_version::DeleteProvisioningTemplateVersionError,
2717 R,
2718 >,
2719 ) -> Self {
2720 match err {
2721 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2722 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2723 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2724 source: err.into(),
2725 }),
2726 }
2727 }
2728}
2729impl From<crate::operation::delete_provisioning_template_version::DeleteProvisioningTemplateVersionError> for Error {
2730 fn from(err: crate::operation::delete_provisioning_template_version::DeleteProvisioningTemplateVersionError) -> Self {
2731 match err {
2732 crate::operation::delete_provisioning_template_version::DeleteProvisioningTemplateVersionError::ConflictingResourceUpdateException(
2733 inner,
2734 ) => Error::ConflictingResourceUpdateException(inner),
2735 crate::operation::delete_provisioning_template_version::DeleteProvisioningTemplateVersionError::DeleteConflictException(inner) => {
2736 Error::DeleteConflictException(inner)
2737 }
2738 crate::operation::delete_provisioning_template_version::DeleteProvisioningTemplateVersionError::InternalFailureException(inner) => {
2739 Error::InternalFailureException(inner)
2740 }
2741 crate::operation::delete_provisioning_template_version::DeleteProvisioningTemplateVersionError::InvalidRequestException(inner) => {
2742 Error::InvalidRequestException(inner)
2743 }
2744 crate::operation::delete_provisioning_template_version::DeleteProvisioningTemplateVersionError::ResourceNotFoundException(inner) => {
2745 Error::ResourceNotFoundException(inner)
2746 }
2747 crate::operation::delete_provisioning_template_version::DeleteProvisioningTemplateVersionError::ThrottlingException(inner) => {
2748 Error::ThrottlingException(inner)
2749 }
2750 crate::operation::delete_provisioning_template_version::DeleteProvisioningTemplateVersionError::UnauthorizedException(inner) => {
2751 Error::UnauthorizedException(inner)
2752 }
2753 crate::operation::delete_provisioning_template_version::DeleteProvisioningTemplateVersionError::Unhandled(inner) => {
2754 Error::Unhandled(inner)
2755 }
2756 }
2757 }
2758}
2759impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_registration_code::DeleteRegistrationCodeError, R>> for Error
2760where
2761 R: Send + Sync + std::fmt::Debug + 'static,
2762{
2763 fn from(
2764 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_registration_code::DeleteRegistrationCodeError, R>,
2765 ) -> Self {
2766 match err {
2767 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2768 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2769 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2770 source: err.into(),
2771 }),
2772 }
2773 }
2774}
2775impl From<crate::operation::delete_registration_code::DeleteRegistrationCodeError> for Error {
2776 fn from(err: crate::operation::delete_registration_code::DeleteRegistrationCodeError) -> Self {
2777 match err {
2778 crate::operation::delete_registration_code::DeleteRegistrationCodeError::InternalFailureException(inner) => {
2779 Error::InternalFailureException(inner)
2780 }
2781 crate::operation::delete_registration_code::DeleteRegistrationCodeError::ResourceNotFoundException(inner) => {
2782 Error::ResourceNotFoundException(inner)
2783 }
2784 crate::operation::delete_registration_code::DeleteRegistrationCodeError::ServiceUnavailableException(inner) => {
2785 Error::ServiceUnavailableException(inner)
2786 }
2787 crate::operation::delete_registration_code::DeleteRegistrationCodeError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2788 crate::operation::delete_registration_code::DeleteRegistrationCodeError::UnauthorizedException(inner) => {
2789 Error::UnauthorizedException(inner)
2790 }
2791 crate::operation::delete_registration_code::DeleteRegistrationCodeError::Unhandled(inner) => Error::Unhandled(inner),
2792 }
2793 }
2794}
2795impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_role_alias::DeleteRoleAliasError, R>> for Error
2796where
2797 R: Send + Sync + std::fmt::Debug + 'static,
2798{
2799 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_role_alias::DeleteRoleAliasError, R>) -> Self {
2800 match err {
2801 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2802 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2803 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2804 source: err.into(),
2805 }),
2806 }
2807 }
2808}
2809impl From<crate::operation::delete_role_alias::DeleteRoleAliasError> for Error {
2810 fn from(err: crate::operation::delete_role_alias::DeleteRoleAliasError) -> Self {
2811 match err {
2812 crate::operation::delete_role_alias::DeleteRoleAliasError::DeleteConflictException(inner) => Error::DeleteConflictException(inner),
2813 crate::operation::delete_role_alias::DeleteRoleAliasError::InternalFailureException(inner) => Error::InternalFailureException(inner),
2814 crate::operation::delete_role_alias::DeleteRoleAliasError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
2815 crate::operation::delete_role_alias::DeleteRoleAliasError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2816 crate::operation::delete_role_alias::DeleteRoleAliasError::ServiceUnavailableException(inner) => {
2817 Error::ServiceUnavailableException(inner)
2818 }
2819 crate::operation::delete_role_alias::DeleteRoleAliasError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2820 crate::operation::delete_role_alias::DeleteRoleAliasError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
2821 crate::operation::delete_role_alias::DeleteRoleAliasError::Unhandled(inner) => Error::Unhandled(inner),
2822 }
2823 }
2824}
2825impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_scheduled_audit::DeleteScheduledAuditError, R>> for Error
2826where
2827 R: Send + Sync + std::fmt::Debug + 'static,
2828{
2829 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_scheduled_audit::DeleteScheduledAuditError, R>) -> Self {
2830 match err {
2831 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2832 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2833 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2834 source: err.into(),
2835 }),
2836 }
2837 }
2838}
2839impl From<crate::operation::delete_scheduled_audit::DeleteScheduledAuditError> for Error {
2840 fn from(err: crate::operation::delete_scheduled_audit::DeleteScheduledAuditError) -> Self {
2841 match err {
2842 crate::operation::delete_scheduled_audit::DeleteScheduledAuditError::InternalFailureException(inner) => {
2843 Error::InternalFailureException(inner)
2844 }
2845 crate::operation::delete_scheduled_audit::DeleteScheduledAuditError::InvalidRequestException(inner) => {
2846 Error::InvalidRequestException(inner)
2847 }
2848 crate::operation::delete_scheduled_audit::DeleteScheduledAuditError::ResourceNotFoundException(inner) => {
2849 Error::ResourceNotFoundException(inner)
2850 }
2851 crate::operation::delete_scheduled_audit::DeleteScheduledAuditError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2852 crate::operation::delete_scheduled_audit::DeleteScheduledAuditError::Unhandled(inner) => Error::Unhandled(inner),
2853 }
2854 }
2855}
2856impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_security_profile::DeleteSecurityProfileError, R>> for Error
2857where
2858 R: Send + Sync + std::fmt::Debug + 'static,
2859{
2860 fn from(
2861 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_security_profile::DeleteSecurityProfileError, R>,
2862 ) -> Self {
2863 match err {
2864 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2865 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2866 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2867 source: err.into(),
2868 }),
2869 }
2870 }
2871}
2872impl From<crate::operation::delete_security_profile::DeleteSecurityProfileError> for Error {
2873 fn from(err: crate::operation::delete_security_profile::DeleteSecurityProfileError) -> Self {
2874 match err {
2875 crate::operation::delete_security_profile::DeleteSecurityProfileError::InternalFailureException(inner) => {
2876 Error::InternalFailureException(inner)
2877 }
2878 crate::operation::delete_security_profile::DeleteSecurityProfileError::InvalidRequestException(inner) => {
2879 Error::InvalidRequestException(inner)
2880 }
2881 crate::operation::delete_security_profile::DeleteSecurityProfileError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2882 crate::operation::delete_security_profile::DeleteSecurityProfileError::VersionConflictException(inner) => {
2883 Error::VersionConflictException(inner)
2884 }
2885 crate::operation::delete_security_profile::DeleteSecurityProfileError::Unhandled(inner) => Error::Unhandled(inner),
2886 }
2887 }
2888}
2889impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_stream::DeleteStreamError, R>> for Error
2890where
2891 R: Send + Sync + std::fmt::Debug + 'static,
2892{
2893 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_stream::DeleteStreamError, R>) -> Self {
2894 match err {
2895 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2896 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2897 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2898 source: err.into(),
2899 }),
2900 }
2901 }
2902}
2903impl From<crate::operation::delete_stream::DeleteStreamError> for Error {
2904 fn from(err: crate::operation::delete_stream::DeleteStreamError) -> Self {
2905 match err {
2906 crate::operation::delete_stream::DeleteStreamError::DeleteConflictException(inner) => Error::DeleteConflictException(inner),
2907 crate::operation::delete_stream::DeleteStreamError::InternalFailureException(inner) => Error::InternalFailureException(inner),
2908 crate::operation::delete_stream::DeleteStreamError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
2909 crate::operation::delete_stream::DeleteStreamError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2910 crate::operation::delete_stream::DeleteStreamError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
2911 crate::operation::delete_stream::DeleteStreamError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2912 crate::operation::delete_stream::DeleteStreamError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
2913 crate::operation::delete_stream::DeleteStreamError::Unhandled(inner) => Error::Unhandled(inner),
2914 }
2915 }
2916}
2917impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_thing::DeleteThingError, R>> for Error
2918where
2919 R: Send + Sync + std::fmt::Debug + 'static,
2920{
2921 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_thing::DeleteThingError, R>) -> Self {
2922 match err {
2923 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2924 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2925 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2926 source: err.into(),
2927 }),
2928 }
2929 }
2930}
2931impl From<crate::operation::delete_thing::DeleteThingError> for Error {
2932 fn from(err: crate::operation::delete_thing::DeleteThingError) -> Self {
2933 match err {
2934 crate::operation::delete_thing::DeleteThingError::InternalFailureException(inner) => Error::InternalFailureException(inner),
2935 crate::operation::delete_thing::DeleteThingError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
2936 crate::operation::delete_thing::DeleteThingError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2937 crate::operation::delete_thing::DeleteThingError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
2938 crate::operation::delete_thing::DeleteThingError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2939 crate::operation::delete_thing::DeleteThingError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
2940 crate::operation::delete_thing::DeleteThingError::VersionConflictException(inner) => Error::VersionConflictException(inner),
2941 crate::operation::delete_thing::DeleteThingError::Unhandled(inner) => Error::Unhandled(inner),
2942 }
2943 }
2944}
2945impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_thing_group::DeleteThingGroupError, R>> for Error
2946where
2947 R: Send + Sync + std::fmt::Debug + 'static,
2948{
2949 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_thing_group::DeleteThingGroupError, R>) -> Self {
2950 match err {
2951 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2952 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2953 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2954 source: err.into(),
2955 }),
2956 }
2957 }
2958}
2959impl From<crate::operation::delete_thing_group::DeleteThingGroupError> for Error {
2960 fn from(err: crate::operation::delete_thing_group::DeleteThingGroupError) -> Self {
2961 match err {
2962 crate::operation::delete_thing_group::DeleteThingGroupError::InternalFailureException(inner) => Error::InternalFailureException(inner),
2963 crate::operation::delete_thing_group::DeleteThingGroupError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
2964 crate::operation::delete_thing_group::DeleteThingGroupError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2965 crate::operation::delete_thing_group::DeleteThingGroupError::VersionConflictException(inner) => Error::VersionConflictException(inner),
2966 crate::operation::delete_thing_group::DeleteThingGroupError::Unhandled(inner) => Error::Unhandled(inner),
2967 }
2968 }
2969}
2970impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_thing_type::DeleteThingTypeError, R>> for Error
2971where
2972 R: Send + Sync + std::fmt::Debug + 'static,
2973{
2974 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_thing_type::DeleteThingTypeError, R>) -> Self {
2975 match err {
2976 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2977 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2978 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2979 source: err.into(),
2980 }),
2981 }
2982 }
2983}
2984impl From<crate::operation::delete_thing_type::DeleteThingTypeError> for Error {
2985 fn from(err: crate::operation::delete_thing_type::DeleteThingTypeError) -> Self {
2986 match err {
2987 crate::operation::delete_thing_type::DeleteThingTypeError::InternalFailureException(inner) => Error::InternalFailureException(inner),
2988 crate::operation::delete_thing_type::DeleteThingTypeError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
2989 crate::operation::delete_thing_type::DeleteThingTypeError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2990 crate::operation::delete_thing_type::DeleteThingTypeError::ServiceUnavailableException(inner) => {
2991 Error::ServiceUnavailableException(inner)
2992 }
2993 crate::operation::delete_thing_type::DeleteThingTypeError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2994 crate::operation::delete_thing_type::DeleteThingTypeError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
2995 crate::operation::delete_thing_type::DeleteThingTypeError::Unhandled(inner) => Error::Unhandled(inner),
2996 }
2997 }
2998}
2999impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_topic_rule::DeleteTopicRuleError, R>> for Error
3000where
3001 R: Send + Sync + std::fmt::Debug + 'static,
3002{
3003 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_topic_rule::DeleteTopicRuleError, R>) -> Self {
3004 match err {
3005 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3006 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3007 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3008 source: err.into(),
3009 }),
3010 }
3011 }
3012}
3013impl From<crate::operation::delete_topic_rule::DeleteTopicRuleError> for Error {
3014 fn from(err: crate::operation::delete_topic_rule::DeleteTopicRuleError) -> Self {
3015 match err {
3016 crate::operation::delete_topic_rule::DeleteTopicRuleError::ConflictingResourceUpdateException(inner) => {
3017 Error::ConflictingResourceUpdateException(inner)
3018 }
3019 crate::operation::delete_topic_rule::DeleteTopicRuleError::InternalException(inner) => Error::InternalException(inner),
3020 crate::operation::delete_topic_rule::DeleteTopicRuleError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
3021 crate::operation::delete_topic_rule::DeleteTopicRuleError::ServiceUnavailableException(inner) => {
3022 Error::ServiceUnavailableException(inner)
3023 }
3024 crate::operation::delete_topic_rule::DeleteTopicRuleError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
3025 crate::operation::delete_topic_rule::DeleteTopicRuleError::Unhandled(inner) => Error::Unhandled(inner),
3026 }
3027 }
3028}
3029impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_topic_rule_destination::DeleteTopicRuleDestinationError, R>>
3030 for Error
3031where
3032 R: Send + Sync + std::fmt::Debug + 'static,
3033{
3034 fn from(
3035 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_topic_rule_destination::DeleteTopicRuleDestinationError, R>,
3036 ) -> Self {
3037 match err {
3038 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3039 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3040 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3041 source: err.into(),
3042 }),
3043 }
3044 }
3045}
3046impl From<crate::operation::delete_topic_rule_destination::DeleteTopicRuleDestinationError> for Error {
3047 fn from(err: crate::operation::delete_topic_rule_destination::DeleteTopicRuleDestinationError) -> Self {
3048 match err {
3049 crate::operation::delete_topic_rule_destination::DeleteTopicRuleDestinationError::ConflictingResourceUpdateException(inner) => {
3050 Error::ConflictingResourceUpdateException(inner)
3051 }
3052 crate::operation::delete_topic_rule_destination::DeleteTopicRuleDestinationError::InternalException(inner) => {
3053 Error::InternalException(inner)
3054 }
3055 crate::operation::delete_topic_rule_destination::DeleteTopicRuleDestinationError::InvalidRequestException(inner) => {
3056 Error::InvalidRequestException(inner)
3057 }
3058 crate::operation::delete_topic_rule_destination::DeleteTopicRuleDestinationError::ServiceUnavailableException(inner) => {
3059 Error::ServiceUnavailableException(inner)
3060 }
3061 crate::operation::delete_topic_rule_destination::DeleteTopicRuleDestinationError::UnauthorizedException(inner) => {
3062 Error::UnauthorizedException(inner)
3063 }
3064 crate::operation::delete_topic_rule_destination::DeleteTopicRuleDestinationError::Unhandled(inner) => Error::Unhandled(inner),
3065 }
3066 }
3067}
3068impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_v2_logging_level::DeleteV2LoggingLevelError, R>> for Error
3069where
3070 R: Send + Sync + std::fmt::Debug + 'static,
3071{
3072 fn from(
3073 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_v2_logging_level::DeleteV2LoggingLevelError, R>,
3074 ) -> Self {
3075 match err {
3076 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3077 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3078 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3079 source: err.into(),
3080 }),
3081 }
3082 }
3083}
3084impl From<crate::operation::delete_v2_logging_level::DeleteV2LoggingLevelError> for Error {
3085 fn from(err: crate::operation::delete_v2_logging_level::DeleteV2LoggingLevelError) -> Self {
3086 match err {
3087 crate::operation::delete_v2_logging_level::DeleteV2LoggingLevelError::InternalException(inner) => Error::InternalException(inner),
3088 crate::operation::delete_v2_logging_level::DeleteV2LoggingLevelError::InvalidRequestException(inner) => {
3089 Error::InvalidRequestException(inner)
3090 }
3091 crate::operation::delete_v2_logging_level::DeleteV2LoggingLevelError::ServiceUnavailableException(inner) => {
3092 Error::ServiceUnavailableException(inner)
3093 }
3094 crate::operation::delete_v2_logging_level::DeleteV2LoggingLevelError::Unhandled(inner) => Error::Unhandled(inner),
3095 }
3096 }
3097}
3098impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deprecate_thing_type::DeprecateThingTypeError, R>> for Error
3099where
3100 R: Send + Sync + std::fmt::Debug + 'static,
3101{
3102 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deprecate_thing_type::DeprecateThingTypeError, R>) -> Self {
3103 match err {
3104 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3105 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3106 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3107 source: err.into(),
3108 }),
3109 }
3110 }
3111}
3112impl From<crate::operation::deprecate_thing_type::DeprecateThingTypeError> for Error {
3113 fn from(err: crate::operation::deprecate_thing_type::DeprecateThingTypeError) -> Self {
3114 match err {
3115 crate::operation::deprecate_thing_type::DeprecateThingTypeError::InternalFailureException(inner) => {
3116 Error::InternalFailureException(inner)
3117 }
3118 crate::operation::deprecate_thing_type::DeprecateThingTypeError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
3119 crate::operation::deprecate_thing_type::DeprecateThingTypeError::ResourceNotFoundException(inner) => {
3120 Error::ResourceNotFoundException(inner)
3121 }
3122 crate::operation::deprecate_thing_type::DeprecateThingTypeError::ServiceUnavailableException(inner) => {
3123 Error::ServiceUnavailableException(inner)
3124 }
3125 crate::operation::deprecate_thing_type::DeprecateThingTypeError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3126 crate::operation::deprecate_thing_type::DeprecateThingTypeError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
3127 crate::operation::deprecate_thing_type::DeprecateThingTypeError::Unhandled(inner) => Error::Unhandled(inner),
3128 }
3129 }
3130}
3131impl<R>
3132 From<
3133 ::aws_smithy_runtime_api::client::result::SdkError<
3134 crate::operation::describe_account_audit_configuration::DescribeAccountAuditConfigurationError,
3135 R,
3136 >,
3137 > for Error
3138where
3139 R: Send + Sync + std::fmt::Debug + 'static,
3140{
3141 fn from(
3142 err: ::aws_smithy_runtime_api::client::result::SdkError<
3143 crate::operation::describe_account_audit_configuration::DescribeAccountAuditConfigurationError,
3144 R,
3145 >,
3146 ) -> Self {
3147 match err {
3148 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3149 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3150 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3151 source: err.into(),
3152 }),
3153 }
3154 }
3155}
3156impl From<crate::operation::describe_account_audit_configuration::DescribeAccountAuditConfigurationError> for Error {
3157 fn from(err: crate::operation::describe_account_audit_configuration::DescribeAccountAuditConfigurationError) -> Self {
3158 match err {
3159 crate::operation::describe_account_audit_configuration::DescribeAccountAuditConfigurationError::InternalFailureException(inner) => {
3160 Error::InternalFailureException(inner)
3161 }
3162 crate::operation::describe_account_audit_configuration::DescribeAccountAuditConfigurationError::ThrottlingException(inner) => {
3163 Error::ThrottlingException(inner)
3164 }
3165 crate::operation::describe_account_audit_configuration::DescribeAccountAuditConfigurationError::Unhandled(inner) => {
3166 Error::Unhandled(inner)
3167 }
3168 }
3169 }
3170}
3171impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_audit_finding::DescribeAuditFindingError, R>> for Error
3172where
3173 R: Send + Sync + std::fmt::Debug + 'static,
3174{
3175 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_audit_finding::DescribeAuditFindingError, R>) -> Self {
3176 match err {
3177 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3178 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3179 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3180 source: err.into(),
3181 }),
3182 }
3183 }
3184}
3185impl From<crate::operation::describe_audit_finding::DescribeAuditFindingError> for Error {
3186 fn from(err: crate::operation::describe_audit_finding::DescribeAuditFindingError) -> Self {
3187 match err {
3188 crate::operation::describe_audit_finding::DescribeAuditFindingError::InternalFailureException(inner) => {
3189 Error::InternalFailureException(inner)
3190 }
3191 crate::operation::describe_audit_finding::DescribeAuditFindingError::InvalidRequestException(inner) => {
3192 Error::InvalidRequestException(inner)
3193 }
3194 crate::operation::describe_audit_finding::DescribeAuditFindingError::ResourceNotFoundException(inner) => {
3195 Error::ResourceNotFoundException(inner)
3196 }
3197 crate::operation::describe_audit_finding::DescribeAuditFindingError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3198 crate::operation::describe_audit_finding::DescribeAuditFindingError::Unhandled(inner) => Error::Unhandled(inner),
3199 }
3200 }
3201}
3202impl<R>
3203 From<
3204 ::aws_smithy_runtime_api::client::result::SdkError<
3205 crate::operation::describe_audit_mitigation_actions_task::DescribeAuditMitigationActionsTaskError,
3206 R,
3207 >,
3208 > for Error
3209where
3210 R: Send + Sync + std::fmt::Debug + 'static,
3211{
3212 fn from(
3213 err: ::aws_smithy_runtime_api::client::result::SdkError<
3214 crate::operation::describe_audit_mitigation_actions_task::DescribeAuditMitigationActionsTaskError,
3215 R,
3216 >,
3217 ) -> Self {
3218 match err {
3219 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3220 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3221 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3222 source: err.into(),
3223 }),
3224 }
3225 }
3226}
3227impl From<crate::operation::describe_audit_mitigation_actions_task::DescribeAuditMitigationActionsTaskError> for Error {
3228 fn from(err: crate::operation::describe_audit_mitigation_actions_task::DescribeAuditMitigationActionsTaskError) -> Self {
3229 match err {
3230 crate::operation::describe_audit_mitigation_actions_task::DescribeAuditMitigationActionsTaskError::InternalFailureException(inner) => {
3231 Error::InternalFailureException(inner)
3232 }
3233 crate::operation::describe_audit_mitigation_actions_task::DescribeAuditMitigationActionsTaskError::InvalidRequestException(inner) => {
3234 Error::InvalidRequestException(inner)
3235 }
3236 crate::operation::describe_audit_mitigation_actions_task::DescribeAuditMitigationActionsTaskError::ResourceNotFoundException(inner) => {
3237 Error::ResourceNotFoundException(inner)
3238 }
3239 crate::operation::describe_audit_mitigation_actions_task::DescribeAuditMitigationActionsTaskError::ThrottlingException(inner) => {
3240 Error::ThrottlingException(inner)
3241 }
3242 crate::operation::describe_audit_mitigation_actions_task::DescribeAuditMitigationActionsTaskError::Unhandled(inner) => {
3243 Error::Unhandled(inner)
3244 }
3245 }
3246 }
3247}
3248impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_audit_suppression::DescribeAuditSuppressionError, R>>
3249 for Error
3250where
3251 R: Send + Sync + std::fmt::Debug + 'static,
3252{
3253 fn from(
3254 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_audit_suppression::DescribeAuditSuppressionError, R>,
3255 ) -> Self {
3256 match err {
3257 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3258 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3259 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3260 source: err.into(),
3261 }),
3262 }
3263 }
3264}
3265impl From<crate::operation::describe_audit_suppression::DescribeAuditSuppressionError> for Error {
3266 fn from(err: crate::operation::describe_audit_suppression::DescribeAuditSuppressionError) -> Self {
3267 match err {
3268 crate::operation::describe_audit_suppression::DescribeAuditSuppressionError::InternalFailureException(inner) => {
3269 Error::InternalFailureException(inner)
3270 }
3271 crate::operation::describe_audit_suppression::DescribeAuditSuppressionError::InvalidRequestException(inner) => {
3272 Error::InvalidRequestException(inner)
3273 }
3274 crate::operation::describe_audit_suppression::DescribeAuditSuppressionError::ResourceNotFoundException(inner) => {
3275 Error::ResourceNotFoundException(inner)
3276 }
3277 crate::operation::describe_audit_suppression::DescribeAuditSuppressionError::ThrottlingException(inner) => {
3278 Error::ThrottlingException(inner)
3279 }
3280 crate::operation::describe_audit_suppression::DescribeAuditSuppressionError::Unhandled(inner) => Error::Unhandled(inner),
3281 }
3282 }
3283}
3284impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_audit_task::DescribeAuditTaskError, R>> for Error
3285where
3286 R: Send + Sync + std::fmt::Debug + 'static,
3287{
3288 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_audit_task::DescribeAuditTaskError, R>) -> Self {
3289 match err {
3290 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3291 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3292 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3293 source: err.into(),
3294 }),
3295 }
3296 }
3297}
3298impl From<crate::operation::describe_audit_task::DescribeAuditTaskError> for Error {
3299 fn from(err: crate::operation::describe_audit_task::DescribeAuditTaskError) -> Self {
3300 match err {
3301 crate::operation::describe_audit_task::DescribeAuditTaskError::InternalFailureException(inner) => Error::InternalFailureException(inner),
3302 crate::operation::describe_audit_task::DescribeAuditTaskError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
3303 crate::operation::describe_audit_task::DescribeAuditTaskError::ResourceNotFoundException(inner) => {
3304 Error::ResourceNotFoundException(inner)
3305 }
3306 crate::operation::describe_audit_task::DescribeAuditTaskError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3307 crate::operation::describe_audit_task::DescribeAuditTaskError::Unhandled(inner) => Error::Unhandled(inner),
3308 }
3309 }
3310}
3311impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_authorizer::DescribeAuthorizerError, R>> for Error
3312where
3313 R: Send + Sync + std::fmt::Debug + 'static,
3314{
3315 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_authorizer::DescribeAuthorizerError, R>) -> Self {
3316 match err {
3317 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3318 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3319 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3320 source: err.into(),
3321 }),
3322 }
3323 }
3324}
3325impl From<crate::operation::describe_authorizer::DescribeAuthorizerError> for Error {
3326 fn from(err: crate::operation::describe_authorizer::DescribeAuthorizerError) -> Self {
3327 match err {
3328 crate::operation::describe_authorizer::DescribeAuthorizerError::InternalFailureException(inner) => Error::InternalFailureException(inner),
3329 crate::operation::describe_authorizer::DescribeAuthorizerError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
3330 crate::operation::describe_authorizer::DescribeAuthorizerError::ResourceNotFoundException(inner) => {
3331 Error::ResourceNotFoundException(inner)
3332 }
3333 crate::operation::describe_authorizer::DescribeAuthorizerError::ServiceUnavailableException(inner) => {
3334 Error::ServiceUnavailableException(inner)
3335 }
3336 crate::operation::describe_authorizer::DescribeAuthorizerError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3337 crate::operation::describe_authorizer::DescribeAuthorizerError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
3338 crate::operation::describe_authorizer::DescribeAuthorizerError::Unhandled(inner) => Error::Unhandled(inner),
3339 }
3340 }
3341}
3342impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_billing_group::DescribeBillingGroupError, R>> for Error
3343where
3344 R: Send + Sync + std::fmt::Debug + 'static,
3345{
3346 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_billing_group::DescribeBillingGroupError, R>) -> Self {
3347 match err {
3348 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3349 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3350 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3351 source: err.into(),
3352 }),
3353 }
3354 }
3355}
3356impl From<crate::operation::describe_billing_group::DescribeBillingGroupError> for Error {
3357 fn from(err: crate::operation::describe_billing_group::DescribeBillingGroupError) -> Self {
3358 match err {
3359 crate::operation::describe_billing_group::DescribeBillingGroupError::InternalFailureException(inner) => {
3360 Error::InternalFailureException(inner)
3361 }
3362 crate::operation::describe_billing_group::DescribeBillingGroupError::InvalidRequestException(inner) => {
3363 Error::InvalidRequestException(inner)
3364 }
3365 crate::operation::describe_billing_group::DescribeBillingGroupError::ResourceNotFoundException(inner) => {
3366 Error::ResourceNotFoundException(inner)
3367 }
3368 crate::operation::describe_billing_group::DescribeBillingGroupError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3369 crate::operation::describe_billing_group::DescribeBillingGroupError::Unhandled(inner) => Error::Unhandled(inner),
3370 }
3371 }
3372}
3373impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ca_certificate::DescribeCACertificateError, R>> for Error
3374where
3375 R: Send + Sync + std::fmt::Debug + 'static,
3376{
3377 fn from(
3378 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ca_certificate::DescribeCACertificateError, R>,
3379 ) -> Self {
3380 match err {
3381 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3382 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3383 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3384 source: err.into(),
3385 }),
3386 }
3387 }
3388}
3389impl From<crate::operation::describe_ca_certificate::DescribeCACertificateError> for Error {
3390 fn from(err: crate::operation::describe_ca_certificate::DescribeCACertificateError) -> Self {
3391 match err {
3392 crate::operation::describe_ca_certificate::DescribeCACertificateError::InternalFailureException(inner) => {
3393 Error::InternalFailureException(inner)
3394 }
3395 crate::operation::describe_ca_certificate::DescribeCACertificateError::InvalidRequestException(inner) => {
3396 Error::InvalidRequestException(inner)
3397 }
3398 crate::operation::describe_ca_certificate::DescribeCACertificateError::ResourceNotFoundException(inner) => {
3399 Error::ResourceNotFoundException(inner)
3400 }
3401 crate::operation::describe_ca_certificate::DescribeCACertificateError::ServiceUnavailableException(inner) => {
3402 Error::ServiceUnavailableException(inner)
3403 }
3404 crate::operation::describe_ca_certificate::DescribeCACertificateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3405 crate::operation::describe_ca_certificate::DescribeCACertificateError::UnauthorizedException(inner) => {
3406 Error::UnauthorizedException(inner)
3407 }
3408 crate::operation::describe_ca_certificate::DescribeCACertificateError::Unhandled(inner) => Error::Unhandled(inner),
3409 }
3410 }
3411}
3412impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_certificate::DescribeCertificateError, R>> for Error
3413where
3414 R: Send + Sync + std::fmt::Debug + 'static,
3415{
3416 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_certificate::DescribeCertificateError, R>) -> Self {
3417 match err {
3418 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3419 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3420 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3421 source: err.into(),
3422 }),
3423 }
3424 }
3425}
3426impl From<crate::operation::describe_certificate::DescribeCertificateError> for Error {
3427 fn from(err: crate::operation::describe_certificate::DescribeCertificateError) -> Self {
3428 match err {
3429 crate::operation::describe_certificate::DescribeCertificateError::InternalFailureException(inner) => {
3430 Error::InternalFailureException(inner)
3431 }
3432 crate::operation::describe_certificate::DescribeCertificateError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
3433 crate::operation::describe_certificate::DescribeCertificateError::ResourceNotFoundException(inner) => {
3434 Error::ResourceNotFoundException(inner)
3435 }
3436 crate::operation::describe_certificate::DescribeCertificateError::ServiceUnavailableException(inner) => {
3437 Error::ServiceUnavailableException(inner)
3438 }
3439 crate::operation::describe_certificate::DescribeCertificateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3440 crate::operation::describe_certificate::DescribeCertificateError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
3441 crate::operation::describe_certificate::DescribeCertificateError::Unhandled(inner) => Error::Unhandled(inner),
3442 }
3443 }
3444}
3445impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_certificate_provider::DescribeCertificateProviderError, R>>
3446 for Error
3447where
3448 R: Send + Sync + std::fmt::Debug + 'static,
3449{
3450 fn from(
3451 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_certificate_provider::DescribeCertificateProviderError, R>,
3452 ) -> Self {
3453 match err {
3454 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3455 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3456 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3457 source: err.into(),
3458 }),
3459 }
3460 }
3461}
3462impl From<crate::operation::describe_certificate_provider::DescribeCertificateProviderError> for Error {
3463 fn from(err: crate::operation::describe_certificate_provider::DescribeCertificateProviderError) -> Self {
3464 match err {
3465 crate::operation::describe_certificate_provider::DescribeCertificateProviderError::InternalFailureException(inner) => {
3466 Error::InternalFailureException(inner)
3467 }
3468 crate::operation::describe_certificate_provider::DescribeCertificateProviderError::InvalidRequestException(inner) => {
3469 Error::InvalidRequestException(inner)
3470 }
3471 crate::operation::describe_certificate_provider::DescribeCertificateProviderError::ResourceNotFoundException(inner) => {
3472 Error::ResourceNotFoundException(inner)
3473 }
3474 crate::operation::describe_certificate_provider::DescribeCertificateProviderError::ServiceUnavailableException(inner) => {
3475 Error::ServiceUnavailableException(inner)
3476 }
3477 crate::operation::describe_certificate_provider::DescribeCertificateProviderError::ThrottlingException(inner) => {
3478 Error::ThrottlingException(inner)
3479 }
3480 crate::operation::describe_certificate_provider::DescribeCertificateProviderError::UnauthorizedException(inner) => {
3481 Error::UnauthorizedException(inner)
3482 }
3483 crate::operation::describe_certificate_provider::DescribeCertificateProviderError::Unhandled(inner) => Error::Unhandled(inner),
3484 }
3485 }
3486}
3487impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_custom_metric::DescribeCustomMetricError, R>> for Error
3488where
3489 R: Send + Sync + std::fmt::Debug + 'static,
3490{
3491 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_custom_metric::DescribeCustomMetricError, R>) -> Self {
3492 match err {
3493 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3494 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3495 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3496 source: err.into(),
3497 }),
3498 }
3499 }
3500}
3501impl From<crate::operation::describe_custom_metric::DescribeCustomMetricError> for Error {
3502 fn from(err: crate::operation::describe_custom_metric::DescribeCustomMetricError) -> Self {
3503 match err {
3504 crate::operation::describe_custom_metric::DescribeCustomMetricError::InternalFailureException(inner) => {
3505 Error::InternalFailureException(inner)
3506 }
3507 crate::operation::describe_custom_metric::DescribeCustomMetricError::InvalidRequestException(inner) => {
3508 Error::InvalidRequestException(inner)
3509 }
3510 crate::operation::describe_custom_metric::DescribeCustomMetricError::ResourceNotFoundException(inner) => {
3511 Error::ResourceNotFoundException(inner)
3512 }
3513 crate::operation::describe_custom_metric::DescribeCustomMetricError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3514 crate::operation::describe_custom_metric::DescribeCustomMetricError::Unhandled(inner) => Error::Unhandled(inner),
3515 }
3516 }
3517}
3518impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_default_authorizer::DescribeDefaultAuthorizerError, R>>
3519 for Error
3520where
3521 R: Send + Sync + std::fmt::Debug + 'static,
3522{
3523 fn from(
3524 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_default_authorizer::DescribeDefaultAuthorizerError, R>,
3525 ) -> Self {
3526 match err {
3527 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3528 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3529 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3530 source: err.into(),
3531 }),
3532 }
3533 }
3534}
3535impl From<crate::operation::describe_default_authorizer::DescribeDefaultAuthorizerError> for Error {
3536 fn from(err: crate::operation::describe_default_authorizer::DescribeDefaultAuthorizerError) -> Self {
3537 match err {
3538 crate::operation::describe_default_authorizer::DescribeDefaultAuthorizerError::InternalFailureException(inner) => {
3539 Error::InternalFailureException(inner)
3540 }
3541 crate::operation::describe_default_authorizer::DescribeDefaultAuthorizerError::InvalidRequestException(inner) => {
3542 Error::InvalidRequestException(inner)
3543 }
3544 crate::operation::describe_default_authorizer::DescribeDefaultAuthorizerError::ResourceNotFoundException(inner) => {
3545 Error::ResourceNotFoundException(inner)
3546 }
3547 crate::operation::describe_default_authorizer::DescribeDefaultAuthorizerError::ServiceUnavailableException(inner) => {
3548 Error::ServiceUnavailableException(inner)
3549 }
3550 crate::operation::describe_default_authorizer::DescribeDefaultAuthorizerError::ThrottlingException(inner) => {
3551 Error::ThrottlingException(inner)
3552 }
3553 crate::operation::describe_default_authorizer::DescribeDefaultAuthorizerError::UnauthorizedException(inner) => {
3554 Error::UnauthorizedException(inner)
3555 }
3556 crate::operation::describe_default_authorizer::DescribeDefaultAuthorizerError::Unhandled(inner) => Error::Unhandled(inner),
3557 }
3558 }
3559}
3560impl<R>
3561 From<
3562 ::aws_smithy_runtime_api::client::result::SdkError<
3563 crate::operation::describe_detect_mitigation_actions_task::DescribeDetectMitigationActionsTaskError,
3564 R,
3565 >,
3566 > for Error
3567where
3568 R: Send + Sync + std::fmt::Debug + 'static,
3569{
3570 fn from(
3571 err: ::aws_smithy_runtime_api::client::result::SdkError<
3572 crate::operation::describe_detect_mitigation_actions_task::DescribeDetectMitigationActionsTaskError,
3573 R,
3574 >,
3575 ) -> Self {
3576 match err {
3577 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3578 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3579 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3580 source: err.into(),
3581 }),
3582 }
3583 }
3584}
3585impl From<crate::operation::describe_detect_mitigation_actions_task::DescribeDetectMitigationActionsTaskError> for Error {
3586 fn from(err: crate::operation::describe_detect_mitigation_actions_task::DescribeDetectMitigationActionsTaskError) -> Self {
3587 match err {
3588 crate::operation::describe_detect_mitigation_actions_task::DescribeDetectMitigationActionsTaskError::InternalFailureException(inner) => {
3589 Error::InternalFailureException(inner)
3590 }
3591 crate::operation::describe_detect_mitigation_actions_task::DescribeDetectMitigationActionsTaskError::InvalidRequestException(inner) => {
3592 Error::InvalidRequestException(inner)
3593 }
3594 crate::operation::describe_detect_mitigation_actions_task::DescribeDetectMitigationActionsTaskError::ResourceNotFoundException(inner) => {
3595 Error::ResourceNotFoundException(inner)
3596 }
3597 crate::operation::describe_detect_mitigation_actions_task::DescribeDetectMitigationActionsTaskError::ThrottlingException(inner) => {
3598 Error::ThrottlingException(inner)
3599 }
3600 crate::operation::describe_detect_mitigation_actions_task::DescribeDetectMitigationActionsTaskError::Unhandled(inner) => {
3601 Error::Unhandled(inner)
3602 }
3603 }
3604 }
3605}
3606impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_dimension::DescribeDimensionError, R>> for Error
3607where
3608 R: Send + Sync + std::fmt::Debug + 'static,
3609{
3610 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_dimension::DescribeDimensionError, R>) -> Self {
3611 match err {
3612 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3613 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3614 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3615 source: err.into(),
3616 }),
3617 }
3618 }
3619}
3620impl From<crate::operation::describe_dimension::DescribeDimensionError> for Error {
3621 fn from(err: crate::operation::describe_dimension::DescribeDimensionError) -> Self {
3622 match err {
3623 crate::operation::describe_dimension::DescribeDimensionError::InternalFailureException(inner) => Error::InternalFailureException(inner),
3624 crate::operation::describe_dimension::DescribeDimensionError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
3625 crate::operation::describe_dimension::DescribeDimensionError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3626 crate::operation::describe_dimension::DescribeDimensionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3627 crate::operation::describe_dimension::DescribeDimensionError::Unhandled(inner) => Error::Unhandled(inner),
3628 }
3629 }
3630}
3631impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_domain_configuration::DescribeDomainConfigurationError, R>>
3632 for Error
3633where
3634 R: Send + Sync + std::fmt::Debug + 'static,
3635{
3636 fn from(
3637 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_domain_configuration::DescribeDomainConfigurationError, R>,
3638 ) -> Self {
3639 match err {
3640 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3641 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3642 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3643 source: err.into(),
3644 }),
3645 }
3646 }
3647}
3648impl From<crate::operation::describe_domain_configuration::DescribeDomainConfigurationError> for Error {
3649 fn from(err: crate::operation::describe_domain_configuration::DescribeDomainConfigurationError) -> Self {
3650 match err {
3651 crate::operation::describe_domain_configuration::DescribeDomainConfigurationError::InternalFailureException(inner) => {
3652 Error::InternalFailureException(inner)
3653 }
3654 crate::operation::describe_domain_configuration::DescribeDomainConfigurationError::InvalidRequestException(inner) => {
3655 Error::InvalidRequestException(inner)
3656 }
3657 crate::operation::describe_domain_configuration::DescribeDomainConfigurationError::ResourceNotFoundException(inner) => {
3658 Error::ResourceNotFoundException(inner)
3659 }
3660 crate::operation::describe_domain_configuration::DescribeDomainConfigurationError::ServiceUnavailableException(inner) => {
3661 Error::ServiceUnavailableException(inner)
3662 }
3663 crate::operation::describe_domain_configuration::DescribeDomainConfigurationError::ThrottlingException(inner) => {
3664 Error::ThrottlingException(inner)
3665 }
3666 crate::operation::describe_domain_configuration::DescribeDomainConfigurationError::UnauthorizedException(inner) => {
3667 Error::UnauthorizedException(inner)
3668 }
3669 crate::operation::describe_domain_configuration::DescribeDomainConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
3670 }
3671 }
3672}
3673impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_endpoint::DescribeEndpointError, R>> for Error
3674where
3675 R: Send + Sync + std::fmt::Debug + 'static,
3676{
3677 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_endpoint::DescribeEndpointError, R>) -> Self {
3678 match err {
3679 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3680 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3681 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3682 source: err.into(),
3683 }),
3684 }
3685 }
3686}
3687impl From<crate::operation::describe_endpoint::DescribeEndpointError> for Error {
3688 fn from(err: crate::operation::describe_endpoint::DescribeEndpointError) -> Self {
3689 match err {
3690 crate::operation::describe_endpoint::DescribeEndpointError::InternalFailureException(inner) => Error::InternalFailureException(inner),
3691 crate::operation::describe_endpoint::DescribeEndpointError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
3692 crate::operation::describe_endpoint::DescribeEndpointError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3693 crate::operation::describe_endpoint::DescribeEndpointError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
3694 crate::operation::describe_endpoint::DescribeEndpointError::Unhandled(inner) => Error::Unhandled(inner),
3695 }
3696 }
3697}
3698impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_event_configurations::DescribeEventConfigurationsError, R>>
3699 for Error
3700where
3701 R: Send + Sync + std::fmt::Debug + 'static,
3702{
3703 fn from(
3704 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_event_configurations::DescribeEventConfigurationsError, R>,
3705 ) -> Self {
3706 match err {
3707 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3708 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3709 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3710 source: err.into(),
3711 }),
3712 }
3713 }
3714}
3715impl From<crate::operation::describe_event_configurations::DescribeEventConfigurationsError> for Error {
3716 fn from(err: crate::operation::describe_event_configurations::DescribeEventConfigurationsError) -> Self {
3717 match err {
3718 crate::operation::describe_event_configurations::DescribeEventConfigurationsError::InternalFailureException(inner) => {
3719 Error::InternalFailureException(inner)
3720 }
3721 crate::operation::describe_event_configurations::DescribeEventConfigurationsError::ThrottlingException(inner) => {
3722 Error::ThrottlingException(inner)
3723 }
3724 crate::operation::describe_event_configurations::DescribeEventConfigurationsError::Unhandled(inner) => Error::Unhandled(inner),
3725 }
3726 }
3727}
3728impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fleet_metric::DescribeFleetMetricError, R>> for Error
3729where
3730 R: Send + Sync + std::fmt::Debug + 'static,
3731{
3732 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fleet_metric::DescribeFleetMetricError, R>) -> Self {
3733 match err {
3734 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3735 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3736 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3737 source: err.into(),
3738 }),
3739 }
3740 }
3741}
3742impl From<crate::operation::describe_fleet_metric::DescribeFleetMetricError> for Error {
3743 fn from(err: crate::operation::describe_fleet_metric::DescribeFleetMetricError) -> Self {
3744 match err {
3745 crate::operation::describe_fleet_metric::DescribeFleetMetricError::InternalFailureException(inner) => {
3746 Error::InternalFailureException(inner)
3747 }
3748 crate::operation::describe_fleet_metric::DescribeFleetMetricError::InvalidRequestException(inner) => {
3749 Error::InvalidRequestException(inner)
3750 }
3751 crate::operation::describe_fleet_metric::DescribeFleetMetricError::ResourceNotFoundException(inner) => {
3752 Error::ResourceNotFoundException(inner)
3753 }
3754 crate::operation::describe_fleet_metric::DescribeFleetMetricError::ServiceUnavailableException(inner) => {
3755 Error::ServiceUnavailableException(inner)
3756 }
3757 crate::operation::describe_fleet_metric::DescribeFleetMetricError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3758 crate::operation::describe_fleet_metric::DescribeFleetMetricError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
3759 crate::operation::describe_fleet_metric::DescribeFleetMetricError::Unhandled(inner) => Error::Unhandled(inner),
3760 }
3761 }
3762}
3763impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_index::DescribeIndexError, R>> for Error
3764where
3765 R: Send + Sync + std::fmt::Debug + 'static,
3766{
3767 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_index::DescribeIndexError, R>) -> Self {
3768 match err {
3769 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3770 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3771 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3772 source: err.into(),
3773 }),
3774 }
3775 }
3776}
3777impl From<crate::operation::describe_index::DescribeIndexError> for Error {
3778 fn from(err: crate::operation::describe_index::DescribeIndexError) -> Self {
3779 match err {
3780 crate::operation::describe_index::DescribeIndexError::InternalFailureException(inner) => Error::InternalFailureException(inner),
3781 crate::operation::describe_index::DescribeIndexError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
3782 crate::operation::describe_index::DescribeIndexError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3783 crate::operation::describe_index::DescribeIndexError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
3784 crate::operation::describe_index::DescribeIndexError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3785 crate::operation::describe_index::DescribeIndexError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
3786 crate::operation::describe_index::DescribeIndexError::Unhandled(inner) => Error::Unhandled(inner),
3787 }
3788 }
3789}
3790impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_job::DescribeJobError, R>> for Error
3791where
3792 R: Send + Sync + std::fmt::Debug + 'static,
3793{
3794 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_job::DescribeJobError, R>) -> Self {
3795 match err {
3796 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3797 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3798 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3799 source: err.into(),
3800 }),
3801 }
3802 }
3803}
3804impl From<crate::operation::describe_job::DescribeJobError> for Error {
3805 fn from(err: crate::operation::describe_job::DescribeJobError) -> Self {
3806 match err {
3807 crate::operation::describe_job::DescribeJobError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
3808 crate::operation::describe_job::DescribeJobError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3809 crate::operation::describe_job::DescribeJobError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
3810 crate::operation::describe_job::DescribeJobError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3811 crate::operation::describe_job::DescribeJobError::Unhandled(inner) => Error::Unhandled(inner),
3812 }
3813 }
3814}
3815impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_job_execution::DescribeJobExecutionError, R>> for Error
3816where
3817 R: Send + Sync + std::fmt::Debug + 'static,
3818{
3819 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_job_execution::DescribeJobExecutionError, R>) -> Self {
3820 match err {
3821 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3822 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3823 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3824 source: err.into(),
3825 }),
3826 }
3827 }
3828}
3829impl From<crate::operation::describe_job_execution::DescribeJobExecutionError> for Error {
3830 fn from(err: crate::operation::describe_job_execution::DescribeJobExecutionError) -> Self {
3831 match err {
3832 crate::operation::describe_job_execution::DescribeJobExecutionError::InvalidRequestException(inner) => {
3833 Error::InvalidRequestException(inner)
3834 }
3835 crate::operation::describe_job_execution::DescribeJobExecutionError::ResourceNotFoundException(inner) => {
3836 Error::ResourceNotFoundException(inner)
3837 }
3838 crate::operation::describe_job_execution::DescribeJobExecutionError::ServiceUnavailableException(inner) => {
3839 Error::ServiceUnavailableException(inner)
3840 }
3841 crate::operation::describe_job_execution::DescribeJobExecutionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3842 crate::operation::describe_job_execution::DescribeJobExecutionError::Unhandled(inner) => Error::Unhandled(inner),
3843 }
3844 }
3845}
3846impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_job_template::DescribeJobTemplateError, R>> for Error
3847where
3848 R: Send + Sync + std::fmt::Debug + 'static,
3849{
3850 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_job_template::DescribeJobTemplateError, R>) -> Self {
3851 match err {
3852 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3853 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3854 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3855 source: err.into(),
3856 }),
3857 }
3858 }
3859}
3860impl From<crate::operation::describe_job_template::DescribeJobTemplateError> for Error {
3861 fn from(err: crate::operation::describe_job_template::DescribeJobTemplateError) -> Self {
3862 match err {
3863 crate::operation::describe_job_template::DescribeJobTemplateError::InternalFailureException(inner) => {
3864 Error::InternalFailureException(inner)
3865 }
3866 crate::operation::describe_job_template::DescribeJobTemplateError::InvalidRequestException(inner) => {
3867 Error::InvalidRequestException(inner)
3868 }
3869 crate::operation::describe_job_template::DescribeJobTemplateError::ResourceNotFoundException(inner) => {
3870 Error::ResourceNotFoundException(inner)
3871 }
3872 crate::operation::describe_job_template::DescribeJobTemplateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3873 crate::operation::describe_job_template::DescribeJobTemplateError::Unhandled(inner) => Error::Unhandled(inner),
3874 }
3875 }
3876}
3877impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_managed_job_template::DescribeManagedJobTemplateError, R>>
3878 for Error
3879where
3880 R: Send + Sync + std::fmt::Debug + 'static,
3881{
3882 fn from(
3883 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_managed_job_template::DescribeManagedJobTemplateError, R>,
3884 ) -> Self {
3885 match err {
3886 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3887 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3888 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3889 source: err.into(),
3890 }),
3891 }
3892 }
3893}
3894impl From<crate::operation::describe_managed_job_template::DescribeManagedJobTemplateError> for Error {
3895 fn from(err: crate::operation::describe_managed_job_template::DescribeManagedJobTemplateError) -> Self {
3896 match err {
3897 crate::operation::describe_managed_job_template::DescribeManagedJobTemplateError::InternalServerException(inner) => {
3898 Error::InternalServerException(inner)
3899 }
3900 crate::operation::describe_managed_job_template::DescribeManagedJobTemplateError::InvalidRequestException(inner) => {
3901 Error::InvalidRequestException(inner)
3902 }
3903 crate::operation::describe_managed_job_template::DescribeManagedJobTemplateError::ResourceNotFoundException(inner) => {
3904 Error::ResourceNotFoundException(inner)
3905 }
3906 crate::operation::describe_managed_job_template::DescribeManagedJobTemplateError::ThrottlingException(inner) => {
3907 Error::ThrottlingException(inner)
3908 }
3909 crate::operation::describe_managed_job_template::DescribeManagedJobTemplateError::Unhandled(inner) => Error::Unhandled(inner),
3910 }
3911 }
3912}
3913impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_mitigation_action::DescribeMitigationActionError, R>>
3914 for Error
3915where
3916 R: Send + Sync + std::fmt::Debug + 'static,
3917{
3918 fn from(
3919 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_mitigation_action::DescribeMitigationActionError, R>,
3920 ) -> Self {
3921 match err {
3922 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3923 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3924 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3925 source: err.into(),
3926 }),
3927 }
3928 }
3929}
3930impl From<crate::operation::describe_mitigation_action::DescribeMitigationActionError> for Error {
3931 fn from(err: crate::operation::describe_mitigation_action::DescribeMitigationActionError) -> Self {
3932 match err {
3933 crate::operation::describe_mitigation_action::DescribeMitigationActionError::InternalFailureException(inner) => {
3934 Error::InternalFailureException(inner)
3935 }
3936 crate::operation::describe_mitigation_action::DescribeMitigationActionError::InvalidRequestException(inner) => {
3937 Error::InvalidRequestException(inner)
3938 }
3939 crate::operation::describe_mitigation_action::DescribeMitigationActionError::ResourceNotFoundException(inner) => {
3940 Error::ResourceNotFoundException(inner)
3941 }
3942 crate::operation::describe_mitigation_action::DescribeMitigationActionError::ThrottlingException(inner) => {
3943 Error::ThrottlingException(inner)
3944 }
3945 crate::operation::describe_mitigation_action::DescribeMitigationActionError::Unhandled(inner) => Error::Unhandled(inner),
3946 }
3947 }
3948}
3949impl<R>
3950 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_provisioning_template::DescribeProvisioningTemplateError, R>>
3951 for Error
3952where
3953 R: Send + Sync + std::fmt::Debug + 'static,
3954{
3955 fn from(
3956 err: ::aws_smithy_runtime_api::client::result::SdkError<
3957 crate::operation::describe_provisioning_template::DescribeProvisioningTemplateError,
3958 R,
3959 >,
3960 ) -> Self {
3961 match err {
3962 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3963 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3964 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3965 source: err.into(),
3966 }),
3967 }
3968 }
3969}
3970impl From<crate::operation::describe_provisioning_template::DescribeProvisioningTemplateError> for Error {
3971 fn from(err: crate::operation::describe_provisioning_template::DescribeProvisioningTemplateError) -> Self {
3972 match err {
3973 crate::operation::describe_provisioning_template::DescribeProvisioningTemplateError::InternalFailureException(inner) => {
3974 Error::InternalFailureException(inner)
3975 }
3976 crate::operation::describe_provisioning_template::DescribeProvisioningTemplateError::InvalidRequestException(inner) => {
3977 Error::InvalidRequestException(inner)
3978 }
3979 crate::operation::describe_provisioning_template::DescribeProvisioningTemplateError::ResourceNotFoundException(inner) => {
3980 Error::ResourceNotFoundException(inner)
3981 }
3982 crate::operation::describe_provisioning_template::DescribeProvisioningTemplateError::ThrottlingException(inner) => {
3983 Error::ThrottlingException(inner)
3984 }
3985 crate::operation::describe_provisioning_template::DescribeProvisioningTemplateError::UnauthorizedException(inner) => {
3986 Error::UnauthorizedException(inner)
3987 }
3988 crate::operation::describe_provisioning_template::DescribeProvisioningTemplateError::Unhandled(inner) => Error::Unhandled(inner),
3989 }
3990 }
3991}
3992impl<R>
3993 From<
3994 ::aws_smithy_runtime_api::client::result::SdkError<
3995 crate::operation::describe_provisioning_template_version::DescribeProvisioningTemplateVersionError,
3996 R,
3997 >,
3998 > for Error
3999where
4000 R: Send + Sync + std::fmt::Debug + 'static,
4001{
4002 fn from(
4003 err: ::aws_smithy_runtime_api::client::result::SdkError<
4004 crate::operation::describe_provisioning_template_version::DescribeProvisioningTemplateVersionError,
4005 R,
4006 >,
4007 ) -> Self {
4008 match err {
4009 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4010 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4011 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4012 source: err.into(),
4013 }),
4014 }
4015 }
4016}
4017impl From<crate::operation::describe_provisioning_template_version::DescribeProvisioningTemplateVersionError> for Error {
4018 fn from(err: crate::operation::describe_provisioning_template_version::DescribeProvisioningTemplateVersionError) -> Self {
4019 match err {
4020 crate::operation::describe_provisioning_template_version::DescribeProvisioningTemplateVersionError::InternalFailureException(inner) => {
4021 Error::InternalFailureException(inner)
4022 }
4023 crate::operation::describe_provisioning_template_version::DescribeProvisioningTemplateVersionError::InvalidRequestException(inner) => {
4024 Error::InvalidRequestException(inner)
4025 }
4026 crate::operation::describe_provisioning_template_version::DescribeProvisioningTemplateVersionError::ResourceNotFoundException(inner) => {
4027 Error::ResourceNotFoundException(inner)
4028 }
4029 crate::operation::describe_provisioning_template_version::DescribeProvisioningTemplateVersionError::ThrottlingException(inner) => {
4030 Error::ThrottlingException(inner)
4031 }
4032 crate::operation::describe_provisioning_template_version::DescribeProvisioningTemplateVersionError::UnauthorizedException(inner) => {
4033 Error::UnauthorizedException(inner)
4034 }
4035 crate::operation::describe_provisioning_template_version::DescribeProvisioningTemplateVersionError::Unhandled(inner) => {
4036 Error::Unhandled(inner)
4037 }
4038 }
4039 }
4040}
4041impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_role_alias::DescribeRoleAliasError, R>> for Error
4042where
4043 R: Send + Sync + std::fmt::Debug + 'static,
4044{
4045 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_role_alias::DescribeRoleAliasError, R>) -> Self {
4046 match err {
4047 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4048 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4049 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4050 source: err.into(),
4051 }),
4052 }
4053 }
4054}
4055impl From<crate::operation::describe_role_alias::DescribeRoleAliasError> for Error {
4056 fn from(err: crate::operation::describe_role_alias::DescribeRoleAliasError) -> Self {
4057 match err {
4058 crate::operation::describe_role_alias::DescribeRoleAliasError::InternalFailureException(inner) => Error::InternalFailureException(inner),
4059 crate::operation::describe_role_alias::DescribeRoleAliasError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
4060 crate::operation::describe_role_alias::DescribeRoleAliasError::ResourceNotFoundException(inner) => {
4061 Error::ResourceNotFoundException(inner)
4062 }
4063 crate::operation::describe_role_alias::DescribeRoleAliasError::ServiceUnavailableException(inner) => {
4064 Error::ServiceUnavailableException(inner)
4065 }
4066 crate::operation::describe_role_alias::DescribeRoleAliasError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4067 crate::operation::describe_role_alias::DescribeRoleAliasError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
4068 crate::operation::describe_role_alias::DescribeRoleAliasError::Unhandled(inner) => Error::Unhandled(inner),
4069 }
4070 }
4071}
4072impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_scheduled_audit::DescribeScheduledAuditError, R>> for Error
4073where
4074 R: Send + Sync + std::fmt::Debug + 'static,
4075{
4076 fn from(
4077 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_scheduled_audit::DescribeScheduledAuditError, R>,
4078 ) -> Self {
4079 match err {
4080 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4081 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4082 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4083 source: err.into(),
4084 }),
4085 }
4086 }
4087}
4088impl From<crate::operation::describe_scheduled_audit::DescribeScheduledAuditError> for Error {
4089 fn from(err: crate::operation::describe_scheduled_audit::DescribeScheduledAuditError) -> Self {
4090 match err {
4091 crate::operation::describe_scheduled_audit::DescribeScheduledAuditError::InternalFailureException(inner) => {
4092 Error::InternalFailureException(inner)
4093 }
4094 crate::operation::describe_scheduled_audit::DescribeScheduledAuditError::InvalidRequestException(inner) => {
4095 Error::InvalidRequestException(inner)
4096 }
4097 crate::operation::describe_scheduled_audit::DescribeScheduledAuditError::ResourceNotFoundException(inner) => {
4098 Error::ResourceNotFoundException(inner)
4099 }
4100 crate::operation::describe_scheduled_audit::DescribeScheduledAuditError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4101 crate::operation::describe_scheduled_audit::DescribeScheduledAuditError::Unhandled(inner) => Error::Unhandled(inner),
4102 }
4103 }
4104}
4105impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_security_profile::DescribeSecurityProfileError, R>>
4106 for Error
4107where
4108 R: Send + Sync + std::fmt::Debug + 'static,
4109{
4110 fn from(
4111 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_security_profile::DescribeSecurityProfileError, R>,
4112 ) -> Self {
4113 match err {
4114 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4115 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4116 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4117 source: err.into(),
4118 }),
4119 }
4120 }
4121}
4122impl From<crate::operation::describe_security_profile::DescribeSecurityProfileError> for Error {
4123 fn from(err: crate::operation::describe_security_profile::DescribeSecurityProfileError) -> Self {
4124 match err {
4125 crate::operation::describe_security_profile::DescribeSecurityProfileError::InternalFailureException(inner) => {
4126 Error::InternalFailureException(inner)
4127 }
4128 crate::operation::describe_security_profile::DescribeSecurityProfileError::InvalidRequestException(inner) => {
4129 Error::InvalidRequestException(inner)
4130 }
4131 crate::operation::describe_security_profile::DescribeSecurityProfileError::ResourceNotFoundException(inner) => {
4132 Error::ResourceNotFoundException(inner)
4133 }
4134 crate::operation::describe_security_profile::DescribeSecurityProfileError::ThrottlingException(inner) => {
4135 Error::ThrottlingException(inner)
4136 }
4137 crate::operation::describe_security_profile::DescribeSecurityProfileError::Unhandled(inner) => Error::Unhandled(inner),
4138 }
4139 }
4140}
4141impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_stream::DescribeStreamError, R>> for Error
4142where
4143 R: Send + Sync + std::fmt::Debug + 'static,
4144{
4145 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_stream::DescribeStreamError, R>) -> Self {
4146 match err {
4147 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4148 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4149 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4150 source: err.into(),
4151 }),
4152 }
4153 }
4154}
4155impl From<crate::operation::describe_stream::DescribeStreamError> for Error {
4156 fn from(err: crate::operation::describe_stream::DescribeStreamError) -> Self {
4157 match err {
4158 crate::operation::describe_stream::DescribeStreamError::InternalFailureException(inner) => Error::InternalFailureException(inner),
4159 crate::operation::describe_stream::DescribeStreamError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
4160 crate::operation::describe_stream::DescribeStreamError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
4161 crate::operation::describe_stream::DescribeStreamError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
4162 crate::operation::describe_stream::DescribeStreamError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4163 crate::operation::describe_stream::DescribeStreamError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
4164 crate::operation::describe_stream::DescribeStreamError::Unhandled(inner) => Error::Unhandled(inner),
4165 }
4166 }
4167}
4168impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_thing::DescribeThingError, R>> for Error
4169where
4170 R: Send + Sync + std::fmt::Debug + 'static,
4171{
4172 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_thing::DescribeThingError, R>) -> Self {
4173 match err {
4174 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4175 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4176 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4177 source: err.into(),
4178 }),
4179 }
4180 }
4181}
4182impl From<crate::operation::describe_thing::DescribeThingError> for Error {
4183 fn from(err: crate::operation::describe_thing::DescribeThingError) -> Self {
4184 match err {
4185 crate::operation::describe_thing::DescribeThingError::InternalFailureException(inner) => Error::InternalFailureException(inner),
4186 crate::operation::describe_thing::DescribeThingError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
4187 crate::operation::describe_thing::DescribeThingError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
4188 crate::operation::describe_thing::DescribeThingError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
4189 crate::operation::describe_thing::DescribeThingError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4190 crate::operation::describe_thing::DescribeThingError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
4191 crate::operation::describe_thing::DescribeThingError::Unhandled(inner) => Error::Unhandled(inner),
4192 }
4193 }
4194}
4195impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_thing_group::DescribeThingGroupError, R>> for Error
4196where
4197 R: Send + Sync + std::fmt::Debug + 'static,
4198{
4199 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_thing_group::DescribeThingGroupError, R>) -> Self {
4200 match err {
4201 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4202 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4203 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4204 source: err.into(),
4205 }),
4206 }
4207 }
4208}
4209impl From<crate::operation::describe_thing_group::DescribeThingGroupError> for Error {
4210 fn from(err: crate::operation::describe_thing_group::DescribeThingGroupError) -> Self {
4211 match err {
4212 crate::operation::describe_thing_group::DescribeThingGroupError::InternalFailureException(inner) => {
4213 Error::InternalFailureException(inner)
4214 }
4215 crate::operation::describe_thing_group::DescribeThingGroupError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
4216 crate::operation::describe_thing_group::DescribeThingGroupError::ResourceNotFoundException(inner) => {
4217 Error::ResourceNotFoundException(inner)
4218 }
4219 crate::operation::describe_thing_group::DescribeThingGroupError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4220 crate::operation::describe_thing_group::DescribeThingGroupError::Unhandled(inner) => Error::Unhandled(inner),
4221 }
4222 }
4223}
4224impl<R>
4225 From<
4226 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_thing_registration_task::DescribeThingRegistrationTaskError, R>,
4227 > for Error
4228where
4229 R: Send + Sync + std::fmt::Debug + 'static,
4230{
4231 fn from(
4232 err: ::aws_smithy_runtime_api::client::result::SdkError<
4233 crate::operation::describe_thing_registration_task::DescribeThingRegistrationTaskError,
4234 R,
4235 >,
4236 ) -> Self {
4237 match err {
4238 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4239 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4240 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4241 source: err.into(),
4242 }),
4243 }
4244 }
4245}
4246impl From<crate::operation::describe_thing_registration_task::DescribeThingRegistrationTaskError> for Error {
4247 fn from(err: crate::operation::describe_thing_registration_task::DescribeThingRegistrationTaskError) -> Self {
4248 match err {
4249 crate::operation::describe_thing_registration_task::DescribeThingRegistrationTaskError::InternalFailureException(inner) => {
4250 Error::InternalFailureException(inner)
4251 }
4252 crate::operation::describe_thing_registration_task::DescribeThingRegistrationTaskError::InvalidRequestException(inner) => {
4253 Error::InvalidRequestException(inner)
4254 }
4255 crate::operation::describe_thing_registration_task::DescribeThingRegistrationTaskError::ResourceNotFoundException(inner) => {
4256 Error::ResourceNotFoundException(inner)
4257 }
4258 crate::operation::describe_thing_registration_task::DescribeThingRegistrationTaskError::ThrottlingException(inner) => {
4259 Error::ThrottlingException(inner)
4260 }
4261 crate::operation::describe_thing_registration_task::DescribeThingRegistrationTaskError::UnauthorizedException(inner) => {
4262 Error::UnauthorizedException(inner)
4263 }
4264 crate::operation::describe_thing_registration_task::DescribeThingRegistrationTaskError::Unhandled(inner) => Error::Unhandled(inner),
4265 }
4266 }
4267}
4268impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_thing_type::DescribeThingTypeError, R>> for Error
4269where
4270 R: Send + Sync + std::fmt::Debug + 'static,
4271{
4272 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_thing_type::DescribeThingTypeError, R>) -> Self {
4273 match err {
4274 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4275 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4276 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4277 source: err.into(),
4278 }),
4279 }
4280 }
4281}
4282impl From<crate::operation::describe_thing_type::DescribeThingTypeError> for Error {
4283 fn from(err: crate::operation::describe_thing_type::DescribeThingTypeError) -> Self {
4284 match err {
4285 crate::operation::describe_thing_type::DescribeThingTypeError::InternalFailureException(inner) => Error::InternalFailureException(inner),
4286 crate::operation::describe_thing_type::DescribeThingTypeError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
4287 crate::operation::describe_thing_type::DescribeThingTypeError::ResourceNotFoundException(inner) => {
4288 Error::ResourceNotFoundException(inner)
4289 }
4290 crate::operation::describe_thing_type::DescribeThingTypeError::ServiceUnavailableException(inner) => {
4291 Error::ServiceUnavailableException(inner)
4292 }
4293 crate::operation::describe_thing_type::DescribeThingTypeError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4294 crate::operation::describe_thing_type::DescribeThingTypeError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
4295 crate::operation::describe_thing_type::DescribeThingTypeError::Unhandled(inner) => Error::Unhandled(inner),
4296 }
4297 }
4298}
4299impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_policy::DetachPolicyError, R>> for Error
4300where
4301 R: Send + Sync + std::fmt::Debug + 'static,
4302{
4303 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_policy::DetachPolicyError, R>) -> Self {
4304 match err {
4305 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4306 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4307 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4308 source: err.into(),
4309 }),
4310 }
4311 }
4312}
4313impl From<crate::operation::detach_policy::DetachPolicyError> for Error {
4314 fn from(err: crate::operation::detach_policy::DetachPolicyError) -> Self {
4315 match err {
4316 crate::operation::detach_policy::DetachPolicyError::InternalFailureException(inner) => Error::InternalFailureException(inner),
4317 crate::operation::detach_policy::DetachPolicyError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
4318 crate::operation::detach_policy::DetachPolicyError::LimitExceededException(inner) => Error::LimitExceededException(inner),
4319 crate::operation::detach_policy::DetachPolicyError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
4320 crate::operation::detach_policy::DetachPolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4321 crate::operation::detach_policy::DetachPolicyError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
4322 crate::operation::detach_policy::DetachPolicyError::Unhandled(inner) => Error::Unhandled(inner),
4323 }
4324 }
4325}
4326impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_principal_policy::DetachPrincipalPolicyError, R>> for Error
4327where
4328 R: Send + Sync + std::fmt::Debug + 'static,
4329{
4330 fn from(
4331 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_principal_policy::DetachPrincipalPolicyError, R>,
4332 ) -> Self {
4333 match err {
4334 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4335 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4336 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4337 source: err.into(),
4338 }),
4339 }
4340 }
4341}
4342impl From<crate::operation::detach_principal_policy::DetachPrincipalPolicyError> for Error {
4343 fn from(err: crate::operation::detach_principal_policy::DetachPrincipalPolicyError) -> Self {
4344 match err {
4345 crate::operation::detach_principal_policy::DetachPrincipalPolicyError::InternalFailureException(inner) => {
4346 Error::InternalFailureException(inner)
4347 }
4348 crate::operation::detach_principal_policy::DetachPrincipalPolicyError::InvalidRequestException(inner) => {
4349 Error::InvalidRequestException(inner)
4350 }
4351 crate::operation::detach_principal_policy::DetachPrincipalPolicyError::ResourceNotFoundException(inner) => {
4352 Error::ResourceNotFoundException(inner)
4353 }
4354 crate::operation::detach_principal_policy::DetachPrincipalPolicyError::ServiceUnavailableException(inner) => {
4355 Error::ServiceUnavailableException(inner)
4356 }
4357 crate::operation::detach_principal_policy::DetachPrincipalPolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4358 crate::operation::detach_principal_policy::DetachPrincipalPolicyError::UnauthorizedException(inner) => {
4359 Error::UnauthorizedException(inner)
4360 }
4361 crate::operation::detach_principal_policy::DetachPrincipalPolicyError::Unhandled(inner) => Error::Unhandled(inner),
4362 }
4363 }
4364}
4365impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_security_profile::DetachSecurityProfileError, R>> for Error
4366where
4367 R: Send + Sync + std::fmt::Debug + 'static,
4368{
4369 fn from(
4370 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_security_profile::DetachSecurityProfileError, R>,
4371 ) -> Self {
4372 match err {
4373 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4374 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4375 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4376 source: err.into(),
4377 }),
4378 }
4379 }
4380}
4381impl From<crate::operation::detach_security_profile::DetachSecurityProfileError> for Error {
4382 fn from(err: crate::operation::detach_security_profile::DetachSecurityProfileError) -> Self {
4383 match err {
4384 crate::operation::detach_security_profile::DetachSecurityProfileError::InternalFailureException(inner) => {
4385 Error::InternalFailureException(inner)
4386 }
4387 crate::operation::detach_security_profile::DetachSecurityProfileError::InvalidRequestException(inner) => {
4388 Error::InvalidRequestException(inner)
4389 }
4390 crate::operation::detach_security_profile::DetachSecurityProfileError::ResourceNotFoundException(inner) => {
4391 Error::ResourceNotFoundException(inner)
4392 }
4393 crate::operation::detach_security_profile::DetachSecurityProfileError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4394 crate::operation::detach_security_profile::DetachSecurityProfileError::Unhandled(inner) => Error::Unhandled(inner),
4395 }
4396 }
4397}
4398impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_thing_principal::DetachThingPrincipalError, R>> for Error
4399where
4400 R: Send + Sync + std::fmt::Debug + 'static,
4401{
4402 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_thing_principal::DetachThingPrincipalError, R>) -> Self {
4403 match err {
4404 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4405 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4406 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4407 source: err.into(),
4408 }),
4409 }
4410 }
4411}
4412impl From<crate::operation::detach_thing_principal::DetachThingPrincipalError> for Error {
4413 fn from(err: crate::operation::detach_thing_principal::DetachThingPrincipalError) -> Self {
4414 match err {
4415 crate::operation::detach_thing_principal::DetachThingPrincipalError::InternalFailureException(inner) => {
4416 Error::InternalFailureException(inner)
4417 }
4418 crate::operation::detach_thing_principal::DetachThingPrincipalError::InvalidRequestException(inner) => {
4419 Error::InvalidRequestException(inner)
4420 }
4421 crate::operation::detach_thing_principal::DetachThingPrincipalError::ResourceNotFoundException(inner) => {
4422 Error::ResourceNotFoundException(inner)
4423 }
4424 crate::operation::detach_thing_principal::DetachThingPrincipalError::ServiceUnavailableException(inner) => {
4425 Error::ServiceUnavailableException(inner)
4426 }
4427 crate::operation::detach_thing_principal::DetachThingPrincipalError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4428 crate::operation::detach_thing_principal::DetachThingPrincipalError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
4429 crate::operation::detach_thing_principal::DetachThingPrincipalError::Unhandled(inner) => Error::Unhandled(inner),
4430 }
4431 }
4432}
4433impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_topic_rule::DisableTopicRuleError, R>> for Error
4434where
4435 R: Send + Sync + std::fmt::Debug + 'static,
4436{
4437 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_topic_rule::DisableTopicRuleError, R>) -> Self {
4438 match err {
4439 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4440 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4441 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4442 source: err.into(),
4443 }),
4444 }
4445 }
4446}
4447impl From<crate::operation::disable_topic_rule::DisableTopicRuleError> for Error {
4448 fn from(err: crate::operation::disable_topic_rule::DisableTopicRuleError) -> Self {
4449 match err {
4450 crate::operation::disable_topic_rule::DisableTopicRuleError::ConflictingResourceUpdateException(inner) => {
4451 Error::ConflictingResourceUpdateException(inner)
4452 }
4453 crate::operation::disable_topic_rule::DisableTopicRuleError::InternalException(inner) => Error::InternalException(inner),
4454 crate::operation::disable_topic_rule::DisableTopicRuleError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
4455 crate::operation::disable_topic_rule::DisableTopicRuleError::ServiceUnavailableException(inner) => {
4456 Error::ServiceUnavailableException(inner)
4457 }
4458 crate::operation::disable_topic_rule::DisableTopicRuleError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
4459 crate::operation::disable_topic_rule::DisableTopicRuleError::Unhandled(inner) => Error::Unhandled(inner),
4460 }
4461 }
4462}
4463impl<R>
4464 From<
4465 ::aws_smithy_runtime_api::client::result::SdkError<
4466 crate::operation::disassociate_sbom_from_package_version::DisassociateSbomFromPackageVersionError,
4467 R,
4468 >,
4469 > for Error
4470where
4471 R: Send + Sync + std::fmt::Debug + 'static,
4472{
4473 fn from(
4474 err: ::aws_smithy_runtime_api::client::result::SdkError<
4475 crate::operation::disassociate_sbom_from_package_version::DisassociateSbomFromPackageVersionError,
4476 R,
4477 >,
4478 ) -> Self {
4479 match err {
4480 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4481 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4482 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4483 source: err.into(),
4484 }),
4485 }
4486 }
4487}
4488impl From<crate::operation::disassociate_sbom_from_package_version::DisassociateSbomFromPackageVersionError> for Error {
4489 fn from(err: crate::operation::disassociate_sbom_from_package_version::DisassociateSbomFromPackageVersionError) -> Self {
4490 match err {
4491 crate::operation::disassociate_sbom_from_package_version::DisassociateSbomFromPackageVersionError::ConflictException(inner) => {
4492 Error::ConflictException(inner)
4493 }
4494 crate::operation::disassociate_sbom_from_package_version::DisassociateSbomFromPackageVersionError::InternalServerException(inner) => {
4495 Error::InternalServerException(inner)
4496 }
4497 crate::operation::disassociate_sbom_from_package_version::DisassociateSbomFromPackageVersionError::ResourceNotFoundException(inner) => {
4498 Error::ResourceNotFoundException(inner)
4499 }
4500 crate::operation::disassociate_sbom_from_package_version::DisassociateSbomFromPackageVersionError::ThrottlingException(inner) => {
4501 Error::ThrottlingException(inner)
4502 }
4503 crate::operation::disassociate_sbom_from_package_version::DisassociateSbomFromPackageVersionError::ValidationException(inner) => {
4504 Error::ValidationException(inner)
4505 }
4506 crate::operation::disassociate_sbom_from_package_version::DisassociateSbomFromPackageVersionError::Unhandled(inner) => {
4507 Error::Unhandled(inner)
4508 }
4509 }
4510 }
4511}
4512impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_topic_rule::EnableTopicRuleError, R>> for Error
4513where
4514 R: Send + Sync + std::fmt::Debug + 'static,
4515{
4516 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_topic_rule::EnableTopicRuleError, R>) -> Self {
4517 match err {
4518 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4519 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4520 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4521 source: err.into(),
4522 }),
4523 }
4524 }
4525}
4526impl From<crate::operation::enable_topic_rule::EnableTopicRuleError> for Error {
4527 fn from(err: crate::operation::enable_topic_rule::EnableTopicRuleError) -> Self {
4528 match err {
4529 crate::operation::enable_topic_rule::EnableTopicRuleError::ConflictingResourceUpdateException(inner) => {
4530 Error::ConflictingResourceUpdateException(inner)
4531 }
4532 crate::operation::enable_topic_rule::EnableTopicRuleError::InternalException(inner) => Error::InternalException(inner),
4533 crate::operation::enable_topic_rule::EnableTopicRuleError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
4534 crate::operation::enable_topic_rule::EnableTopicRuleError::ServiceUnavailableException(inner) => {
4535 Error::ServiceUnavailableException(inner)
4536 }
4537 crate::operation::enable_topic_rule::EnableTopicRuleError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
4538 crate::operation::enable_topic_rule::EnableTopicRuleError::Unhandled(inner) => Error::Unhandled(inner),
4539 }
4540 }
4541}
4542impl<R>
4543 From<
4544 ::aws_smithy_runtime_api::client::result::SdkError<
4545 crate::operation::get_behavior_model_training_summaries::GetBehaviorModelTrainingSummariesError,
4546 R,
4547 >,
4548 > for Error
4549where
4550 R: Send + Sync + std::fmt::Debug + 'static,
4551{
4552 fn from(
4553 err: ::aws_smithy_runtime_api::client::result::SdkError<
4554 crate::operation::get_behavior_model_training_summaries::GetBehaviorModelTrainingSummariesError,
4555 R,
4556 >,
4557 ) -> Self {
4558 match err {
4559 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4560 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4561 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4562 source: err.into(),
4563 }),
4564 }
4565 }
4566}
4567impl From<crate::operation::get_behavior_model_training_summaries::GetBehaviorModelTrainingSummariesError> for Error {
4568 fn from(err: crate::operation::get_behavior_model_training_summaries::GetBehaviorModelTrainingSummariesError) -> Self {
4569 match err {
4570 crate::operation::get_behavior_model_training_summaries::GetBehaviorModelTrainingSummariesError::InternalFailureException(inner) => {
4571 Error::InternalFailureException(inner)
4572 }
4573 crate::operation::get_behavior_model_training_summaries::GetBehaviorModelTrainingSummariesError::InvalidRequestException(inner) => {
4574 Error::InvalidRequestException(inner)
4575 }
4576 crate::operation::get_behavior_model_training_summaries::GetBehaviorModelTrainingSummariesError::ResourceNotFoundException(inner) => {
4577 Error::ResourceNotFoundException(inner)
4578 }
4579 crate::operation::get_behavior_model_training_summaries::GetBehaviorModelTrainingSummariesError::ThrottlingException(inner) => {
4580 Error::ThrottlingException(inner)
4581 }
4582 crate::operation::get_behavior_model_training_summaries::GetBehaviorModelTrainingSummariesError::Unhandled(inner) => {
4583 Error::Unhandled(inner)
4584 }
4585 }
4586 }
4587}
4588impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_buckets_aggregation::GetBucketsAggregationError, R>> for Error
4589where
4590 R: Send + Sync + std::fmt::Debug + 'static,
4591{
4592 fn from(
4593 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_buckets_aggregation::GetBucketsAggregationError, R>,
4594 ) -> Self {
4595 match err {
4596 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4597 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4598 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4599 source: err.into(),
4600 }),
4601 }
4602 }
4603}
4604impl From<crate::operation::get_buckets_aggregation::GetBucketsAggregationError> for Error {
4605 fn from(err: crate::operation::get_buckets_aggregation::GetBucketsAggregationError) -> Self {
4606 match err {
4607 crate::operation::get_buckets_aggregation::GetBucketsAggregationError::IndexNotReadyException(inner) => {
4608 Error::IndexNotReadyException(inner)
4609 }
4610 crate::operation::get_buckets_aggregation::GetBucketsAggregationError::InternalFailureException(inner) => {
4611 Error::InternalFailureException(inner)
4612 }
4613 crate::operation::get_buckets_aggregation::GetBucketsAggregationError::InvalidAggregationException(inner) => {
4614 Error::InvalidAggregationException(inner)
4615 }
4616 crate::operation::get_buckets_aggregation::GetBucketsAggregationError::InvalidQueryException(inner) => {
4617 Error::InvalidQueryException(inner)
4618 }
4619 crate::operation::get_buckets_aggregation::GetBucketsAggregationError::InvalidRequestException(inner) => {
4620 Error::InvalidRequestException(inner)
4621 }
4622 crate::operation::get_buckets_aggregation::GetBucketsAggregationError::ResourceNotFoundException(inner) => {
4623 Error::ResourceNotFoundException(inner)
4624 }
4625 crate::operation::get_buckets_aggregation::GetBucketsAggregationError::ServiceUnavailableException(inner) => {
4626 Error::ServiceUnavailableException(inner)
4627 }
4628 crate::operation::get_buckets_aggregation::GetBucketsAggregationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4629 crate::operation::get_buckets_aggregation::GetBucketsAggregationError::UnauthorizedException(inner) => {
4630 Error::UnauthorizedException(inner)
4631 }
4632 crate::operation::get_buckets_aggregation::GetBucketsAggregationError::Unhandled(inner) => Error::Unhandled(inner),
4633 }
4634 }
4635}
4636impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_cardinality::GetCardinalityError, R>> for Error
4637where
4638 R: Send + Sync + std::fmt::Debug + 'static,
4639{
4640 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_cardinality::GetCardinalityError, R>) -> Self {
4641 match err {
4642 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4643 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4644 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4645 source: err.into(),
4646 }),
4647 }
4648 }
4649}
4650impl From<crate::operation::get_cardinality::GetCardinalityError> for Error {
4651 fn from(err: crate::operation::get_cardinality::GetCardinalityError) -> Self {
4652 match err {
4653 crate::operation::get_cardinality::GetCardinalityError::IndexNotReadyException(inner) => Error::IndexNotReadyException(inner),
4654 crate::operation::get_cardinality::GetCardinalityError::InternalFailureException(inner) => Error::InternalFailureException(inner),
4655 crate::operation::get_cardinality::GetCardinalityError::InvalidAggregationException(inner) => Error::InvalidAggregationException(inner),
4656 crate::operation::get_cardinality::GetCardinalityError::InvalidQueryException(inner) => Error::InvalidQueryException(inner),
4657 crate::operation::get_cardinality::GetCardinalityError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
4658 crate::operation::get_cardinality::GetCardinalityError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
4659 crate::operation::get_cardinality::GetCardinalityError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
4660 crate::operation::get_cardinality::GetCardinalityError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4661 crate::operation::get_cardinality::GetCardinalityError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
4662 crate::operation::get_cardinality::GetCardinalityError::Unhandled(inner) => Error::Unhandled(inner),
4663 }
4664 }
4665}
4666impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_command::GetCommandError, R>> for Error
4667where
4668 R: Send + Sync + std::fmt::Debug + 'static,
4669{
4670 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_command::GetCommandError, R>) -> Self {
4671 match err {
4672 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4673 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4674 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4675 source: err.into(),
4676 }),
4677 }
4678 }
4679}
4680impl From<crate::operation::get_command::GetCommandError> for Error {
4681 fn from(err: crate::operation::get_command::GetCommandError) -> Self {
4682 match err {
4683 crate::operation::get_command::GetCommandError::InternalServerException(inner) => Error::InternalServerException(inner),
4684 crate::operation::get_command::GetCommandError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
4685 crate::operation::get_command::GetCommandError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4686 crate::operation::get_command::GetCommandError::ValidationException(inner) => Error::ValidationException(inner),
4687 crate::operation::get_command::GetCommandError::Unhandled(inner) => Error::Unhandled(inner),
4688 }
4689 }
4690}
4691impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_command_execution::GetCommandExecutionError, R>> for Error
4692where
4693 R: Send + Sync + std::fmt::Debug + 'static,
4694{
4695 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_command_execution::GetCommandExecutionError, R>) -> Self {
4696 match err {
4697 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4698 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4699 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4700 source: err.into(),
4701 }),
4702 }
4703 }
4704}
4705impl From<crate::operation::get_command_execution::GetCommandExecutionError> for Error {
4706 fn from(err: crate::operation::get_command_execution::GetCommandExecutionError) -> Self {
4707 match err {
4708 crate::operation::get_command_execution::GetCommandExecutionError::InternalServerException(inner) => {
4709 Error::InternalServerException(inner)
4710 }
4711 crate::operation::get_command_execution::GetCommandExecutionError::ResourceNotFoundException(inner) => {
4712 Error::ResourceNotFoundException(inner)
4713 }
4714 crate::operation::get_command_execution::GetCommandExecutionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4715 crate::operation::get_command_execution::GetCommandExecutionError::ValidationException(inner) => Error::ValidationException(inner),
4716 crate::operation::get_command_execution::GetCommandExecutionError::Unhandled(inner) => Error::Unhandled(inner),
4717 }
4718 }
4719}
4720impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_effective_policies::GetEffectivePoliciesError, R>> for Error
4721where
4722 R: Send + Sync + std::fmt::Debug + 'static,
4723{
4724 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_effective_policies::GetEffectivePoliciesError, R>) -> Self {
4725 match err {
4726 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4727 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4728 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4729 source: err.into(),
4730 }),
4731 }
4732 }
4733}
4734impl From<crate::operation::get_effective_policies::GetEffectivePoliciesError> for Error {
4735 fn from(err: crate::operation::get_effective_policies::GetEffectivePoliciesError) -> Self {
4736 match err {
4737 crate::operation::get_effective_policies::GetEffectivePoliciesError::InternalFailureException(inner) => {
4738 Error::InternalFailureException(inner)
4739 }
4740 crate::operation::get_effective_policies::GetEffectivePoliciesError::InvalidRequestException(inner) => {
4741 Error::InvalidRequestException(inner)
4742 }
4743 crate::operation::get_effective_policies::GetEffectivePoliciesError::LimitExceededException(inner) => {
4744 Error::LimitExceededException(inner)
4745 }
4746 crate::operation::get_effective_policies::GetEffectivePoliciesError::ResourceNotFoundException(inner) => {
4747 Error::ResourceNotFoundException(inner)
4748 }
4749 crate::operation::get_effective_policies::GetEffectivePoliciesError::ServiceUnavailableException(inner) => {
4750 Error::ServiceUnavailableException(inner)
4751 }
4752 crate::operation::get_effective_policies::GetEffectivePoliciesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4753 crate::operation::get_effective_policies::GetEffectivePoliciesError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
4754 crate::operation::get_effective_policies::GetEffectivePoliciesError::Unhandled(inner) => Error::Unhandled(inner),
4755 }
4756 }
4757}
4758impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_indexing_configuration::GetIndexingConfigurationError, R>>
4759 for Error
4760where
4761 R: Send + Sync + std::fmt::Debug + 'static,
4762{
4763 fn from(
4764 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_indexing_configuration::GetIndexingConfigurationError, R>,
4765 ) -> Self {
4766 match err {
4767 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4768 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4769 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4770 source: err.into(),
4771 }),
4772 }
4773 }
4774}
4775impl From<crate::operation::get_indexing_configuration::GetIndexingConfigurationError> for Error {
4776 fn from(err: crate::operation::get_indexing_configuration::GetIndexingConfigurationError) -> Self {
4777 match err {
4778 crate::operation::get_indexing_configuration::GetIndexingConfigurationError::InternalFailureException(inner) => {
4779 Error::InternalFailureException(inner)
4780 }
4781 crate::operation::get_indexing_configuration::GetIndexingConfigurationError::InvalidRequestException(inner) => {
4782 Error::InvalidRequestException(inner)
4783 }
4784 crate::operation::get_indexing_configuration::GetIndexingConfigurationError::ServiceUnavailableException(inner) => {
4785 Error::ServiceUnavailableException(inner)
4786 }
4787 crate::operation::get_indexing_configuration::GetIndexingConfigurationError::ThrottlingException(inner) => {
4788 Error::ThrottlingException(inner)
4789 }
4790 crate::operation::get_indexing_configuration::GetIndexingConfigurationError::UnauthorizedException(inner) => {
4791 Error::UnauthorizedException(inner)
4792 }
4793 crate::operation::get_indexing_configuration::GetIndexingConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
4794 }
4795 }
4796}
4797impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_job_document::GetJobDocumentError, R>> for Error
4798where
4799 R: Send + Sync + std::fmt::Debug + 'static,
4800{
4801 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_job_document::GetJobDocumentError, R>) -> Self {
4802 match err {
4803 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4804 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4805 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4806 source: err.into(),
4807 }),
4808 }
4809 }
4810}
4811impl From<crate::operation::get_job_document::GetJobDocumentError> for Error {
4812 fn from(err: crate::operation::get_job_document::GetJobDocumentError) -> Self {
4813 match err {
4814 crate::operation::get_job_document::GetJobDocumentError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
4815 crate::operation::get_job_document::GetJobDocumentError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
4816 crate::operation::get_job_document::GetJobDocumentError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
4817 crate::operation::get_job_document::GetJobDocumentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4818 crate::operation::get_job_document::GetJobDocumentError::Unhandled(inner) => Error::Unhandled(inner),
4819 }
4820 }
4821}
4822impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_logging_options::GetLoggingOptionsError, R>> for Error
4823where
4824 R: Send + Sync + std::fmt::Debug + 'static,
4825{
4826 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_logging_options::GetLoggingOptionsError, R>) -> Self {
4827 match err {
4828 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4829 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4830 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4831 source: err.into(),
4832 }),
4833 }
4834 }
4835}
4836impl From<crate::operation::get_logging_options::GetLoggingOptionsError> for Error {
4837 fn from(err: crate::operation::get_logging_options::GetLoggingOptionsError) -> Self {
4838 match err {
4839 crate::operation::get_logging_options::GetLoggingOptionsError::InternalException(inner) => Error::InternalException(inner),
4840 crate::operation::get_logging_options::GetLoggingOptionsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
4841 crate::operation::get_logging_options::GetLoggingOptionsError::ServiceUnavailableException(inner) => {
4842 Error::ServiceUnavailableException(inner)
4843 }
4844 crate::operation::get_logging_options::GetLoggingOptionsError::Unhandled(inner) => Error::Unhandled(inner),
4845 }
4846 }
4847}
4848impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ota_update::GetOTAUpdateError, R>> for Error
4849where
4850 R: Send + Sync + std::fmt::Debug + 'static,
4851{
4852 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ota_update::GetOTAUpdateError, R>) -> Self {
4853 match err {
4854 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4855 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4856 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4857 source: err.into(),
4858 }),
4859 }
4860 }
4861}
4862impl From<crate::operation::get_ota_update::GetOTAUpdateError> for Error {
4863 fn from(err: crate::operation::get_ota_update::GetOTAUpdateError) -> Self {
4864 match err {
4865 crate::operation::get_ota_update::GetOTAUpdateError::InternalFailureException(inner) => Error::InternalFailureException(inner),
4866 crate::operation::get_ota_update::GetOTAUpdateError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
4867 crate::operation::get_ota_update::GetOTAUpdateError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
4868 crate::operation::get_ota_update::GetOTAUpdateError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
4869 crate::operation::get_ota_update::GetOTAUpdateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4870 crate::operation::get_ota_update::GetOTAUpdateError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
4871 crate::operation::get_ota_update::GetOTAUpdateError::Unhandled(inner) => Error::Unhandled(inner),
4872 }
4873 }
4874}
4875impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_package::GetPackageError, R>> for Error
4876where
4877 R: Send + Sync + std::fmt::Debug + 'static,
4878{
4879 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_package::GetPackageError, R>) -> Self {
4880 match err {
4881 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4882 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4883 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4884 source: err.into(),
4885 }),
4886 }
4887 }
4888}
4889impl From<crate::operation::get_package::GetPackageError> for Error {
4890 fn from(err: crate::operation::get_package::GetPackageError) -> Self {
4891 match err {
4892 crate::operation::get_package::GetPackageError::InternalServerException(inner) => Error::InternalServerException(inner),
4893 crate::operation::get_package::GetPackageError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
4894 crate::operation::get_package::GetPackageError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4895 crate::operation::get_package::GetPackageError::ValidationException(inner) => Error::ValidationException(inner),
4896 crate::operation::get_package::GetPackageError::Unhandled(inner) => Error::Unhandled(inner),
4897 }
4898 }
4899}
4900impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_package_configuration::GetPackageConfigurationError, R>>
4901 for Error
4902where
4903 R: Send + Sync + std::fmt::Debug + 'static,
4904{
4905 fn from(
4906 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_package_configuration::GetPackageConfigurationError, R>,
4907 ) -> Self {
4908 match err {
4909 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4910 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4911 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4912 source: err.into(),
4913 }),
4914 }
4915 }
4916}
4917impl From<crate::operation::get_package_configuration::GetPackageConfigurationError> for Error {
4918 fn from(err: crate::operation::get_package_configuration::GetPackageConfigurationError) -> Self {
4919 match err {
4920 crate::operation::get_package_configuration::GetPackageConfigurationError::InternalServerException(inner) => {
4921 Error::InternalServerException(inner)
4922 }
4923 crate::operation::get_package_configuration::GetPackageConfigurationError::ThrottlingException(inner) => {
4924 Error::ThrottlingException(inner)
4925 }
4926 crate::operation::get_package_configuration::GetPackageConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
4927 }
4928 }
4929}
4930impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_package_version::GetPackageVersionError, R>> for Error
4931where
4932 R: Send + Sync + std::fmt::Debug + 'static,
4933{
4934 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_package_version::GetPackageVersionError, R>) -> Self {
4935 match err {
4936 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4937 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4938 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4939 source: err.into(),
4940 }),
4941 }
4942 }
4943}
4944impl From<crate::operation::get_package_version::GetPackageVersionError> for Error {
4945 fn from(err: crate::operation::get_package_version::GetPackageVersionError) -> Self {
4946 match err {
4947 crate::operation::get_package_version::GetPackageVersionError::InternalServerException(inner) => Error::InternalServerException(inner),
4948 crate::operation::get_package_version::GetPackageVersionError::ResourceNotFoundException(inner) => {
4949 Error::ResourceNotFoundException(inner)
4950 }
4951 crate::operation::get_package_version::GetPackageVersionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4952 crate::operation::get_package_version::GetPackageVersionError::ValidationException(inner) => Error::ValidationException(inner),
4953 crate::operation::get_package_version::GetPackageVersionError::Unhandled(inner) => Error::Unhandled(inner),
4954 }
4955 }
4956}
4957impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_percentiles::GetPercentilesError, R>> for Error
4958where
4959 R: Send + Sync + std::fmt::Debug + 'static,
4960{
4961 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_percentiles::GetPercentilesError, R>) -> Self {
4962 match err {
4963 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4964 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4965 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4966 source: err.into(),
4967 }),
4968 }
4969 }
4970}
4971impl From<crate::operation::get_percentiles::GetPercentilesError> for Error {
4972 fn from(err: crate::operation::get_percentiles::GetPercentilesError) -> Self {
4973 match err {
4974 crate::operation::get_percentiles::GetPercentilesError::IndexNotReadyException(inner) => Error::IndexNotReadyException(inner),
4975 crate::operation::get_percentiles::GetPercentilesError::InternalFailureException(inner) => Error::InternalFailureException(inner),
4976 crate::operation::get_percentiles::GetPercentilesError::InvalidAggregationException(inner) => Error::InvalidAggregationException(inner),
4977 crate::operation::get_percentiles::GetPercentilesError::InvalidQueryException(inner) => Error::InvalidQueryException(inner),
4978 crate::operation::get_percentiles::GetPercentilesError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
4979 crate::operation::get_percentiles::GetPercentilesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
4980 crate::operation::get_percentiles::GetPercentilesError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
4981 crate::operation::get_percentiles::GetPercentilesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4982 crate::operation::get_percentiles::GetPercentilesError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
4983 crate::operation::get_percentiles::GetPercentilesError::Unhandled(inner) => Error::Unhandled(inner),
4984 }
4985 }
4986}
4987impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_policy::GetPolicyError, R>> for Error
4988where
4989 R: Send + Sync + std::fmt::Debug + 'static,
4990{
4991 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_policy::GetPolicyError, R>) -> Self {
4992 match err {
4993 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4994 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4995 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4996 source: err.into(),
4997 }),
4998 }
4999 }
5000}
5001impl From<crate::operation::get_policy::GetPolicyError> for Error {
5002 fn from(err: crate::operation::get_policy::GetPolicyError) -> Self {
5003 match err {
5004 crate::operation::get_policy::GetPolicyError::InternalFailureException(inner) => Error::InternalFailureException(inner),
5005 crate::operation::get_policy::GetPolicyError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
5006 crate::operation::get_policy::GetPolicyError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
5007 crate::operation::get_policy::GetPolicyError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
5008 crate::operation::get_policy::GetPolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
5009 crate::operation::get_policy::GetPolicyError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
5010 crate::operation::get_policy::GetPolicyError::Unhandled(inner) => Error::Unhandled(inner),
5011 }
5012 }
5013}
5014impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_policy_version::GetPolicyVersionError, R>> for Error
5015where
5016 R: Send + Sync + std::fmt::Debug + 'static,
5017{
5018 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_policy_version::GetPolicyVersionError, R>) -> Self {
5019 match err {
5020 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5021 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5022 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5023 source: err.into(),
5024 }),
5025 }
5026 }
5027}
5028impl From<crate::operation::get_policy_version::GetPolicyVersionError> for Error {
5029 fn from(err: crate::operation::get_policy_version::GetPolicyVersionError) -> Self {
5030 match err {
5031 crate::operation::get_policy_version::GetPolicyVersionError::InternalFailureException(inner) => Error::InternalFailureException(inner),
5032 crate::operation::get_policy_version::GetPolicyVersionError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
5033 crate::operation::get_policy_version::GetPolicyVersionError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
5034 crate::operation::get_policy_version::GetPolicyVersionError::ServiceUnavailableException(inner) => {
5035 Error::ServiceUnavailableException(inner)
5036 }
5037 crate::operation::get_policy_version::GetPolicyVersionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
5038 crate::operation::get_policy_version::GetPolicyVersionError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
5039 crate::operation::get_policy_version::GetPolicyVersionError::Unhandled(inner) => Error::Unhandled(inner),
5040 }
5041 }
5042}
5043impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_registration_code::GetRegistrationCodeError, R>> for Error
5044where
5045 R: Send + Sync + std::fmt::Debug + 'static,
5046{
5047 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_registration_code::GetRegistrationCodeError, R>) -> Self {
5048 match err {
5049 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5050 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5051 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5052 source: err.into(),
5053 }),
5054 }
5055 }
5056}
5057impl From<crate::operation::get_registration_code::GetRegistrationCodeError> for Error {
5058 fn from(err: crate::operation::get_registration_code::GetRegistrationCodeError) -> Self {
5059 match err {
5060 crate::operation::get_registration_code::GetRegistrationCodeError::InternalFailureException(inner) => {
5061 Error::InternalFailureException(inner)
5062 }
5063 crate::operation::get_registration_code::GetRegistrationCodeError::InvalidRequestException(inner) => {
5064 Error::InvalidRequestException(inner)
5065 }
5066 crate::operation::get_registration_code::GetRegistrationCodeError::ServiceUnavailableException(inner) => {
5067 Error::ServiceUnavailableException(inner)
5068 }
5069 crate::operation::get_registration_code::GetRegistrationCodeError::ThrottlingException(inner) => Error::ThrottlingException(inner),
5070 crate::operation::get_registration_code::GetRegistrationCodeError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
5071 crate::operation::get_registration_code::GetRegistrationCodeError::Unhandled(inner) => Error::Unhandled(inner),
5072 }
5073 }
5074}
5075impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_statistics::GetStatisticsError, R>> for Error
5076where
5077 R: Send + Sync + std::fmt::Debug + 'static,
5078{
5079 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_statistics::GetStatisticsError, R>) -> Self {
5080 match err {
5081 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5082 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5083 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5084 source: err.into(),
5085 }),
5086 }
5087 }
5088}
5089impl From<crate::operation::get_statistics::GetStatisticsError> for Error {
5090 fn from(err: crate::operation::get_statistics::GetStatisticsError) -> Self {
5091 match err {
5092 crate::operation::get_statistics::GetStatisticsError::IndexNotReadyException(inner) => Error::IndexNotReadyException(inner),
5093 crate::operation::get_statistics::GetStatisticsError::InternalFailureException(inner) => Error::InternalFailureException(inner),
5094 crate::operation::get_statistics::GetStatisticsError::InvalidAggregationException(inner) => Error::InvalidAggregationException(inner),
5095 crate::operation::get_statistics::GetStatisticsError::InvalidQueryException(inner) => Error::InvalidQueryException(inner),
5096 crate::operation::get_statistics::GetStatisticsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
5097 crate::operation::get_statistics::GetStatisticsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
5098 crate::operation::get_statistics::GetStatisticsError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
5099 crate::operation::get_statistics::GetStatisticsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
5100 crate::operation::get_statistics::GetStatisticsError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
5101 crate::operation::get_statistics::GetStatisticsError::Unhandled(inner) => Error::Unhandled(inner),
5102 }
5103 }
5104}
5105impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_thing_connectivity_data::GetThingConnectivityDataError, R>>
5106 for Error
5107where
5108 R: Send + Sync + std::fmt::Debug + 'static,
5109{
5110 fn from(
5111 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_thing_connectivity_data::GetThingConnectivityDataError, R>,
5112 ) -> Self {
5113 match err {
5114 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5115 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5116 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5117 source: err.into(),
5118 }),
5119 }
5120 }
5121}
5122impl From<crate::operation::get_thing_connectivity_data::GetThingConnectivityDataError> for Error {
5123 fn from(err: crate::operation::get_thing_connectivity_data::GetThingConnectivityDataError) -> Self {
5124 match err {
5125 crate::operation::get_thing_connectivity_data::GetThingConnectivityDataError::IndexNotReadyException(inner) => {
5126 Error::IndexNotReadyException(inner)
5127 }
5128 crate::operation::get_thing_connectivity_data::GetThingConnectivityDataError::InternalFailureException(inner) => {
5129 Error::InternalFailureException(inner)
5130 }
5131 crate::operation::get_thing_connectivity_data::GetThingConnectivityDataError::InvalidRequestException(inner) => {
5132 Error::InvalidRequestException(inner)
5133 }
5134 crate::operation::get_thing_connectivity_data::GetThingConnectivityDataError::ResourceNotFoundException(inner) => {
5135 Error::ResourceNotFoundException(inner)
5136 }
5137 crate::operation::get_thing_connectivity_data::GetThingConnectivityDataError::ServiceUnavailableException(inner) => {
5138 Error::ServiceUnavailableException(inner)
5139 }
5140 crate::operation::get_thing_connectivity_data::GetThingConnectivityDataError::ThrottlingException(inner) => {
5141 Error::ThrottlingException(inner)
5142 }
5143 crate::operation::get_thing_connectivity_data::GetThingConnectivityDataError::UnauthorizedException(inner) => {
5144 Error::UnauthorizedException(inner)
5145 }
5146 crate::operation::get_thing_connectivity_data::GetThingConnectivityDataError::Unhandled(inner) => Error::Unhandled(inner),
5147 }
5148 }
5149}
5150impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_topic_rule::GetTopicRuleError, R>> for Error
5151where
5152 R: Send + Sync + std::fmt::Debug + 'static,
5153{
5154 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_topic_rule::GetTopicRuleError, R>) -> Self {
5155 match err {
5156 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5157 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5158 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5159 source: err.into(),
5160 }),
5161 }
5162 }
5163}
5164impl From<crate::operation::get_topic_rule::GetTopicRuleError> for Error {
5165 fn from(err: crate::operation::get_topic_rule::GetTopicRuleError) -> Self {
5166 match err {
5167 crate::operation::get_topic_rule::GetTopicRuleError::InternalException(inner) => Error::InternalException(inner),
5168 crate::operation::get_topic_rule::GetTopicRuleError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
5169 crate::operation::get_topic_rule::GetTopicRuleError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
5170 crate::operation::get_topic_rule::GetTopicRuleError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
5171 crate::operation::get_topic_rule::GetTopicRuleError::Unhandled(inner) => Error::Unhandled(inner),
5172 }
5173 }
5174}
5175impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_topic_rule_destination::GetTopicRuleDestinationError, R>>
5176 for Error
5177where
5178 R: Send + Sync + std::fmt::Debug + 'static,
5179{
5180 fn from(
5181 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_topic_rule_destination::GetTopicRuleDestinationError, R>,
5182 ) -> Self {
5183 match err {
5184 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5185 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5186 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5187 source: err.into(),
5188 }),
5189 }
5190 }
5191}
5192impl From<crate::operation::get_topic_rule_destination::GetTopicRuleDestinationError> for Error {
5193 fn from(err: crate::operation::get_topic_rule_destination::GetTopicRuleDestinationError) -> Self {
5194 match err {
5195 crate::operation::get_topic_rule_destination::GetTopicRuleDestinationError::InternalException(inner) => Error::InternalException(inner),
5196 crate::operation::get_topic_rule_destination::GetTopicRuleDestinationError::InvalidRequestException(inner) => {
5197 Error::InvalidRequestException(inner)
5198 }
5199 crate::operation::get_topic_rule_destination::GetTopicRuleDestinationError::ServiceUnavailableException(inner) => {
5200 Error::ServiceUnavailableException(inner)
5201 }
5202 crate::operation::get_topic_rule_destination::GetTopicRuleDestinationError::UnauthorizedException(inner) => {
5203 Error::UnauthorizedException(inner)
5204 }
5205 crate::operation::get_topic_rule_destination::GetTopicRuleDestinationError::Unhandled(inner) => Error::Unhandled(inner),
5206 }
5207 }
5208}
5209impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_v2_logging_options::GetV2LoggingOptionsError, R>> for Error
5210where
5211 R: Send + Sync + std::fmt::Debug + 'static,
5212{
5213 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_v2_logging_options::GetV2LoggingOptionsError, R>) -> Self {
5214 match err {
5215 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5216 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5217 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5218 source: err.into(),
5219 }),
5220 }
5221 }
5222}
5223impl From<crate::operation::get_v2_logging_options::GetV2LoggingOptionsError> for Error {
5224 fn from(err: crate::operation::get_v2_logging_options::GetV2LoggingOptionsError) -> Self {
5225 match err {
5226 crate::operation::get_v2_logging_options::GetV2LoggingOptionsError::InternalException(inner) => Error::InternalException(inner),
5227 crate::operation::get_v2_logging_options::GetV2LoggingOptionsError::NotConfiguredException(inner) => Error::NotConfiguredException(inner),
5228 crate::operation::get_v2_logging_options::GetV2LoggingOptionsError::ServiceUnavailableException(inner) => {
5229 Error::ServiceUnavailableException(inner)
5230 }
5231 crate::operation::get_v2_logging_options::GetV2LoggingOptionsError::Unhandled(inner) => Error::Unhandled(inner),
5232 }
5233 }
5234}
5235impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_active_violations::ListActiveViolationsError, R>> for Error
5236where
5237 R: Send + Sync + std::fmt::Debug + 'static,
5238{
5239 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_active_violations::ListActiveViolationsError, R>) -> Self {
5240 match err {
5241 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5242 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5243 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5244 source: err.into(),
5245 }),
5246 }
5247 }
5248}
5249impl From<crate::operation::list_active_violations::ListActiveViolationsError> for Error {
5250 fn from(err: crate::operation::list_active_violations::ListActiveViolationsError) -> Self {
5251 match err {
5252 crate::operation::list_active_violations::ListActiveViolationsError::InternalFailureException(inner) => {
5253 Error::InternalFailureException(inner)
5254 }
5255 crate::operation::list_active_violations::ListActiveViolationsError::InvalidRequestException(inner) => {
5256 Error::InvalidRequestException(inner)
5257 }
5258 crate::operation::list_active_violations::ListActiveViolationsError::ResourceNotFoundException(inner) => {
5259 Error::ResourceNotFoundException(inner)
5260 }
5261 crate::operation::list_active_violations::ListActiveViolationsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
5262 crate::operation::list_active_violations::ListActiveViolationsError::Unhandled(inner) => Error::Unhandled(inner),
5263 }
5264 }
5265}
5266impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_attached_policies::ListAttachedPoliciesError, R>> for Error
5267where
5268 R: Send + Sync + std::fmt::Debug + 'static,
5269{
5270 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_attached_policies::ListAttachedPoliciesError, R>) -> Self {
5271 match err {
5272 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5273 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5274 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5275 source: err.into(),
5276 }),
5277 }
5278 }
5279}
5280impl From<crate::operation::list_attached_policies::ListAttachedPoliciesError> for Error {
5281 fn from(err: crate::operation::list_attached_policies::ListAttachedPoliciesError) -> Self {
5282 match err {
5283 crate::operation::list_attached_policies::ListAttachedPoliciesError::InternalFailureException(inner) => {
5284 Error::InternalFailureException(inner)
5285 }
5286 crate::operation::list_attached_policies::ListAttachedPoliciesError::InvalidRequestException(inner) => {
5287 Error::InvalidRequestException(inner)
5288 }
5289 crate::operation::list_attached_policies::ListAttachedPoliciesError::LimitExceededException(inner) => {
5290 Error::LimitExceededException(inner)
5291 }
5292 crate::operation::list_attached_policies::ListAttachedPoliciesError::ResourceNotFoundException(inner) => {
5293 Error::ResourceNotFoundException(inner)
5294 }
5295 crate::operation::list_attached_policies::ListAttachedPoliciesError::ServiceUnavailableException(inner) => {
5296 Error::ServiceUnavailableException(inner)
5297 }
5298 crate::operation::list_attached_policies::ListAttachedPoliciesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
5299 crate::operation::list_attached_policies::ListAttachedPoliciesError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
5300 crate::operation::list_attached_policies::ListAttachedPoliciesError::Unhandled(inner) => Error::Unhandled(inner),
5301 }
5302 }
5303}
5304impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_audit_findings::ListAuditFindingsError, R>> for Error
5305where
5306 R: Send + Sync + std::fmt::Debug + 'static,
5307{
5308 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_audit_findings::ListAuditFindingsError, R>) -> Self {
5309 match err {
5310 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5311 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5312 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5313 source: err.into(),
5314 }),
5315 }
5316 }
5317}
5318impl From<crate::operation::list_audit_findings::ListAuditFindingsError> for Error {
5319 fn from(err: crate::operation::list_audit_findings::ListAuditFindingsError) -> Self {
5320 match err {
5321 crate::operation::list_audit_findings::ListAuditFindingsError::InternalFailureException(inner) => Error::InternalFailureException(inner),
5322 crate::operation::list_audit_findings::ListAuditFindingsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
5323 crate::operation::list_audit_findings::ListAuditFindingsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
5324 crate::operation::list_audit_findings::ListAuditFindingsError::Unhandled(inner) => Error::Unhandled(inner),
5325 }
5326 }
5327}
5328impl<R>
5329 From<
5330 ::aws_smithy_runtime_api::client::result::SdkError<
5331 crate::operation::list_audit_mitigation_actions_executions::ListAuditMitigationActionsExecutionsError,
5332 R,
5333 >,
5334 > for Error
5335where
5336 R: Send + Sync + std::fmt::Debug + 'static,
5337{
5338 fn from(
5339 err: ::aws_smithy_runtime_api::client::result::SdkError<
5340 crate::operation::list_audit_mitigation_actions_executions::ListAuditMitigationActionsExecutionsError,
5341 R,
5342 >,
5343 ) -> Self {
5344 match err {
5345 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5346 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5347 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5348 source: err.into(),
5349 }),
5350 }
5351 }
5352}
5353impl From<crate::operation::list_audit_mitigation_actions_executions::ListAuditMitigationActionsExecutionsError> for Error {
5354 fn from(err: crate::operation::list_audit_mitigation_actions_executions::ListAuditMitigationActionsExecutionsError) -> Self {
5355 match err {
5356 crate::operation::list_audit_mitigation_actions_executions::ListAuditMitigationActionsExecutionsError::InternalFailureException(
5357 inner,
5358 ) => Error::InternalFailureException(inner),
5359 crate::operation::list_audit_mitigation_actions_executions::ListAuditMitigationActionsExecutionsError::InvalidRequestException(inner) => {
5360 Error::InvalidRequestException(inner)
5361 }
5362 crate::operation::list_audit_mitigation_actions_executions::ListAuditMitigationActionsExecutionsError::ThrottlingException(inner) => {
5363 Error::ThrottlingException(inner)
5364 }
5365 crate::operation::list_audit_mitigation_actions_executions::ListAuditMitigationActionsExecutionsError::Unhandled(inner) => {
5366 Error::Unhandled(inner)
5367 }
5368 }
5369 }
5370}
5371impl<R>
5372 From<
5373 ::aws_smithy_runtime_api::client::result::SdkError<
5374 crate::operation::list_audit_mitigation_actions_tasks::ListAuditMitigationActionsTasksError,
5375 R,
5376 >,
5377 > for Error
5378where
5379 R: Send + Sync + std::fmt::Debug + 'static,
5380{
5381 fn from(
5382 err: ::aws_smithy_runtime_api::client::result::SdkError<
5383 crate::operation::list_audit_mitigation_actions_tasks::ListAuditMitigationActionsTasksError,
5384 R,
5385 >,
5386 ) -> Self {
5387 match err {
5388 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5389 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5390 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5391 source: err.into(),
5392 }),
5393 }
5394 }
5395}
5396impl From<crate::operation::list_audit_mitigation_actions_tasks::ListAuditMitigationActionsTasksError> for Error {
5397 fn from(err: crate::operation::list_audit_mitigation_actions_tasks::ListAuditMitigationActionsTasksError) -> Self {
5398 match err {
5399 crate::operation::list_audit_mitigation_actions_tasks::ListAuditMitigationActionsTasksError::InternalFailureException(inner) => {
5400 Error::InternalFailureException(inner)
5401 }
5402 crate::operation::list_audit_mitigation_actions_tasks::ListAuditMitigationActionsTasksError::InvalidRequestException(inner) => {
5403 Error::InvalidRequestException(inner)
5404 }
5405 crate::operation::list_audit_mitigation_actions_tasks::ListAuditMitigationActionsTasksError::ThrottlingException(inner) => {
5406 Error::ThrottlingException(inner)
5407 }
5408 crate::operation::list_audit_mitigation_actions_tasks::ListAuditMitigationActionsTasksError::Unhandled(inner) => Error::Unhandled(inner),
5409 }
5410 }
5411}
5412impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_audit_suppressions::ListAuditSuppressionsError, R>> for Error
5413where
5414 R: Send + Sync + std::fmt::Debug + 'static,
5415{
5416 fn from(
5417 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_audit_suppressions::ListAuditSuppressionsError, R>,
5418 ) -> Self {
5419 match err {
5420 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5421 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5422 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5423 source: err.into(),
5424 }),
5425 }
5426 }
5427}
5428impl From<crate::operation::list_audit_suppressions::ListAuditSuppressionsError> for Error {
5429 fn from(err: crate::operation::list_audit_suppressions::ListAuditSuppressionsError) -> Self {
5430 match err {
5431 crate::operation::list_audit_suppressions::ListAuditSuppressionsError::InternalFailureException(inner) => {
5432 Error::InternalFailureException(inner)
5433 }
5434 crate::operation::list_audit_suppressions::ListAuditSuppressionsError::InvalidRequestException(inner) => {
5435 Error::InvalidRequestException(inner)
5436 }
5437 crate::operation::list_audit_suppressions::ListAuditSuppressionsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
5438 crate::operation::list_audit_suppressions::ListAuditSuppressionsError::Unhandled(inner) => Error::Unhandled(inner),
5439 }
5440 }
5441}
5442impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_audit_tasks::ListAuditTasksError, R>> for Error
5443where
5444 R: Send + Sync + std::fmt::Debug + 'static,
5445{
5446 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_audit_tasks::ListAuditTasksError, R>) -> Self {
5447 match err {
5448 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5449 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5450 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5451 source: err.into(),
5452 }),
5453 }
5454 }
5455}
5456impl From<crate::operation::list_audit_tasks::ListAuditTasksError> for Error {
5457 fn from(err: crate::operation::list_audit_tasks::ListAuditTasksError) -> Self {
5458 match err {
5459 crate::operation::list_audit_tasks::ListAuditTasksError::InternalFailureException(inner) => Error::InternalFailureException(inner),
5460 crate::operation::list_audit_tasks::ListAuditTasksError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
5461 crate::operation::list_audit_tasks::ListAuditTasksError::ThrottlingException(inner) => Error::ThrottlingException(inner),
5462 crate::operation::list_audit_tasks::ListAuditTasksError::Unhandled(inner) => Error::Unhandled(inner),
5463 }
5464 }
5465}
5466impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_authorizers::ListAuthorizersError, R>> for Error
5467where
5468 R: Send + Sync + std::fmt::Debug + 'static,
5469{
5470 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_authorizers::ListAuthorizersError, R>) -> Self {
5471 match err {
5472 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5473 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5474 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5475 source: err.into(),
5476 }),
5477 }
5478 }
5479}
5480impl From<crate::operation::list_authorizers::ListAuthorizersError> for Error {
5481 fn from(err: crate::operation::list_authorizers::ListAuthorizersError) -> Self {
5482 match err {
5483 crate::operation::list_authorizers::ListAuthorizersError::InternalFailureException(inner) => Error::InternalFailureException(inner),
5484 crate::operation::list_authorizers::ListAuthorizersError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
5485 crate::operation::list_authorizers::ListAuthorizersError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
5486 crate::operation::list_authorizers::ListAuthorizersError::ThrottlingException(inner) => Error::ThrottlingException(inner),
5487 crate::operation::list_authorizers::ListAuthorizersError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
5488 crate::operation::list_authorizers::ListAuthorizersError::Unhandled(inner) => Error::Unhandled(inner),
5489 }
5490 }
5491}
5492impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_billing_groups::ListBillingGroupsError, R>> for Error
5493where
5494 R: Send + Sync + std::fmt::Debug + 'static,
5495{
5496 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_billing_groups::ListBillingGroupsError, R>) -> Self {
5497 match err {
5498 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5499 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5500 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5501 source: err.into(),
5502 }),
5503 }
5504 }
5505}
5506impl From<crate::operation::list_billing_groups::ListBillingGroupsError> for Error {
5507 fn from(err: crate::operation::list_billing_groups::ListBillingGroupsError) -> Self {
5508 match err {
5509 crate::operation::list_billing_groups::ListBillingGroupsError::InternalFailureException(inner) => Error::InternalFailureException(inner),
5510 crate::operation::list_billing_groups::ListBillingGroupsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
5511 crate::operation::list_billing_groups::ListBillingGroupsError::ResourceNotFoundException(inner) => {
5512 Error::ResourceNotFoundException(inner)
5513 }
5514 crate::operation::list_billing_groups::ListBillingGroupsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
5515 crate::operation::list_billing_groups::ListBillingGroupsError::Unhandled(inner) => Error::Unhandled(inner),
5516 }
5517 }
5518}
5519impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_ca_certificates::ListCACertificatesError, R>> for Error
5520where
5521 R: Send + Sync + std::fmt::Debug + 'static,
5522{
5523 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_ca_certificates::ListCACertificatesError, R>) -> Self {
5524 match err {
5525 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5526 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5527 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5528 source: err.into(),
5529 }),
5530 }
5531 }
5532}
5533impl From<crate::operation::list_ca_certificates::ListCACertificatesError> for Error {
5534 fn from(err: crate::operation::list_ca_certificates::ListCACertificatesError) -> Self {
5535 match err {
5536 crate::operation::list_ca_certificates::ListCACertificatesError::InternalFailureException(inner) => {
5537 Error::InternalFailureException(inner)
5538 }
5539 crate::operation::list_ca_certificates::ListCACertificatesError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
5540 crate::operation::list_ca_certificates::ListCACertificatesError::ServiceUnavailableException(inner) => {
5541 Error::ServiceUnavailableException(inner)
5542 }
5543 crate::operation::list_ca_certificates::ListCACertificatesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
5544 crate::operation::list_ca_certificates::ListCACertificatesError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
5545 crate::operation::list_ca_certificates::ListCACertificatesError::Unhandled(inner) => Error::Unhandled(inner),
5546 }
5547 }
5548}
5549impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_certificate_providers::ListCertificateProvidersError, R>>
5550 for Error
5551where
5552 R: Send + Sync + std::fmt::Debug + 'static,
5553{
5554 fn from(
5555 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_certificate_providers::ListCertificateProvidersError, R>,
5556 ) -> Self {
5557 match err {
5558 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5559 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5560 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5561 source: err.into(),
5562 }),
5563 }
5564 }
5565}
5566impl From<crate::operation::list_certificate_providers::ListCertificateProvidersError> for Error {
5567 fn from(err: crate::operation::list_certificate_providers::ListCertificateProvidersError) -> Self {
5568 match err {
5569 crate::operation::list_certificate_providers::ListCertificateProvidersError::InternalFailureException(inner) => {
5570 Error::InternalFailureException(inner)
5571 }
5572 crate::operation::list_certificate_providers::ListCertificateProvidersError::InvalidRequestException(inner) => {
5573 Error::InvalidRequestException(inner)
5574 }
5575 crate::operation::list_certificate_providers::ListCertificateProvidersError::ServiceUnavailableException(inner) => {
5576 Error::ServiceUnavailableException(inner)
5577 }
5578 crate::operation::list_certificate_providers::ListCertificateProvidersError::ThrottlingException(inner) => {
5579 Error::ThrottlingException(inner)
5580 }
5581 crate::operation::list_certificate_providers::ListCertificateProvidersError::UnauthorizedException(inner) => {
5582 Error::UnauthorizedException(inner)
5583 }
5584 crate::operation::list_certificate_providers::ListCertificateProvidersError::Unhandled(inner) => Error::Unhandled(inner),
5585 }
5586 }
5587}
5588impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_certificates::ListCertificatesError, R>> for Error
5589where
5590 R: Send + Sync + std::fmt::Debug + 'static,
5591{
5592 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_certificates::ListCertificatesError, R>) -> Self {
5593 match err {
5594 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5595 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5596 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5597 source: err.into(),
5598 }),
5599 }
5600 }
5601}
5602impl From<crate::operation::list_certificates::ListCertificatesError> for Error {
5603 fn from(err: crate::operation::list_certificates::ListCertificatesError) -> Self {
5604 match err {
5605 crate::operation::list_certificates::ListCertificatesError::InternalFailureException(inner) => Error::InternalFailureException(inner),
5606 crate::operation::list_certificates::ListCertificatesError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
5607 crate::operation::list_certificates::ListCertificatesError::ServiceUnavailableException(inner) => {
5608 Error::ServiceUnavailableException(inner)
5609 }
5610 crate::operation::list_certificates::ListCertificatesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
5611 crate::operation::list_certificates::ListCertificatesError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
5612 crate::operation::list_certificates::ListCertificatesError::Unhandled(inner) => Error::Unhandled(inner),
5613 }
5614 }
5615}
5616impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_certificates_by_ca::ListCertificatesByCAError, R>> for Error
5617where
5618 R: Send + Sync + std::fmt::Debug + 'static,
5619{
5620 fn from(
5621 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_certificates_by_ca::ListCertificatesByCAError, R>,
5622 ) -> Self {
5623 match err {
5624 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5625 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5626 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5627 source: err.into(),
5628 }),
5629 }
5630 }
5631}
5632impl From<crate::operation::list_certificates_by_ca::ListCertificatesByCAError> for Error {
5633 fn from(err: crate::operation::list_certificates_by_ca::ListCertificatesByCAError) -> Self {
5634 match err {
5635 crate::operation::list_certificates_by_ca::ListCertificatesByCAError::InternalFailureException(inner) => {
5636 Error::InternalFailureException(inner)
5637 }
5638 crate::operation::list_certificates_by_ca::ListCertificatesByCAError::InvalidRequestException(inner) => {
5639 Error::InvalidRequestException(inner)
5640 }
5641 crate::operation::list_certificates_by_ca::ListCertificatesByCAError::ServiceUnavailableException(inner) => {
5642 Error::ServiceUnavailableException(inner)
5643 }
5644 crate::operation::list_certificates_by_ca::ListCertificatesByCAError::ThrottlingException(inner) => Error::ThrottlingException(inner),
5645 crate::operation::list_certificates_by_ca::ListCertificatesByCAError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
5646 crate::operation::list_certificates_by_ca::ListCertificatesByCAError::Unhandled(inner) => Error::Unhandled(inner),
5647 }
5648 }
5649}
5650impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_command_executions::ListCommandExecutionsError, R>> for Error
5651where
5652 R: Send + Sync + std::fmt::Debug + 'static,
5653{
5654 fn from(
5655 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_command_executions::ListCommandExecutionsError, R>,
5656 ) -> Self {
5657 match err {
5658 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5659 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5660 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5661 source: err.into(),
5662 }),
5663 }
5664 }
5665}
5666impl From<crate::operation::list_command_executions::ListCommandExecutionsError> for Error {
5667 fn from(err: crate::operation::list_command_executions::ListCommandExecutionsError) -> Self {
5668 match err {
5669 crate::operation::list_command_executions::ListCommandExecutionsError::InternalServerException(inner) => {
5670 Error::InternalServerException(inner)
5671 }
5672 crate::operation::list_command_executions::ListCommandExecutionsError::ResourceNotFoundException(inner) => {
5673 Error::ResourceNotFoundException(inner)
5674 }
5675 crate::operation::list_command_executions::ListCommandExecutionsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
5676 crate::operation::list_command_executions::ListCommandExecutionsError::ValidationException(inner) => Error::ValidationException(inner),
5677 crate::operation::list_command_executions::ListCommandExecutionsError::Unhandled(inner) => Error::Unhandled(inner),
5678 }
5679 }
5680}
5681impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_commands::ListCommandsError, R>> for Error
5682where
5683 R: Send + Sync + std::fmt::Debug + 'static,
5684{
5685 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_commands::ListCommandsError, R>) -> Self {
5686 match err {
5687 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5688 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5689 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5690 source: err.into(),
5691 }),
5692 }
5693 }
5694}
5695impl From<crate::operation::list_commands::ListCommandsError> for Error {
5696 fn from(err: crate::operation::list_commands::ListCommandsError) -> Self {
5697 match err {
5698 crate::operation::list_commands::ListCommandsError::InternalServerException(inner) => Error::InternalServerException(inner),
5699 crate::operation::list_commands::ListCommandsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
5700 crate::operation::list_commands::ListCommandsError::ValidationException(inner) => Error::ValidationException(inner),
5701 crate::operation::list_commands::ListCommandsError::Unhandled(inner) => Error::Unhandled(inner),
5702 }
5703 }
5704}
5705impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_custom_metrics::ListCustomMetricsError, R>> for Error
5706where
5707 R: Send + Sync + std::fmt::Debug + 'static,
5708{
5709 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_custom_metrics::ListCustomMetricsError, R>) -> Self {
5710 match err {
5711 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5712 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5713 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5714 source: err.into(),
5715 }),
5716 }
5717 }
5718}
5719impl From<crate::operation::list_custom_metrics::ListCustomMetricsError> for Error {
5720 fn from(err: crate::operation::list_custom_metrics::ListCustomMetricsError) -> Self {
5721 match err {
5722 crate::operation::list_custom_metrics::ListCustomMetricsError::InternalFailureException(inner) => Error::InternalFailureException(inner),
5723 crate::operation::list_custom_metrics::ListCustomMetricsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
5724 crate::operation::list_custom_metrics::ListCustomMetricsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
5725 crate::operation::list_custom_metrics::ListCustomMetricsError::Unhandled(inner) => Error::Unhandled(inner),
5726 }
5727 }
5728}
5729impl<R>
5730 From<
5731 ::aws_smithy_runtime_api::client::result::SdkError<
5732 crate::operation::list_detect_mitigation_actions_executions::ListDetectMitigationActionsExecutionsError,
5733 R,
5734 >,
5735 > for Error
5736where
5737 R: Send + Sync + std::fmt::Debug + 'static,
5738{
5739 fn from(
5740 err: ::aws_smithy_runtime_api::client::result::SdkError<
5741 crate::operation::list_detect_mitigation_actions_executions::ListDetectMitigationActionsExecutionsError,
5742 R,
5743 >,
5744 ) -> Self {
5745 match err {
5746 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5747 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5748 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5749 source: err.into(),
5750 }),
5751 }
5752 }
5753}
5754impl From<crate::operation::list_detect_mitigation_actions_executions::ListDetectMitigationActionsExecutionsError> for Error {
5755 fn from(err: crate::operation::list_detect_mitigation_actions_executions::ListDetectMitigationActionsExecutionsError) -> Self {
5756 match err {
5757 crate::operation::list_detect_mitigation_actions_executions::ListDetectMitigationActionsExecutionsError::InternalFailureException(
5758 inner,
5759 ) => Error::InternalFailureException(inner),
5760 crate::operation::list_detect_mitigation_actions_executions::ListDetectMitigationActionsExecutionsError::InvalidRequestException(
5761 inner,
5762 ) => Error::InvalidRequestException(inner),
5763 crate::operation::list_detect_mitigation_actions_executions::ListDetectMitigationActionsExecutionsError::ThrottlingException(inner) => {
5764 Error::ThrottlingException(inner)
5765 }
5766 crate::operation::list_detect_mitigation_actions_executions::ListDetectMitigationActionsExecutionsError::Unhandled(inner) => {
5767 Error::Unhandled(inner)
5768 }
5769 }
5770 }
5771}
5772impl<R>
5773 From<
5774 ::aws_smithy_runtime_api::client::result::SdkError<
5775 crate::operation::list_detect_mitigation_actions_tasks::ListDetectMitigationActionsTasksError,
5776 R,
5777 >,
5778 > for Error
5779where
5780 R: Send + Sync + std::fmt::Debug + 'static,
5781{
5782 fn from(
5783 err: ::aws_smithy_runtime_api::client::result::SdkError<
5784 crate::operation::list_detect_mitigation_actions_tasks::ListDetectMitigationActionsTasksError,
5785 R,
5786 >,
5787 ) -> Self {
5788 match err {
5789 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5790 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5791 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5792 source: err.into(),
5793 }),
5794 }
5795 }
5796}
5797impl From<crate::operation::list_detect_mitigation_actions_tasks::ListDetectMitigationActionsTasksError> for Error {
5798 fn from(err: crate::operation::list_detect_mitigation_actions_tasks::ListDetectMitigationActionsTasksError) -> Self {
5799 match err {
5800 crate::operation::list_detect_mitigation_actions_tasks::ListDetectMitigationActionsTasksError::InternalFailureException(inner) => {
5801 Error::InternalFailureException(inner)
5802 }
5803 crate::operation::list_detect_mitigation_actions_tasks::ListDetectMitigationActionsTasksError::InvalidRequestException(inner) => {
5804 Error::InvalidRequestException(inner)
5805 }
5806 crate::operation::list_detect_mitigation_actions_tasks::ListDetectMitigationActionsTasksError::ThrottlingException(inner) => {
5807 Error::ThrottlingException(inner)
5808 }
5809 crate::operation::list_detect_mitigation_actions_tasks::ListDetectMitigationActionsTasksError::Unhandled(inner) => {
5810 Error::Unhandled(inner)
5811 }
5812 }
5813 }
5814}
5815impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_dimensions::ListDimensionsError, R>> for Error
5816where
5817 R: Send + Sync + std::fmt::Debug + 'static,
5818{
5819 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_dimensions::ListDimensionsError, R>) -> Self {
5820 match err {
5821 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5822 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5823 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5824 source: err.into(),
5825 }),
5826 }
5827 }
5828}
5829impl From<crate::operation::list_dimensions::ListDimensionsError> for Error {
5830 fn from(err: crate::operation::list_dimensions::ListDimensionsError) -> Self {
5831 match err {
5832 crate::operation::list_dimensions::ListDimensionsError::InternalFailureException(inner) => Error::InternalFailureException(inner),
5833 crate::operation::list_dimensions::ListDimensionsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
5834 crate::operation::list_dimensions::ListDimensionsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
5835 crate::operation::list_dimensions::ListDimensionsError::Unhandled(inner) => Error::Unhandled(inner),
5836 }
5837 }
5838}
5839impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_domain_configurations::ListDomainConfigurationsError, R>>
5840 for Error
5841where
5842 R: Send + Sync + std::fmt::Debug + 'static,
5843{
5844 fn from(
5845 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_domain_configurations::ListDomainConfigurationsError, R>,
5846 ) -> Self {
5847 match err {
5848 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5849 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5850 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5851 source: err.into(),
5852 }),
5853 }
5854 }
5855}
5856impl From<crate::operation::list_domain_configurations::ListDomainConfigurationsError> for Error {
5857 fn from(err: crate::operation::list_domain_configurations::ListDomainConfigurationsError) -> Self {
5858 match err {
5859 crate::operation::list_domain_configurations::ListDomainConfigurationsError::InternalFailureException(inner) => {
5860 Error::InternalFailureException(inner)
5861 }
5862 crate::operation::list_domain_configurations::ListDomainConfigurationsError::InvalidRequestException(inner) => {
5863 Error::InvalidRequestException(inner)
5864 }
5865 crate::operation::list_domain_configurations::ListDomainConfigurationsError::ServiceUnavailableException(inner) => {
5866 Error::ServiceUnavailableException(inner)
5867 }
5868 crate::operation::list_domain_configurations::ListDomainConfigurationsError::ThrottlingException(inner) => {
5869 Error::ThrottlingException(inner)
5870 }
5871 crate::operation::list_domain_configurations::ListDomainConfigurationsError::UnauthorizedException(inner) => {
5872 Error::UnauthorizedException(inner)
5873 }
5874 crate::operation::list_domain_configurations::ListDomainConfigurationsError::Unhandled(inner) => Error::Unhandled(inner),
5875 }
5876 }
5877}
5878impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_fleet_metrics::ListFleetMetricsError, R>> for Error
5879where
5880 R: Send + Sync + std::fmt::Debug + 'static,
5881{
5882 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_fleet_metrics::ListFleetMetricsError, R>) -> Self {
5883 match err {
5884 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5885 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5886 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5887 source: err.into(),
5888 }),
5889 }
5890 }
5891}
5892impl From<crate::operation::list_fleet_metrics::ListFleetMetricsError> for Error {
5893 fn from(err: crate::operation::list_fleet_metrics::ListFleetMetricsError) -> Self {
5894 match err {
5895 crate::operation::list_fleet_metrics::ListFleetMetricsError::InternalFailureException(inner) => Error::InternalFailureException(inner),
5896 crate::operation::list_fleet_metrics::ListFleetMetricsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
5897 crate::operation::list_fleet_metrics::ListFleetMetricsError::ServiceUnavailableException(inner) => {
5898 Error::ServiceUnavailableException(inner)
5899 }
5900 crate::operation::list_fleet_metrics::ListFleetMetricsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
5901 crate::operation::list_fleet_metrics::ListFleetMetricsError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
5902 crate::operation::list_fleet_metrics::ListFleetMetricsError::Unhandled(inner) => Error::Unhandled(inner),
5903 }
5904 }
5905}
5906impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_indices::ListIndicesError, R>> for Error
5907where
5908 R: Send + Sync + std::fmt::Debug + 'static,
5909{
5910 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_indices::ListIndicesError, R>) -> Self {
5911 match err {
5912 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5913 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5914 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5915 source: err.into(),
5916 }),
5917 }
5918 }
5919}
5920impl From<crate::operation::list_indices::ListIndicesError> for Error {
5921 fn from(err: crate::operation::list_indices::ListIndicesError) -> Self {
5922 match err {
5923 crate::operation::list_indices::ListIndicesError::InternalFailureException(inner) => Error::InternalFailureException(inner),
5924 crate::operation::list_indices::ListIndicesError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
5925 crate::operation::list_indices::ListIndicesError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
5926 crate::operation::list_indices::ListIndicesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
5927 crate::operation::list_indices::ListIndicesError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
5928 crate::operation::list_indices::ListIndicesError::Unhandled(inner) => Error::Unhandled(inner),
5929 }
5930 }
5931}
5932impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_job_executions_for_job::ListJobExecutionsForJobError, R>>
5933 for Error
5934where
5935 R: Send + Sync + std::fmt::Debug + 'static,
5936{
5937 fn from(
5938 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_job_executions_for_job::ListJobExecutionsForJobError, R>,
5939 ) -> Self {
5940 match err {
5941 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5942 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5943 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5944 source: err.into(),
5945 }),
5946 }
5947 }
5948}
5949impl From<crate::operation::list_job_executions_for_job::ListJobExecutionsForJobError> for Error {
5950 fn from(err: crate::operation::list_job_executions_for_job::ListJobExecutionsForJobError) -> Self {
5951 match err {
5952 crate::operation::list_job_executions_for_job::ListJobExecutionsForJobError::InvalidRequestException(inner) => {
5953 Error::InvalidRequestException(inner)
5954 }
5955 crate::operation::list_job_executions_for_job::ListJobExecutionsForJobError::ResourceNotFoundException(inner) => {
5956 Error::ResourceNotFoundException(inner)
5957 }
5958 crate::operation::list_job_executions_for_job::ListJobExecutionsForJobError::ServiceUnavailableException(inner) => {
5959 Error::ServiceUnavailableException(inner)
5960 }
5961 crate::operation::list_job_executions_for_job::ListJobExecutionsForJobError::ThrottlingException(inner) => {
5962 Error::ThrottlingException(inner)
5963 }
5964 crate::operation::list_job_executions_for_job::ListJobExecutionsForJobError::Unhandled(inner) => Error::Unhandled(inner),
5965 }
5966 }
5967}
5968impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_job_executions_for_thing::ListJobExecutionsForThingError, R>>
5969 for Error
5970where
5971 R: Send + Sync + std::fmt::Debug + 'static,
5972{
5973 fn from(
5974 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_job_executions_for_thing::ListJobExecutionsForThingError, R>,
5975 ) -> Self {
5976 match err {
5977 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5978 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5979 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5980 source: err.into(),
5981 }),
5982 }
5983 }
5984}
5985impl From<crate::operation::list_job_executions_for_thing::ListJobExecutionsForThingError> for Error {
5986 fn from(err: crate::operation::list_job_executions_for_thing::ListJobExecutionsForThingError) -> Self {
5987 match err {
5988 crate::operation::list_job_executions_for_thing::ListJobExecutionsForThingError::InvalidRequestException(inner) => {
5989 Error::InvalidRequestException(inner)
5990 }
5991 crate::operation::list_job_executions_for_thing::ListJobExecutionsForThingError::ResourceNotFoundException(inner) => {
5992 Error::ResourceNotFoundException(inner)
5993 }
5994 crate::operation::list_job_executions_for_thing::ListJobExecutionsForThingError::ServiceUnavailableException(inner) => {
5995 Error::ServiceUnavailableException(inner)
5996 }
5997 crate::operation::list_job_executions_for_thing::ListJobExecutionsForThingError::ThrottlingException(inner) => {
5998 Error::ThrottlingException(inner)
5999 }
6000 crate::operation::list_job_executions_for_thing::ListJobExecutionsForThingError::Unhandled(inner) => Error::Unhandled(inner),
6001 }
6002 }
6003}
6004impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_jobs::ListJobsError, R>> for Error
6005where
6006 R: Send + Sync + std::fmt::Debug + 'static,
6007{
6008 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_jobs::ListJobsError, R>) -> Self {
6009 match err {
6010 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6011 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6012 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6013 source: err.into(),
6014 }),
6015 }
6016 }
6017}
6018impl From<crate::operation::list_jobs::ListJobsError> for Error {
6019 fn from(err: crate::operation::list_jobs::ListJobsError) -> Self {
6020 match err {
6021 crate::operation::list_jobs::ListJobsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
6022 crate::operation::list_jobs::ListJobsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
6023 crate::operation::list_jobs::ListJobsError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
6024 crate::operation::list_jobs::ListJobsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
6025 crate::operation::list_jobs::ListJobsError::Unhandled(inner) => Error::Unhandled(inner),
6026 }
6027 }
6028}
6029impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_job_templates::ListJobTemplatesError, R>> for Error
6030where
6031 R: Send + Sync + std::fmt::Debug + 'static,
6032{
6033 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_job_templates::ListJobTemplatesError, R>) -> Self {
6034 match err {
6035 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6036 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6037 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6038 source: err.into(),
6039 }),
6040 }
6041 }
6042}
6043impl From<crate::operation::list_job_templates::ListJobTemplatesError> for Error {
6044 fn from(err: crate::operation::list_job_templates::ListJobTemplatesError) -> Self {
6045 match err {
6046 crate::operation::list_job_templates::ListJobTemplatesError::InternalFailureException(inner) => Error::InternalFailureException(inner),
6047 crate::operation::list_job_templates::ListJobTemplatesError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
6048 crate::operation::list_job_templates::ListJobTemplatesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
6049 crate::operation::list_job_templates::ListJobTemplatesError::Unhandled(inner) => Error::Unhandled(inner),
6050 }
6051 }
6052}
6053impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_managed_job_templates::ListManagedJobTemplatesError, R>>
6054 for Error
6055where
6056 R: Send + Sync + std::fmt::Debug + 'static,
6057{
6058 fn from(
6059 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_managed_job_templates::ListManagedJobTemplatesError, R>,
6060 ) -> Self {
6061 match err {
6062 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6063 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6064 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6065 source: err.into(),
6066 }),
6067 }
6068 }
6069}
6070impl From<crate::operation::list_managed_job_templates::ListManagedJobTemplatesError> for Error {
6071 fn from(err: crate::operation::list_managed_job_templates::ListManagedJobTemplatesError) -> Self {
6072 match err {
6073 crate::operation::list_managed_job_templates::ListManagedJobTemplatesError::InternalServerException(inner) => {
6074 Error::InternalServerException(inner)
6075 }
6076 crate::operation::list_managed_job_templates::ListManagedJobTemplatesError::InvalidRequestException(inner) => {
6077 Error::InvalidRequestException(inner)
6078 }
6079 crate::operation::list_managed_job_templates::ListManagedJobTemplatesError::ResourceNotFoundException(inner) => {
6080 Error::ResourceNotFoundException(inner)
6081 }
6082 crate::operation::list_managed_job_templates::ListManagedJobTemplatesError::ThrottlingException(inner) => {
6083 Error::ThrottlingException(inner)
6084 }
6085 crate::operation::list_managed_job_templates::ListManagedJobTemplatesError::Unhandled(inner) => Error::Unhandled(inner),
6086 }
6087 }
6088}
6089impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_metric_values::ListMetricValuesError, R>> for Error
6090where
6091 R: Send + Sync + std::fmt::Debug + 'static,
6092{
6093 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_metric_values::ListMetricValuesError, R>) -> Self {
6094 match err {
6095 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6096 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6097 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6098 source: err.into(),
6099 }),
6100 }
6101 }
6102}
6103impl From<crate::operation::list_metric_values::ListMetricValuesError> for Error {
6104 fn from(err: crate::operation::list_metric_values::ListMetricValuesError) -> Self {
6105 match err {
6106 crate::operation::list_metric_values::ListMetricValuesError::InternalFailureException(inner) => Error::InternalFailureException(inner),
6107 crate::operation::list_metric_values::ListMetricValuesError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
6108 crate::operation::list_metric_values::ListMetricValuesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
6109 crate::operation::list_metric_values::ListMetricValuesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
6110 crate::operation::list_metric_values::ListMetricValuesError::Unhandled(inner) => Error::Unhandled(inner),
6111 }
6112 }
6113}
6114impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_mitigation_actions::ListMitigationActionsError, R>> for Error
6115where
6116 R: Send + Sync + std::fmt::Debug + 'static,
6117{
6118 fn from(
6119 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_mitigation_actions::ListMitigationActionsError, R>,
6120 ) -> Self {
6121 match err {
6122 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6123 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6124 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6125 source: err.into(),
6126 }),
6127 }
6128 }
6129}
6130impl From<crate::operation::list_mitigation_actions::ListMitigationActionsError> for Error {
6131 fn from(err: crate::operation::list_mitigation_actions::ListMitigationActionsError) -> Self {
6132 match err {
6133 crate::operation::list_mitigation_actions::ListMitigationActionsError::InternalFailureException(inner) => {
6134 Error::InternalFailureException(inner)
6135 }
6136 crate::operation::list_mitigation_actions::ListMitigationActionsError::InvalidRequestException(inner) => {
6137 Error::InvalidRequestException(inner)
6138 }
6139 crate::operation::list_mitigation_actions::ListMitigationActionsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
6140 crate::operation::list_mitigation_actions::ListMitigationActionsError::Unhandled(inner) => Error::Unhandled(inner),
6141 }
6142 }
6143}
6144impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_ota_updates::ListOTAUpdatesError, R>> for Error
6145where
6146 R: Send + Sync + std::fmt::Debug + 'static,
6147{
6148 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_ota_updates::ListOTAUpdatesError, R>) -> Self {
6149 match err {
6150 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6151 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6152 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6153 source: err.into(),
6154 }),
6155 }
6156 }
6157}
6158impl From<crate::operation::list_ota_updates::ListOTAUpdatesError> for Error {
6159 fn from(err: crate::operation::list_ota_updates::ListOTAUpdatesError) -> Self {
6160 match err {
6161 crate::operation::list_ota_updates::ListOTAUpdatesError::InternalFailureException(inner) => Error::InternalFailureException(inner),
6162 crate::operation::list_ota_updates::ListOTAUpdatesError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
6163 crate::operation::list_ota_updates::ListOTAUpdatesError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
6164 crate::operation::list_ota_updates::ListOTAUpdatesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
6165 crate::operation::list_ota_updates::ListOTAUpdatesError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
6166 crate::operation::list_ota_updates::ListOTAUpdatesError::Unhandled(inner) => Error::Unhandled(inner),
6167 }
6168 }
6169}
6170impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_outgoing_certificates::ListOutgoingCertificatesError, R>>
6171 for Error
6172where
6173 R: Send + Sync + std::fmt::Debug + 'static,
6174{
6175 fn from(
6176 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_outgoing_certificates::ListOutgoingCertificatesError, R>,
6177 ) -> Self {
6178 match err {
6179 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6180 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6181 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6182 source: err.into(),
6183 }),
6184 }
6185 }
6186}
6187impl From<crate::operation::list_outgoing_certificates::ListOutgoingCertificatesError> for Error {
6188 fn from(err: crate::operation::list_outgoing_certificates::ListOutgoingCertificatesError) -> Self {
6189 match err {
6190 crate::operation::list_outgoing_certificates::ListOutgoingCertificatesError::InternalFailureException(inner) => {
6191 Error::InternalFailureException(inner)
6192 }
6193 crate::operation::list_outgoing_certificates::ListOutgoingCertificatesError::InvalidRequestException(inner) => {
6194 Error::InvalidRequestException(inner)
6195 }
6196 crate::operation::list_outgoing_certificates::ListOutgoingCertificatesError::ServiceUnavailableException(inner) => {
6197 Error::ServiceUnavailableException(inner)
6198 }
6199 crate::operation::list_outgoing_certificates::ListOutgoingCertificatesError::ThrottlingException(inner) => {
6200 Error::ThrottlingException(inner)
6201 }
6202 crate::operation::list_outgoing_certificates::ListOutgoingCertificatesError::UnauthorizedException(inner) => {
6203 Error::UnauthorizedException(inner)
6204 }
6205 crate::operation::list_outgoing_certificates::ListOutgoingCertificatesError::Unhandled(inner) => Error::Unhandled(inner),
6206 }
6207 }
6208}
6209impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_packages::ListPackagesError, R>> for Error
6210where
6211 R: Send + Sync + std::fmt::Debug + 'static,
6212{
6213 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_packages::ListPackagesError, R>) -> Self {
6214 match err {
6215 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6216 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6217 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6218 source: err.into(),
6219 }),
6220 }
6221 }
6222}
6223impl From<crate::operation::list_packages::ListPackagesError> for Error {
6224 fn from(err: crate::operation::list_packages::ListPackagesError) -> Self {
6225 match err {
6226 crate::operation::list_packages::ListPackagesError::InternalServerException(inner) => Error::InternalServerException(inner),
6227 crate::operation::list_packages::ListPackagesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
6228 crate::operation::list_packages::ListPackagesError::ValidationException(inner) => Error::ValidationException(inner),
6229 crate::operation::list_packages::ListPackagesError::Unhandled(inner) => Error::Unhandled(inner),
6230 }
6231 }
6232}
6233impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_package_versions::ListPackageVersionsError, R>> for Error
6234where
6235 R: Send + Sync + std::fmt::Debug + 'static,
6236{
6237 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_package_versions::ListPackageVersionsError, R>) -> Self {
6238 match err {
6239 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6240 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6241 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6242 source: err.into(),
6243 }),
6244 }
6245 }
6246}
6247impl From<crate::operation::list_package_versions::ListPackageVersionsError> for Error {
6248 fn from(err: crate::operation::list_package_versions::ListPackageVersionsError) -> Self {
6249 match err {
6250 crate::operation::list_package_versions::ListPackageVersionsError::InternalServerException(inner) => {
6251 Error::InternalServerException(inner)
6252 }
6253 crate::operation::list_package_versions::ListPackageVersionsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
6254 crate::operation::list_package_versions::ListPackageVersionsError::ValidationException(inner) => Error::ValidationException(inner),
6255 crate::operation::list_package_versions::ListPackageVersionsError::Unhandled(inner) => Error::Unhandled(inner),
6256 }
6257 }
6258}
6259impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_policies::ListPoliciesError, R>> for Error
6260where
6261 R: Send + Sync + std::fmt::Debug + 'static,
6262{
6263 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_policies::ListPoliciesError, R>) -> Self {
6264 match err {
6265 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6266 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6267 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6268 source: err.into(),
6269 }),
6270 }
6271 }
6272}
6273impl From<crate::operation::list_policies::ListPoliciesError> for Error {
6274 fn from(err: crate::operation::list_policies::ListPoliciesError) -> Self {
6275 match err {
6276 crate::operation::list_policies::ListPoliciesError::InternalFailureException(inner) => Error::InternalFailureException(inner),
6277 crate::operation::list_policies::ListPoliciesError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
6278 crate::operation::list_policies::ListPoliciesError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
6279 crate::operation::list_policies::ListPoliciesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
6280 crate::operation::list_policies::ListPoliciesError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
6281 crate::operation::list_policies::ListPoliciesError::Unhandled(inner) => Error::Unhandled(inner),
6282 }
6283 }
6284}
6285impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_policy_principals::ListPolicyPrincipalsError, R>> for Error
6286where
6287 R: Send + Sync + std::fmt::Debug + 'static,
6288{
6289 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_policy_principals::ListPolicyPrincipalsError, R>) -> Self {
6290 match err {
6291 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6292 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6293 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6294 source: err.into(),
6295 }),
6296 }
6297 }
6298}
6299impl From<crate::operation::list_policy_principals::ListPolicyPrincipalsError> for Error {
6300 fn from(err: crate::operation::list_policy_principals::ListPolicyPrincipalsError) -> Self {
6301 match err {
6302 crate::operation::list_policy_principals::ListPolicyPrincipalsError::InternalFailureException(inner) => {
6303 Error::InternalFailureException(inner)
6304 }
6305 crate::operation::list_policy_principals::ListPolicyPrincipalsError::InvalidRequestException(inner) => {
6306 Error::InvalidRequestException(inner)
6307 }
6308 crate::operation::list_policy_principals::ListPolicyPrincipalsError::ResourceNotFoundException(inner) => {
6309 Error::ResourceNotFoundException(inner)
6310 }
6311 crate::operation::list_policy_principals::ListPolicyPrincipalsError::ServiceUnavailableException(inner) => {
6312 Error::ServiceUnavailableException(inner)
6313 }
6314 crate::operation::list_policy_principals::ListPolicyPrincipalsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
6315 crate::operation::list_policy_principals::ListPolicyPrincipalsError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
6316 crate::operation::list_policy_principals::ListPolicyPrincipalsError::Unhandled(inner) => Error::Unhandled(inner),
6317 }
6318 }
6319}
6320impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_policy_versions::ListPolicyVersionsError, R>> for Error
6321where
6322 R: Send + Sync + std::fmt::Debug + 'static,
6323{
6324 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_policy_versions::ListPolicyVersionsError, R>) -> Self {
6325 match err {
6326 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6327 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6328 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6329 source: err.into(),
6330 }),
6331 }
6332 }
6333}
6334impl From<crate::operation::list_policy_versions::ListPolicyVersionsError> for Error {
6335 fn from(err: crate::operation::list_policy_versions::ListPolicyVersionsError) -> Self {
6336 match err {
6337 crate::operation::list_policy_versions::ListPolicyVersionsError::InternalFailureException(inner) => {
6338 Error::InternalFailureException(inner)
6339 }
6340 crate::operation::list_policy_versions::ListPolicyVersionsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
6341 crate::operation::list_policy_versions::ListPolicyVersionsError::ResourceNotFoundException(inner) => {
6342 Error::ResourceNotFoundException(inner)
6343 }
6344 crate::operation::list_policy_versions::ListPolicyVersionsError::ServiceUnavailableException(inner) => {
6345 Error::ServiceUnavailableException(inner)
6346 }
6347 crate::operation::list_policy_versions::ListPolicyVersionsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
6348 crate::operation::list_policy_versions::ListPolicyVersionsError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
6349 crate::operation::list_policy_versions::ListPolicyVersionsError::Unhandled(inner) => Error::Unhandled(inner),
6350 }
6351 }
6352}
6353impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_principal_policies::ListPrincipalPoliciesError, R>> for Error
6354where
6355 R: Send + Sync + std::fmt::Debug + 'static,
6356{
6357 fn from(
6358 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_principal_policies::ListPrincipalPoliciesError, R>,
6359 ) -> Self {
6360 match err {
6361 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6362 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6363 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6364 source: err.into(),
6365 }),
6366 }
6367 }
6368}
6369impl From<crate::operation::list_principal_policies::ListPrincipalPoliciesError> for Error {
6370 fn from(err: crate::operation::list_principal_policies::ListPrincipalPoliciesError) -> Self {
6371 match err {
6372 crate::operation::list_principal_policies::ListPrincipalPoliciesError::InternalFailureException(inner) => {
6373 Error::InternalFailureException(inner)
6374 }
6375 crate::operation::list_principal_policies::ListPrincipalPoliciesError::InvalidRequestException(inner) => {
6376 Error::InvalidRequestException(inner)
6377 }
6378 crate::operation::list_principal_policies::ListPrincipalPoliciesError::ResourceNotFoundException(inner) => {
6379 Error::ResourceNotFoundException(inner)
6380 }
6381 crate::operation::list_principal_policies::ListPrincipalPoliciesError::ServiceUnavailableException(inner) => {
6382 Error::ServiceUnavailableException(inner)
6383 }
6384 crate::operation::list_principal_policies::ListPrincipalPoliciesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
6385 crate::operation::list_principal_policies::ListPrincipalPoliciesError::UnauthorizedException(inner) => {
6386 Error::UnauthorizedException(inner)
6387 }
6388 crate::operation::list_principal_policies::ListPrincipalPoliciesError::Unhandled(inner) => Error::Unhandled(inner),
6389 }
6390 }
6391}
6392impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_principal_things::ListPrincipalThingsError, R>> for Error
6393where
6394 R: Send + Sync + std::fmt::Debug + 'static,
6395{
6396 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_principal_things::ListPrincipalThingsError, R>) -> Self {
6397 match err {
6398 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6399 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6400 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6401 source: err.into(),
6402 }),
6403 }
6404 }
6405}
6406impl From<crate::operation::list_principal_things::ListPrincipalThingsError> for Error {
6407 fn from(err: crate::operation::list_principal_things::ListPrincipalThingsError) -> Self {
6408 match err {
6409 crate::operation::list_principal_things::ListPrincipalThingsError::InternalFailureException(inner) => {
6410 Error::InternalFailureException(inner)
6411 }
6412 crate::operation::list_principal_things::ListPrincipalThingsError::InvalidRequestException(inner) => {
6413 Error::InvalidRequestException(inner)
6414 }
6415 crate::operation::list_principal_things::ListPrincipalThingsError::ResourceNotFoundException(inner) => {
6416 Error::ResourceNotFoundException(inner)
6417 }
6418 crate::operation::list_principal_things::ListPrincipalThingsError::ServiceUnavailableException(inner) => {
6419 Error::ServiceUnavailableException(inner)
6420 }
6421 crate::operation::list_principal_things::ListPrincipalThingsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
6422 crate::operation::list_principal_things::ListPrincipalThingsError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
6423 crate::operation::list_principal_things::ListPrincipalThingsError::Unhandled(inner) => Error::Unhandled(inner),
6424 }
6425 }
6426}
6427impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_principal_things_v2::ListPrincipalThingsV2Error, R>> for Error
6428where
6429 R: Send + Sync + std::fmt::Debug + 'static,
6430{
6431 fn from(
6432 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_principal_things_v2::ListPrincipalThingsV2Error, R>,
6433 ) -> Self {
6434 match err {
6435 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6436 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6437 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6438 source: err.into(),
6439 }),
6440 }
6441 }
6442}
6443impl From<crate::operation::list_principal_things_v2::ListPrincipalThingsV2Error> for Error {
6444 fn from(err: crate::operation::list_principal_things_v2::ListPrincipalThingsV2Error) -> Self {
6445 match err {
6446 crate::operation::list_principal_things_v2::ListPrincipalThingsV2Error::InternalFailureException(inner) => {
6447 Error::InternalFailureException(inner)
6448 }
6449 crate::operation::list_principal_things_v2::ListPrincipalThingsV2Error::InvalidRequestException(inner) => {
6450 Error::InvalidRequestException(inner)
6451 }
6452 crate::operation::list_principal_things_v2::ListPrincipalThingsV2Error::ResourceNotFoundException(inner) => {
6453 Error::ResourceNotFoundException(inner)
6454 }
6455 crate::operation::list_principal_things_v2::ListPrincipalThingsV2Error::ServiceUnavailableException(inner) => {
6456 Error::ServiceUnavailableException(inner)
6457 }
6458 crate::operation::list_principal_things_v2::ListPrincipalThingsV2Error::ThrottlingException(inner) => Error::ThrottlingException(inner),
6459 crate::operation::list_principal_things_v2::ListPrincipalThingsV2Error::UnauthorizedException(inner) => {
6460 Error::UnauthorizedException(inner)
6461 }
6462 crate::operation::list_principal_things_v2::ListPrincipalThingsV2Error::Unhandled(inner) => Error::Unhandled(inner),
6463 }
6464 }
6465}
6466impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_provisioning_templates::ListProvisioningTemplatesError, R>>
6467 for Error
6468where
6469 R: Send + Sync + std::fmt::Debug + 'static,
6470{
6471 fn from(
6472 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_provisioning_templates::ListProvisioningTemplatesError, R>,
6473 ) -> Self {
6474 match err {
6475 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6476 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6477 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6478 source: err.into(),
6479 }),
6480 }
6481 }
6482}
6483impl From<crate::operation::list_provisioning_templates::ListProvisioningTemplatesError> for Error {
6484 fn from(err: crate::operation::list_provisioning_templates::ListProvisioningTemplatesError) -> Self {
6485 match err {
6486 crate::operation::list_provisioning_templates::ListProvisioningTemplatesError::InternalFailureException(inner) => {
6487 Error::InternalFailureException(inner)
6488 }
6489 crate::operation::list_provisioning_templates::ListProvisioningTemplatesError::InvalidRequestException(inner) => {
6490 Error::InvalidRequestException(inner)
6491 }
6492 crate::operation::list_provisioning_templates::ListProvisioningTemplatesError::ThrottlingException(inner) => {
6493 Error::ThrottlingException(inner)
6494 }
6495 crate::operation::list_provisioning_templates::ListProvisioningTemplatesError::UnauthorizedException(inner) => {
6496 Error::UnauthorizedException(inner)
6497 }
6498 crate::operation::list_provisioning_templates::ListProvisioningTemplatesError::Unhandled(inner) => Error::Unhandled(inner),
6499 }
6500 }
6501}
6502impl<R>
6503 From<
6504 ::aws_smithy_runtime_api::client::result::SdkError<
6505 crate::operation::list_provisioning_template_versions::ListProvisioningTemplateVersionsError,
6506 R,
6507 >,
6508 > for Error
6509where
6510 R: Send + Sync + std::fmt::Debug + 'static,
6511{
6512 fn from(
6513 err: ::aws_smithy_runtime_api::client::result::SdkError<
6514 crate::operation::list_provisioning_template_versions::ListProvisioningTemplateVersionsError,
6515 R,
6516 >,
6517 ) -> Self {
6518 match err {
6519 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6520 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6521 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6522 source: err.into(),
6523 }),
6524 }
6525 }
6526}
6527impl From<crate::operation::list_provisioning_template_versions::ListProvisioningTemplateVersionsError> for Error {
6528 fn from(err: crate::operation::list_provisioning_template_versions::ListProvisioningTemplateVersionsError) -> Self {
6529 match err {
6530 crate::operation::list_provisioning_template_versions::ListProvisioningTemplateVersionsError::InternalFailureException(inner) => {
6531 Error::InternalFailureException(inner)
6532 }
6533 crate::operation::list_provisioning_template_versions::ListProvisioningTemplateVersionsError::InvalidRequestException(inner) => {
6534 Error::InvalidRequestException(inner)
6535 }
6536 crate::operation::list_provisioning_template_versions::ListProvisioningTemplateVersionsError::ResourceNotFoundException(inner) => {
6537 Error::ResourceNotFoundException(inner)
6538 }
6539 crate::operation::list_provisioning_template_versions::ListProvisioningTemplateVersionsError::ThrottlingException(inner) => {
6540 Error::ThrottlingException(inner)
6541 }
6542 crate::operation::list_provisioning_template_versions::ListProvisioningTemplateVersionsError::UnauthorizedException(inner) => {
6543 Error::UnauthorizedException(inner)
6544 }
6545 crate::operation::list_provisioning_template_versions::ListProvisioningTemplateVersionsError::Unhandled(inner) => Error::Unhandled(inner),
6546 }
6547 }
6548}
6549impl<R>
6550 From<
6551 ::aws_smithy_runtime_api::client::result::SdkError<
6552 crate::operation::list_related_resources_for_audit_finding::ListRelatedResourcesForAuditFindingError,
6553 R,
6554 >,
6555 > for Error
6556where
6557 R: Send + Sync + std::fmt::Debug + 'static,
6558{
6559 fn from(
6560 err: ::aws_smithy_runtime_api::client::result::SdkError<
6561 crate::operation::list_related_resources_for_audit_finding::ListRelatedResourcesForAuditFindingError,
6562 R,
6563 >,
6564 ) -> Self {
6565 match err {
6566 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6567 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6568 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6569 source: err.into(),
6570 }),
6571 }
6572 }
6573}
6574impl From<crate::operation::list_related_resources_for_audit_finding::ListRelatedResourcesForAuditFindingError> for Error {
6575 fn from(err: crate::operation::list_related_resources_for_audit_finding::ListRelatedResourcesForAuditFindingError) -> Self {
6576 match err {
6577 crate::operation::list_related_resources_for_audit_finding::ListRelatedResourcesForAuditFindingError::InternalFailureException(inner) => {
6578 Error::InternalFailureException(inner)
6579 }
6580 crate::operation::list_related_resources_for_audit_finding::ListRelatedResourcesForAuditFindingError::InvalidRequestException(inner) => {
6581 Error::InvalidRequestException(inner)
6582 }
6583 crate::operation::list_related_resources_for_audit_finding::ListRelatedResourcesForAuditFindingError::ResourceNotFoundException(
6584 inner,
6585 ) => Error::ResourceNotFoundException(inner),
6586 crate::operation::list_related_resources_for_audit_finding::ListRelatedResourcesForAuditFindingError::ThrottlingException(inner) => {
6587 Error::ThrottlingException(inner)
6588 }
6589 crate::operation::list_related_resources_for_audit_finding::ListRelatedResourcesForAuditFindingError::Unhandled(inner) => {
6590 Error::Unhandled(inner)
6591 }
6592 }
6593 }
6594}
6595impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_role_aliases::ListRoleAliasesError, R>> for Error
6596where
6597 R: Send + Sync + std::fmt::Debug + 'static,
6598{
6599 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_role_aliases::ListRoleAliasesError, R>) -> Self {
6600 match err {
6601 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6602 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6603 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6604 source: err.into(),
6605 }),
6606 }
6607 }
6608}
6609impl From<crate::operation::list_role_aliases::ListRoleAliasesError> for Error {
6610 fn from(err: crate::operation::list_role_aliases::ListRoleAliasesError) -> Self {
6611 match err {
6612 crate::operation::list_role_aliases::ListRoleAliasesError::InternalFailureException(inner) => Error::InternalFailureException(inner),
6613 crate::operation::list_role_aliases::ListRoleAliasesError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
6614 crate::operation::list_role_aliases::ListRoleAliasesError::ServiceUnavailableException(inner) => {
6615 Error::ServiceUnavailableException(inner)
6616 }
6617 crate::operation::list_role_aliases::ListRoleAliasesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
6618 crate::operation::list_role_aliases::ListRoleAliasesError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
6619 crate::operation::list_role_aliases::ListRoleAliasesError::Unhandled(inner) => Error::Unhandled(inner),
6620 }
6621 }
6622}
6623impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_sbom_validation_results::ListSbomValidationResultsError, R>>
6624 for Error
6625where
6626 R: Send + Sync + std::fmt::Debug + 'static,
6627{
6628 fn from(
6629 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_sbom_validation_results::ListSbomValidationResultsError, R>,
6630 ) -> Self {
6631 match err {
6632 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6633 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6634 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6635 source: err.into(),
6636 }),
6637 }
6638 }
6639}
6640impl From<crate::operation::list_sbom_validation_results::ListSbomValidationResultsError> for Error {
6641 fn from(err: crate::operation::list_sbom_validation_results::ListSbomValidationResultsError) -> Self {
6642 match err {
6643 crate::operation::list_sbom_validation_results::ListSbomValidationResultsError::InternalServerException(inner) => {
6644 Error::InternalServerException(inner)
6645 }
6646 crate::operation::list_sbom_validation_results::ListSbomValidationResultsError::ResourceNotFoundException(inner) => {
6647 Error::ResourceNotFoundException(inner)
6648 }
6649 crate::operation::list_sbom_validation_results::ListSbomValidationResultsError::ThrottlingException(inner) => {
6650 Error::ThrottlingException(inner)
6651 }
6652 crate::operation::list_sbom_validation_results::ListSbomValidationResultsError::ValidationException(inner) => {
6653 Error::ValidationException(inner)
6654 }
6655 crate::operation::list_sbom_validation_results::ListSbomValidationResultsError::Unhandled(inner) => Error::Unhandled(inner),
6656 }
6657 }
6658}
6659impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_scheduled_audits::ListScheduledAuditsError, R>> for Error
6660where
6661 R: Send + Sync + std::fmt::Debug + 'static,
6662{
6663 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_scheduled_audits::ListScheduledAuditsError, R>) -> Self {
6664 match err {
6665 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6666 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6667 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6668 source: err.into(),
6669 }),
6670 }
6671 }
6672}
6673impl From<crate::operation::list_scheduled_audits::ListScheduledAuditsError> for Error {
6674 fn from(err: crate::operation::list_scheduled_audits::ListScheduledAuditsError) -> Self {
6675 match err {
6676 crate::operation::list_scheduled_audits::ListScheduledAuditsError::InternalFailureException(inner) => {
6677 Error::InternalFailureException(inner)
6678 }
6679 crate::operation::list_scheduled_audits::ListScheduledAuditsError::InvalidRequestException(inner) => {
6680 Error::InvalidRequestException(inner)
6681 }
6682 crate::operation::list_scheduled_audits::ListScheduledAuditsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
6683 crate::operation::list_scheduled_audits::ListScheduledAuditsError::Unhandled(inner) => Error::Unhandled(inner),
6684 }
6685 }
6686}
6687impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_security_profiles::ListSecurityProfilesError, R>> for Error
6688where
6689 R: Send + Sync + std::fmt::Debug + 'static,
6690{
6691 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_security_profiles::ListSecurityProfilesError, R>) -> Self {
6692 match err {
6693 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6694 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6695 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6696 source: err.into(),
6697 }),
6698 }
6699 }
6700}
6701impl From<crate::operation::list_security_profiles::ListSecurityProfilesError> for Error {
6702 fn from(err: crate::operation::list_security_profiles::ListSecurityProfilesError) -> Self {
6703 match err {
6704 crate::operation::list_security_profiles::ListSecurityProfilesError::InternalFailureException(inner) => {
6705 Error::InternalFailureException(inner)
6706 }
6707 crate::operation::list_security_profiles::ListSecurityProfilesError::InvalidRequestException(inner) => {
6708 Error::InvalidRequestException(inner)
6709 }
6710 crate::operation::list_security_profiles::ListSecurityProfilesError::ResourceNotFoundException(inner) => {
6711 Error::ResourceNotFoundException(inner)
6712 }
6713 crate::operation::list_security_profiles::ListSecurityProfilesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
6714 crate::operation::list_security_profiles::ListSecurityProfilesError::Unhandled(inner) => Error::Unhandled(inner),
6715 }
6716 }
6717}
6718impl<R>
6719 From<
6720 ::aws_smithy_runtime_api::client::result::SdkError<
6721 crate::operation::list_security_profiles_for_target::ListSecurityProfilesForTargetError,
6722 R,
6723 >,
6724 > for Error
6725where
6726 R: Send + Sync + std::fmt::Debug + 'static,
6727{
6728 fn from(
6729 err: ::aws_smithy_runtime_api::client::result::SdkError<
6730 crate::operation::list_security_profiles_for_target::ListSecurityProfilesForTargetError,
6731 R,
6732 >,
6733 ) -> Self {
6734 match err {
6735 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6736 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6737 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6738 source: err.into(),
6739 }),
6740 }
6741 }
6742}
6743impl From<crate::operation::list_security_profiles_for_target::ListSecurityProfilesForTargetError> for Error {
6744 fn from(err: crate::operation::list_security_profiles_for_target::ListSecurityProfilesForTargetError) -> Self {
6745 match err {
6746 crate::operation::list_security_profiles_for_target::ListSecurityProfilesForTargetError::InternalFailureException(inner) => {
6747 Error::InternalFailureException(inner)
6748 }
6749 crate::operation::list_security_profiles_for_target::ListSecurityProfilesForTargetError::InvalidRequestException(inner) => {
6750 Error::InvalidRequestException(inner)
6751 }
6752 crate::operation::list_security_profiles_for_target::ListSecurityProfilesForTargetError::ResourceNotFoundException(inner) => {
6753 Error::ResourceNotFoundException(inner)
6754 }
6755 crate::operation::list_security_profiles_for_target::ListSecurityProfilesForTargetError::ThrottlingException(inner) => {
6756 Error::ThrottlingException(inner)
6757 }
6758 crate::operation::list_security_profiles_for_target::ListSecurityProfilesForTargetError::Unhandled(inner) => Error::Unhandled(inner),
6759 }
6760 }
6761}
6762impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_streams::ListStreamsError, R>> for Error
6763where
6764 R: Send + Sync + std::fmt::Debug + 'static,
6765{
6766 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_streams::ListStreamsError, R>) -> Self {
6767 match err {
6768 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6769 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6770 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6771 source: err.into(),
6772 }),
6773 }
6774 }
6775}
6776impl From<crate::operation::list_streams::ListStreamsError> for Error {
6777 fn from(err: crate::operation::list_streams::ListStreamsError) -> Self {
6778 match err {
6779 crate::operation::list_streams::ListStreamsError::InternalFailureException(inner) => Error::InternalFailureException(inner),
6780 crate::operation::list_streams::ListStreamsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
6781 crate::operation::list_streams::ListStreamsError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
6782 crate::operation::list_streams::ListStreamsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
6783 crate::operation::list_streams::ListStreamsError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
6784 crate::operation::list_streams::ListStreamsError::Unhandled(inner) => Error::Unhandled(inner),
6785 }
6786 }
6787}
6788impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
6789where
6790 R: Send + Sync + std::fmt::Debug + 'static,
6791{
6792 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
6793 match err {
6794 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6795 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6796 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6797 source: err.into(),
6798 }),
6799 }
6800 }
6801}
6802impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
6803 fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
6804 match err {
6805 crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalFailureException(inner) => {
6806 Error::InternalFailureException(inner)
6807 }
6808 crate::operation::list_tags_for_resource::ListTagsForResourceError::InvalidRequestException(inner) => {
6809 Error::InvalidRequestException(inner)
6810 }
6811 crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
6812 Error::ResourceNotFoundException(inner)
6813 }
6814 crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
6815 crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
6816 }
6817 }
6818}
6819impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_targets_for_policy::ListTargetsForPolicyError, R>> for Error
6820where
6821 R: Send + Sync + std::fmt::Debug + 'static,
6822{
6823 fn from(
6824 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_targets_for_policy::ListTargetsForPolicyError, R>,
6825 ) -> Self {
6826 match err {
6827 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6828 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6829 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6830 source: err.into(),
6831 }),
6832 }
6833 }
6834}
6835impl From<crate::operation::list_targets_for_policy::ListTargetsForPolicyError> for Error {
6836 fn from(err: crate::operation::list_targets_for_policy::ListTargetsForPolicyError) -> Self {
6837 match err {
6838 crate::operation::list_targets_for_policy::ListTargetsForPolicyError::InternalFailureException(inner) => {
6839 Error::InternalFailureException(inner)
6840 }
6841 crate::operation::list_targets_for_policy::ListTargetsForPolicyError::InvalidRequestException(inner) => {
6842 Error::InvalidRequestException(inner)
6843 }
6844 crate::operation::list_targets_for_policy::ListTargetsForPolicyError::LimitExceededException(inner) => {
6845 Error::LimitExceededException(inner)
6846 }
6847 crate::operation::list_targets_for_policy::ListTargetsForPolicyError::ResourceNotFoundException(inner) => {
6848 Error::ResourceNotFoundException(inner)
6849 }
6850 crate::operation::list_targets_for_policy::ListTargetsForPolicyError::ServiceUnavailableException(inner) => {
6851 Error::ServiceUnavailableException(inner)
6852 }
6853 crate::operation::list_targets_for_policy::ListTargetsForPolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
6854 crate::operation::list_targets_for_policy::ListTargetsForPolicyError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
6855 crate::operation::list_targets_for_policy::ListTargetsForPolicyError::Unhandled(inner) => Error::Unhandled(inner),
6856 }
6857 }
6858}
6859impl<R>
6860 From<
6861 ::aws_smithy_runtime_api::client::result::SdkError<
6862 crate::operation::list_targets_for_security_profile::ListTargetsForSecurityProfileError,
6863 R,
6864 >,
6865 > for Error
6866where
6867 R: Send + Sync + std::fmt::Debug + 'static,
6868{
6869 fn from(
6870 err: ::aws_smithy_runtime_api::client::result::SdkError<
6871 crate::operation::list_targets_for_security_profile::ListTargetsForSecurityProfileError,
6872 R,
6873 >,
6874 ) -> Self {
6875 match err {
6876 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6877 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6878 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6879 source: err.into(),
6880 }),
6881 }
6882 }
6883}
6884impl From<crate::operation::list_targets_for_security_profile::ListTargetsForSecurityProfileError> for Error {
6885 fn from(err: crate::operation::list_targets_for_security_profile::ListTargetsForSecurityProfileError) -> Self {
6886 match err {
6887 crate::operation::list_targets_for_security_profile::ListTargetsForSecurityProfileError::InternalFailureException(inner) => {
6888 Error::InternalFailureException(inner)
6889 }
6890 crate::operation::list_targets_for_security_profile::ListTargetsForSecurityProfileError::InvalidRequestException(inner) => {
6891 Error::InvalidRequestException(inner)
6892 }
6893 crate::operation::list_targets_for_security_profile::ListTargetsForSecurityProfileError::ResourceNotFoundException(inner) => {
6894 Error::ResourceNotFoundException(inner)
6895 }
6896 crate::operation::list_targets_for_security_profile::ListTargetsForSecurityProfileError::ThrottlingException(inner) => {
6897 Error::ThrottlingException(inner)
6898 }
6899 crate::operation::list_targets_for_security_profile::ListTargetsForSecurityProfileError::Unhandled(inner) => Error::Unhandled(inner),
6900 }
6901 }
6902}
6903impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_thing_groups::ListThingGroupsError, R>> for Error
6904where
6905 R: Send + Sync + std::fmt::Debug + 'static,
6906{
6907 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_thing_groups::ListThingGroupsError, R>) -> Self {
6908 match err {
6909 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6910 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6911 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6912 source: err.into(),
6913 }),
6914 }
6915 }
6916}
6917impl From<crate::operation::list_thing_groups::ListThingGroupsError> for Error {
6918 fn from(err: crate::operation::list_thing_groups::ListThingGroupsError) -> Self {
6919 match err {
6920 crate::operation::list_thing_groups::ListThingGroupsError::InternalFailureException(inner) => Error::InternalFailureException(inner),
6921 crate::operation::list_thing_groups::ListThingGroupsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
6922 crate::operation::list_thing_groups::ListThingGroupsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
6923 crate::operation::list_thing_groups::ListThingGroupsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
6924 crate::operation::list_thing_groups::ListThingGroupsError::Unhandled(inner) => Error::Unhandled(inner),
6925 }
6926 }
6927}
6928impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_thing_groups_for_thing::ListThingGroupsForThingError, R>>
6929 for Error
6930where
6931 R: Send + Sync + std::fmt::Debug + 'static,
6932{
6933 fn from(
6934 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_thing_groups_for_thing::ListThingGroupsForThingError, R>,
6935 ) -> Self {
6936 match err {
6937 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6938 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6939 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6940 source: err.into(),
6941 }),
6942 }
6943 }
6944}
6945impl From<crate::operation::list_thing_groups_for_thing::ListThingGroupsForThingError> for Error {
6946 fn from(err: crate::operation::list_thing_groups_for_thing::ListThingGroupsForThingError) -> Self {
6947 match err {
6948 crate::operation::list_thing_groups_for_thing::ListThingGroupsForThingError::InternalFailureException(inner) => {
6949 Error::InternalFailureException(inner)
6950 }
6951 crate::operation::list_thing_groups_for_thing::ListThingGroupsForThingError::InvalidRequestException(inner) => {
6952 Error::InvalidRequestException(inner)
6953 }
6954 crate::operation::list_thing_groups_for_thing::ListThingGroupsForThingError::ResourceNotFoundException(inner) => {
6955 Error::ResourceNotFoundException(inner)
6956 }
6957 crate::operation::list_thing_groups_for_thing::ListThingGroupsForThingError::ThrottlingException(inner) => {
6958 Error::ThrottlingException(inner)
6959 }
6960 crate::operation::list_thing_groups_for_thing::ListThingGroupsForThingError::Unhandled(inner) => Error::Unhandled(inner),
6961 }
6962 }
6963}
6964impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_thing_principals::ListThingPrincipalsError, R>> for Error
6965where
6966 R: Send + Sync + std::fmt::Debug + 'static,
6967{
6968 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_thing_principals::ListThingPrincipalsError, R>) -> Self {
6969 match err {
6970 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6971 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6972 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6973 source: err.into(),
6974 }),
6975 }
6976 }
6977}
6978impl From<crate::operation::list_thing_principals::ListThingPrincipalsError> for Error {
6979 fn from(err: crate::operation::list_thing_principals::ListThingPrincipalsError) -> Self {
6980 match err {
6981 crate::operation::list_thing_principals::ListThingPrincipalsError::InternalFailureException(inner) => {
6982 Error::InternalFailureException(inner)
6983 }
6984 crate::operation::list_thing_principals::ListThingPrincipalsError::InvalidRequestException(inner) => {
6985 Error::InvalidRequestException(inner)
6986 }
6987 crate::operation::list_thing_principals::ListThingPrincipalsError::ResourceNotFoundException(inner) => {
6988 Error::ResourceNotFoundException(inner)
6989 }
6990 crate::operation::list_thing_principals::ListThingPrincipalsError::ServiceUnavailableException(inner) => {
6991 Error::ServiceUnavailableException(inner)
6992 }
6993 crate::operation::list_thing_principals::ListThingPrincipalsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
6994 crate::operation::list_thing_principals::ListThingPrincipalsError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
6995 crate::operation::list_thing_principals::ListThingPrincipalsError::Unhandled(inner) => Error::Unhandled(inner),
6996 }
6997 }
6998}
6999impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_thing_principals_v2::ListThingPrincipalsV2Error, R>> for Error
7000where
7001 R: Send + Sync + std::fmt::Debug + 'static,
7002{
7003 fn from(
7004 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_thing_principals_v2::ListThingPrincipalsV2Error, R>,
7005 ) -> Self {
7006 match err {
7007 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7008 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7009 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7010 source: err.into(),
7011 }),
7012 }
7013 }
7014}
7015impl From<crate::operation::list_thing_principals_v2::ListThingPrincipalsV2Error> for Error {
7016 fn from(err: crate::operation::list_thing_principals_v2::ListThingPrincipalsV2Error) -> Self {
7017 match err {
7018 crate::operation::list_thing_principals_v2::ListThingPrincipalsV2Error::InternalFailureException(inner) => {
7019 Error::InternalFailureException(inner)
7020 }
7021 crate::operation::list_thing_principals_v2::ListThingPrincipalsV2Error::InvalidRequestException(inner) => {
7022 Error::InvalidRequestException(inner)
7023 }
7024 crate::operation::list_thing_principals_v2::ListThingPrincipalsV2Error::ResourceNotFoundException(inner) => {
7025 Error::ResourceNotFoundException(inner)
7026 }
7027 crate::operation::list_thing_principals_v2::ListThingPrincipalsV2Error::ServiceUnavailableException(inner) => {
7028 Error::ServiceUnavailableException(inner)
7029 }
7030 crate::operation::list_thing_principals_v2::ListThingPrincipalsV2Error::ThrottlingException(inner) => Error::ThrottlingException(inner),
7031 crate::operation::list_thing_principals_v2::ListThingPrincipalsV2Error::UnauthorizedException(inner) => {
7032 Error::UnauthorizedException(inner)
7033 }
7034 crate::operation::list_thing_principals_v2::ListThingPrincipalsV2Error::Unhandled(inner) => Error::Unhandled(inner),
7035 }
7036 }
7037}
7038impl<R>
7039 From<
7040 ::aws_smithy_runtime_api::client::result::SdkError<
7041 crate::operation::list_thing_registration_task_reports::ListThingRegistrationTaskReportsError,
7042 R,
7043 >,
7044 > for Error
7045where
7046 R: Send + Sync + std::fmt::Debug + 'static,
7047{
7048 fn from(
7049 err: ::aws_smithy_runtime_api::client::result::SdkError<
7050 crate::operation::list_thing_registration_task_reports::ListThingRegistrationTaskReportsError,
7051 R,
7052 >,
7053 ) -> Self {
7054 match err {
7055 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7056 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7057 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7058 source: err.into(),
7059 }),
7060 }
7061 }
7062}
7063impl From<crate::operation::list_thing_registration_task_reports::ListThingRegistrationTaskReportsError> for Error {
7064 fn from(err: crate::operation::list_thing_registration_task_reports::ListThingRegistrationTaskReportsError) -> Self {
7065 match err {
7066 crate::operation::list_thing_registration_task_reports::ListThingRegistrationTaskReportsError::InternalFailureException(inner) => {
7067 Error::InternalFailureException(inner)
7068 }
7069 crate::operation::list_thing_registration_task_reports::ListThingRegistrationTaskReportsError::InvalidRequestException(inner) => {
7070 Error::InvalidRequestException(inner)
7071 }
7072 crate::operation::list_thing_registration_task_reports::ListThingRegistrationTaskReportsError::ThrottlingException(inner) => {
7073 Error::ThrottlingException(inner)
7074 }
7075 crate::operation::list_thing_registration_task_reports::ListThingRegistrationTaskReportsError::UnauthorizedException(inner) => {
7076 Error::UnauthorizedException(inner)
7077 }
7078 crate::operation::list_thing_registration_task_reports::ListThingRegistrationTaskReportsError::Unhandled(inner) => {
7079 Error::Unhandled(inner)
7080 }
7081 }
7082 }
7083}
7084impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_thing_registration_tasks::ListThingRegistrationTasksError, R>>
7085 for Error
7086where
7087 R: Send + Sync + std::fmt::Debug + 'static,
7088{
7089 fn from(
7090 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_thing_registration_tasks::ListThingRegistrationTasksError, R>,
7091 ) -> Self {
7092 match err {
7093 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7094 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7095 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7096 source: err.into(),
7097 }),
7098 }
7099 }
7100}
7101impl From<crate::operation::list_thing_registration_tasks::ListThingRegistrationTasksError> for Error {
7102 fn from(err: crate::operation::list_thing_registration_tasks::ListThingRegistrationTasksError) -> Self {
7103 match err {
7104 crate::operation::list_thing_registration_tasks::ListThingRegistrationTasksError::InternalFailureException(inner) => {
7105 Error::InternalFailureException(inner)
7106 }
7107 crate::operation::list_thing_registration_tasks::ListThingRegistrationTasksError::InvalidRequestException(inner) => {
7108 Error::InvalidRequestException(inner)
7109 }
7110 crate::operation::list_thing_registration_tasks::ListThingRegistrationTasksError::ThrottlingException(inner) => {
7111 Error::ThrottlingException(inner)
7112 }
7113 crate::operation::list_thing_registration_tasks::ListThingRegistrationTasksError::UnauthorizedException(inner) => {
7114 Error::UnauthorizedException(inner)
7115 }
7116 crate::operation::list_thing_registration_tasks::ListThingRegistrationTasksError::Unhandled(inner) => Error::Unhandled(inner),
7117 }
7118 }
7119}
7120impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_things::ListThingsError, R>> for Error
7121where
7122 R: Send + Sync + std::fmt::Debug + 'static,
7123{
7124 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_things::ListThingsError, R>) -> Self {
7125 match err {
7126 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7127 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7128 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7129 source: err.into(),
7130 }),
7131 }
7132 }
7133}
7134impl From<crate::operation::list_things::ListThingsError> for Error {
7135 fn from(err: crate::operation::list_things::ListThingsError) -> Self {
7136 match err {
7137 crate::operation::list_things::ListThingsError::InternalFailureException(inner) => Error::InternalFailureException(inner),
7138 crate::operation::list_things::ListThingsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
7139 crate::operation::list_things::ListThingsError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
7140 crate::operation::list_things::ListThingsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
7141 crate::operation::list_things::ListThingsError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
7142 crate::operation::list_things::ListThingsError::Unhandled(inner) => Error::Unhandled(inner),
7143 }
7144 }
7145}
7146impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_things_in_billing_group::ListThingsInBillingGroupError, R>>
7147 for Error
7148where
7149 R: Send + Sync + std::fmt::Debug + 'static,
7150{
7151 fn from(
7152 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_things_in_billing_group::ListThingsInBillingGroupError, R>,
7153 ) -> Self {
7154 match err {
7155 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7156 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7157 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7158 source: err.into(),
7159 }),
7160 }
7161 }
7162}
7163impl From<crate::operation::list_things_in_billing_group::ListThingsInBillingGroupError> for Error {
7164 fn from(err: crate::operation::list_things_in_billing_group::ListThingsInBillingGroupError) -> Self {
7165 match err {
7166 crate::operation::list_things_in_billing_group::ListThingsInBillingGroupError::InternalFailureException(inner) => {
7167 Error::InternalFailureException(inner)
7168 }
7169 crate::operation::list_things_in_billing_group::ListThingsInBillingGroupError::InvalidRequestException(inner) => {
7170 Error::InvalidRequestException(inner)
7171 }
7172 crate::operation::list_things_in_billing_group::ListThingsInBillingGroupError::ResourceNotFoundException(inner) => {
7173 Error::ResourceNotFoundException(inner)
7174 }
7175 crate::operation::list_things_in_billing_group::ListThingsInBillingGroupError::ThrottlingException(inner) => {
7176 Error::ThrottlingException(inner)
7177 }
7178 crate::operation::list_things_in_billing_group::ListThingsInBillingGroupError::Unhandled(inner) => Error::Unhandled(inner),
7179 }
7180 }
7181}
7182impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_things_in_thing_group::ListThingsInThingGroupError, R>>
7183 for Error
7184where
7185 R: Send + Sync + std::fmt::Debug + 'static,
7186{
7187 fn from(
7188 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_things_in_thing_group::ListThingsInThingGroupError, R>,
7189 ) -> Self {
7190 match err {
7191 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7192 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7193 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7194 source: err.into(),
7195 }),
7196 }
7197 }
7198}
7199impl From<crate::operation::list_things_in_thing_group::ListThingsInThingGroupError> for Error {
7200 fn from(err: crate::operation::list_things_in_thing_group::ListThingsInThingGroupError) -> Self {
7201 match err {
7202 crate::operation::list_things_in_thing_group::ListThingsInThingGroupError::InternalFailureException(inner) => {
7203 Error::InternalFailureException(inner)
7204 }
7205 crate::operation::list_things_in_thing_group::ListThingsInThingGroupError::InvalidRequestException(inner) => {
7206 Error::InvalidRequestException(inner)
7207 }
7208 crate::operation::list_things_in_thing_group::ListThingsInThingGroupError::ResourceNotFoundException(inner) => {
7209 Error::ResourceNotFoundException(inner)
7210 }
7211 crate::operation::list_things_in_thing_group::ListThingsInThingGroupError::ThrottlingException(inner) => {
7212 Error::ThrottlingException(inner)
7213 }
7214 crate::operation::list_things_in_thing_group::ListThingsInThingGroupError::Unhandled(inner) => Error::Unhandled(inner),
7215 }
7216 }
7217}
7218impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_thing_types::ListThingTypesError, R>> for Error
7219where
7220 R: Send + Sync + std::fmt::Debug + 'static,
7221{
7222 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_thing_types::ListThingTypesError, R>) -> Self {
7223 match err {
7224 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7225 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7226 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7227 source: err.into(),
7228 }),
7229 }
7230 }
7231}
7232impl From<crate::operation::list_thing_types::ListThingTypesError> for Error {
7233 fn from(err: crate::operation::list_thing_types::ListThingTypesError) -> Self {
7234 match err {
7235 crate::operation::list_thing_types::ListThingTypesError::InternalFailureException(inner) => Error::InternalFailureException(inner),
7236 crate::operation::list_thing_types::ListThingTypesError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
7237 crate::operation::list_thing_types::ListThingTypesError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
7238 crate::operation::list_thing_types::ListThingTypesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
7239 crate::operation::list_thing_types::ListThingTypesError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
7240 crate::operation::list_thing_types::ListThingTypesError::Unhandled(inner) => Error::Unhandled(inner),
7241 }
7242 }
7243}
7244impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_topic_rule_destinations::ListTopicRuleDestinationsError, R>>
7245 for Error
7246where
7247 R: Send + Sync + std::fmt::Debug + 'static,
7248{
7249 fn from(
7250 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_topic_rule_destinations::ListTopicRuleDestinationsError, R>,
7251 ) -> Self {
7252 match err {
7253 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7254 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7255 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7256 source: err.into(),
7257 }),
7258 }
7259 }
7260}
7261impl From<crate::operation::list_topic_rule_destinations::ListTopicRuleDestinationsError> for Error {
7262 fn from(err: crate::operation::list_topic_rule_destinations::ListTopicRuleDestinationsError) -> Self {
7263 match err {
7264 crate::operation::list_topic_rule_destinations::ListTopicRuleDestinationsError::InternalException(inner) => {
7265 Error::InternalException(inner)
7266 }
7267 crate::operation::list_topic_rule_destinations::ListTopicRuleDestinationsError::InvalidRequestException(inner) => {
7268 Error::InvalidRequestException(inner)
7269 }
7270 crate::operation::list_topic_rule_destinations::ListTopicRuleDestinationsError::ServiceUnavailableException(inner) => {
7271 Error::ServiceUnavailableException(inner)
7272 }
7273 crate::operation::list_topic_rule_destinations::ListTopicRuleDestinationsError::UnauthorizedException(inner) => {
7274 Error::UnauthorizedException(inner)
7275 }
7276 crate::operation::list_topic_rule_destinations::ListTopicRuleDestinationsError::Unhandled(inner) => Error::Unhandled(inner),
7277 }
7278 }
7279}
7280impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_topic_rules::ListTopicRulesError, R>> for Error
7281where
7282 R: Send + Sync + std::fmt::Debug + 'static,
7283{
7284 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_topic_rules::ListTopicRulesError, R>) -> Self {
7285 match err {
7286 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7287 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7288 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7289 source: err.into(),
7290 }),
7291 }
7292 }
7293}
7294impl From<crate::operation::list_topic_rules::ListTopicRulesError> for Error {
7295 fn from(err: crate::operation::list_topic_rules::ListTopicRulesError) -> Self {
7296 match err {
7297 crate::operation::list_topic_rules::ListTopicRulesError::InternalException(inner) => Error::InternalException(inner),
7298 crate::operation::list_topic_rules::ListTopicRulesError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
7299 crate::operation::list_topic_rules::ListTopicRulesError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
7300 crate::operation::list_topic_rules::ListTopicRulesError::Unhandled(inner) => Error::Unhandled(inner),
7301 }
7302 }
7303}
7304impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_v2_logging_levels::ListV2LoggingLevelsError, R>> for Error
7305where
7306 R: Send + Sync + std::fmt::Debug + 'static,
7307{
7308 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_v2_logging_levels::ListV2LoggingLevelsError, R>) -> Self {
7309 match err {
7310 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7311 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7312 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7313 source: err.into(),
7314 }),
7315 }
7316 }
7317}
7318impl From<crate::operation::list_v2_logging_levels::ListV2LoggingLevelsError> for Error {
7319 fn from(err: crate::operation::list_v2_logging_levels::ListV2LoggingLevelsError) -> Self {
7320 match err {
7321 crate::operation::list_v2_logging_levels::ListV2LoggingLevelsError::InternalException(inner) => Error::InternalException(inner),
7322 crate::operation::list_v2_logging_levels::ListV2LoggingLevelsError::InvalidRequestException(inner) => {
7323 Error::InvalidRequestException(inner)
7324 }
7325 crate::operation::list_v2_logging_levels::ListV2LoggingLevelsError::NotConfiguredException(inner) => Error::NotConfiguredException(inner),
7326 crate::operation::list_v2_logging_levels::ListV2LoggingLevelsError::ServiceUnavailableException(inner) => {
7327 Error::ServiceUnavailableException(inner)
7328 }
7329 crate::operation::list_v2_logging_levels::ListV2LoggingLevelsError::Unhandled(inner) => Error::Unhandled(inner),
7330 }
7331 }
7332}
7333impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_violation_events::ListViolationEventsError, R>> for Error
7334where
7335 R: Send + Sync + std::fmt::Debug + 'static,
7336{
7337 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_violation_events::ListViolationEventsError, R>) -> Self {
7338 match err {
7339 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7340 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7341 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7342 source: err.into(),
7343 }),
7344 }
7345 }
7346}
7347impl From<crate::operation::list_violation_events::ListViolationEventsError> for Error {
7348 fn from(err: crate::operation::list_violation_events::ListViolationEventsError) -> Self {
7349 match err {
7350 crate::operation::list_violation_events::ListViolationEventsError::InternalFailureException(inner) => {
7351 Error::InternalFailureException(inner)
7352 }
7353 crate::operation::list_violation_events::ListViolationEventsError::InvalidRequestException(inner) => {
7354 Error::InvalidRequestException(inner)
7355 }
7356 crate::operation::list_violation_events::ListViolationEventsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
7357 crate::operation::list_violation_events::ListViolationEventsError::Unhandled(inner) => Error::Unhandled(inner),
7358 }
7359 }
7360}
7361impl<R>
7362 From<
7363 ::aws_smithy_runtime_api::client::result::SdkError<
7364 crate::operation::put_verification_state_on_violation::PutVerificationStateOnViolationError,
7365 R,
7366 >,
7367 > for Error
7368where
7369 R: Send + Sync + std::fmt::Debug + 'static,
7370{
7371 fn from(
7372 err: ::aws_smithy_runtime_api::client::result::SdkError<
7373 crate::operation::put_verification_state_on_violation::PutVerificationStateOnViolationError,
7374 R,
7375 >,
7376 ) -> Self {
7377 match err {
7378 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7379 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7380 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7381 source: err.into(),
7382 }),
7383 }
7384 }
7385}
7386impl From<crate::operation::put_verification_state_on_violation::PutVerificationStateOnViolationError> for Error {
7387 fn from(err: crate::operation::put_verification_state_on_violation::PutVerificationStateOnViolationError) -> Self {
7388 match err {
7389 crate::operation::put_verification_state_on_violation::PutVerificationStateOnViolationError::InternalFailureException(inner) => {
7390 Error::InternalFailureException(inner)
7391 }
7392 crate::operation::put_verification_state_on_violation::PutVerificationStateOnViolationError::InvalidRequestException(inner) => {
7393 Error::InvalidRequestException(inner)
7394 }
7395 crate::operation::put_verification_state_on_violation::PutVerificationStateOnViolationError::ThrottlingException(inner) => {
7396 Error::ThrottlingException(inner)
7397 }
7398 crate::operation::put_verification_state_on_violation::PutVerificationStateOnViolationError::Unhandled(inner) => Error::Unhandled(inner),
7399 }
7400 }
7401}
7402impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_ca_certificate::RegisterCACertificateError, R>> for Error
7403where
7404 R: Send + Sync + std::fmt::Debug + 'static,
7405{
7406 fn from(
7407 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_ca_certificate::RegisterCACertificateError, R>,
7408 ) -> Self {
7409 match err {
7410 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7411 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7412 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7413 source: err.into(),
7414 }),
7415 }
7416 }
7417}
7418impl From<crate::operation::register_ca_certificate::RegisterCACertificateError> for Error {
7419 fn from(err: crate::operation::register_ca_certificate::RegisterCACertificateError) -> Self {
7420 match err {
7421 crate::operation::register_ca_certificate::RegisterCACertificateError::CertificateValidationException(inner) => {
7422 Error::CertificateValidationException(inner)
7423 }
7424 crate::operation::register_ca_certificate::RegisterCACertificateError::InternalFailureException(inner) => {
7425 Error::InternalFailureException(inner)
7426 }
7427 crate::operation::register_ca_certificate::RegisterCACertificateError::InvalidRequestException(inner) => {
7428 Error::InvalidRequestException(inner)
7429 }
7430 crate::operation::register_ca_certificate::RegisterCACertificateError::LimitExceededException(inner) => {
7431 Error::LimitExceededException(inner)
7432 }
7433 crate::operation::register_ca_certificate::RegisterCACertificateError::RegistrationCodeValidationException(inner) => {
7434 Error::RegistrationCodeValidationException(inner)
7435 }
7436 crate::operation::register_ca_certificate::RegisterCACertificateError::ResourceAlreadyExistsException(inner) => {
7437 Error::ResourceAlreadyExistsException(inner)
7438 }
7439 crate::operation::register_ca_certificate::RegisterCACertificateError::ResourceNotFoundException(inner) => {
7440 Error::ResourceNotFoundException(inner)
7441 }
7442 crate::operation::register_ca_certificate::RegisterCACertificateError::ServiceUnavailableException(inner) => {
7443 Error::ServiceUnavailableException(inner)
7444 }
7445 crate::operation::register_ca_certificate::RegisterCACertificateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
7446 crate::operation::register_ca_certificate::RegisterCACertificateError::UnauthorizedException(inner) => {
7447 Error::UnauthorizedException(inner)
7448 }
7449 crate::operation::register_ca_certificate::RegisterCACertificateError::Unhandled(inner) => Error::Unhandled(inner),
7450 }
7451 }
7452}
7453impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_certificate::RegisterCertificateError, R>> for Error
7454where
7455 R: Send + Sync + std::fmt::Debug + 'static,
7456{
7457 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_certificate::RegisterCertificateError, R>) -> Self {
7458 match err {
7459 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7460 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7461 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7462 source: err.into(),
7463 }),
7464 }
7465 }
7466}
7467impl From<crate::operation::register_certificate::RegisterCertificateError> for Error {
7468 fn from(err: crate::operation::register_certificate::RegisterCertificateError) -> Self {
7469 match err {
7470 crate::operation::register_certificate::RegisterCertificateError::CertificateConflictException(inner) => {
7471 Error::CertificateConflictException(inner)
7472 }
7473 crate::operation::register_certificate::RegisterCertificateError::CertificateStateException(inner) => {
7474 Error::CertificateStateException(inner)
7475 }
7476 crate::operation::register_certificate::RegisterCertificateError::CertificateValidationException(inner) => {
7477 Error::CertificateValidationException(inner)
7478 }
7479 crate::operation::register_certificate::RegisterCertificateError::InternalFailureException(inner) => {
7480 Error::InternalFailureException(inner)
7481 }
7482 crate::operation::register_certificate::RegisterCertificateError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
7483 crate::operation::register_certificate::RegisterCertificateError::ResourceAlreadyExistsException(inner) => {
7484 Error::ResourceAlreadyExistsException(inner)
7485 }
7486 crate::operation::register_certificate::RegisterCertificateError::ServiceUnavailableException(inner) => {
7487 Error::ServiceUnavailableException(inner)
7488 }
7489 crate::operation::register_certificate::RegisterCertificateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
7490 crate::operation::register_certificate::RegisterCertificateError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
7491 crate::operation::register_certificate::RegisterCertificateError::Unhandled(inner) => Error::Unhandled(inner),
7492 }
7493 }
7494}
7495impl<R>
7496 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_certificate_without_ca::RegisterCertificateWithoutCAError, R>>
7497 for Error
7498where
7499 R: Send + Sync + std::fmt::Debug + 'static,
7500{
7501 fn from(
7502 err: ::aws_smithy_runtime_api::client::result::SdkError<
7503 crate::operation::register_certificate_without_ca::RegisterCertificateWithoutCAError,
7504 R,
7505 >,
7506 ) -> Self {
7507 match err {
7508 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7509 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7510 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7511 source: err.into(),
7512 }),
7513 }
7514 }
7515}
7516impl From<crate::operation::register_certificate_without_ca::RegisterCertificateWithoutCAError> for Error {
7517 fn from(err: crate::operation::register_certificate_without_ca::RegisterCertificateWithoutCAError) -> Self {
7518 match err {
7519 crate::operation::register_certificate_without_ca::RegisterCertificateWithoutCAError::CertificateStateException(inner) => {
7520 Error::CertificateStateException(inner)
7521 }
7522 crate::operation::register_certificate_without_ca::RegisterCertificateWithoutCAError::CertificateValidationException(inner) => {
7523 Error::CertificateValidationException(inner)
7524 }
7525 crate::operation::register_certificate_without_ca::RegisterCertificateWithoutCAError::InternalFailureException(inner) => {
7526 Error::InternalFailureException(inner)
7527 }
7528 crate::operation::register_certificate_without_ca::RegisterCertificateWithoutCAError::InvalidRequestException(inner) => {
7529 Error::InvalidRequestException(inner)
7530 }
7531 crate::operation::register_certificate_without_ca::RegisterCertificateWithoutCAError::ResourceAlreadyExistsException(inner) => {
7532 Error::ResourceAlreadyExistsException(inner)
7533 }
7534 crate::operation::register_certificate_without_ca::RegisterCertificateWithoutCAError::ServiceUnavailableException(inner) => {
7535 Error::ServiceUnavailableException(inner)
7536 }
7537 crate::operation::register_certificate_without_ca::RegisterCertificateWithoutCAError::ThrottlingException(inner) => {
7538 Error::ThrottlingException(inner)
7539 }
7540 crate::operation::register_certificate_without_ca::RegisterCertificateWithoutCAError::UnauthorizedException(inner) => {
7541 Error::UnauthorizedException(inner)
7542 }
7543 crate::operation::register_certificate_without_ca::RegisterCertificateWithoutCAError::Unhandled(inner) => Error::Unhandled(inner),
7544 }
7545 }
7546}
7547impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_thing::RegisterThingError, R>> for Error
7548where
7549 R: Send + Sync + std::fmt::Debug + 'static,
7550{
7551 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_thing::RegisterThingError, R>) -> Self {
7552 match err {
7553 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7554 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7555 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7556 source: err.into(),
7557 }),
7558 }
7559 }
7560}
7561impl From<crate::operation::register_thing::RegisterThingError> for Error {
7562 fn from(err: crate::operation::register_thing::RegisterThingError) -> Self {
7563 match err {
7564 crate::operation::register_thing::RegisterThingError::ConflictingResourceUpdateException(inner) => {
7565 Error::ConflictingResourceUpdateException(inner)
7566 }
7567 crate::operation::register_thing::RegisterThingError::InternalFailureException(inner) => Error::InternalFailureException(inner),
7568 crate::operation::register_thing::RegisterThingError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
7569 crate::operation::register_thing::RegisterThingError::ResourceRegistrationFailureException(inner) => {
7570 Error::ResourceRegistrationFailureException(inner)
7571 }
7572 crate::operation::register_thing::RegisterThingError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
7573 crate::operation::register_thing::RegisterThingError::ThrottlingException(inner) => Error::ThrottlingException(inner),
7574 crate::operation::register_thing::RegisterThingError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
7575 crate::operation::register_thing::RegisterThingError::Unhandled(inner) => Error::Unhandled(inner),
7576 }
7577 }
7578}
7579impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reject_certificate_transfer::RejectCertificateTransferError, R>>
7580 for Error
7581where
7582 R: Send + Sync + std::fmt::Debug + 'static,
7583{
7584 fn from(
7585 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reject_certificate_transfer::RejectCertificateTransferError, R>,
7586 ) -> Self {
7587 match err {
7588 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7589 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7590 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7591 source: err.into(),
7592 }),
7593 }
7594 }
7595}
7596impl From<crate::operation::reject_certificate_transfer::RejectCertificateTransferError> for Error {
7597 fn from(err: crate::operation::reject_certificate_transfer::RejectCertificateTransferError) -> Self {
7598 match err {
7599 crate::operation::reject_certificate_transfer::RejectCertificateTransferError::InternalFailureException(inner) => {
7600 Error::InternalFailureException(inner)
7601 }
7602 crate::operation::reject_certificate_transfer::RejectCertificateTransferError::InvalidRequestException(inner) => {
7603 Error::InvalidRequestException(inner)
7604 }
7605 crate::operation::reject_certificate_transfer::RejectCertificateTransferError::ResourceNotFoundException(inner) => {
7606 Error::ResourceNotFoundException(inner)
7607 }
7608 crate::operation::reject_certificate_transfer::RejectCertificateTransferError::ServiceUnavailableException(inner) => {
7609 Error::ServiceUnavailableException(inner)
7610 }
7611 crate::operation::reject_certificate_transfer::RejectCertificateTransferError::ThrottlingException(inner) => {
7612 Error::ThrottlingException(inner)
7613 }
7614 crate::operation::reject_certificate_transfer::RejectCertificateTransferError::TransferAlreadyCompletedException(inner) => {
7615 Error::TransferAlreadyCompletedException(inner)
7616 }
7617 crate::operation::reject_certificate_transfer::RejectCertificateTransferError::UnauthorizedException(inner) => {
7618 Error::UnauthorizedException(inner)
7619 }
7620 crate::operation::reject_certificate_transfer::RejectCertificateTransferError::Unhandled(inner) => Error::Unhandled(inner),
7621 }
7622 }
7623}
7624impl<R>
7625 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::remove_thing_from_billing_group::RemoveThingFromBillingGroupError, R>>
7626 for Error
7627where
7628 R: Send + Sync + std::fmt::Debug + 'static,
7629{
7630 fn from(
7631 err: ::aws_smithy_runtime_api::client::result::SdkError<
7632 crate::operation::remove_thing_from_billing_group::RemoveThingFromBillingGroupError,
7633 R,
7634 >,
7635 ) -> Self {
7636 match err {
7637 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7638 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7639 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7640 source: err.into(),
7641 }),
7642 }
7643 }
7644}
7645impl From<crate::operation::remove_thing_from_billing_group::RemoveThingFromBillingGroupError> for Error {
7646 fn from(err: crate::operation::remove_thing_from_billing_group::RemoveThingFromBillingGroupError) -> Self {
7647 match err {
7648 crate::operation::remove_thing_from_billing_group::RemoveThingFromBillingGroupError::InternalFailureException(inner) => {
7649 Error::InternalFailureException(inner)
7650 }
7651 crate::operation::remove_thing_from_billing_group::RemoveThingFromBillingGroupError::InvalidRequestException(inner) => {
7652 Error::InvalidRequestException(inner)
7653 }
7654 crate::operation::remove_thing_from_billing_group::RemoveThingFromBillingGroupError::ResourceNotFoundException(inner) => {
7655 Error::ResourceNotFoundException(inner)
7656 }
7657 crate::operation::remove_thing_from_billing_group::RemoveThingFromBillingGroupError::ThrottlingException(inner) => {
7658 Error::ThrottlingException(inner)
7659 }
7660 crate::operation::remove_thing_from_billing_group::RemoveThingFromBillingGroupError::Unhandled(inner) => Error::Unhandled(inner),
7661 }
7662 }
7663}
7664impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::remove_thing_from_thing_group::RemoveThingFromThingGroupError, R>>
7665 for Error
7666where
7667 R: Send + Sync + std::fmt::Debug + 'static,
7668{
7669 fn from(
7670 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::remove_thing_from_thing_group::RemoveThingFromThingGroupError, R>,
7671 ) -> Self {
7672 match err {
7673 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7674 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7675 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7676 source: err.into(),
7677 }),
7678 }
7679 }
7680}
7681impl From<crate::operation::remove_thing_from_thing_group::RemoveThingFromThingGroupError> for Error {
7682 fn from(err: crate::operation::remove_thing_from_thing_group::RemoveThingFromThingGroupError) -> Self {
7683 match err {
7684 crate::operation::remove_thing_from_thing_group::RemoveThingFromThingGroupError::InternalFailureException(inner) => {
7685 Error::InternalFailureException(inner)
7686 }
7687 crate::operation::remove_thing_from_thing_group::RemoveThingFromThingGroupError::InvalidRequestException(inner) => {
7688 Error::InvalidRequestException(inner)
7689 }
7690 crate::operation::remove_thing_from_thing_group::RemoveThingFromThingGroupError::ResourceNotFoundException(inner) => {
7691 Error::ResourceNotFoundException(inner)
7692 }
7693 crate::operation::remove_thing_from_thing_group::RemoveThingFromThingGroupError::ThrottlingException(inner) => {
7694 Error::ThrottlingException(inner)
7695 }
7696 crate::operation::remove_thing_from_thing_group::RemoveThingFromThingGroupError::Unhandled(inner) => Error::Unhandled(inner),
7697 }
7698 }
7699}
7700impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_topic_rule::ReplaceTopicRuleError, R>> for Error
7701where
7702 R: Send + Sync + std::fmt::Debug + 'static,
7703{
7704 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replace_topic_rule::ReplaceTopicRuleError, R>) -> Self {
7705 match err {
7706 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7707 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7708 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7709 source: err.into(),
7710 }),
7711 }
7712 }
7713}
7714impl From<crate::operation::replace_topic_rule::ReplaceTopicRuleError> for Error {
7715 fn from(err: crate::operation::replace_topic_rule::ReplaceTopicRuleError) -> Self {
7716 match err {
7717 crate::operation::replace_topic_rule::ReplaceTopicRuleError::ConflictingResourceUpdateException(inner) => {
7718 Error::ConflictingResourceUpdateException(inner)
7719 }
7720 crate::operation::replace_topic_rule::ReplaceTopicRuleError::InternalException(inner) => Error::InternalException(inner),
7721 crate::operation::replace_topic_rule::ReplaceTopicRuleError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
7722 crate::operation::replace_topic_rule::ReplaceTopicRuleError::ServiceUnavailableException(inner) => {
7723 Error::ServiceUnavailableException(inner)
7724 }
7725 crate::operation::replace_topic_rule::ReplaceTopicRuleError::SqlParseException(inner) => Error::SqlParseException(inner),
7726 crate::operation::replace_topic_rule::ReplaceTopicRuleError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
7727 crate::operation::replace_topic_rule::ReplaceTopicRuleError::Unhandled(inner) => Error::Unhandled(inner),
7728 }
7729 }
7730}
7731impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_index::SearchIndexError, R>> for Error
7732where
7733 R: Send + Sync + std::fmt::Debug + 'static,
7734{
7735 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_index::SearchIndexError, R>) -> Self {
7736 match err {
7737 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7738 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7739 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7740 source: err.into(),
7741 }),
7742 }
7743 }
7744}
7745impl From<crate::operation::search_index::SearchIndexError> for Error {
7746 fn from(err: crate::operation::search_index::SearchIndexError) -> Self {
7747 match err {
7748 crate::operation::search_index::SearchIndexError::IndexNotReadyException(inner) => Error::IndexNotReadyException(inner),
7749 crate::operation::search_index::SearchIndexError::InternalFailureException(inner) => Error::InternalFailureException(inner),
7750 crate::operation::search_index::SearchIndexError::InvalidQueryException(inner) => Error::InvalidQueryException(inner),
7751 crate::operation::search_index::SearchIndexError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
7752 crate::operation::search_index::SearchIndexError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
7753 crate::operation::search_index::SearchIndexError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
7754 crate::operation::search_index::SearchIndexError::ThrottlingException(inner) => Error::ThrottlingException(inner),
7755 crate::operation::search_index::SearchIndexError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
7756 crate::operation::search_index::SearchIndexError::Unhandled(inner) => Error::Unhandled(inner),
7757 }
7758 }
7759}
7760impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_default_authorizer::SetDefaultAuthorizerError, R>> for Error
7761where
7762 R: Send + Sync + std::fmt::Debug + 'static,
7763{
7764 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_default_authorizer::SetDefaultAuthorizerError, R>) -> Self {
7765 match err {
7766 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7767 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7768 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7769 source: err.into(),
7770 }),
7771 }
7772 }
7773}
7774impl From<crate::operation::set_default_authorizer::SetDefaultAuthorizerError> for Error {
7775 fn from(err: crate::operation::set_default_authorizer::SetDefaultAuthorizerError) -> Self {
7776 match err {
7777 crate::operation::set_default_authorizer::SetDefaultAuthorizerError::InternalFailureException(inner) => {
7778 Error::InternalFailureException(inner)
7779 }
7780 crate::operation::set_default_authorizer::SetDefaultAuthorizerError::InvalidRequestException(inner) => {
7781 Error::InvalidRequestException(inner)
7782 }
7783 crate::operation::set_default_authorizer::SetDefaultAuthorizerError::ResourceAlreadyExistsException(inner) => {
7784 Error::ResourceAlreadyExistsException(inner)
7785 }
7786 crate::operation::set_default_authorizer::SetDefaultAuthorizerError::ResourceNotFoundException(inner) => {
7787 Error::ResourceNotFoundException(inner)
7788 }
7789 crate::operation::set_default_authorizer::SetDefaultAuthorizerError::ServiceUnavailableException(inner) => {
7790 Error::ServiceUnavailableException(inner)
7791 }
7792 crate::operation::set_default_authorizer::SetDefaultAuthorizerError::ThrottlingException(inner) => Error::ThrottlingException(inner),
7793 crate::operation::set_default_authorizer::SetDefaultAuthorizerError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
7794 crate::operation::set_default_authorizer::SetDefaultAuthorizerError::Unhandled(inner) => Error::Unhandled(inner),
7795 }
7796 }
7797}
7798impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_default_policy_version::SetDefaultPolicyVersionError, R>>
7799 for Error
7800where
7801 R: Send + Sync + std::fmt::Debug + 'static,
7802{
7803 fn from(
7804 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_default_policy_version::SetDefaultPolicyVersionError, R>,
7805 ) -> Self {
7806 match err {
7807 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7808 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7809 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7810 source: err.into(),
7811 }),
7812 }
7813 }
7814}
7815impl From<crate::operation::set_default_policy_version::SetDefaultPolicyVersionError> for Error {
7816 fn from(err: crate::operation::set_default_policy_version::SetDefaultPolicyVersionError) -> Self {
7817 match err {
7818 crate::operation::set_default_policy_version::SetDefaultPolicyVersionError::InternalFailureException(inner) => {
7819 Error::InternalFailureException(inner)
7820 }
7821 crate::operation::set_default_policy_version::SetDefaultPolicyVersionError::InvalidRequestException(inner) => {
7822 Error::InvalidRequestException(inner)
7823 }
7824 crate::operation::set_default_policy_version::SetDefaultPolicyVersionError::ResourceNotFoundException(inner) => {
7825 Error::ResourceNotFoundException(inner)
7826 }
7827 crate::operation::set_default_policy_version::SetDefaultPolicyVersionError::ServiceUnavailableException(inner) => {
7828 Error::ServiceUnavailableException(inner)
7829 }
7830 crate::operation::set_default_policy_version::SetDefaultPolicyVersionError::ThrottlingException(inner) => {
7831 Error::ThrottlingException(inner)
7832 }
7833 crate::operation::set_default_policy_version::SetDefaultPolicyVersionError::UnauthorizedException(inner) => {
7834 Error::UnauthorizedException(inner)
7835 }
7836 crate::operation::set_default_policy_version::SetDefaultPolicyVersionError::Unhandled(inner) => Error::Unhandled(inner),
7837 }
7838 }
7839}
7840impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_logging_options::SetLoggingOptionsError, R>> for Error
7841where
7842 R: Send + Sync + std::fmt::Debug + 'static,
7843{
7844 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_logging_options::SetLoggingOptionsError, R>) -> Self {
7845 match err {
7846 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7847 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7848 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7849 source: err.into(),
7850 }),
7851 }
7852 }
7853}
7854impl From<crate::operation::set_logging_options::SetLoggingOptionsError> for Error {
7855 fn from(err: crate::operation::set_logging_options::SetLoggingOptionsError) -> Self {
7856 match err {
7857 crate::operation::set_logging_options::SetLoggingOptionsError::InternalException(inner) => Error::InternalException(inner),
7858 crate::operation::set_logging_options::SetLoggingOptionsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
7859 crate::operation::set_logging_options::SetLoggingOptionsError::ServiceUnavailableException(inner) => {
7860 Error::ServiceUnavailableException(inner)
7861 }
7862 crate::operation::set_logging_options::SetLoggingOptionsError::Unhandled(inner) => Error::Unhandled(inner),
7863 }
7864 }
7865}
7866impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_v2_logging_level::SetV2LoggingLevelError, R>> for Error
7867where
7868 R: Send + Sync + std::fmt::Debug + 'static,
7869{
7870 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_v2_logging_level::SetV2LoggingLevelError, R>) -> Self {
7871 match err {
7872 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7873 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7874 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7875 source: err.into(),
7876 }),
7877 }
7878 }
7879}
7880impl From<crate::operation::set_v2_logging_level::SetV2LoggingLevelError> for Error {
7881 fn from(err: crate::operation::set_v2_logging_level::SetV2LoggingLevelError) -> Self {
7882 match err {
7883 crate::operation::set_v2_logging_level::SetV2LoggingLevelError::InternalException(inner) => Error::InternalException(inner),
7884 crate::operation::set_v2_logging_level::SetV2LoggingLevelError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
7885 crate::operation::set_v2_logging_level::SetV2LoggingLevelError::LimitExceededException(inner) => Error::LimitExceededException(inner),
7886 crate::operation::set_v2_logging_level::SetV2LoggingLevelError::NotConfiguredException(inner) => Error::NotConfiguredException(inner),
7887 crate::operation::set_v2_logging_level::SetV2LoggingLevelError::ServiceUnavailableException(inner) => {
7888 Error::ServiceUnavailableException(inner)
7889 }
7890 crate::operation::set_v2_logging_level::SetV2LoggingLevelError::Unhandled(inner) => Error::Unhandled(inner),
7891 }
7892 }
7893}
7894impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_v2_logging_options::SetV2LoggingOptionsError, R>> for Error
7895where
7896 R: Send + Sync + std::fmt::Debug + 'static,
7897{
7898 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_v2_logging_options::SetV2LoggingOptionsError, R>) -> Self {
7899 match err {
7900 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7901 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7902 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7903 source: err.into(),
7904 }),
7905 }
7906 }
7907}
7908impl From<crate::operation::set_v2_logging_options::SetV2LoggingOptionsError> for Error {
7909 fn from(err: crate::operation::set_v2_logging_options::SetV2LoggingOptionsError) -> Self {
7910 match err {
7911 crate::operation::set_v2_logging_options::SetV2LoggingOptionsError::InternalException(inner) => Error::InternalException(inner),
7912 crate::operation::set_v2_logging_options::SetV2LoggingOptionsError::InvalidRequestException(inner) => {
7913 Error::InvalidRequestException(inner)
7914 }
7915 crate::operation::set_v2_logging_options::SetV2LoggingOptionsError::ServiceUnavailableException(inner) => {
7916 Error::ServiceUnavailableException(inner)
7917 }
7918 crate::operation::set_v2_logging_options::SetV2LoggingOptionsError::Unhandled(inner) => Error::Unhandled(inner),
7919 }
7920 }
7921}
7922impl<R>
7923 From<
7924 ::aws_smithy_runtime_api::client::result::SdkError<
7925 crate::operation::start_audit_mitigation_actions_task::StartAuditMitigationActionsTaskError,
7926 R,
7927 >,
7928 > for Error
7929where
7930 R: Send + Sync + std::fmt::Debug + 'static,
7931{
7932 fn from(
7933 err: ::aws_smithy_runtime_api::client::result::SdkError<
7934 crate::operation::start_audit_mitigation_actions_task::StartAuditMitigationActionsTaskError,
7935 R,
7936 >,
7937 ) -> Self {
7938 match err {
7939 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7940 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7941 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7942 source: err.into(),
7943 }),
7944 }
7945 }
7946}
7947impl From<crate::operation::start_audit_mitigation_actions_task::StartAuditMitigationActionsTaskError> for Error {
7948 fn from(err: crate::operation::start_audit_mitigation_actions_task::StartAuditMitigationActionsTaskError) -> Self {
7949 match err {
7950 crate::operation::start_audit_mitigation_actions_task::StartAuditMitigationActionsTaskError::InternalFailureException(inner) => {
7951 Error::InternalFailureException(inner)
7952 }
7953 crate::operation::start_audit_mitigation_actions_task::StartAuditMitigationActionsTaskError::InvalidRequestException(inner) => {
7954 Error::InvalidRequestException(inner)
7955 }
7956 crate::operation::start_audit_mitigation_actions_task::StartAuditMitigationActionsTaskError::LimitExceededException(inner) => {
7957 Error::LimitExceededException(inner)
7958 }
7959 crate::operation::start_audit_mitigation_actions_task::StartAuditMitigationActionsTaskError::TaskAlreadyExistsException(inner) => {
7960 Error::TaskAlreadyExistsException(inner)
7961 }
7962 crate::operation::start_audit_mitigation_actions_task::StartAuditMitigationActionsTaskError::ThrottlingException(inner) => {
7963 Error::ThrottlingException(inner)
7964 }
7965 crate::operation::start_audit_mitigation_actions_task::StartAuditMitigationActionsTaskError::Unhandled(inner) => Error::Unhandled(inner),
7966 }
7967 }
7968}
7969impl<R>
7970 From<
7971 ::aws_smithy_runtime_api::client::result::SdkError<
7972 crate::operation::start_detect_mitigation_actions_task::StartDetectMitigationActionsTaskError,
7973 R,
7974 >,
7975 > for Error
7976where
7977 R: Send + Sync + std::fmt::Debug + 'static,
7978{
7979 fn from(
7980 err: ::aws_smithy_runtime_api::client::result::SdkError<
7981 crate::operation::start_detect_mitigation_actions_task::StartDetectMitigationActionsTaskError,
7982 R,
7983 >,
7984 ) -> Self {
7985 match err {
7986 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7987 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7988 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7989 source: err.into(),
7990 }),
7991 }
7992 }
7993}
7994impl From<crate::operation::start_detect_mitigation_actions_task::StartDetectMitigationActionsTaskError> for Error {
7995 fn from(err: crate::operation::start_detect_mitigation_actions_task::StartDetectMitigationActionsTaskError) -> Self {
7996 match err {
7997 crate::operation::start_detect_mitigation_actions_task::StartDetectMitigationActionsTaskError::InternalFailureException(inner) => {
7998 Error::InternalFailureException(inner)
7999 }
8000 crate::operation::start_detect_mitigation_actions_task::StartDetectMitigationActionsTaskError::InvalidRequestException(inner) => {
8001 Error::InvalidRequestException(inner)
8002 }
8003 crate::operation::start_detect_mitigation_actions_task::StartDetectMitigationActionsTaskError::LimitExceededException(inner) => {
8004 Error::LimitExceededException(inner)
8005 }
8006 crate::operation::start_detect_mitigation_actions_task::StartDetectMitigationActionsTaskError::TaskAlreadyExistsException(inner) => {
8007 Error::TaskAlreadyExistsException(inner)
8008 }
8009 crate::operation::start_detect_mitigation_actions_task::StartDetectMitigationActionsTaskError::ThrottlingException(inner) => {
8010 Error::ThrottlingException(inner)
8011 }
8012 crate::operation::start_detect_mitigation_actions_task::StartDetectMitigationActionsTaskError::Unhandled(inner) => {
8013 Error::Unhandled(inner)
8014 }
8015 }
8016 }
8017}
8018impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_on_demand_audit_task::StartOnDemandAuditTaskError, R>>
8019 for Error
8020where
8021 R: Send + Sync + std::fmt::Debug + 'static,
8022{
8023 fn from(
8024 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_on_demand_audit_task::StartOnDemandAuditTaskError, R>,
8025 ) -> Self {
8026 match err {
8027 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8028 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8029 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8030 source: err.into(),
8031 }),
8032 }
8033 }
8034}
8035impl From<crate::operation::start_on_demand_audit_task::StartOnDemandAuditTaskError> for Error {
8036 fn from(err: crate::operation::start_on_demand_audit_task::StartOnDemandAuditTaskError) -> Self {
8037 match err {
8038 crate::operation::start_on_demand_audit_task::StartOnDemandAuditTaskError::InternalFailureException(inner) => {
8039 Error::InternalFailureException(inner)
8040 }
8041 crate::operation::start_on_demand_audit_task::StartOnDemandAuditTaskError::InvalidRequestException(inner) => {
8042 Error::InvalidRequestException(inner)
8043 }
8044 crate::operation::start_on_demand_audit_task::StartOnDemandAuditTaskError::LimitExceededException(inner) => {
8045 Error::LimitExceededException(inner)
8046 }
8047 crate::operation::start_on_demand_audit_task::StartOnDemandAuditTaskError::ThrottlingException(inner) => {
8048 Error::ThrottlingException(inner)
8049 }
8050 crate::operation::start_on_demand_audit_task::StartOnDemandAuditTaskError::Unhandled(inner) => Error::Unhandled(inner),
8051 }
8052 }
8053}
8054impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_thing_registration_task::StartThingRegistrationTaskError, R>>
8055 for Error
8056where
8057 R: Send + Sync + std::fmt::Debug + 'static,
8058{
8059 fn from(
8060 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_thing_registration_task::StartThingRegistrationTaskError, R>,
8061 ) -> Self {
8062 match err {
8063 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8064 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8065 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8066 source: err.into(),
8067 }),
8068 }
8069 }
8070}
8071impl From<crate::operation::start_thing_registration_task::StartThingRegistrationTaskError> for Error {
8072 fn from(err: crate::operation::start_thing_registration_task::StartThingRegistrationTaskError) -> Self {
8073 match err {
8074 crate::operation::start_thing_registration_task::StartThingRegistrationTaskError::InternalFailureException(inner) => {
8075 Error::InternalFailureException(inner)
8076 }
8077 crate::operation::start_thing_registration_task::StartThingRegistrationTaskError::InvalidRequestException(inner) => {
8078 Error::InvalidRequestException(inner)
8079 }
8080 crate::operation::start_thing_registration_task::StartThingRegistrationTaskError::ThrottlingException(inner) => {
8081 Error::ThrottlingException(inner)
8082 }
8083 crate::operation::start_thing_registration_task::StartThingRegistrationTaskError::UnauthorizedException(inner) => {
8084 Error::UnauthorizedException(inner)
8085 }
8086 crate::operation::start_thing_registration_task::StartThingRegistrationTaskError::Unhandled(inner) => Error::Unhandled(inner),
8087 }
8088 }
8089}
8090impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_thing_registration_task::StopThingRegistrationTaskError, R>>
8091 for Error
8092where
8093 R: Send + Sync + std::fmt::Debug + 'static,
8094{
8095 fn from(
8096 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_thing_registration_task::StopThingRegistrationTaskError, R>,
8097 ) -> Self {
8098 match err {
8099 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8100 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8101 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8102 source: err.into(),
8103 }),
8104 }
8105 }
8106}
8107impl From<crate::operation::stop_thing_registration_task::StopThingRegistrationTaskError> for Error {
8108 fn from(err: crate::operation::stop_thing_registration_task::StopThingRegistrationTaskError) -> Self {
8109 match err {
8110 crate::operation::stop_thing_registration_task::StopThingRegistrationTaskError::InternalFailureException(inner) => {
8111 Error::InternalFailureException(inner)
8112 }
8113 crate::operation::stop_thing_registration_task::StopThingRegistrationTaskError::InvalidRequestException(inner) => {
8114 Error::InvalidRequestException(inner)
8115 }
8116 crate::operation::stop_thing_registration_task::StopThingRegistrationTaskError::ResourceNotFoundException(inner) => {
8117 Error::ResourceNotFoundException(inner)
8118 }
8119 crate::operation::stop_thing_registration_task::StopThingRegistrationTaskError::ThrottlingException(inner) => {
8120 Error::ThrottlingException(inner)
8121 }
8122 crate::operation::stop_thing_registration_task::StopThingRegistrationTaskError::UnauthorizedException(inner) => {
8123 Error::UnauthorizedException(inner)
8124 }
8125 crate::operation::stop_thing_registration_task::StopThingRegistrationTaskError::Unhandled(inner) => Error::Unhandled(inner),
8126 }
8127 }
8128}
8129impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
8130where
8131 R: Send + Sync + std::fmt::Debug + 'static,
8132{
8133 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
8134 match err {
8135 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8136 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8137 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8138 source: err.into(),
8139 }),
8140 }
8141 }
8142}
8143impl From<crate::operation::tag_resource::TagResourceError> for Error {
8144 fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
8145 match err {
8146 crate::operation::tag_resource::TagResourceError::InternalFailureException(inner) => Error::InternalFailureException(inner),
8147 crate::operation::tag_resource::TagResourceError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
8148 crate::operation::tag_resource::TagResourceError::LimitExceededException(inner) => Error::LimitExceededException(inner),
8149 crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
8150 crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
8151 crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
8152 }
8153 }
8154}
8155impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::test_authorization::TestAuthorizationError, R>> for Error
8156where
8157 R: Send + Sync + std::fmt::Debug + 'static,
8158{
8159 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::test_authorization::TestAuthorizationError, R>) -> Self {
8160 match err {
8161 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8162 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8163 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8164 source: err.into(),
8165 }),
8166 }
8167 }
8168}
8169impl From<crate::operation::test_authorization::TestAuthorizationError> for Error {
8170 fn from(err: crate::operation::test_authorization::TestAuthorizationError) -> Self {
8171 match err {
8172 crate::operation::test_authorization::TestAuthorizationError::InternalFailureException(inner) => Error::InternalFailureException(inner),
8173 crate::operation::test_authorization::TestAuthorizationError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
8174 crate::operation::test_authorization::TestAuthorizationError::LimitExceededException(inner) => Error::LimitExceededException(inner),
8175 crate::operation::test_authorization::TestAuthorizationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
8176 crate::operation::test_authorization::TestAuthorizationError::ServiceUnavailableException(inner) => {
8177 Error::ServiceUnavailableException(inner)
8178 }
8179 crate::operation::test_authorization::TestAuthorizationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
8180 crate::operation::test_authorization::TestAuthorizationError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
8181 crate::operation::test_authorization::TestAuthorizationError::Unhandled(inner) => Error::Unhandled(inner),
8182 }
8183 }
8184}
8185impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::test_invoke_authorizer::TestInvokeAuthorizerError, R>> for Error
8186where
8187 R: Send + Sync + std::fmt::Debug + 'static,
8188{
8189 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::test_invoke_authorizer::TestInvokeAuthorizerError, R>) -> Self {
8190 match err {
8191 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8192 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8193 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8194 source: err.into(),
8195 }),
8196 }
8197 }
8198}
8199impl From<crate::operation::test_invoke_authorizer::TestInvokeAuthorizerError> for Error {
8200 fn from(err: crate::operation::test_invoke_authorizer::TestInvokeAuthorizerError) -> Self {
8201 match err {
8202 crate::operation::test_invoke_authorizer::TestInvokeAuthorizerError::InternalFailureException(inner) => {
8203 Error::InternalFailureException(inner)
8204 }
8205 crate::operation::test_invoke_authorizer::TestInvokeAuthorizerError::InvalidRequestException(inner) => {
8206 Error::InvalidRequestException(inner)
8207 }
8208 crate::operation::test_invoke_authorizer::TestInvokeAuthorizerError::InvalidResponseException(inner) => {
8209 Error::InvalidResponseException(inner)
8210 }
8211 crate::operation::test_invoke_authorizer::TestInvokeAuthorizerError::ResourceNotFoundException(inner) => {
8212 Error::ResourceNotFoundException(inner)
8213 }
8214 crate::operation::test_invoke_authorizer::TestInvokeAuthorizerError::ServiceUnavailableException(inner) => {
8215 Error::ServiceUnavailableException(inner)
8216 }
8217 crate::operation::test_invoke_authorizer::TestInvokeAuthorizerError::ThrottlingException(inner) => Error::ThrottlingException(inner),
8218 crate::operation::test_invoke_authorizer::TestInvokeAuthorizerError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
8219 crate::operation::test_invoke_authorizer::TestInvokeAuthorizerError::Unhandled(inner) => Error::Unhandled(inner),
8220 }
8221 }
8222}
8223impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::transfer_certificate::TransferCertificateError, R>> for Error
8224where
8225 R: Send + Sync + std::fmt::Debug + 'static,
8226{
8227 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::transfer_certificate::TransferCertificateError, R>) -> Self {
8228 match err {
8229 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8230 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8231 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8232 source: err.into(),
8233 }),
8234 }
8235 }
8236}
8237impl From<crate::operation::transfer_certificate::TransferCertificateError> for Error {
8238 fn from(err: crate::operation::transfer_certificate::TransferCertificateError) -> Self {
8239 match err {
8240 crate::operation::transfer_certificate::TransferCertificateError::CertificateStateException(inner) => {
8241 Error::CertificateStateException(inner)
8242 }
8243 crate::operation::transfer_certificate::TransferCertificateError::InternalFailureException(inner) => {
8244 Error::InternalFailureException(inner)
8245 }
8246 crate::operation::transfer_certificate::TransferCertificateError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
8247 crate::operation::transfer_certificate::TransferCertificateError::ResourceNotFoundException(inner) => {
8248 Error::ResourceNotFoundException(inner)
8249 }
8250 crate::operation::transfer_certificate::TransferCertificateError::ServiceUnavailableException(inner) => {
8251 Error::ServiceUnavailableException(inner)
8252 }
8253 crate::operation::transfer_certificate::TransferCertificateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
8254 crate::operation::transfer_certificate::TransferCertificateError::TransferConflictException(inner) => {
8255 Error::TransferConflictException(inner)
8256 }
8257 crate::operation::transfer_certificate::TransferCertificateError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
8258 crate::operation::transfer_certificate::TransferCertificateError::Unhandled(inner) => Error::Unhandled(inner),
8259 }
8260 }
8261}
8262impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
8263where
8264 R: Send + Sync + std::fmt::Debug + 'static,
8265{
8266 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
8267 match err {
8268 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8269 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8270 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8271 source: err.into(),
8272 }),
8273 }
8274 }
8275}
8276impl From<crate::operation::untag_resource::UntagResourceError> for Error {
8277 fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
8278 match err {
8279 crate::operation::untag_resource::UntagResourceError::InternalFailureException(inner) => Error::InternalFailureException(inner),
8280 crate::operation::untag_resource::UntagResourceError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
8281 crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
8282 crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
8283 crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
8284 }
8285 }
8286}
8287impl<R>
8288 From<
8289 ::aws_smithy_runtime_api::client::result::SdkError<
8290 crate::operation::update_account_audit_configuration::UpdateAccountAuditConfigurationError,
8291 R,
8292 >,
8293 > for Error
8294where
8295 R: Send + Sync + std::fmt::Debug + 'static,
8296{
8297 fn from(
8298 err: ::aws_smithy_runtime_api::client::result::SdkError<
8299 crate::operation::update_account_audit_configuration::UpdateAccountAuditConfigurationError,
8300 R,
8301 >,
8302 ) -> Self {
8303 match err {
8304 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8305 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8306 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8307 source: err.into(),
8308 }),
8309 }
8310 }
8311}
8312impl From<crate::operation::update_account_audit_configuration::UpdateAccountAuditConfigurationError> for Error {
8313 fn from(err: crate::operation::update_account_audit_configuration::UpdateAccountAuditConfigurationError) -> Self {
8314 match err {
8315 crate::operation::update_account_audit_configuration::UpdateAccountAuditConfigurationError::InternalFailureException(inner) => {
8316 Error::InternalFailureException(inner)
8317 }
8318 crate::operation::update_account_audit_configuration::UpdateAccountAuditConfigurationError::InvalidRequestException(inner) => {
8319 Error::InvalidRequestException(inner)
8320 }
8321 crate::operation::update_account_audit_configuration::UpdateAccountAuditConfigurationError::ThrottlingException(inner) => {
8322 Error::ThrottlingException(inner)
8323 }
8324 crate::operation::update_account_audit_configuration::UpdateAccountAuditConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
8325 }
8326 }
8327}
8328impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_audit_suppression::UpdateAuditSuppressionError, R>> for Error
8329where
8330 R: Send + Sync + std::fmt::Debug + 'static,
8331{
8332 fn from(
8333 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_audit_suppression::UpdateAuditSuppressionError, R>,
8334 ) -> Self {
8335 match err {
8336 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8337 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8338 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8339 source: err.into(),
8340 }),
8341 }
8342 }
8343}
8344impl From<crate::operation::update_audit_suppression::UpdateAuditSuppressionError> for Error {
8345 fn from(err: crate::operation::update_audit_suppression::UpdateAuditSuppressionError) -> Self {
8346 match err {
8347 crate::operation::update_audit_suppression::UpdateAuditSuppressionError::InternalFailureException(inner) => {
8348 Error::InternalFailureException(inner)
8349 }
8350 crate::operation::update_audit_suppression::UpdateAuditSuppressionError::InvalidRequestException(inner) => {
8351 Error::InvalidRequestException(inner)
8352 }
8353 crate::operation::update_audit_suppression::UpdateAuditSuppressionError::ResourceNotFoundException(inner) => {
8354 Error::ResourceNotFoundException(inner)
8355 }
8356 crate::operation::update_audit_suppression::UpdateAuditSuppressionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
8357 crate::operation::update_audit_suppression::UpdateAuditSuppressionError::Unhandled(inner) => Error::Unhandled(inner),
8358 }
8359 }
8360}
8361impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_authorizer::UpdateAuthorizerError, R>> for Error
8362where
8363 R: Send + Sync + std::fmt::Debug + 'static,
8364{
8365 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_authorizer::UpdateAuthorizerError, R>) -> Self {
8366 match err {
8367 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8368 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8369 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8370 source: err.into(),
8371 }),
8372 }
8373 }
8374}
8375impl From<crate::operation::update_authorizer::UpdateAuthorizerError> for Error {
8376 fn from(err: crate::operation::update_authorizer::UpdateAuthorizerError) -> Self {
8377 match err {
8378 crate::operation::update_authorizer::UpdateAuthorizerError::InternalFailureException(inner) => Error::InternalFailureException(inner),
8379 crate::operation::update_authorizer::UpdateAuthorizerError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
8380 crate::operation::update_authorizer::UpdateAuthorizerError::LimitExceededException(inner) => Error::LimitExceededException(inner),
8381 crate::operation::update_authorizer::UpdateAuthorizerError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
8382 crate::operation::update_authorizer::UpdateAuthorizerError::ServiceUnavailableException(inner) => {
8383 Error::ServiceUnavailableException(inner)
8384 }
8385 crate::operation::update_authorizer::UpdateAuthorizerError::ThrottlingException(inner) => Error::ThrottlingException(inner),
8386 crate::operation::update_authorizer::UpdateAuthorizerError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
8387 crate::operation::update_authorizer::UpdateAuthorizerError::Unhandled(inner) => Error::Unhandled(inner),
8388 }
8389 }
8390}
8391impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_billing_group::UpdateBillingGroupError, R>> for Error
8392where
8393 R: Send + Sync + std::fmt::Debug + 'static,
8394{
8395 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_billing_group::UpdateBillingGroupError, R>) -> Self {
8396 match err {
8397 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8398 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8399 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8400 source: err.into(),
8401 }),
8402 }
8403 }
8404}
8405impl From<crate::operation::update_billing_group::UpdateBillingGroupError> for Error {
8406 fn from(err: crate::operation::update_billing_group::UpdateBillingGroupError) -> Self {
8407 match err {
8408 crate::operation::update_billing_group::UpdateBillingGroupError::InternalFailureException(inner) => {
8409 Error::InternalFailureException(inner)
8410 }
8411 crate::operation::update_billing_group::UpdateBillingGroupError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
8412 crate::operation::update_billing_group::UpdateBillingGroupError::ResourceNotFoundException(inner) => {
8413 Error::ResourceNotFoundException(inner)
8414 }
8415 crate::operation::update_billing_group::UpdateBillingGroupError::ThrottlingException(inner) => Error::ThrottlingException(inner),
8416 crate::operation::update_billing_group::UpdateBillingGroupError::VersionConflictException(inner) => {
8417 Error::VersionConflictException(inner)
8418 }
8419 crate::operation::update_billing_group::UpdateBillingGroupError::Unhandled(inner) => Error::Unhandled(inner),
8420 }
8421 }
8422}
8423impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_ca_certificate::UpdateCACertificateError, R>> for Error
8424where
8425 R: Send + Sync + std::fmt::Debug + 'static,
8426{
8427 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_ca_certificate::UpdateCACertificateError, R>) -> Self {
8428 match err {
8429 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8430 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8431 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8432 source: err.into(),
8433 }),
8434 }
8435 }
8436}
8437impl From<crate::operation::update_ca_certificate::UpdateCACertificateError> for Error {
8438 fn from(err: crate::operation::update_ca_certificate::UpdateCACertificateError) -> Self {
8439 match err {
8440 crate::operation::update_ca_certificate::UpdateCACertificateError::InternalFailureException(inner) => {
8441 Error::InternalFailureException(inner)
8442 }
8443 crate::operation::update_ca_certificate::UpdateCACertificateError::InvalidRequestException(inner) => {
8444 Error::InvalidRequestException(inner)
8445 }
8446 crate::operation::update_ca_certificate::UpdateCACertificateError::ResourceNotFoundException(inner) => {
8447 Error::ResourceNotFoundException(inner)
8448 }
8449 crate::operation::update_ca_certificate::UpdateCACertificateError::ServiceUnavailableException(inner) => {
8450 Error::ServiceUnavailableException(inner)
8451 }
8452 crate::operation::update_ca_certificate::UpdateCACertificateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
8453 crate::operation::update_ca_certificate::UpdateCACertificateError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
8454 crate::operation::update_ca_certificate::UpdateCACertificateError::Unhandled(inner) => Error::Unhandled(inner),
8455 }
8456 }
8457}
8458impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_certificate::UpdateCertificateError, R>> for Error
8459where
8460 R: Send + Sync + std::fmt::Debug + 'static,
8461{
8462 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_certificate::UpdateCertificateError, R>) -> Self {
8463 match err {
8464 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8465 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8466 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8467 source: err.into(),
8468 }),
8469 }
8470 }
8471}
8472impl From<crate::operation::update_certificate::UpdateCertificateError> for Error {
8473 fn from(err: crate::operation::update_certificate::UpdateCertificateError) -> Self {
8474 match err {
8475 crate::operation::update_certificate::UpdateCertificateError::CertificateStateException(inner) => Error::CertificateStateException(inner),
8476 crate::operation::update_certificate::UpdateCertificateError::InternalFailureException(inner) => Error::InternalFailureException(inner),
8477 crate::operation::update_certificate::UpdateCertificateError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
8478 crate::operation::update_certificate::UpdateCertificateError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
8479 crate::operation::update_certificate::UpdateCertificateError::ServiceUnavailableException(inner) => {
8480 Error::ServiceUnavailableException(inner)
8481 }
8482 crate::operation::update_certificate::UpdateCertificateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
8483 crate::operation::update_certificate::UpdateCertificateError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
8484 crate::operation::update_certificate::UpdateCertificateError::Unhandled(inner) => Error::Unhandled(inner),
8485 }
8486 }
8487}
8488impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_certificate_provider::UpdateCertificateProviderError, R>>
8489 for Error
8490where
8491 R: Send + Sync + std::fmt::Debug + 'static,
8492{
8493 fn from(
8494 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_certificate_provider::UpdateCertificateProviderError, R>,
8495 ) -> Self {
8496 match err {
8497 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8498 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8499 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8500 source: err.into(),
8501 }),
8502 }
8503 }
8504}
8505impl From<crate::operation::update_certificate_provider::UpdateCertificateProviderError> for Error {
8506 fn from(err: crate::operation::update_certificate_provider::UpdateCertificateProviderError) -> Self {
8507 match err {
8508 crate::operation::update_certificate_provider::UpdateCertificateProviderError::InternalFailureException(inner) => {
8509 Error::InternalFailureException(inner)
8510 }
8511 crate::operation::update_certificate_provider::UpdateCertificateProviderError::InvalidRequestException(inner) => {
8512 Error::InvalidRequestException(inner)
8513 }
8514 crate::operation::update_certificate_provider::UpdateCertificateProviderError::ResourceNotFoundException(inner) => {
8515 Error::ResourceNotFoundException(inner)
8516 }
8517 crate::operation::update_certificate_provider::UpdateCertificateProviderError::ServiceUnavailableException(inner) => {
8518 Error::ServiceUnavailableException(inner)
8519 }
8520 crate::operation::update_certificate_provider::UpdateCertificateProviderError::ThrottlingException(inner) => {
8521 Error::ThrottlingException(inner)
8522 }
8523 crate::operation::update_certificate_provider::UpdateCertificateProviderError::UnauthorizedException(inner) => {
8524 Error::UnauthorizedException(inner)
8525 }
8526 crate::operation::update_certificate_provider::UpdateCertificateProviderError::Unhandled(inner) => Error::Unhandled(inner),
8527 }
8528 }
8529}
8530impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_command::UpdateCommandError, R>> for Error
8531where
8532 R: Send + Sync + std::fmt::Debug + 'static,
8533{
8534 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_command::UpdateCommandError, R>) -> Self {
8535 match err {
8536 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8537 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8538 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8539 source: err.into(),
8540 }),
8541 }
8542 }
8543}
8544impl From<crate::operation::update_command::UpdateCommandError> for Error {
8545 fn from(err: crate::operation::update_command::UpdateCommandError) -> Self {
8546 match err {
8547 crate::operation::update_command::UpdateCommandError::ConflictException(inner) => Error::ConflictException(inner),
8548 crate::operation::update_command::UpdateCommandError::InternalServerException(inner) => Error::InternalServerException(inner),
8549 crate::operation::update_command::UpdateCommandError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
8550 crate::operation::update_command::UpdateCommandError::ThrottlingException(inner) => Error::ThrottlingException(inner),
8551 crate::operation::update_command::UpdateCommandError::ValidationException(inner) => Error::ValidationException(inner),
8552 crate::operation::update_command::UpdateCommandError::Unhandled(inner) => Error::Unhandled(inner),
8553 }
8554 }
8555}
8556impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_custom_metric::UpdateCustomMetricError, R>> for Error
8557where
8558 R: Send + Sync + std::fmt::Debug + 'static,
8559{
8560 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_custom_metric::UpdateCustomMetricError, R>) -> Self {
8561 match err {
8562 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8563 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8564 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8565 source: err.into(),
8566 }),
8567 }
8568 }
8569}
8570impl From<crate::operation::update_custom_metric::UpdateCustomMetricError> for Error {
8571 fn from(err: crate::operation::update_custom_metric::UpdateCustomMetricError) -> Self {
8572 match err {
8573 crate::operation::update_custom_metric::UpdateCustomMetricError::InternalFailureException(inner) => {
8574 Error::InternalFailureException(inner)
8575 }
8576 crate::operation::update_custom_metric::UpdateCustomMetricError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
8577 crate::operation::update_custom_metric::UpdateCustomMetricError::ResourceNotFoundException(inner) => {
8578 Error::ResourceNotFoundException(inner)
8579 }
8580 crate::operation::update_custom_metric::UpdateCustomMetricError::ThrottlingException(inner) => Error::ThrottlingException(inner),
8581 crate::operation::update_custom_metric::UpdateCustomMetricError::Unhandled(inner) => Error::Unhandled(inner),
8582 }
8583 }
8584}
8585impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_dimension::UpdateDimensionError, R>> for Error
8586where
8587 R: Send + Sync + std::fmt::Debug + 'static,
8588{
8589 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_dimension::UpdateDimensionError, R>) -> Self {
8590 match err {
8591 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8592 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8593 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8594 source: err.into(),
8595 }),
8596 }
8597 }
8598}
8599impl From<crate::operation::update_dimension::UpdateDimensionError> for Error {
8600 fn from(err: crate::operation::update_dimension::UpdateDimensionError) -> Self {
8601 match err {
8602 crate::operation::update_dimension::UpdateDimensionError::InternalFailureException(inner) => Error::InternalFailureException(inner),
8603 crate::operation::update_dimension::UpdateDimensionError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
8604 crate::operation::update_dimension::UpdateDimensionError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
8605 crate::operation::update_dimension::UpdateDimensionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
8606 crate::operation::update_dimension::UpdateDimensionError::Unhandled(inner) => Error::Unhandled(inner),
8607 }
8608 }
8609}
8610impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_domain_configuration::UpdateDomainConfigurationError, R>>
8611 for Error
8612where
8613 R: Send + Sync + std::fmt::Debug + 'static,
8614{
8615 fn from(
8616 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_domain_configuration::UpdateDomainConfigurationError, R>,
8617 ) -> Self {
8618 match err {
8619 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8620 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8621 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8622 source: err.into(),
8623 }),
8624 }
8625 }
8626}
8627impl From<crate::operation::update_domain_configuration::UpdateDomainConfigurationError> for Error {
8628 fn from(err: crate::operation::update_domain_configuration::UpdateDomainConfigurationError) -> Self {
8629 match err {
8630 crate::operation::update_domain_configuration::UpdateDomainConfigurationError::CertificateValidationException(inner) => {
8631 Error::CertificateValidationException(inner)
8632 }
8633 crate::operation::update_domain_configuration::UpdateDomainConfigurationError::InternalFailureException(inner) => {
8634 Error::InternalFailureException(inner)
8635 }
8636 crate::operation::update_domain_configuration::UpdateDomainConfigurationError::InvalidRequestException(inner) => {
8637 Error::InvalidRequestException(inner)
8638 }
8639 crate::operation::update_domain_configuration::UpdateDomainConfigurationError::ResourceNotFoundException(inner) => {
8640 Error::ResourceNotFoundException(inner)
8641 }
8642 crate::operation::update_domain_configuration::UpdateDomainConfigurationError::ServiceUnavailableException(inner) => {
8643 Error::ServiceUnavailableException(inner)
8644 }
8645 crate::operation::update_domain_configuration::UpdateDomainConfigurationError::ThrottlingException(inner) => {
8646 Error::ThrottlingException(inner)
8647 }
8648 crate::operation::update_domain_configuration::UpdateDomainConfigurationError::UnauthorizedException(inner) => {
8649 Error::UnauthorizedException(inner)
8650 }
8651 crate::operation::update_domain_configuration::UpdateDomainConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
8652 }
8653 }
8654}
8655impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_dynamic_thing_group::UpdateDynamicThingGroupError, R>>
8656 for Error
8657where
8658 R: Send + Sync + std::fmt::Debug + 'static,
8659{
8660 fn from(
8661 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_dynamic_thing_group::UpdateDynamicThingGroupError, R>,
8662 ) -> Self {
8663 match err {
8664 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8665 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8666 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8667 source: err.into(),
8668 }),
8669 }
8670 }
8671}
8672impl From<crate::operation::update_dynamic_thing_group::UpdateDynamicThingGroupError> for Error {
8673 fn from(err: crate::operation::update_dynamic_thing_group::UpdateDynamicThingGroupError) -> Self {
8674 match err {
8675 crate::operation::update_dynamic_thing_group::UpdateDynamicThingGroupError::InternalFailureException(inner) => {
8676 Error::InternalFailureException(inner)
8677 }
8678 crate::operation::update_dynamic_thing_group::UpdateDynamicThingGroupError::InvalidQueryException(inner) => {
8679 Error::InvalidQueryException(inner)
8680 }
8681 crate::operation::update_dynamic_thing_group::UpdateDynamicThingGroupError::InvalidRequestException(inner) => {
8682 Error::InvalidRequestException(inner)
8683 }
8684 crate::operation::update_dynamic_thing_group::UpdateDynamicThingGroupError::ResourceNotFoundException(inner) => {
8685 Error::ResourceNotFoundException(inner)
8686 }
8687 crate::operation::update_dynamic_thing_group::UpdateDynamicThingGroupError::ThrottlingException(inner) => {
8688 Error::ThrottlingException(inner)
8689 }
8690 crate::operation::update_dynamic_thing_group::UpdateDynamicThingGroupError::VersionConflictException(inner) => {
8691 Error::VersionConflictException(inner)
8692 }
8693 crate::operation::update_dynamic_thing_group::UpdateDynamicThingGroupError::Unhandled(inner) => Error::Unhandled(inner),
8694 }
8695 }
8696}
8697impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_event_configurations::UpdateEventConfigurationsError, R>>
8698 for Error
8699where
8700 R: Send + Sync + std::fmt::Debug + 'static,
8701{
8702 fn from(
8703 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_event_configurations::UpdateEventConfigurationsError, R>,
8704 ) -> Self {
8705 match err {
8706 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8707 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8708 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8709 source: err.into(),
8710 }),
8711 }
8712 }
8713}
8714impl From<crate::operation::update_event_configurations::UpdateEventConfigurationsError> for Error {
8715 fn from(err: crate::operation::update_event_configurations::UpdateEventConfigurationsError) -> Self {
8716 match err {
8717 crate::operation::update_event_configurations::UpdateEventConfigurationsError::InternalFailureException(inner) => {
8718 Error::InternalFailureException(inner)
8719 }
8720 crate::operation::update_event_configurations::UpdateEventConfigurationsError::InvalidRequestException(inner) => {
8721 Error::InvalidRequestException(inner)
8722 }
8723 crate::operation::update_event_configurations::UpdateEventConfigurationsError::ThrottlingException(inner) => {
8724 Error::ThrottlingException(inner)
8725 }
8726 crate::operation::update_event_configurations::UpdateEventConfigurationsError::Unhandled(inner) => Error::Unhandled(inner),
8727 }
8728 }
8729}
8730impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_fleet_metric::UpdateFleetMetricError, R>> for Error
8731where
8732 R: Send + Sync + std::fmt::Debug + 'static,
8733{
8734 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_fleet_metric::UpdateFleetMetricError, R>) -> Self {
8735 match err {
8736 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8737 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8738 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8739 source: err.into(),
8740 }),
8741 }
8742 }
8743}
8744impl From<crate::operation::update_fleet_metric::UpdateFleetMetricError> for Error {
8745 fn from(err: crate::operation::update_fleet_metric::UpdateFleetMetricError) -> Self {
8746 match err {
8747 crate::operation::update_fleet_metric::UpdateFleetMetricError::IndexNotReadyException(inner) => Error::IndexNotReadyException(inner),
8748 crate::operation::update_fleet_metric::UpdateFleetMetricError::InternalFailureException(inner) => Error::InternalFailureException(inner),
8749 crate::operation::update_fleet_metric::UpdateFleetMetricError::InvalidAggregationException(inner) => {
8750 Error::InvalidAggregationException(inner)
8751 }
8752 crate::operation::update_fleet_metric::UpdateFleetMetricError::InvalidQueryException(inner) => Error::InvalidQueryException(inner),
8753 crate::operation::update_fleet_metric::UpdateFleetMetricError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
8754 crate::operation::update_fleet_metric::UpdateFleetMetricError::ResourceNotFoundException(inner) => {
8755 Error::ResourceNotFoundException(inner)
8756 }
8757 crate::operation::update_fleet_metric::UpdateFleetMetricError::ServiceUnavailableException(inner) => {
8758 Error::ServiceUnavailableException(inner)
8759 }
8760 crate::operation::update_fleet_metric::UpdateFleetMetricError::ThrottlingException(inner) => Error::ThrottlingException(inner),
8761 crate::operation::update_fleet_metric::UpdateFleetMetricError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
8762 crate::operation::update_fleet_metric::UpdateFleetMetricError::VersionConflictException(inner) => Error::VersionConflictException(inner),
8763 crate::operation::update_fleet_metric::UpdateFleetMetricError::Unhandled(inner) => Error::Unhandled(inner),
8764 }
8765 }
8766}
8767impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_indexing_configuration::UpdateIndexingConfigurationError, R>>
8768 for Error
8769where
8770 R: Send + Sync + std::fmt::Debug + 'static,
8771{
8772 fn from(
8773 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_indexing_configuration::UpdateIndexingConfigurationError, R>,
8774 ) -> Self {
8775 match err {
8776 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8777 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8778 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8779 source: err.into(),
8780 }),
8781 }
8782 }
8783}
8784impl From<crate::operation::update_indexing_configuration::UpdateIndexingConfigurationError> for Error {
8785 fn from(err: crate::operation::update_indexing_configuration::UpdateIndexingConfigurationError) -> Self {
8786 match err {
8787 crate::operation::update_indexing_configuration::UpdateIndexingConfigurationError::InternalFailureException(inner) => {
8788 Error::InternalFailureException(inner)
8789 }
8790 crate::operation::update_indexing_configuration::UpdateIndexingConfigurationError::InvalidRequestException(inner) => {
8791 Error::InvalidRequestException(inner)
8792 }
8793 crate::operation::update_indexing_configuration::UpdateIndexingConfigurationError::ServiceUnavailableException(inner) => {
8794 Error::ServiceUnavailableException(inner)
8795 }
8796 crate::operation::update_indexing_configuration::UpdateIndexingConfigurationError::ThrottlingException(inner) => {
8797 Error::ThrottlingException(inner)
8798 }
8799 crate::operation::update_indexing_configuration::UpdateIndexingConfigurationError::UnauthorizedException(inner) => {
8800 Error::UnauthorizedException(inner)
8801 }
8802 crate::operation::update_indexing_configuration::UpdateIndexingConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
8803 }
8804 }
8805}
8806impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_job::UpdateJobError, R>> for Error
8807where
8808 R: Send + Sync + std::fmt::Debug + 'static,
8809{
8810 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_job::UpdateJobError, R>) -> Self {
8811 match err {
8812 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8813 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8814 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8815 source: err.into(),
8816 }),
8817 }
8818 }
8819}
8820impl From<crate::operation::update_job::UpdateJobError> for Error {
8821 fn from(err: crate::operation::update_job::UpdateJobError) -> Self {
8822 match err {
8823 crate::operation::update_job::UpdateJobError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
8824 crate::operation::update_job::UpdateJobError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
8825 crate::operation::update_job::UpdateJobError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
8826 crate::operation::update_job::UpdateJobError::ThrottlingException(inner) => Error::ThrottlingException(inner),
8827 crate::operation::update_job::UpdateJobError::Unhandled(inner) => Error::Unhandled(inner),
8828 }
8829 }
8830}
8831impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_mitigation_action::UpdateMitigationActionError, R>> for Error
8832where
8833 R: Send + Sync + std::fmt::Debug + 'static,
8834{
8835 fn from(
8836 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_mitigation_action::UpdateMitigationActionError, R>,
8837 ) -> Self {
8838 match err {
8839 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8840 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8841 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8842 source: err.into(),
8843 }),
8844 }
8845 }
8846}
8847impl From<crate::operation::update_mitigation_action::UpdateMitigationActionError> for Error {
8848 fn from(err: crate::operation::update_mitigation_action::UpdateMitigationActionError) -> Self {
8849 match err {
8850 crate::operation::update_mitigation_action::UpdateMitigationActionError::InternalFailureException(inner) => {
8851 Error::InternalFailureException(inner)
8852 }
8853 crate::operation::update_mitigation_action::UpdateMitigationActionError::InvalidRequestException(inner) => {
8854 Error::InvalidRequestException(inner)
8855 }
8856 crate::operation::update_mitigation_action::UpdateMitigationActionError::ResourceNotFoundException(inner) => {
8857 Error::ResourceNotFoundException(inner)
8858 }
8859 crate::operation::update_mitigation_action::UpdateMitigationActionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
8860 crate::operation::update_mitigation_action::UpdateMitigationActionError::Unhandled(inner) => Error::Unhandled(inner),
8861 }
8862 }
8863}
8864impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_package::UpdatePackageError, R>> for Error
8865where
8866 R: Send + Sync + std::fmt::Debug + 'static,
8867{
8868 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_package::UpdatePackageError, R>) -> Self {
8869 match err {
8870 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8871 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8872 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8873 source: err.into(),
8874 }),
8875 }
8876 }
8877}
8878impl From<crate::operation::update_package::UpdatePackageError> for Error {
8879 fn from(err: crate::operation::update_package::UpdatePackageError) -> Self {
8880 match err {
8881 crate::operation::update_package::UpdatePackageError::ConflictException(inner) => Error::ConflictException(inner),
8882 crate::operation::update_package::UpdatePackageError::InternalServerException(inner) => Error::InternalServerException(inner),
8883 crate::operation::update_package::UpdatePackageError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
8884 crate::operation::update_package::UpdatePackageError::ThrottlingException(inner) => Error::ThrottlingException(inner),
8885 crate::operation::update_package::UpdatePackageError::ValidationException(inner) => Error::ValidationException(inner),
8886 crate::operation::update_package::UpdatePackageError::Unhandled(inner) => Error::Unhandled(inner),
8887 }
8888 }
8889}
8890impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_package_configuration::UpdatePackageConfigurationError, R>>
8891 for Error
8892where
8893 R: Send + Sync + std::fmt::Debug + 'static,
8894{
8895 fn from(
8896 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_package_configuration::UpdatePackageConfigurationError, R>,
8897 ) -> Self {
8898 match err {
8899 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8900 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8901 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8902 source: err.into(),
8903 }),
8904 }
8905 }
8906}
8907impl From<crate::operation::update_package_configuration::UpdatePackageConfigurationError> for Error {
8908 fn from(err: crate::operation::update_package_configuration::UpdatePackageConfigurationError) -> Self {
8909 match err {
8910 crate::operation::update_package_configuration::UpdatePackageConfigurationError::ConflictException(inner) => {
8911 Error::ConflictException(inner)
8912 }
8913 crate::operation::update_package_configuration::UpdatePackageConfigurationError::InternalServerException(inner) => {
8914 Error::InternalServerException(inner)
8915 }
8916 crate::operation::update_package_configuration::UpdatePackageConfigurationError::ThrottlingException(inner) => {
8917 Error::ThrottlingException(inner)
8918 }
8919 crate::operation::update_package_configuration::UpdatePackageConfigurationError::ValidationException(inner) => {
8920 Error::ValidationException(inner)
8921 }
8922 crate::operation::update_package_configuration::UpdatePackageConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
8923 }
8924 }
8925}
8926impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_package_version::UpdatePackageVersionError, R>> for Error
8927where
8928 R: Send + Sync + std::fmt::Debug + 'static,
8929{
8930 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_package_version::UpdatePackageVersionError, R>) -> Self {
8931 match err {
8932 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8933 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8934 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8935 source: err.into(),
8936 }),
8937 }
8938 }
8939}
8940impl From<crate::operation::update_package_version::UpdatePackageVersionError> for Error {
8941 fn from(err: crate::operation::update_package_version::UpdatePackageVersionError) -> Self {
8942 match err {
8943 crate::operation::update_package_version::UpdatePackageVersionError::ConflictException(inner) => Error::ConflictException(inner),
8944 crate::operation::update_package_version::UpdatePackageVersionError::InternalServerException(inner) => {
8945 Error::InternalServerException(inner)
8946 }
8947 crate::operation::update_package_version::UpdatePackageVersionError::ResourceNotFoundException(inner) => {
8948 Error::ResourceNotFoundException(inner)
8949 }
8950 crate::operation::update_package_version::UpdatePackageVersionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
8951 crate::operation::update_package_version::UpdatePackageVersionError::ValidationException(inner) => Error::ValidationException(inner),
8952 crate::operation::update_package_version::UpdatePackageVersionError::Unhandled(inner) => Error::Unhandled(inner),
8953 }
8954 }
8955}
8956impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_provisioning_template::UpdateProvisioningTemplateError, R>>
8957 for Error
8958where
8959 R: Send + Sync + std::fmt::Debug + 'static,
8960{
8961 fn from(
8962 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_provisioning_template::UpdateProvisioningTemplateError, R>,
8963 ) -> Self {
8964 match err {
8965 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8966 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8967 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8968 source: err.into(),
8969 }),
8970 }
8971 }
8972}
8973impl From<crate::operation::update_provisioning_template::UpdateProvisioningTemplateError> for Error {
8974 fn from(err: crate::operation::update_provisioning_template::UpdateProvisioningTemplateError) -> Self {
8975 match err {
8976 crate::operation::update_provisioning_template::UpdateProvisioningTemplateError::ConflictingResourceUpdateException(inner) => {
8977 Error::ConflictingResourceUpdateException(inner)
8978 }
8979 crate::operation::update_provisioning_template::UpdateProvisioningTemplateError::InternalFailureException(inner) => {
8980 Error::InternalFailureException(inner)
8981 }
8982 crate::operation::update_provisioning_template::UpdateProvisioningTemplateError::InvalidRequestException(inner) => {
8983 Error::InvalidRequestException(inner)
8984 }
8985 crate::operation::update_provisioning_template::UpdateProvisioningTemplateError::ResourceNotFoundException(inner) => {
8986 Error::ResourceNotFoundException(inner)
8987 }
8988 crate::operation::update_provisioning_template::UpdateProvisioningTemplateError::UnauthorizedException(inner) => {
8989 Error::UnauthorizedException(inner)
8990 }
8991 crate::operation::update_provisioning_template::UpdateProvisioningTemplateError::Unhandled(inner) => Error::Unhandled(inner),
8992 }
8993 }
8994}
8995impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_role_alias::UpdateRoleAliasError, R>> for Error
8996where
8997 R: Send + Sync + std::fmt::Debug + 'static,
8998{
8999 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_role_alias::UpdateRoleAliasError, R>) -> Self {
9000 match err {
9001 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9002 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9003 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9004 source: err.into(),
9005 }),
9006 }
9007 }
9008}
9009impl From<crate::operation::update_role_alias::UpdateRoleAliasError> for Error {
9010 fn from(err: crate::operation::update_role_alias::UpdateRoleAliasError) -> Self {
9011 match err {
9012 crate::operation::update_role_alias::UpdateRoleAliasError::InternalFailureException(inner) => Error::InternalFailureException(inner),
9013 crate::operation::update_role_alias::UpdateRoleAliasError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
9014 crate::operation::update_role_alias::UpdateRoleAliasError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
9015 crate::operation::update_role_alias::UpdateRoleAliasError::ServiceUnavailableException(inner) => {
9016 Error::ServiceUnavailableException(inner)
9017 }
9018 crate::operation::update_role_alias::UpdateRoleAliasError::ThrottlingException(inner) => Error::ThrottlingException(inner),
9019 crate::operation::update_role_alias::UpdateRoleAliasError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
9020 crate::operation::update_role_alias::UpdateRoleAliasError::Unhandled(inner) => Error::Unhandled(inner),
9021 }
9022 }
9023}
9024impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_scheduled_audit::UpdateScheduledAuditError, R>> for Error
9025where
9026 R: Send + Sync + std::fmt::Debug + 'static,
9027{
9028 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_scheduled_audit::UpdateScheduledAuditError, R>) -> Self {
9029 match err {
9030 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9031 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9032 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9033 source: err.into(),
9034 }),
9035 }
9036 }
9037}
9038impl From<crate::operation::update_scheduled_audit::UpdateScheduledAuditError> for Error {
9039 fn from(err: crate::operation::update_scheduled_audit::UpdateScheduledAuditError) -> Self {
9040 match err {
9041 crate::operation::update_scheduled_audit::UpdateScheduledAuditError::InternalFailureException(inner) => {
9042 Error::InternalFailureException(inner)
9043 }
9044 crate::operation::update_scheduled_audit::UpdateScheduledAuditError::InvalidRequestException(inner) => {
9045 Error::InvalidRequestException(inner)
9046 }
9047 crate::operation::update_scheduled_audit::UpdateScheduledAuditError::ResourceNotFoundException(inner) => {
9048 Error::ResourceNotFoundException(inner)
9049 }
9050 crate::operation::update_scheduled_audit::UpdateScheduledAuditError::ThrottlingException(inner) => Error::ThrottlingException(inner),
9051 crate::operation::update_scheduled_audit::UpdateScheduledAuditError::Unhandled(inner) => Error::Unhandled(inner),
9052 }
9053 }
9054}
9055impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_security_profile::UpdateSecurityProfileError, R>> for Error
9056where
9057 R: Send + Sync + std::fmt::Debug + 'static,
9058{
9059 fn from(
9060 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_security_profile::UpdateSecurityProfileError, R>,
9061 ) -> Self {
9062 match err {
9063 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9064 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9065 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9066 source: err.into(),
9067 }),
9068 }
9069 }
9070}
9071impl From<crate::operation::update_security_profile::UpdateSecurityProfileError> for Error {
9072 fn from(err: crate::operation::update_security_profile::UpdateSecurityProfileError) -> Self {
9073 match err {
9074 crate::operation::update_security_profile::UpdateSecurityProfileError::InternalFailureException(inner) => {
9075 Error::InternalFailureException(inner)
9076 }
9077 crate::operation::update_security_profile::UpdateSecurityProfileError::InvalidRequestException(inner) => {
9078 Error::InvalidRequestException(inner)
9079 }
9080 crate::operation::update_security_profile::UpdateSecurityProfileError::ResourceNotFoundException(inner) => {
9081 Error::ResourceNotFoundException(inner)
9082 }
9083 crate::operation::update_security_profile::UpdateSecurityProfileError::ThrottlingException(inner) => Error::ThrottlingException(inner),
9084 crate::operation::update_security_profile::UpdateSecurityProfileError::VersionConflictException(inner) => {
9085 Error::VersionConflictException(inner)
9086 }
9087 crate::operation::update_security_profile::UpdateSecurityProfileError::Unhandled(inner) => Error::Unhandled(inner),
9088 }
9089 }
9090}
9091impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_stream::UpdateStreamError, R>> for Error
9092where
9093 R: Send + Sync + std::fmt::Debug + 'static,
9094{
9095 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_stream::UpdateStreamError, R>) -> Self {
9096 match err {
9097 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9098 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9099 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9100 source: err.into(),
9101 }),
9102 }
9103 }
9104}
9105impl From<crate::operation::update_stream::UpdateStreamError> for Error {
9106 fn from(err: crate::operation::update_stream::UpdateStreamError) -> Self {
9107 match err {
9108 crate::operation::update_stream::UpdateStreamError::InternalFailureException(inner) => Error::InternalFailureException(inner),
9109 crate::operation::update_stream::UpdateStreamError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
9110 crate::operation::update_stream::UpdateStreamError::LimitExceededException(inner) => Error::LimitExceededException(inner),
9111 crate::operation::update_stream::UpdateStreamError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
9112 crate::operation::update_stream::UpdateStreamError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
9113 crate::operation::update_stream::UpdateStreamError::ThrottlingException(inner) => Error::ThrottlingException(inner),
9114 crate::operation::update_stream::UpdateStreamError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
9115 crate::operation::update_stream::UpdateStreamError::Unhandled(inner) => Error::Unhandled(inner),
9116 }
9117 }
9118}
9119impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_thing::UpdateThingError, R>> for Error
9120where
9121 R: Send + Sync + std::fmt::Debug + 'static,
9122{
9123 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_thing::UpdateThingError, R>) -> Self {
9124 match err {
9125 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9126 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9127 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9128 source: err.into(),
9129 }),
9130 }
9131 }
9132}
9133impl From<crate::operation::update_thing::UpdateThingError> for Error {
9134 fn from(err: crate::operation::update_thing::UpdateThingError) -> Self {
9135 match err {
9136 crate::operation::update_thing::UpdateThingError::InternalFailureException(inner) => Error::InternalFailureException(inner),
9137 crate::operation::update_thing::UpdateThingError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
9138 crate::operation::update_thing::UpdateThingError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
9139 crate::operation::update_thing::UpdateThingError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
9140 crate::operation::update_thing::UpdateThingError::ThrottlingException(inner) => Error::ThrottlingException(inner),
9141 crate::operation::update_thing::UpdateThingError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
9142 crate::operation::update_thing::UpdateThingError::VersionConflictException(inner) => Error::VersionConflictException(inner),
9143 crate::operation::update_thing::UpdateThingError::Unhandled(inner) => Error::Unhandled(inner),
9144 }
9145 }
9146}
9147impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_thing_group::UpdateThingGroupError, R>> for Error
9148where
9149 R: Send + Sync + std::fmt::Debug + 'static,
9150{
9151 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_thing_group::UpdateThingGroupError, R>) -> Self {
9152 match err {
9153 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9154 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9155 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9156 source: err.into(),
9157 }),
9158 }
9159 }
9160}
9161impl From<crate::operation::update_thing_group::UpdateThingGroupError> for Error {
9162 fn from(err: crate::operation::update_thing_group::UpdateThingGroupError) -> Self {
9163 match err {
9164 crate::operation::update_thing_group::UpdateThingGroupError::InternalFailureException(inner) => Error::InternalFailureException(inner),
9165 crate::operation::update_thing_group::UpdateThingGroupError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
9166 crate::operation::update_thing_group::UpdateThingGroupError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
9167 crate::operation::update_thing_group::UpdateThingGroupError::ThrottlingException(inner) => Error::ThrottlingException(inner),
9168 crate::operation::update_thing_group::UpdateThingGroupError::VersionConflictException(inner) => Error::VersionConflictException(inner),
9169 crate::operation::update_thing_group::UpdateThingGroupError::Unhandled(inner) => Error::Unhandled(inner),
9170 }
9171 }
9172}
9173impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_thing_groups_for_thing::UpdateThingGroupsForThingError, R>>
9174 for Error
9175where
9176 R: Send + Sync + std::fmt::Debug + 'static,
9177{
9178 fn from(
9179 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_thing_groups_for_thing::UpdateThingGroupsForThingError, R>,
9180 ) -> Self {
9181 match err {
9182 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9183 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9184 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9185 source: err.into(),
9186 }),
9187 }
9188 }
9189}
9190impl From<crate::operation::update_thing_groups_for_thing::UpdateThingGroupsForThingError> for Error {
9191 fn from(err: crate::operation::update_thing_groups_for_thing::UpdateThingGroupsForThingError) -> Self {
9192 match err {
9193 crate::operation::update_thing_groups_for_thing::UpdateThingGroupsForThingError::InternalFailureException(inner) => {
9194 Error::InternalFailureException(inner)
9195 }
9196 crate::operation::update_thing_groups_for_thing::UpdateThingGroupsForThingError::InvalidRequestException(inner) => {
9197 Error::InvalidRequestException(inner)
9198 }
9199 crate::operation::update_thing_groups_for_thing::UpdateThingGroupsForThingError::ResourceNotFoundException(inner) => {
9200 Error::ResourceNotFoundException(inner)
9201 }
9202 crate::operation::update_thing_groups_for_thing::UpdateThingGroupsForThingError::ThrottlingException(inner) => {
9203 Error::ThrottlingException(inner)
9204 }
9205 crate::operation::update_thing_groups_for_thing::UpdateThingGroupsForThingError::Unhandled(inner) => Error::Unhandled(inner),
9206 }
9207 }
9208}
9209impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_thing_type::UpdateThingTypeError, R>> for Error
9210where
9211 R: Send + Sync + std::fmt::Debug + 'static,
9212{
9213 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_thing_type::UpdateThingTypeError, R>) -> Self {
9214 match err {
9215 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9216 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9217 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9218 source: err.into(),
9219 }),
9220 }
9221 }
9222}
9223impl From<crate::operation::update_thing_type::UpdateThingTypeError> for Error {
9224 fn from(err: crate::operation::update_thing_type::UpdateThingTypeError) -> Self {
9225 match err {
9226 crate::operation::update_thing_type::UpdateThingTypeError::InternalFailureException(inner) => Error::InternalFailureException(inner),
9227 crate::operation::update_thing_type::UpdateThingTypeError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
9228 crate::operation::update_thing_type::UpdateThingTypeError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
9229 crate::operation::update_thing_type::UpdateThingTypeError::ServiceUnavailableException(inner) => {
9230 Error::ServiceUnavailableException(inner)
9231 }
9232 crate::operation::update_thing_type::UpdateThingTypeError::ThrottlingException(inner) => Error::ThrottlingException(inner),
9233 crate::operation::update_thing_type::UpdateThingTypeError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
9234 crate::operation::update_thing_type::UpdateThingTypeError::Unhandled(inner) => Error::Unhandled(inner),
9235 }
9236 }
9237}
9238impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_topic_rule_destination::UpdateTopicRuleDestinationError, R>>
9239 for Error
9240where
9241 R: Send + Sync + std::fmt::Debug + 'static,
9242{
9243 fn from(
9244 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_topic_rule_destination::UpdateTopicRuleDestinationError, R>,
9245 ) -> Self {
9246 match err {
9247 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9248 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9249 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9250 source: err.into(),
9251 }),
9252 }
9253 }
9254}
9255impl From<crate::operation::update_topic_rule_destination::UpdateTopicRuleDestinationError> for Error {
9256 fn from(err: crate::operation::update_topic_rule_destination::UpdateTopicRuleDestinationError) -> Self {
9257 match err {
9258 crate::operation::update_topic_rule_destination::UpdateTopicRuleDestinationError::ConflictingResourceUpdateException(inner) => {
9259 Error::ConflictingResourceUpdateException(inner)
9260 }
9261 crate::operation::update_topic_rule_destination::UpdateTopicRuleDestinationError::InternalException(inner) => {
9262 Error::InternalException(inner)
9263 }
9264 crate::operation::update_topic_rule_destination::UpdateTopicRuleDestinationError::InvalidRequestException(inner) => {
9265 Error::InvalidRequestException(inner)
9266 }
9267 crate::operation::update_topic_rule_destination::UpdateTopicRuleDestinationError::ServiceUnavailableException(inner) => {
9268 Error::ServiceUnavailableException(inner)
9269 }
9270 crate::operation::update_topic_rule_destination::UpdateTopicRuleDestinationError::UnauthorizedException(inner) => {
9271 Error::UnauthorizedException(inner)
9272 }
9273 crate::operation::update_topic_rule_destination::UpdateTopicRuleDestinationError::Unhandled(inner) => Error::Unhandled(inner),
9274 }
9275 }
9276}
9277impl<R>
9278 From<
9279 ::aws_smithy_runtime_api::client::result::SdkError<
9280 crate::operation::validate_security_profile_behaviors::ValidateSecurityProfileBehaviorsError,
9281 R,
9282 >,
9283 > for Error
9284where
9285 R: Send + Sync + std::fmt::Debug + 'static,
9286{
9287 fn from(
9288 err: ::aws_smithy_runtime_api::client::result::SdkError<
9289 crate::operation::validate_security_profile_behaviors::ValidateSecurityProfileBehaviorsError,
9290 R,
9291 >,
9292 ) -> Self {
9293 match err {
9294 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9295 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9296 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9297 source: err.into(),
9298 }),
9299 }
9300 }
9301}
9302impl From<crate::operation::validate_security_profile_behaviors::ValidateSecurityProfileBehaviorsError> for Error {
9303 fn from(err: crate::operation::validate_security_profile_behaviors::ValidateSecurityProfileBehaviorsError) -> Self {
9304 match err {
9305 crate::operation::validate_security_profile_behaviors::ValidateSecurityProfileBehaviorsError::InternalFailureException(inner) => {
9306 Error::InternalFailureException(inner)
9307 }
9308 crate::operation::validate_security_profile_behaviors::ValidateSecurityProfileBehaviorsError::InvalidRequestException(inner) => {
9309 Error::InvalidRequestException(inner)
9310 }
9311 crate::operation::validate_security_profile_behaviors::ValidateSecurityProfileBehaviorsError::ThrottlingException(inner) => {
9312 Error::ThrottlingException(inner)
9313 }
9314 crate::operation::validate_security_profile_behaviors::ValidateSecurityProfileBehaviorsError::Unhandled(inner) => Error::Unhandled(inner),
9315 }
9316 }
9317}
9318impl ::std::error::Error for Error {
9319 fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
9320 match self {
9321 Error::CertificateConflictException(inner) => inner.source(),
9322 Error::CertificateStateException(inner) => inner.source(),
9323 Error::CertificateValidationException(inner) => inner.source(),
9324 Error::ConflictException(inner) => inner.source(),
9325 Error::ConflictingResourceUpdateException(inner) => inner.source(),
9326 Error::DeleteConflictException(inner) => inner.source(),
9327 Error::IndexNotReadyException(inner) => inner.source(),
9328 Error::InternalException(inner) => inner.source(),
9329 Error::InternalFailureException(inner) => inner.source(),
9330 Error::InternalServerException(inner) => inner.source(),
9331 Error::InvalidAggregationException(inner) => inner.source(),
9332 Error::InvalidQueryException(inner) => inner.source(),
9333 Error::InvalidRequestException(inner) => inner.source(),
9334 Error::InvalidResponseException(inner) => inner.source(),
9335 Error::InvalidStateTransitionException(inner) => inner.source(),
9336 Error::LimitExceededException(inner) => inner.source(),
9337 Error::MalformedPolicyException(inner) => inner.source(),
9338 Error::NotConfiguredException(inner) => inner.source(),
9339 Error::RegistrationCodeValidationException(inner) => inner.source(),
9340 Error::ResourceAlreadyExistsException(inner) => inner.source(),
9341 Error::ResourceNotFoundException(inner) => inner.source(),
9342 Error::ResourceRegistrationFailureException(inner) => inner.source(),
9343 Error::ServiceQuotaExceededException(inner) => inner.source(),
9344 Error::ServiceUnavailableException(inner) => inner.source(),
9345 Error::SqlParseException(inner) => inner.source(),
9346 Error::TaskAlreadyExistsException(inner) => inner.source(),
9347 Error::ThrottlingException(inner) => inner.source(),
9348 Error::TransferAlreadyCompletedException(inner) => inner.source(),
9349 Error::TransferConflictException(inner) => inner.source(),
9350 Error::UnauthorizedException(inner) => inner.source(),
9351 Error::ValidationException(inner) => inner.source(),
9352 Error::VersionConflictException(inner) => inner.source(),
9353 Error::VersionsLimitExceededException(inner) => inner.source(),
9354 Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
9355 }
9356 }
9357}
9358impl ::aws_types::request_id::RequestId for Error {
9359 fn request_id(&self) -> Option<&str> {
9360 match self {
9361 Self::CertificateConflictException(e) => e.request_id(),
9362 Self::CertificateStateException(e) => e.request_id(),
9363 Self::CertificateValidationException(e) => e.request_id(),
9364 Self::ConflictException(e) => e.request_id(),
9365 Self::ConflictingResourceUpdateException(e) => e.request_id(),
9366 Self::DeleteConflictException(e) => e.request_id(),
9367 Self::IndexNotReadyException(e) => e.request_id(),
9368 Self::InternalException(e) => e.request_id(),
9369 Self::InternalFailureException(e) => e.request_id(),
9370 Self::InternalServerException(e) => e.request_id(),
9371 Self::InvalidAggregationException(e) => e.request_id(),
9372 Self::InvalidQueryException(e) => e.request_id(),
9373 Self::InvalidRequestException(e) => e.request_id(),
9374 Self::InvalidResponseException(e) => e.request_id(),
9375 Self::InvalidStateTransitionException(e) => e.request_id(),
9376 Self::LimitExceededException(e) => e.request_id(),
9377 Self::MalformedPolicyException(e) => e.request_id(),
9378 Self::NotConfiguredException(e) => e.request_id(),
9379 Self::RegistrationCodeValidationException(e) => e.request_id(),
9380 Self::ResourceAlreadyExistsException(e) => e.request_id(),
9381 Self::ResourceNotFoundException(e) => e.request_id(),
9382 Self::ResourceRegistrationFailureException(e) => e.request_id(),
9383 Self::ServiceQuotaExceededException(e) => e.request_id(),
9384 Self::ServiceUnavailableException(e) => e.request_id(),
9385 Self::SqlParseException(e) => e.request_id(),
9386 Self::TaskAlreadyExistsException(e) => e.request_id(),
9387 Self::ThrottlingException(e) => e.request_id(),
9388 Self::TransferAlreadyCompletedException(e) => e.request_id(),
9389 Self::TransferConflictException(e) => e.request_id(),
9390 Self::UnauthorizedException(e) => e.request_id(),
9391 Self::ValidationException(e) => e.request_id(),
9392 Self::VersionConflictException(e) => e.request_id(),
9393 Self::VersionsLimitExceededException(e) => e.request_id(),
9394 Self::Unhandled(e) => e.meta.request_id(),
9395 }
9396 }
9397}