1#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6 AccessDeniedException(crate::types::error::AccessDeniedException),
8 ConflictException(crate::types::error::ConflictException),
10 InternalServerException(crate::types::error::InternalServerException),
12 ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
14 ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
16 ThrottlingException(crate::types::error::ThrottlingException),
18 UnprocessableEntityException(crate::types::error::UnprocessableEntityException),
20 ValidationException(crate::types::error::ValidationException),
22 #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
24 variable wildcard pattern and check `.code()`:
25 \
26 `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
27 \
28 See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
29 Unhandled(crate::error::sealed_unhandled::Unhandled),
30}
31impl ::std::fmt::Display for Error {
32 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
33 match self {
34 Error::AccessDeniedException(inner) => inner.fmt(f),
35 Error::ConflictException(inner) => inner.fmt(f),
36 Error::InternalServerException(inner) => inner.fmt(f),
37 Error::ResourceNotFoundException(inner) => inner.fmt(f),
38 Error::ServiceQuotaExceededException(inner) => inner.fmt(f),
39 Error::ThrottlingException(inner) => inner.fmt(f),
40 Error::UnprocessableEntityException(inner) => inner.fmt(f),
41 Error::ValidationException(inner) => inner.fmt(f),
42 Error::Unhandled(_) => {
43 if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
44 write!(f, "unhandled error ({code})")
45 } else {
46 f.write_str("unhandled error")
47 }
48 }
49 }
50 }
51}
52impl From<::aws_smithy_types::error::operation::BuildError> for Error {
53 fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
54 Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
55 source: value.into(),
56 meta: ::std::default::Default::default(),
57 })
58 }
59}
60impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
61 fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
62 match self {
63 Self::AccessDeniedException(inner) => inner.meta(),
64 Self::ConflictException(inner) => inner.meta(),
65 Self::InternalServerException(inner) => inner.meta(),
66 Self::ResourceNotFoundException(inner) => inner.meta(),
67 Self::ServiceQuotaExceededException(inner) => inner.meta(),
68 Self::ThrottlingException(inner) => inner.meta(),
69 Self::UnprocessableEntityException(inner) => inner.meta(),
70 Self::ValidationException(inner) => inner.meta(),
71 Self::Unhandled(inner) => &inner.meta,
72 }
73 }
74}
75impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::accept_invitation::AcceptInvitationError, R>> for Error
76where
77 R: Send + Sync + std::fmt::Debug + 'static,
78{
79 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::accept_invitation::AcceptInvitationError, R>) -> Self {
80 match err {
81 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
82 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
83 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
84 source: err.into(),
85 }),
86 }
87 }
88}
89impl From<crate::operation::accept_invitation::AcceptInvitationError> for Error {
90 fn from(err: crate::operation::accept_invitation::AcceptInvitationError) -> Self {
91 match err {
92 crate::operation::accept_invitation::AcceptInvitationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
93 crate::operation::accept_invitation::AcceptInvitationError::ConflictException(inner) => Error::ConflictException(inner),
94 crate::operation::accept_invitation::AcceptInvitationError::InternalServerException(inner) => Error::InternalServerException(inner),
95 crate::operation::accept_invitation::AcceptInvitationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
96 crate::operation::accept_invitation::AcceptInvitationError::ServiceQuotaExceededException(inner) => {
97 Error::ServiceQuotaExceededException(inner)
98 }
99 crate::operation::accept_invitation::AcceptInvitationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
100 crate::operation::accept_invitation::AcceptInvitationError::ValidationException(inner) => Error::ValidationException(inner),
101 crate::operation::accept_invitation::AcceptInvitationError::Unhandled(inner) => Error::Unhandled(inner),
102 }
103 }
104}
105impl<R>
106 From<
107 ::aws_smithy_runtime_api::client::result::SdkError<
108 crate::operation::batch_get_custom_data_identifiers::BatchGetCustomDataIdentifiersError,
109 R,
110 >,
111 > for Error
112where
113 R: Send + Sync + std::fmt::Debug + 'static,
114{
115 fn from(
116 err: ::aws_smithy_runtime_api::client::result::SdkError<
117 crate::operation::batch_get_custom_data_identifiers::BatchGetCustomDataIdentifiersError,
118 R,
119 >,
120 ) -> Self {
121 match err {
122 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
123 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
124 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
125 source: err.into(),
126 }),
127 }
128 }
129}
130impl From<crate::operation::batch_get_custom_data_identifiers::BatchGetCustomDataIdentifiersError> for Error {
131 fn from(err: crate::operation::batch_get_custom_data_identifiers::BatchGetCustomDataIdentifiersError) -> Self {
132 match err {
133 crate::operation::batch_get_custom_data_identifiers::BatchGetCustomDataIdentifiersError::AccessDeniedException(inner) => {
134 Error::AccessDeniedException(inner)
135 }
136 crate::operation::batch_get_custom_data_identifiers::BatchGetCustomDataIdentifiersError::ConflictException(inner) => {
137 Error::ConflictException(inner)
138 }
139 crate::operation::batch_get_custom_data_identifiers::BatchGetCustomDataIdentifiersError::InternalServerException(inner) => {
140 Error::InternalServerException(inner)
141 }
142 crate::operation::batch_get_custom_data_identifiers::BatchGetCustomDataIdentifiersError::ResourceNotFoundException(inner) => {
143 Error::ResourceNotFoundException(inner)
144 }
145 crate::operation::batch_get_custom_data_identifiers::BatchGetCustomDataIdentifiersError::ServiceQuotaExceededException(inner) => {
146 Error::ServiceQuotaExceededException(inner)
147 }
148 crate::operation::batch_get_custom_data_identifiers::BatchGetCustomDataIdentifiersError::ThrottlingException(inner) => {
149 Error::ThrottlingException(inner)
150 }
151 crate::operation::batch_get_custom_data_identifiers::BatchGetCustomDataIdentifiersError::ValidationException(inner) => {
152 Error::ValidationException(inner)
153 }
154 crate::operation::batch_get_custom_data_identifiers::BatchGetCustomDataIdentifiersError::Unhandled(inner) => Error::Unhandled(inner),
155 }
156 }
157}
158impl<R>
159 From<
160 ::aws_smithy_runtime_api::client::result::SdkError<
161 crate::operation::batch_update_automated_discovery_accounts::BatchUpdateAutomatedDiscoveryAccountsError,
162 R,
163 >,
164 > for Error
165where
166 R: Send + Sync + std::fmt::Debug + 'static,
167{
168 fn from(
169 err: ::aws_smithy_runtime_api::client::result::SdkError<
170 crate::operation::batch_update_automated_discovery_accounts::BatchUpdateAutomatedDiscoveryAccountsError,
171 R,
172 >,
173 ) -> Self {
174 match err {
175 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
176 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
177 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
178 source: err.into(),
179 }),
180 }
181 }
182}
183impl From<crate::operation::batch_update_automated_discovery_accounts::BatchUpdateAutomatedDiscoveryAccountsError> for Error {
184 fn from(err: crate::operation::batch_update_automated_discovery_accounts::BatchUpdateAutomatedDiscoveryAccountsError) -> Self {
185 match err {
186 crate::operation::batch_update_automated_discovery_accounts::BatchUpdateAutomatedDiscoveryAccountsError::AccessDeniedException(inner) => {
187 Error::AccessDeniedException(inner)
188 }
189 crate::operation::batch_update_automated_discovery_accounts::BatchUpdateAutomatedDiscoveryAccountsError::ConflictException(inner) => {
190 Error::ConflictException(inner)
191 }
192 crate::operation::batch_update_automated_discovery_accounts::BatchUpdateAutomatedDiscoveryAccountsError::InternalServerException(
193 inner,
194 ) => Error::InternalServerException(inner),
195 crate::operation::batch_update_automated_discovery_accounts::BatchUpdateAutomatedDiscoveryAccountsError::ThrottlingException(inner) => {
196 Error::ThrottlingException(inner)
197 }
198 crate::operation::batch_update_automated_discovery_accounts::BatchUpdateAutomatedDiscoveryAccountsError::ValidationException(inner) => {
199 Error::ValidationException(inner)
200 }
201 crate::operation::batch_update_automated_discovery_accounts::BatchUpdateAutomatedDiscoveryAccountsError::Unhandled(inner) => {
202 Error::Unhandled(inner)
203 }
204 }
205 }
206}
207impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_allow_list::CreateAllowListError, R>> for Error
208where
209 R: Send + Sync + std::fmt::Debug + 'static,
210{
211 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_allow_list::CreateAllowListError, R>) -> Self {
212 match err {
213 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
214 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
215 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
216 source: err.into(),
217 }),
218 }
219 }
220}
221impl From<crate::operation::create_allow_list::CreateAllowListError> for Error {
222 fn from(err: crate::operation::create_allow_list::CreateAllowListError) -> Self {
223 match err {
224 crate::operation::create_allow_list::CreateAllowListError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
225 crate::operation::create_allow_list::CreateAllowListError::ConflictException(inner) => Error::ConflictException(inner),
226 crate::operation::create_allow_list::CreateAllowListError::InternalServerException(inner) => Error::InternalServerException(inner),
227 crate::operation::create_allow_list::CreateAllowListError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
228 crate::operation::create_allow_list::CreateAllowListError::ServiceQuotaExceededException(inner) => {
229 Error::ServiceQuotaExceededException(inner)
230 }
231 crate::operation::create_allow_list::CreateAllowListError::ThrottlingException(inner) => Error::ThrottlingException(inner),
232 crate::operation::create_allow_list::CreateAllowListError::ValidationException(inner) => Error::ValidationException(inner),
233 crate::operation::create_allow_list::CreateAllowListError::Unhandled(inner) => Error::Unhandled(inner),
234 }
235 }
236}
237impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_classification_job::CreateClassificationJobError, R>>
238 for Error
239where
240 R: Send + Sync + std::fmt::Debug + 'static,
241{
242 fn from(
243 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_classification_job::CreateClassificationJobError, R>,
244 ) -> Self {
245 match err {
246 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
247 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
248 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
249 source: err.into(),
250 }),
251 }
252 }
253}
254impl From<crate::operation::create_classification_job::CreateClassificationJobError> for Error {
255 fn from(err: crate::operation::create_classification_job::CreateClassificationJobError) -> Self {
256 match err {
257 crate::operation::create_classification_job::CreateClassificationJobError::AccessDeniedException(inner) => {
258 Error::AccessDeniedException(inner)
259 }
260 crate::operation::create_classification_job::CreateClassificationJobError::ConflictException(inner) => Error::ConflictException(inner),
261 crate::operation::create_classification_job::CreateClassificationJobError::InternalServerException(inner) => {
262 Error::InternalServerException(inner)
263 }
264 crate::operation::create_classification_job::CreateClassificationJobError::ResourceNotFoundException(inner) => {
265 Error::ResourceNotFoundException(inner)
266 }
267 crate::operation::create_classification_job::CreateClassificationJobError::ServiceQuotaExceededException(inner) => {
268 Error::ServiceQuotaExceededException(inner)
269 }
270 crate::operation::create_classification_job::CreateClassificationJobError::ThrottlingException(inner) => {
271 Error::ThrottlingException(inner)
272 }
273 crate::operation::create_classification_job::CreateClassificationJobError::ValidationException(inner) => {
274 Error::ValidationException(inner)
275 }
276 crate::operation::create_classification_job::CreateClassificationJobError::Unhandled(inner) => Error::Unhandled(inner),
277 }
278 }
279}
280impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_custom_data_identifier::CreateCustomDataIdentifierError, R>>
281 for Error
282where
283 R: Send + Sync + std::fmt::Debug + 'static,
284{
285 fn from(
286 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_custom_data_identifier::CreateCustomDataIdentifierError, R>,
287 ) -> Self {
288 match err {
289 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
290 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
291 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
292 source: err.into(),
293 }),
294 }
295 }
296}
297impl From<crate::operation::create_custom_data_identifier::CreateCustomDataIdentifierError> for Error {
298 fn from(err: crate::operation::create_custom_data_identifier::CreateCustomDataIdentifierError) -> Self {
299 match err {
300 crate::operation::create_custom_data_identifier::CreateCustomDataIdentifierError::AccessDeniedException(inner) => {
301 Error::AccessDeniedException(inner)
302 }
303 crate::operation::create_custom_data_identifier::CreateCustomDataIdentifierError::ConflictException(inner) => {
304 Error::ConflictException(inner)
305 }
306 crate::operation::create_custom_data_identifier::CreateCustomDataIdentifierError::InternalServerException(inner) => {
307 Error::InternalServerException(inner)
308 }
309 crate::operation::create_custom_data_identifier::CreateCustomDataIdentifierError::ResourceNotFoundException(inner) => {
310 Error::ResourceNotFoundException(inner)
311 }
312 crate::operation::create_custom_data_identifier::CreateCustomDataIdentifierError::ServiceQuotaExceededException(inner) => {
313 Error::ServiceQuotaExceededException(inner)
314 }
315 crate::operation::create_custom_data_identifier::CreateCustomDataIdentifierError::ThrottlingException(inner) => {
316 Error::ThrottlingException(inner)
317 }
318 crate::operation::create_custom_data_identifier::CreateCustomDataIdentifierError::ValidationException(inner) => {
319 Error::ValidationException(inner)
320 }
321 crate::operation::create_custom_data_identifier::CreateCustomDataIdentifierError::Unhandled(inner) => Error::Unhandled(inner),
322 }
323 }
324}
325impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_findings_filter::CreateFindingsFilterError, R>> for Error
326where
327 R: Send + Sync + std::fmt::Debug + 'static,
328{
329 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_findings_filter::CreateFindingsFilterError, R>) -> Self {
330 match err {
331 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
332 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
333 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
334 source: err.into(),
335 }),
336 }
337 }
338}
339impl From<crate::operation::create_findings_filter::CreateFindingsFilterError> for Error {
340 fn from(err: crate::operation::create_findings_filter::CreateFindingsFilterError) -> Self {
341 match err {
342 crate::operation::create_findings_filter::CreateFindingsFilterError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
343 crate::operation::create_findings_filter::CreateFindingsFilterError::ConflictException(inner) => Error::ConflictException(inner),
344 crate::operation::create_findings_filter::CreateFindingsFilterError::InternalServerException(inner) => {
345 Error::InternalServerException(inner)
346 }
347 crate::operation::create_findings_filter::CreateFindingsFilterError::ResourceNotFoundException(inner) => {
348 Error::ResourceNotFoundException(inner)
349 }
350 crate::operation::create_findings_filter::CreateFindingsFilterError::ServiceQuotaExceededException(inner) => {
351 Error::ServiceQuotaExceededException(inner)
352 }
353 crate::operation::create_findings_filter::CreateFindingsFilterError::ThrottlingException(inner) => Error::ThrottlingException(inner),
354 crate::operation::create_findings_filter::CreateFindingsFilterError::ValidationException(inner) => Error::ValidationException(inner),
355 crate::operation::create_findings_filter::CreateFindingsFilterError::Unhandled(inner) => Error::Unhandled(inner),
356 }
357 }
358}
359impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_invitations::CreateInvitationsError, R>> for Error
360where
361 R: Send + Sync + std::fmt::Debug + 'static,
362{
363 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_invitations::CreateInvitationsError, R>) -> Self {
364 match err {
365 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
366 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
367 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
368 source: err.into(),
369 }),
370 }
371 }
372}
373impl From<crate::operation::create_invitations::CreateInvitationsError> for Error {
374 fn from(err: crate::operation::create_invitations::CreateInvitationsError) -> Self {
375 match err {
376 crate::operation::create_invitations::CreateInvitationsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
377 crate::operation::create_invitations::CreateInvitationsError::ConflictException(inner) => Error::ConflictException(inner),
378 crate::operation::create_invitations::CreateInvitationsError::InternalServerException(inner) => Error::InternalServerException(inner),
379 crate::operation::create_invitations::CreateInvitationsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
380 crate::operation::create_invitations::CreateInvitationsError::ServiceQuotaExceededException(inner) => {
381 Error::ServiceQuotaExceededException(inner)
382 }
383 crate::operation::create_invitations::CreateInvitationsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
384 crate::operation::create_invitations::CreateInvitationsError::ValidationException(inner) => Error::ValidationException(inner),
385 crate::operation::create_invitations::CreateInvitationsError::Unhandled(inner) => Error::Unhandled(inner),
386 }
387 }
388}
389impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_member::CreateMemberError, R>> for Error
390where
391 R: Send + Sync + std::fmt::Debug + 'static,
392{
393 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_member::CreateMemberError, R>) -> Self {
394 match err {
395 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
396 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
397 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
398 source: err.into(),
399 }),
400 }
401 }
402}
403impl From<crate::operation::create_member::CreateMemberError> for Error {
404 fn from(err: crate::operation::create_member::CreateMemberError) -> Self {
405 match err {
406 crate::operation::create_member::CreateMemberError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
407 crate::operation::create_member::CreateMemberError::ConflictException(inner) => Error::ConflictException(inner),
408 crate::operation::create_member::CreateMemberError::InternalServerException(inner) => Error::InternalServerException(inner),
409 crate::operation::create_member::CreateMemberError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
410 crate::operation::create_member::CreateMemberError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
411 crate::operation::create_member::CreateMemberError::ThrottlingException(inner) => Error::ThrottlingException(inner),
412 crate::operation::create_member::CreateMemberError::ValidationException(inner) => Error::ValidationException(inner),
413 crate::operation::create_member::CreateMemberError::Unhandled(inner) => Error::Unhandled(inner),
414 }
415 }
416}
417impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_sample_findings::CreateSampleFindingsError, R>> for Error
418where
419 R: Send + Sync + std::fmt::Debug + 'static,
420{
421 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_sample_findings::CreateSampleFindingsError, R>) -> Self {
422 match err {
423 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
424 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
425 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
426 source: err.into(),
427 }),
428 }
429 }
430}
431impl From<crate::operation::create_sample_findings::CreateSampleFindingsError> for Error {
432 fn from(err: crate::operation::create_sample_findings::CreateSampleFindingsError) -> Self {
433 match err {
434 crate::operation::create_sample_findings::CreateSampleFindingsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
435 crate::operation::create_sample_findings::CreateSampleFindingsError::ConflictException(inner) => Error::ConflictException(inner),
436 crate::operation::create_sample_findings::CreateSampleFindingsError::InternalServerException(inner) => {
437 Error::InternalServerException(inner)
438 }
439 crate::operation::create_sample_findings::CreateSampleFindingsError::ResourceNotFoundException(inner) => {
440 Error::ResourceNotFoundException(inner)
441 }
442 crate::operation::create_sample_findings::CreateSampleFindingsError::ServiceQuotaExceededException(inner) => {
443 Error::ServiceQuotaExceededException(inner)
444 }
445 crate::operation::create_sample_findings::CreateSampleFindingsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
446 crate::operation::create_sample_findings::CreateSampleFindingsError::ValidationException(inner) => Error::ValidationException(inner),
447 crate::operation::create_sample_findings::CreateSampleFindingsError::Unhandled(inner) => Error::Unhandled(inner),
448 }
449 }
450}
451impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::decline_invitations::DeclineInvitationsError, R>> for Error
452where
453 R: Send + Sync + std::fmt::Debug + 'static,
454{
455 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::decline_invitations::DeclineInvitationsError, R>) -> Self {
456 match err {
457 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
458 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
459 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
460 source: err.into(),
461 }),
462 }
463 }
464}
465impl From<crate::operation::decline_invitations::DeclineInvitationsError> for Error {
466 fn from(err: crate::operation::decline_invitations::DeclineInvitationsError) -> Self {
467 match err {
468 crate::operation::decline_invitations::DeclineInvitationsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
469 crate::operation::decline_invitations::DeclineInvitationsError::ConflictException(inner) => Error::ConflictException(inner),
470 crate::operation::decline_invitations::DeclineInvitationsError::InternalServerException(inner) => Error::InternalServerException(inner),
471 crate::operation::decline_invitations::DeclineInvitationsError::ResourceNotFoundException(inner) => {
472 Error::ResourceNotFoundException(inner)
473 }
474 crate::operation::decline_invitations::DeclineInvitationsError::ServiceQuotaExceededException(inner) => {
475 Error::ServiceQuotaExceededException(inner)
476 }
477 crate::operation::decline_invitations::DeclineInvitationsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
478 crate::operation::decline_invitations::DeclineInvitationsError::ValidationException(inner) => Error::ValidationException(inner),
479 crate::operation::decline_invitations::DeclineInvitationsError::Unhandled(inner) => Error::Unhandled(inner),
480 }
481 }
482}
483impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_allow_list::DeleteAllowListError, R>> for Error
484where
485 R: Send + Sync + std::fmt::Debug + 'static,
486{
487 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_allow_list::DeleteAllowListError, R>) -> Self {
488 match err {
489 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
490 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
491 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
492 source: err.into(),
493 }),
494 }
495 }
496}
497impl From<crate::operation::delete_allow_list::DeleteAllowListError> for Error {
498 fn from(err: crate::operation::delete_allow_list::DeleteAllowListError) -> Self {
499 match err {
500 crate::operation::delete_allow_list::DeleteAllowListError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
501 crate::operation::delete_allow_list::DeleteAllowListError::InternalServerException(inner) => Error::InternalServerException(inner),
502 crate::operation::delete_allow_list::DeleteAllowListError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
503 crate::operation::delete_allow_list::DeleteAllowListError::ThrottlingException(inner) => Error::ThrottlingException(inner),
504 crate::operation::delete_allow_list::DeleteAllowListError::ValidationException(inner) => Error::ValidationException(inner),
505 crate::operation::delete_allow_list::DeleteAllowListError::Unhandled(inner) => Error::Unhandled(inner),
506 }
507 }
508}
509impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_custom_data_identifier::DeleteCustomDataIdentifierError, R>>
510 for Error
511where
512 R: Send + Sync + std::fmt::Debug + 'static,
513{
514 fn from(
515 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_custom_data_identifier::DeleteCustomDataIdentifierError, R>,
516 ) -> Self {
517 match err {
518 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
519 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
520 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
521 source: err.into(),
522 }),
523 }
524 }
525}
526impl From<crate::operation::delete_custom_data_identifier::DeleteCustomDataIdentifierError> for Error {
527 fn from(err: crate::operation::delete_custom_data_identifier::DeleteCustomDataIdentifierError) -> Self {
528 match err {
529 crate::operation::delete_custom_data_identifier::DeleteCustomDataIdentifierError::AccessDeniedException(inner) => {
530 Error::AccessDeniedException(inner)
531 }
532 crate::operation::delete_custom_data_identifier::DeleteCustomDataIdentifierError::ConflictException(inner) => {
533 Error::ConflictException(inner)
534 }
535 crate::operation::delete_custom_data_identifier::DeleteCustomDataIdentifierError::InternalServerException(inner) => {
536 Error::InternalServerException(inner)
537 }
538 crate::operation::delete_custom_data_identifier::DeleteCustomDataIdentifierError::ResourceNotFoundException(inner) => {
539 Error::ResourceNotFoundException(inner)
540 }
541 crate::operation::delete_custom_data_identifier::DeleteCustomDataIdentifierError::ServiceQuotaExceededException(inner) => {
542 Error::ServiceQuotaExceededException(inner)
543 }
544 crate::operation::delete_custom_data_identifier::DeleteCustomDataIdentifierError::ThrottlingException(inner) => {
545 Error::ThrottlingException(inner)
546 }
547 crate::operation::delete_custom_data_identifier::DeleteCustomDataIdentifierError::ValidationException(inner) => {
548 Error::ValidationException(inner)
549 }
550 crate::operation::delete_custom_data_identifier::DeleteCustomDataIdentifierError::Unhandled(inner) => Error::Unhandled(inner),
551 }
552 }
553}
554impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_findings_filter::DeleteFindingsFilterError, R>> for Error
555where
556 R: Send + Sync + std::fmt::Debug + 'static,
557{
558 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_findings_filter::DeleteFindingsFilterError, R>) -> Self {
559 match err {
560 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
561 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
562 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
563 source: err.into(),
564 }),
565 }
566 }
567}
568impl From<crate::operation::delete_findings_filter::DeleteFindingsFilterError> for Error {
569 fn from(err: crate::operation::delete_findings_filter::DeleteFindingsFilterError) -> Self {
570 match err {
571 crate::operation::delete_findings_filter::DeleteFindingsFilterError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
572 crate::operation::delete_findings_filter::DeleteFindingsFilterError::ConflictException(inner) => Error::ConflictException(inner),
573 crate::operation::delete_findings_filter::DeleteFindingsFilterError::InternalServerException(inner) => {
574 Error::InternalServerException(inner)
575 }
576 crate::operation::delete_findings_filter::DeleteFindingsFilterError::ResourceNotFoundException(inner) => {
577 Error::ResourceNotFoundException(inner)
578 }
579 crate::operation::delete_findings_filter::DeleteFindingsFilterError::ServiceQuotaExceededException(inner) => {
580 Error::ServiceQuotaExceededException(inner)
581 }
582 crate::operation::delete_findings_filter::DeleteFindingsFilterError::ThrottlingException(inner) => Error::ThrottlingException(inner),
583 crate::operation::delete_findings_filter::DeleteFindingsFilterError::ValidationException(inner) => Error::ValidationException(inner),
584 crate::operation::delete_findings_filter::DeleteFindingsFilterError::Unhandled(inner) => Error::Unhandled(inner),
585 }
586 }
587}
588impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_invitations::DeleteInvitationsError, R>> for Error
589where
590 R: Send + Sync + std::fmt::Debug + 'static,
591{
592 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_invitations::DeleteInvitationsError, R>) -> Self {
593 match err {
594 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
595 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
596 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
597 source: err.into(),
598 }),
599 }
600 }
601}
602impl From<crate::operation::delete_invitations::DeleteInvitationsError> for Error {
603 fn from(err: crate::operation::delete_invitations::DeleteInvitationsError) -> Self {
604 match err {
605 crate::operation::delete_invitations::DeleteInvitationsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
606 crate::operation::delete_invitations::DeleteInvitationsError::ConflictException(inner) => Error::ConflictException(inner),
607 crate::operation::delete_invitations::DeleteInvitationsError::InternalServerException(inner) => Error::InternalServerException(inner),
608 crate::operation::delete_invitations::DeleteInvitationsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
609 crate::operation::delete_invitations::DeleteInvitationsError::ServiceQuotaExceededException(inner) => {
610 Error::ServiceQuotaExceededException(inner)
611 }
612 crate::operation::delete_invitations::DeleteInvitationsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
613 crate::operation::delete_invitations::DeleteInvitationsError::ValidationException(inner) => Error::ValidationException(inner),
614 crate::operation::delete_invitations::DeleteInvitationsError::Unhandled(inner) => Error::Unhandled(inner),
615 }
616 }
617}
618impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_member::DeleteMemberError, R>> for Error
619where
620 R: Send + Sync + std::fmt::Debug + 'static,
621{
622 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_member::DeleteMemberError, R>) -> Self {
623 match err {
624 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
625 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
626 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
627 source: err.into(),
628 }),
629 }
630 }
631}
632impl From<crate::operation::delete_member::DeleteMemberError> for Error {
633 fn from(err: crate::operation::delete_member::DeleteMemberError) -> Self {
634 match err {
635 crate::operation::delete_member::DeleteMemberError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
636 crate::operation::delete_member::DeleteMemberError::ConflictException(inner) => Error::ConflictException(inner),
637 crate::operation::delete_member::DeleteMemberError::InternalServerException(inner) => Error::InternalServerException(inner),
638 crate::operation::delete_member::DeleteMemberError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
639 crate::operation::delete_member::DeleteMemberError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
640 crate::operation::delete_member::DeleteMemberError::ThrottlingException(inner) => Error::ThrottlingException(inner),
641 crate::operation::delete_member::DeleteMemberError::ValidationException(inner) => Error::ValidationException(inner),
642 crate::operation::delete_member::DeleteMemberError::Unhandled(inner) => Error::Unhandled(inner),
643 }
644 }
645}
646impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_buckets::DescribeBucketsError, R>> for Error
647where
648 R: Send + Sync + std::fmt::Debug + 'static,
649{
650 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_buckets::DescribeBucketsError, R>) -> Self {
651 match err {
652 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
653 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
654 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
655 source: err.into(),
656 }),
657 }
658 }
659}
660impl From<crate::operation::describe_buckets::DescribeBucketsError> for Error {
661 fn from(err: crate::operation::describe_buckets::DescribeBucketsError) -> Self {
662 match err {
663 crate::operation::describe_buckets::DescribeBucketsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
664 crate::operation::describe_buckets::DescribeBucketsError::ConflictException(inner) => Error::ConflictException(inner),
665 crate::operation::describe_buckets::DescribeBucketsError::InternalServerException(inner) => Error::InternalServerException(inner),
666 crate::operation::describe_buckets::DescribeBucketsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
667 crate::operation::describe_buckets::DescribeBucketsError::ServiceQuotaExceededException(inner) => {
668 Error::ServiceQuotaExceededException(inner)
669 }
670 crate::operation::describe_buckets::DescribeBucketsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
671 crate::operation::describe_buckets::DescribeBucketsError::ValidationException(inner) => Error::ValidationException(inner),
672 crate::operation::describe_buckets::DescribeBucketsError::Unhandled(inner) => Error::Unhandled(inner),
673 }
674 }
675}
676impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_classification_job::DescribeClassificationJobError, R>>
677 for Error
678where
679 R: Send + Sync + std::fmt::Debug + 'static,
680{
681 fn from(
682 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_classification_job::DescribeClassificationJobError, R>,
683 ) -> Self {
684 match err {
685 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
686 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
687 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
688 source: err.into(),
689 }),
690 }
691 }
692}
693impl From<crate::operation::describe_classification_job::DescribeClassificationJobError> for Error {
694 fn from(err: crate::operation::describe_classification_job::DescribeClassificationJobError) -> Self {
695 match err {
696 crate::operation::describe_classification_job::DescribeClassificationJobError::AccessDeniedException(inner) => {
697 Error::AccessDeniedException(inner)
698 }
699 crate::operation::describe_classification_job::DescribeClassificationJobError::ConflictException(inner) => {
700 Error::ConflictException(inner)
701 }
702 crate::operation::describe_classification_job::DescribeClassificationJobError::InternalServerException(inner) => {
703 Error::InternalServerException(inner)
704 }
705 crate::operation::describe_classification_job::DescribeClassificationJobError::ResourceNotFoundException(inner) => {
706 Error::ResourceNotFoundException(inner)
707 }
708 crate::operation::describe_classification_job::DescribeClassificationJobError::ServiceQuotaExceededException(inner) => {
709 Error::ServiceQuotaExceededException(inner)
710 }
711 crate::operation::describe_classification_job::DescribeClassificationJobError::ThrottlingException(inner) => {
712 Error::ThrottlingException(inner)
713 }
714 crate::operation::describe_classification_job::DescribeClassificationJobError::ValidationException(inner) => {
715 Error::ValidationException(inner)
716 }
717 crate::operation::describe_classification_job::DescribeClassificationJobError::Unhandled(inner) => Error::Unhandled(inner),
718 }
719 }
720}
721impl<R>
722 From<
723 ::aws_smithy_runtime_api::client::result::SdkError<
724 crate::operation::describe_organization_configuration::DescribeOrganizationConfigurationError,
725 R,
726 >,
727 > for Error
728where
729 R: Send + Sync + std::fmt::Debug + 'static,
730{
731 fn from(
732 err: ::aws_smithy_runtime_api::client::result::SdkError<
733 crate::operation::describe_organization_configuration::DescribeOrganizationConfigurationError,
734 R,
735 >,
736 ) -> Self {
737 match err {
738 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
739 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
740 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
741 source: err.into(),
742 }),
743 }
744 }
745}
746impl From<crate::operation::describe_organization_configuration::DescribeOrganizationConfigurationError> for Error {
747 fn from(err: crate::operation::describe_organization_configuration::DescribeOrganizationConfigurationError) -> Self {
748 match err {
749 crate::operation::describe_organization_configuration::DescribeOrganizationConfigurationError::AccessDeniedException(inner) => {
750 Error::AccessDeniedException(inner)
751 }
752 crate::operation::describe_organization_configuration::DescribeOrganizationConfigurationError::ConflictException(inner) => {
753 Error::ConflictException(inner)
754 }
755 crate::operation::describe_organization_configuration::DescribeOrganizationConfigurationError::InternalServerException(inner) => {
756 Error::InternalServerException(inner)
757 }
758 crate::operation::describe_organization_configuration::DescribeOrganizationConfigurationError::ResourceNotFoundException(inner) => {
759 Error::ResourceNotFoundException(inner)
760 }
761 crate::operation::describe_organization_configuration::DescribeOrganizationConfigurationError::ServiceQuotaExceededException(inner) => {
762 Error::ServiceQuotaExceededException(inner)
763 }
764 crate::operation::describe_organization_configuration::DescribeOrganizationConfigurationError::ThrottlingException(inner) => {
765 Error::ThrottlingException(inner)
766 }
767 crate::operation::describe_organization_configuration::DescribeOrganizationConfigurationError::ValidationException(inner) => {
768 Error::ValidationException(inner)
769 }
770 crate::operation::describe_organization_configuration::DescribeOrganizationConfigurationError::Unhandled(inner) => {
771 Error::Unhandled(inner)
772 }
773 }
774 }
775}
776impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_macie::DisableMacieError, R>> for Error
777where
778 R: Send + Sync + std::fmt::Debug + 'static,
779{
780 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_macie::DisableMacieError, R>) -> Self {
781 match err {
782 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
783 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
784 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
785 source: err.into(),
786 }),
787 }
788 }
789}
790impl From<crate::operation::disable_macie::DisableMacieError> for Error {
791 fn from(err: crate::operation::disable_macie::DisableMacieError) -> Self {
792 match err {
793 crate::operation::disable_macie::DisableMacieError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
794 crate::operation::disable_macie::DisableMacieError::ConflictException(inner) => Error::ConflictException(inner),
795 crate::operation::disable_macie::DisableMacieError::InternalServerException(inner) => Error::InternalServerException(inner),
796 crate::operation::disable_macie::DisableMacieError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
797 crate::operation::disable_macie::DisableMacieError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
798 crate::operation::disable_macie::DisableMacieError::ThrottlingException(inner) => Error::ThrottlingException(inner),
799 crate::operation::disable_macie::DisableMacieError::ValidationException(inner) => Error::ValidationException(inner),
800 crate::operation::disable_macie::DisableMacieError::Unhandled(inner) => Error::Unhandled(inner),
801 }
802 }
803}
804impl<R>
805 From<
806 ::aws_smithy_runtime_api::client::result::SdkError<
807 crate::operation::disable_organization_admin_account::DisableOrganizationAdminAccountError,
808 R,
809 >,
810 > for Error
811where
812 R: Send + Sync + std::fmt::Debug + 'static,
813{
814 fn from(
815 err: ::aws_smithy_runtime_api::client::result::SdkError<
816 crate::operation::disable_organization_admin_account::DisableOrganizationAdminAccountError,
817 R,
818 >,
819 ) -> Self {
820 match err {
821 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
822 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
823 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
824 source: err.into(),
825 }),
826 }
827 }
828}
829impl From<crate::operation::disable_organization_admin_account::DisableOrganizationAdminAccountError> for Error {
830 fn from(err: crate::operation::disable_organization_admin_account::DisableOrganizationAdminAccountError) -> Self {
831 match err {
832 crate::operation::disable_organization_admin_account::DisableOrganizationAdminAccountError::AccessDeniedException(inner) => {
833 Error::AccessDeniedException(inner)
834 }
835 crate::operation::disable_organization_admin_account::DisableOrganizationAdminAccountError::ConflictException(inner) => {
836 Error::ConflictException(inner)
837 }
838 crate::operation::disable_organization_admin_account::DisableOrganizationAdminAccountError::InternalServerException(inner) => {
839 Error::InternalServerException(inner)
840 }
841 crate::operation::disable_organization_admin_account::DisableOrganizationAdminAccountError::ResourceNotFoundException(inner) => {
842 Error::ResourceNotFoundException(inner)
843 }
844 crate::operation::disable_organization_admin_account::DisableOrganizationAdminAccountError::ServiceQuotaExceededException(inner) => {
845 Error::ServiceQuotaExceededException(inner)
846 }
847 crate::operation::disable_organization_admin_account::DisableOrganizationAdminAccountError::ThrottlingException(inner) => {
848 Error::ThrottlingException(inner)
849 }
850 crate::operation::disable_organization_admin_account::DisableOrganizationAdminAccountError::ValidationException(inner) => {
851 Error::ValidationException(inner)
852 }
853 crate::operation::disable_organization_admin_account::DisableOrganizationAdminAccountError::Unhandled(inner) => Error::Unhandled(inner),
854 }
855 }
856}
857impl<R>
858 From<
859 ::aws_smithy_runtime_api::client::result::SdkError<
860 crate::operation::disassociate_from_administrator_account::DisassociateFromAdministratorAccountError,
861 R,
862 >,
863 > for Error
864where
865 R: Send + Sync + std::fmt::Debug + 'static,
866{
867 fn from(
868 err: ::aws_smithy_runtime_api::client::result::SdkError<
869 crate::operation::disassociate_from_administrator_account::DisassociateFromAdministratorAccountError,
870 R,
871 >,
872 ) -> Self {
873 match err {
874 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
875 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
876 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
877 source: err.into(),
878 }),
879 }
880 }
881}
882impl From<crate::operation::disassociate_from_administrator_account::DisassociateFromAdministratorAccountError> for Error {
883 fn from(err: crate::operation::disassociate_from_administrator_account::DisassociateFromAdministratorAccountError) -> Self {
884 match err {
885 crate::operation::disassociate_from_administrator_account::DisassociateFromAdministratorAccountError::AccessDeniedException(inner) => {
886 Error::AccessDeniedException(inner)
887 }
888 crate::operation::disassociate_from_administrator_account::DisassociateFromAdministratorAccountError::ConflictException(inner) => {
889 Error::ConflictException(inner)
890 }
891 crate::operation::disassociate_from_administrator_account::DisassociateFromAdministratorAccountError::InternalServerException(inner) => {
892 Error::InternalServerException(inner)
893 }
894 crate::operation::disassociate_from_administrator_account::DisassociateFromAdministratorAccountError::ResourceNotFoundException(
895 inner,
896 ) => Error::ResourceNotFoundException(inner),
897 crate::operation::disassociate_from_administrator_account::DisassociateFromAdministratorAccountError::ServiceQuotaExceededException(
898 inner,
899 ) => Error::ServiceQuotaExceededException(inner),
900 crate::operation::disassociate_from_administrator_account::DisassociateFromAdministratorAccountError::ThrottlingException(inner) => {
901 Error::ThrottlingException(inner)
902 }
903 crate::operation::disassociate_from_administrator_account::DisassociateFromAdministratorAccountError::ValidationException(inner) => {
904 Error::ValidationException(inner)
905 }
906 crate::operation::disassociate_from_administrator_account::DisassociateFromAdministratorAccountError::Unhandled(inner) => {
907 Error::Unhandled(inner)
908 }
909 }
910 }
911}
912impl<R>
913 From<
914 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_from_master_account::DisassociateFromMasterAccountError, R>,
915 > for Error
916where
917 R: Send + Sync + std::fmt::Debug + 'static,
918{
919 fn from(
920 err: ::aws_smithy_runtime_api::client::result::SdkError<
921 crate::operation::disassociate_from_master_account::DisassociateFromMasterAccountError,
922 R,
923 >,
924 ) -> Self {
925 match err {
926 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
927 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
928 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
929 source: err.into(),
930 }),
931 }
932 }
933}
934impl From<crate::operation::disassociate_from_master_account::DisassociateFromMasterAccountError> for Error {
935 fn from(err: crate::operation::disassociate_from_master_account::DisassociateFromMasterAccountError) -> Self {
936 match err {
937 crate::operation::disassociate_from_master_account::DisassociateFromMasterAccountError::AccessDeniedException(inner) => {
938 Error::AccessDeniedException(inner)
939 }
940 crate::operation::disassociate_from_master_account::DisassociateFromMasterAccountError::ConflictException(inner) => {
941 Error::ConflictException(inner)
942 }
943 crate::operation::disassociate_from_master_account::DisassociateFromMasterAccountError::InternalServerException(inner) => {
944 Error::InternalServerException(inner)
945 }
946 crate::operation::disassociate_from_master_account::DisassociateFromMasterAccountError::ResourceNotFoundException(inner) => {
947 Error::ResourceNotFoundException(inner)
948 }
949 crate::operation::disassociate_from_master_account::DisassociateFromMasterAccountError::ServiceQuotaExceededException(inner) => {
950 Error::ServiceQuotaExceededException(inner)
951 }
952 crate::operation::disassociate_from_master_account::DisassociateFromMasterAccountError::ThrottlingException(inner) => {
953 Error::ThrottlingException(inner)
954 }
955 crate::operation::disassociate_from_master_account::DisassociateFromMasterAccountError::ValidationException(inner) => {
956 Error::ValidationException(inner)
957 }
958 crate::operation::disassociate_from_master_account::DisassociateFromMasterAccountError::Unhandled(inner) => Error::Unhandled(inner),
959 }
960 }
961}
962impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_member::DisassociateMemberError, R>> for Error
963where
964 R: Send + Sync + std::fmt::Debug + 'static,
965{
966 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_member::DisassociateMemberError, R>) -> Self {
967 match err {
968 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
969 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
970 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
971 source: err.into(),
972 }),
973 }
974 }
975}
976impl From<crate::operation::disassociate_member::DisassociateMemberError> for Error {
977 fn from(err: crate::operation::disassociate_member::DisassociateMemberError) -> Self {
978 match err {
979 crate::operation::disassociate_member::DisassociateMemberError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
980 crate::operation::disassociate_member::DisassociateMemberError::ConflictException(inner) => Error::ConflictException(inner),
981 crate::operation::disassociate_member::DisassociateMemberError::InternalServerException(inner) => Error::InternalServerException(inner),
982 crate::operation::disassociate_member::DisassociateMemberError::ResourceNotFoundException(inner) => {
983 Error::ResourceNotFoundException(inner)
984 }
985 crate::operation::disassociate_member::DisassociateMemberError::ServiceQuotaExceededException(inner) => {
986 Error::ServiceQuotaExceededException(inner)
987 }
988 crate::operation::disassociate_member::DisassociateMemberError::ThrottlingException(inner) => Error::ThrottlingException(inner),
989 crate::operation::disassociate_member::DisassociateMemberError::ValidationException(inner) => Error::ValidationException(inner),
990 crate::operation::disassociate_member::DisassociateMemberError::Unhandled(inner) => Error::Unhandled(inner),
991 }
992 }
993}
994impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_macie::EnableMacieError, R>> for Error
995where
996 R: Send + Sync + std::fmt::Debug + 'static,
997{
998 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_macie::EnableMacieError, R>) -> Self {
999 match err {
1000 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1001 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1002 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1003 source: err.into(),
1004 }),
1005 }
1006 }
1007}
1008impl From<crate::operation::enable_macie::EnableMacieError> for Error {
1009 fn from(err: crate::operation::enable_macie::EnableMacieError) -> Self {
1010 match err {
1011 crate::operation::enable_macie::EnableMacieError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1012 crate::operation::enable_macie::EnableMacieError::ConflictException(inner) => Error::ConflictException(inner),
1013 crate::operation::enable_macie::EnableMacieError::InternalServerException(inner) => Error::InternalServerException(inner),
1014 crate::operation::enable_macie::EnableMacieError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1015 crate::operation::enable_macie::EnableMacieError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1016 crate::operation::enable_macie::EnableMacieError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1017 crate::operation::enable_macie::EnableMacieError::ValidationException(inner) => Error::ValidationException(inner),
1018 crate::operation::enable_macie::EnableMacieError::Unhandled(inner) => Error::Unhandled(inner),
1019 }
1020 }
1021}
1022impl<R>
1023 From<
1024 ::aws_smithy_runtime_api::client::result::SdkError<
1025 crate::operation::enable_organization_admin_account::EnableOrganizationAdminAccountError,
1026 R,
1027 >,
1028 > for Error
1029where
1030 R: Send + Sync + std::fmt::Debug + 'static,
1031{
1032 fn from(
1033 err: ::aws_smithy_runtime_api::client::result::SdkError<
1034 crate::operation::enable_organization_admin_account::EnableOrganizationAdminAccountError,
1035 R,
1036 >,
1037 ) -> Self {
1038 match err {
1039 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1040 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1041 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1042 source: err.into(),
1043 }),
1044 }
1045 }
1046}
1047impl From<crate::operation::enable_organization_admin_account::EnableOrganizationAdminAccountError> for Error {
1048 fn from(err: crate::operation::enable_organization_admin_account::EnableOrganizationAdminAccountError) -> Self {
1049 match err {
1050 crate::operation::enable_organization_admin_account::EnableOrganizationAdminAccountError::AccessDeniedException(inner) => {
1051 Error::AccessDeniedException(inner)
1052 }
1053 crate::operation::enable_organization_admin_account::EnableOrganizationAdminAccountError::ConflictException(inner) => {
1054 Error::ConflictException(inner)
1055 }
1056 crate::operation::enable_organization_admin_account::EnableOrganizationAdminAccountError::InternalServerException(inner) => {
1057 Error::InternalServerException(inner)
1058 }
1059 crate::operation::enable_organization_admin_account::EnableOrganizationAdminAccountError::ResourceNotFoundException(inner) => {
1060 Error::ResourceNotFoundException(inner)
1061 }
1062 crate::operation::enable_organization_admin_account::EnableOrganizationAdminAccountError::ServiceQuotaExceededException(inner) => {
1063 Error::ServiceQuotaExceededException(inner)
1064 }
1065 crate::operation::enable_organization_admin_account::EnableOrganizationAdminAccountError::ThrottlingException(inner) => {
1066 Error::ThrottlingException(inner)
1067 }
1068 crate::operation::enable_organization_admin_account::EnableOrganizationAdminAccountError::ValidationException(inner) => {
1069 Error::ValidationException(inner)
1070 }
1071 crate::operation::enable_organization_admin_account::EnableOrganizationAdminAccountError::Unhandled(inner) => Error::Unhandled(inner),
1072 }
1073 }
1074}
1075impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_administrator_account::GetAdministratorAccountError, R>>
1076 for Error
1077where
1078 R: Send + Sync + std::fmt::Debug + 'static,
1079{
1080 fn from(
1081 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_administrator_account::GetAdministratorAccountError, R>,
1082 ) -> Self {
1083 match err {
1084 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1085 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1086 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1087 source: err.into(),
1088 }),
1089 }
1090 }
1091}
1092impl From<crate::operation::get_administrator_account::GetAdministratorAccountError> for Error {
1093 fn from(err: crate::operation::get_administrator_account::GetAdministratorAccountError) -> Self {
1094 match err {
1095 crate::operation::get_administrator_account::GetAdministratorAccountError::AccessDeniedException(inner) => {
1096 Error::AccessDeniedException(inner)
1097 }
1098 crate::operation::get_administrator_account::GetAdministratorAccountError::ConflictException(inner) => Error::ConflictException(inner),
1099 crate::operation::get_administrator_account::GetAdministratorAccountError::InternalServerException(inner) => {
1100 Error::InternalServerException(inner)
1101 }
1102 crate::operation::get_administrator_account::GetAdministratorAccountError::ResourceNotFoundException(inner) => {
1103 Error::ResourceNotFoundException(inner)
1104 }
1105 crate::operation::get_administrator_account::GetAdministratorAccountError::ServiceQuotaExceededException(inner) => {
1106 Error::ServiceQuotaExceededException(inner)
1107 }
1108 crate::operation::get_administrator_account::GetAdministratorAccountError::ThrottlingException(inner) => {
1109 Error::ThrottlingException(inner)
1110 }
1111 crate::operation::get_administrator_account::GetAdministratorAccountError::ValidationException(inner) => {
1112 Error::ValidationException(inner)
1113 }
1114 crate::operation::get_administrator_account::GetAdministratorAccountError::Unhandled(inner) => Error::Unhandled(inner),
1115 }
1116 }
1117}
1118impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_allow_list::GetAllowListError, R>> for Error
1119where
1120 R: Send + Sync + std::fmt::Debug + 'static,
1121{
1122 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_allow_list::GetAllowListError, R>) -> Self {
1123 match err {
1124 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1125 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1126 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1127 source: err.into(),
1128 }),
1129 }
1130 }
1131}
1132impl From<crate::operation::get_allow_list::GetAllowListError> for Error {
1133 fn from(err: crate::operation::get_allow_list::GetAllowListError) -> Self {
1134 match err {
1135 crate::operation::get_allow_list::GetAllowListError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1136 crate::operation::get_allow_list::GetAllowListError::InternalServerException(inner) => Error::InternalServerException(inner),
1137 crate::operation::get_allow_list::GetAllowListError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1138 crate::operation::get_allow_list::GetAllowListError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1139 crate::operation::get_allow_list::GetAllowListError::ValidationException(inner) => Error::ValidationException(inner),
1140 crate::operation::get_allow_list::GetAllowListError::Unhandled(inner) => Error::Unhandled(inner),
1141 }
1142 }
1143}
1144impl<R>
1145 From<
1146 ::aws_smithy_runtime_api::client::result::SdkError<
1147 crate::operation::get_automated_discovery_configuration::GetAutomatedDiscoveryConfigurationError,
1148 R,
1149 >,
1150 > for Error
1151where
1152 R: Send + Sync + std::fmt::Debug + 'static,
1153{
1154 fn from(
1155 err: ::aws_smithy_runtime_api::client::result::SdkError<
1156 crate::operation::get_automated_discovery_configuration::GetAutomatedDiscoveryConfigurationError,
1157 R,
1158 >,
1159 ) -> Self {
1160 match err {
1161 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1162 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1163 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1164 source: err.into(),
1165 }),
1166 }
1167 }
1168}
1169impl From<crate::operation::get_automated_discovery_configuration::GetAutomatedDiscoveryConfigurationError> for Error {
1170 fn from(err: crate::operation::get_automated_discovery_configuration::GetAutomatedDiscoveryConfigurationError) -> Self {
1171 match err {
1172 crate::operation::get_automated_discovery_configuration::GetAutomatedDiscoveryConfigurationError::AccessDeniedException(inner) => {
1173 Error::AccessDeniedException(inner)
1174 }
1175 crate::operation::get_automated_discovery_configuration::GetAutomatedDiscoveryConfigurationError::InternalServerException(inner) => {
1176 Error::InternalServerException(inner)
1177 }
1178 crate::operation::get_automated_discovery_configuration::GetAutomatedDiscoveryConfigurationError::ThrottlingException(inner) => {
1179 Error::ThrottlingException(inner)
1180 }
1181 crate::operation::get_automated_discovery_configuration::GetAutomatedDiscoveryConfigurationError::ValidationException(inner) => {
1182 Error::ValidationException(inner)
1183 }
1184 crate::operation::get_automated_discovery_configuration::GetAutomatedDiscoveryConfigurationError::Unhandled(inner) => {
1185 Error::Unhandled(inner)
1186 }
1187 }
1188 }
1189}
1190impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_bucket_statistics::GetBucketStatisticsError, R>> for Error
1191where
1192 R: Send + Sync + std::fmt::Debug + 'static,
1193{
1194 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_bucket_statistics::GetBucketStatisticsError, R>) -> Self {
1195 match err {
1196 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1197 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1198 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1199 source: err.into(),
1200 }),
1201 }
1202 }
1203}
1204impl From<crate::operation::get_bucket_statistics::GetBucketStatisticsError> for Error {
1205 fn from(err: crate::operation::get_bucket_statistics::GetBucketStatisticsError) -> Self {
1206 match err {
1207 crate::operation::get_bucket_statistics::GetBucketStatisticsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1208 crate::operation::get_bucket_statistics::GetBucketStatisticsError::ConflictException(inner) => Error::ConflictException(inner),
1209 crate::operation::get_bucket_statistics::GetBucketStatisticsError::InternalServerException(inner) => {
1210 Error::InternalServerException(inner)
1211 }
1212 crate::operation::get_bucket_statistics::GetBucketStatisticsError::ResourceNotFoundException(inner) => {
1213 Error::ResourceNotFoundException(inner)
1214 }
1215 crate::operation::get_bucket_statistics::GetBucketStatisticsError::ServiceQuotaExceededException(inner) => {
1216 Error::ServiceQuotaExceededException(inner)
1217 }
1218 crate::operation::get_bucket_statistics::GetBucketStatisticsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1219 crate::operation::get_bucket_statistics::GetBucketStatisticsError::ValidationException(inner) => Error::ValidationException(inner),
1220 crate::operation::get_bucket_statistics::GetBucketStatisticsError::Unhandled(inner) => Error::Unhandled(inner),
1221 }
1222 }
1223}
1224impl<R>
1225 From<
1226 ::aws_smithy_runtime_api::client::result::SdkError<
1227 crate::operation::get_classification_export_configuration::GetClassificationExportConfigurationError,
1228 R,
1229 >,
1230 > for Error
1231where
1232 R: Send + Sync + std::fmt::Debug + 'static,
1233{
1234 fn from(
1235 err: ::aws_smithy_runtime_api::client::result::SdkError<
1236 crate::operation::get_classification_export_configuration::GetClassificationExportConfigurationError,
1237 R,
1238 >,
1239 ) -> Self {
1240 match err {
1241 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1242 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1243 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1244 source: err.into(),
1245 }),
1246 }
1247 }
1248}
1249impl From<crate::operation::get_classification_export_configuration::GetClassificationExportConfigurationError> for Error {
1250 fn from(err: crate::operation::get_classification_export_configuration::GetClassificationExportConfigurationError) -> Self {
1251 match err {
1252 crate::operation::get_classification_export_configuration::GetClassificationExportConfigurationError::AccessDeniedException(inner) => {
1253 Error::AccessDeniedException(inner)
1254 }
1255 crate::operation::get_classification_export_configuration::GetClassificationExportConfigurationError::ConflictException(inner) => {
1256 Error::ConflictException(inner)
1257 }
1258 crate::operation::get_classification_export_configuration::GetClassificationExportConfigurationError::InternalServerException(inner) => {
1259 Error::InternalServerException(inner)
1260 }
1261 crate::operation::get_classification_export_configuration::GetClassificationExportConfigurationError::ResourceNotFoundException(
1262 inner,
1263 ) => Error::ResourceNotFoundException(inner),
1264 crate::operation::get_classification_export_configuration::GetClassificationExportConfigurationError::ServiceQuotaExceededException(
1265 inner,
1266 ) => Error::ServiceQuotaExceededException(inner),
1267 crate::operation::get_classification_export_configuration::GetClassificationExportConfigurationError::ThrottlingException(inner) => {
1268 Error::ThrottlingException(inner)
1269 }
1270 crate::operation::get_classification_export_configuration::GetClassificationExportConfigurationError::ValidationException(inner) => {
1271 Error::ValidationException(inner)
1272 }
1273 crate::operation::get_classification_export_configuration::GetClassificationExportConfigurationError::Unhandled(inner) => {
1274 Error::Unhandled(inner)
1275 }
1276 }
1277 }
1278}
1279impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_classification_scope::GetClassificationScopeError, R>> for Error
1280where
1281 R: Send + Sync + std::fmt::Debug + 'static,
1282{
1283 fn from(
1284 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_classification_scope::GetClassificationScopeError, R>,
1285 ) -> Self {
1286 match err {
1287 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1288 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1289 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1290 source: err.into(),
1291 }),
1292 }
1293 }
1294}
1295impl From<crate::operation::get_classification_scope::GetClassificationScopeError> for Error {
1296 fn from(err: crate::operation::get_classification_scope::GetClassificationScopeError) -> Self {
1297 match err {
1298 crate::operation::get_classification_scope::GetClassificationScopeError::AccessDeniedException(inner) => {
1299 Error::AccessDeniedException(inner)
1300 }
1301 crate::operation::get_classification_scope::GetClassificationScopeError::InternalServerException(inner) => {
1302 Error::InternalServerException(inner)
1303 }
1304 crate::operation::get_classification_scope::GetClassificationScopeError::ResourceNotFoundException(inner) => {
1305 Error::ResourceNotFoundException(inner)
1306 }
1307 crate::operation::get_classification_scope::GetClassificationScopeError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1308 crate::operation::get_classification_scope::GetClassificationScopeError::ValidationException(inner) => Error::ValidationException(inner),
1309 crate::operation::get_classification_scope::GetClassificationScopeError::Unhandled(inner) => Error::Unhandled(inner),
1310 }
1311 }
1312}
1313impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_custom_data_identifier::GetCustomDataIdentifierError, R>>
1314 for Error
1315where
1316 R: Send + Sync + std::fmt::Debug + 'static,
1317{
1318 fn from(
1319 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_custom_data_identifier::GetCustomDataIdentifierError, R>,
1320 ) -> Self {
1321 match err {
1322 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1323 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1324 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1325 source: err.into(),
1326 }),
1327 }
1328 }
1329}
1330impl From<crate::operation::get_custom_data_identifier::GetCustomDataIdentifierError> for Error {
1331 fn from(err: crate::operation::get_custom_data_identifier::GetCustomDataIdentifierError) -> Self {
1332 match err {
1333 crate::operation::get_custom_data_identifier::GetCustomDataIdentifierError::AccessDeniedException(inner) => {
1334 Error::AccessDeniedException(inner)
1335 }
1336 crate::operation::get_custom_data_identifier::GetCustomDataIdentifierError::ConflictException(inner) => Error::ConflictException(inner),
1337 crate::operation::get_custom_data_identifier::GetCustomDataIdentifierError::InternalServerException(inner) => {
1338 Error::InternalServerException(inner)
1339 }
1340 crate::operation::get_custom_data_identifier::GetCustomDataIdentifierError::ResourceNotFoundException(inner) => {
1341 Error::ResourceNotFoundException(inner)
1342 }
1343 crate::operation::get_custom_data_identifier::GetCustomDataIdentifierError::ServiceQuotaExceededException(inner) => {
1344 Error::ServiceQuotaExceededException(inner)
1345 }
1346 crate::operation::get_custom_data_identifier::GetCustomDataIdentifierError::ThrottlingException(inner) => {
1347 Error::ThrottlingException(inner)
1348 }
1349 crate::operation::get_custom_data_identifier::GetCustomDataIdentifierError::ValidationException(inner) => {
1350 Error::ValidationException(inner)
1351 }
1352 crate::operation::get_custom_data_identifier::GetCustomDataIdentifierError::Unhandled(inner) => Error::Unhandled(inner),
1353 }
1354 }
1355}
1356impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_findings::GetFindingsError, 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::get_findings::GetFindingsError, 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::get_findings::GetFindingsError> for Error {
1371 fn from(err: crate::operation::get_findings::GetFindingsError) -> Self {
1372 match err {
1373 crate::operation::get_findings::GetFindingsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1374 crate::operation::get_findings::GetFindingsError::ConflictException(inner) => Error::ConflictException(inner),
1375 crate::operation::get_findings::GetFindingsError::InternalServerException(inner) => Error::InternalServerException(inner),
1376 crate::operation::get_findings::GetFindingsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1377 crate::operation::get_findings::GetFindingsError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1378 crate::operation::get_findings::GetFindingsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1379 crate::operation::get_findings::GetFindingsError::ValidationException(inner) => Error::ValidationException(inner),
1380 crate::operation::get_findings::GetFindingsError::Unhandled(inner) => Error::Unhandled(inner),
1381 }
1382 }
1383}
1384impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_findings_filter::GetFindingsFilterError, R>> for Error
1385where
1386 R: Send + Sync + std::fmt::Debug + 'static,
1387{
1388 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_findings_filter::GetFindingsFilterError, R>) -> Self {
1389 match err {
1390 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1391 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1392 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1393 source: err.into(),
1394 }),
1395 }
1396 }
1397}
1398impl From<crate::operation::get_findings_filter::GetFindingsFilterError> for Error {
1399 fn from(err: crate::operation::get_findings_filter::GetFindingsFilterError) -> Self {
1400 match err {
1401 crate::operation::get_findings_filter::GetFindingsFilterError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1402 crate::operation::get_findings_filter::GetFindingsFilterError::ConflictException(inner) => Error::ConflictException(inner),
1403 crate::operation::get_findings_filter::GetFindingsFilterError::InternalServerException(inner) => Error::InternalServerException(inner),
1404 crate::operation::get_findings_filter::GetFindingsFilterError::ResourceNotFoundException(inner) => {
1405 Error::ResourceNotFoundException(inner)
1406 }
1407 crate::operation::get_findings_filter::GetFindingsFilterError::ServiceQuotaExceededException(inner) => {
1408 Error::ServiceQuotaExceededException(inner)
1409 }
1410 crate::operation::get_findings_filter::GetFindingsFilterError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1411 crate::operation::get_findings_filter::GetFindingsFilterError::ValidationException(inner) => Error::ValidationException(inner),
1412 crate::operation::get_findings_filter::GetFindingsFilterError::Unhandled(inner) => Error::Unhandled(inner),
1413 }
1414 }
1415}
1416impl<R>
1417 From<
1418 ::aws_smithy_runtime_api::client::result::SdkError<
1419 crate::operation::get_findings_publication_configuration::GetFindingsPublicationConfigurationError,
1420 R,
1421 >,
1422 > for Error
1423where
1424 R: Send + Sync + std::fmt::Debug + 'static,
1425{
1426 fn from(
1427 err: ::aws_smithy_runtime_api::client::result::SdkError<
1428 crate::operation::get_findings_publication_configuration::GetFindingsPublicationConfigurationError,
1429 R,
1430 >,
1431 ) -> Self {
1432 match err {
1433 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1434 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1435 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1436 source: err.into(),
1437 }),
1438 }
1439 }
1440}
1441impl From<crate::operation::get_findings_publication_configuration::GetFindingsPublicationConfigurationError> for Error {
1442 fn from(err: crate::operation::get_findings_publication_configuration::GetFindingsPublicationConfigurationError) -> Self {
1443 match err {
1444 crate::operation::get_findings_publication_configuration::GetFindingsPublicationConfigurationError::AccessDeniedException(inner) => {
1445 Error::AccessDeniedException(inner)
1446 }
1447 crate::operation::get_findings_publication_configuration::GetFindingsPublicationConfigurationError::ConflictException(inner) => {
1448 Error::ConflictException(inner)
1449 }
1450 crate::operation::get_findings_publication_configuration::GetFindingsPublicationConfigurationError::InternalServerException(inner) => {
1451 Error::InternalServerException(inner)
1452 }
1453 crate::operation::get_findings_publication_configuration::GetFindingsPublicationConfigurationError::ResourceNotFoundException(inner) => {
1454 Error::ResourceNotFoundException(inner)
1455 }
1456 crate::operation::get_findings_publication_configuration::GetFindingsPublicationConfigurationError::ServiceQuotaExceededException(
1457 inner,
1458 ) => Error::ServiceQuotaExceededException(inner),
1459 crate::operation::get_findings_publication_configuration::GetFindingsPublicationConfigurationError::ThrottlingException(inner) => {
1460 Error::ThrottlingException(inner)
1461 }
1462 crate::operation::get_findings_publication_configuration::GetFindingsPublicationConfigurationError::ValidationException(inner) => {
1463 Error::ValidationException(inner)
1464 }
1465 crate::operation::get_findings_publication_configuration::GetFindingsPublicationConfigurationError::Unhandled(inner) => {
1466 Error::Unhandled(inner)
1467 }
1468 }
1469 }
1470}
1471impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_finding_statistics::GetFindingStatisticsError, R>> for Error
1472where
1473 R: Send + Sync + std::fmt::Debug + 'static,
1474{
1475 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_finding_statistics::GetFindingStatisticsError, R>) -> Self {
1476 match err {
1477 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1478 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1479 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1480 source: err.into(),
1481 }),
1482 }
1483 }
1484}
1485impl From<crate::operation::get_finding_statistics::GetFindingStatisticsError> for Error {
1486 fn from(err: crate::operation::get_finding_statistics::GetFindingStatisticsError) -> Self {
1487 match err {
1488 crate::operation::get_finding_statistics::GetFindingStatisticsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1489 crate::operation::get_finding_statistics::GetFindingStatisticsError::ConflictException(inner) => Error::ConflictException(inner),
1490 crate::operation::get_finding_statistics::GetFindingStatisticsError::InternalServerException(inner) => {
1491 Error::InternalServerException(inner)
1492 }
1493 crate::operation::get_finding_statistics::GetFindingStatisticsError::ResourceNotFoundException(inner) => {
1494 Error::ResourceNotFoundException(inner)
1495 }
1496 crate::operation::get_finding_statistics::GetFindingStatisticsError::ServiceQuotaExceededException(inner) => {
1497 Error::ServiceQuotaExceededException(inner)
1498 }
1499 crate::operation::get_finding_statistics::GetFindingStatisticsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1500 crate::operation::get_finding_statistics::GetFindingStatisticsError::ValidationException(inner) => Error::ValidationException(inner),
1501 crate::operation::get_finding_statistics::GetFindingStatisticsError::Unhandled(inner) => Error::Unhandled(inner),
1502 }
1503 }
1504}
1505impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_invitations_count::GetInvitationsCountError, R>> for Error
1506where
1507 R: Send + Sync + std::fmt::Debug + 'static,
1508{
1509 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_invitations_count::GetInvitationsCountError, R>) -> Self {
1510 match err {
1511 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1512 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1513 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1514 source: err.into(),
1515 }),
1516 }
1517 }
1518}
1519impl From<crate::operation::get_invitations_count::GetInvitationsCountError> for Error {
1520 fn from(err: crate::operation::get_invitations_count::GetInvitationsCountError) -> Self {
1521 match err {
1522 crate::operation::get_invitations_count::GetInvitationsCountError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1523 crate::operation::get_invitations_count::GetInvitationsCountError::ConflictException(inner) => Error::ConflictException(inner),
1524 crate::operation::get_invitations_count::GetInvitationsCountError::InternalServerException(inner) => {
1525 Error::InternalServerException(inner)
1526 }
1527 crate::operation::get_invitations_count::GetInvitationsCountError::ResourceNotFoundException(inner) => {
1528 Error::ResourceNotFoundException(inner)
1529 }
1530 crate::operation::get_invitations_count::GetInvitationsCountError::ServiceQuotaExceededException(inner) => {
1531 Error::ServiceQuotaExceededException(inner)
1532 }
1533 crate::operation::get_invitations_count::GetInvitationsCountError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1534 crate::operation::get_invitations_count::GetInvitationsCountError::ValidationException(inner) => Error::ValidationException(inner),
1535 crate::operation::get_invitations_count::GetInvitationsCountError::Unhandled(inner) => Error::Unhandled(inner),
1536 }
1537 }
1538}
1539impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_macie_session::GetMacieSessionError, R>> for Error
1540where
1541 R: Send + Sync + std::fmt::Debug + 'static,
1542{
1543 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_macie_session::GetMacieSessionError, R>) -> Self {
1544 match err {
1545 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1546 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1547 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1548 source: err.into(),
1549 }),
1550 }
1551 }
1552}
1553impl From<crate::operation::get_macie_session::GetMacieSessionError> for Error {
1554 fn from(err: crate::operation::get_macie_session::GetMacieSessionError) -> Self {
1555 match err {
1556 crate::operation::get_macie_session::GetMacieSessionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1557 crate::operation::get_macie_session::GetMacieSessionError::ConflictException(inner) => Error::ConflictException(inner),
1558 crate::operation::get_macie_session::GetMacieSessionError::InternalServerException(inner) => Error::InternalServerException(inner),
1559 crate::operation::get_macie_session::GetMacieSessionError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1560 crate::operation::get_macie_session::GetMacieSessionError::ServiceQuotaExceededException(inner) => {
1561 Error::ServiceQuotaExceededException(inner)
1562 }
1563 crate::operation::get_macie_session::GetMacieSessionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1564 crate::operation::get_macie_session::GetMacieSessionError::ValidationException(inner) => Error::ValidationException(inner),
1565 crate::operation::get_macie_session::GetMacieSessionError::Unhandled(inner) => Error::Unhandled(inner),
1566 }
1567 }
1568}
1569impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_master_account::GetMasterAccountError, R>> for Error
1570where
1571 R: Send + Sync + std::fmt::Debug + 'static,
1572{
1573 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_master_account::GetMasterAccountError, R>) -> Self {
1574 match err {
1575 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1576 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1577 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1578 source: err.into(),
1579 }),
1580 }
1581 }
1582}
1583impl From<crate::operation::get_master_account::GetMasterAccountError> for Error {
1584 fn from(err: crate::operation::get_master_account::GetMasterAccountError) -> Self {
1585 match err {
1586 crate::operation::get_master_account::GetMasterAccountError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1587 crate::operation::get_master_account::GetMasterAccountError::ConflictException(inner) => Error::ConflictException(inner),
1588 crate::operation::get_master_account::GetMasterAccountError::InternalServerException(inner) => Error::InternalServerException(inner),
1589 crate::operation::get_master_account::GetMasterAccountError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1590 crate::operation::get_master_account::GetMasterAccountError::ServiceQuotaExceededException(inner) => {
1591 Error::ServiceQuotaExceededException(inner)
1592 }
1593 crate::operation::get_master_account::GetMasterAccountError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1594 crate::operation::get_master_account::GetMasterAccountError::ValidationException(inner) => Error::ValidationException(inner),
1595 crate::operation::get_master_account::GetMasterAccountError::Unhandled(inner) => Error::Unhandled(inner),
1596 }
1597 }
1598}
1599impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_member::GetMemberError, R>> for Error
1600where
1601 R: Send + Sync + std::fmt::Debug + 'static,
1602{
1603 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_member::GetMemberError, R>) -> Self {
1604 match err {
1605 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1606 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1607 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1608 source: err.into(),
1609 }),
1610 }
1611 }
1612}
1613impl From<crate::operation::get_member::GetMemberError> for Error {
1614 fn from(err: crate::operation::get_member::GetMemberError) -> Self {
1615 match err {
1616 crate::operation::get_member::GetMemberError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1617 crate::operation::get_member::GetMemberError::ConflictException(inner) => Error::ConflictException(inner),
1618 crate::operation::get_member::GetMemberError::InternalServerException(inner) => Error::InternalServerException(inner),
1619 crate::operation::get_member::GetMemberError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1620 crate::operation::get_member::GetMemberError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1621 crate::operation::get_member::GetMemberError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1622 crate::operation::get_member::GetMemberError::ValidationException(inner) => Error::ValidationException(inner),
1623 crate::operation::get_member::GetMemberError::Unhandled(inner) => Error::Unhandled(inner),
1624 }
1625 }
1626}
1627impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_profile::GetResourceProfileError, R>> for Error
1628where
1629 R: Send + Sync + std::fmt::Debug + 'static,
1630{
1631 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_profile::GetResourceProfileError, R>) -> Self {
1632 match err {
1633 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1634 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1635 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1636 source: err.into(),
1637 }),
1638 }
1639 }
1640}
1641impl From<crate::operation::get_resource_profile::GetResourceProfileError> for Error {
1642 fn from(err: crate::operation::get_resource_profile::GetResourceProfileError) -> Self {
1643 match err {
1644 crate::operation::get_resource_profile::GetResourceProfileError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1645 crate::operation::get_resource_profile::GetResourceProfileError::InternalServerException(inner) => Error::InternalServerException(inner),
1646 crate::operation::get_resource_profile::GetResourceProfileError::ResourceNotFoundException(inner) => {
1647 Error::ResourceNotFoundException(inner)
1648 }
1649 crate::operation::get_resource_profile::GetResourceProfileError::ServiceQuotaExceededException(inner) => {
1650 Error::ServiceQuotaExceededException(inner)
1651 }
1652 crate::operation::get_resource_profile::GetResourceProfileError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1653 crate::operation::get_resource_profile::GetResourceProfileError::ValidationException(inner) => Error::ValidationException(inner),
1654 crate::operation::get_resource_profile::GetResourceProfileError::Unhandled(inner) => Error::Unhandled(inner),
1655 }
1656 }
1657}
1658impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_reveal_configuration::GetRevealConfigurationError, R>> for Error
1659where
1660 R: Send + Sync + std::fmt::Debug + 'static,
1661{
1662 fn from(
1663 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_reveal_configuration::GetRevealConfigurationError, R>,
1664 ) -> Self {
1665 match err {
1666 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1667 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1668 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1669 source: err.into(),
1670 }),
1671 }
1672 }
1673}
1674impl From<crate::operation::get_reveal_configuration::GetRevealConfigurationError> for Error {
1675 fn from(err: crate::operation::get_reveal_configuration::GetRevealConfigurationError) -> Self {
1676 match err {
1677 crate::operation::get_reveal_configuration::GetRevealConfigurationError::AccessDeniedException(inner) => {
1678 Error::AccessDeniedException(inner)
1679 }
1680 crate::operation::get_reveal_configuration::GetRevealConfigurationError::InternalServerException(inner) => {
1681 Error::InternalServerException(inner)
1682 }
1683 crate::operation::get_reveal_configuration::GetRevealConfigurationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1684 crate::operation::get_reveal_configuration::GetRevealConfigurationError::ValidationException(inner) => Error::ValidationException(inner),
1685 crate::operation::get_reveal_configuration::GetRevealConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1686 }
1687 }
1688}
1689impl<R>
1690 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_sensitive_data_occurrences::GetSensitiveDataOccurrencesError, R>>
1691 for Error
1692where
1693 R: Send + Sync + std::fmt::Debug + 'static,
1694{
1695 fn from(
1696 err: ::aws_smithy_runtime_api::client::result::SdkError<
1697 crate::operation::get_sensitive_data_occurrences::GetSensitiveDataOccurrencesError,
1698 R,
1699 >,
1700 ) -> Self {
1701 match err {
1702 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1703 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1704 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1705 source: err.into(),
1706 }),
1707 }
1708 }
1709}
1710impl From<crate::operation::get_sensitive_data_occurrences::GetSensitiveDataOccurrencesError> for Error {
1711 fn from(err: crate::operation::get_sensitive_data_occurrences::GetSensitiveDataOccurrencesError) -> Self {
1712 match err {
1713 crate::operation::get_sensitive_data_occurrences::GetSensitiveDataOccurrencesError::AccessDeniedException(inner) => {
1714 Error::AccessDeniedException(inner)
1715 }
1716 crate::operation::get_sensitive_data_occurrences::GetSensitiveDataOccurrencesError::InternalServerException(inner) => {
1717 Error::InternalServerException(inner)
1718 }
1719 crate::operation::get_sensitive_data_occurrences::GetSensitiveDataOccurrencesError::ResourceNotFoundException(inner) => {
1720 Error::ResourceNotFoundException(inner)
1721 }
1722 crate::operation::get_sensitive_data_occurrences::GetSensitiveDataOccurrencesError::ServiceQuotaExceededException(inner) => {
1723 Error::ServiceQuotaExceededException(inner)
1724 }
1725 crate::operation::get_sensitive_data_occurrences::GetSensitiveDataOccurrencesError::ThrottlingException(inner) => {
1726 Error::ThrottlingException(inner)
1727 }
1728 crate::operation::get_sensitive_data_occurrences::GetSensitiveDataOccurrencesError::UnprocessableEntityException(inner) => {
1729 Error::UnprocessableEntityException(inner)
1730 }
1731 crate::operation::get_sensitive_data_occurrences::GetSensitiveDataOccurrencesError::Unhandled(inner) => Error::Unhandled(inner),
1732 }
1733 }
1734}
1735impl<R>
1736 From<
1737 ::aws_smithy_runtime_api::client::result::SdkError<
1738 crate::operation::get_sensitive_data_occurrences_availability::GetSensitiveDataOccurrencesAvailabilityError,
1739 R,
1740 >,
1741 > for Error
1742where
1743 R: Send + Sync + std::fmt::Debug + 'static,
1744{
1745 fn from(
1746 err: ::aws_smithy_runtime_api::client::result::SdkError<
1747 crate::operation::get_sensitive_data_occurrences_availability::GetSensitiveDataOccurrencesAvailabilityError,
1748 R,
1749 >,
1750 ) -> Self {
1751 match err {
1752 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1753 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1754 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1755 source: err.into(),
1756 }),
1757 }
1758 }
1759}
1760impl From<crate::operation::get_sensitive_data_occurrences_availability::GetSensitiveDataOccurrencesAvailabilityError> for Error {
1761 fn from(err: crate::operation::get_sensitive_data_occurrences_availability::GetSensitiveDataOccurrencesAvailabilityError) -> Self {
1762 match err {
1763 crate::operation::get_sensitive_data_occurrences_availability::GetSensitiveDataOccurrencesAvailabilityError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1764 crate::operation::get_sensitive_data_occurrences_availability::GetSensitiveDataOccurrencesAvailabilityError::InternalServerException(inner) => Error::InternalServerException(inner),
1765 crate::operation::get_sensitive_data_occurrences_availability::GetSensitiveDataOccurrencesAvailabilityError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1766 crate::operation::get_sensitive_data_occurrences_availability::GetSensitiveDataOccurrencesAvailabilityError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1767 crate::operation::get_sensitive_data_occurrences_availability::GetSensitiveDataOccurrencesAvailabilityError::Unhandled(inner) => Error::Unhandled(inner),
1768 }
1769 }
1770}
1771impl<R>
1772 From<
1773 ::aws_smithy_runtime_api::client::result::SdkError<
1774 crate::operation::get_sensitivity_inspection_template::GetSensitivityInspectionTemplateError,
1775 R,
1776 >,
1777 > for Error
1778where
1779 R: Send + Sync + std::fmt::Debug + 'static,
1780{
1781 fn from(
1782 err: ::aws_smithy_runtime_api::client::result::SdkError<
1783 crate::operation::get_sensitivity_inspection_template::GetSensitivityInspectionTemplateError,
1784 R,
1785 >,
1786 ) -> Self {
1787 match err {
1788 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1789 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1790 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1791 source: err.into(),
1792 }),
1793 }
1794 }
1795}
1796impl From<crate::operation::get_sensitivity_inspection_template::GetSensitivityInspectionTemplateError> for Error {
1797 fn from(err: crate::operation::get_sensitivity_inspection_template::GetSensitivityInspectionTemplateError) -> Self {
1798 match err {
1799 crate::operation::get_sensitivity_inspection_template::GetSensitivityInspectionTemplateError::AccessDeniedException(inner) => {
1800 Error::AccessDeniedException(inner)
1801 }
1802 crate::operation::get_sensitivity_inspection_template::GetSensitivityInspectionTemplateError::InternalServerException(inner) => {
1803 Error::InternalServerException(inner)
1804 }
1805 crate::operation::get_sensitivity_inspection_template::GetSensitivityInspectionTemplateError::ResourceNotFoundException(inner) => {
1806 Error::ResourceNotFoundException(inner)
1807 }
1808 crate::operation::get_sensitivity_inspection_template::GetSensitivityInspectionTemplateError::ThrottlingException(inner) => {
1809 Error::ThrottlingException(inner)
1810 }
1811 crate::operation::get_sensitivity_inspection_template::GetSensitivityInspectionTemplateError::ValidationException(inner) => {
1812 Error::ValidationException(inner)
1813 }
1814 crate::operation::get_sensitivity_inspection_template::GetSensitivityInspectionTemplateError::Unhandled(inner) => Error::Unhandled(inner),
1815 }
1816 }
1817}
1818impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_usage_statistics::GetUsageStatisticsError, R>> for Error
1819where
1820 R: Send + Sync + std::fmt::Debug + 'static,
1821{
1822 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_usage_statistics::GetUsageStatisticsError, R>) -> Self {
1823 match err {
1824 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1825 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1826 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1827 source: err.into(),
1828 }),
1829 }
1830 }
1831}
1832impl From<crate::operation::get_usage_statistics::GetUsageStatisticsError> for Error {
1833 fn from(err: crate::operation::get_usage_statistics::GetUsageStatisticsError) -> Self {
1834 match err {
1835 crate::operation::get_usage_statistics::GetUsageStatisticsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1836 crate::operation::get_usage_statistics::GetUsageStatisticsError::ConflictException(inner) => Error::ConflictException(inner),
1837 crate::operation::get_usage_statistics::GetUsageStatisticsError::InternalServerException(inner) => Error::InternalServerException(inner),
1838 crate::operation::get_usage_statistics::GetUsageStatisticsError::ResourceNotFoundException(inner) => {
1839 Error::ResourceNotFoundException(inner)
1840 }
1841 crate::operation::get_usage_statistics::GetUsageStatisticsError::ServiceQuotaExceededException(inner) => {
1842 Error::ServiceQuotaExceededException(inner)
1843 }
1844 crate::operation::get_usage_statistics::GetUsageStatisticsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1845 crate::operation::get_usage_statistics::GetUsageStatisticsError::ValidationException(inner) => Error::ValidationException(inner),
1846 crate::operation::get_usage_statistics::GetUsageStatisticsError::Unhandled(inner) => Error::Unhandled(inner),
1847 }
1848 }
1849}
1850impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_usage_totals::GetUsageTotalsError, R>> for Error
1851where
1852 R: Send + Sync + std::fmt::Debug + 'static,
1853{
1854 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_usage_totals::GetUsageTotalsError, R>) -> Self {
1855 match err {
1856 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1857 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1858 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1859 source: err.into(),
1860 }),
1861 }
1862 }
1863}
1864impl From<crate::operation::get_usage_totals::GetUsageTotalsError> for Error {
1865 fn from(err: crate::operation::get_usage_totals::GetUsageTotalsError) -> Self {
1866 match err {
1867 crate::operation::get_usage_totals::GetUsageTotalsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1868 crate::operation::get_usage_totals::GetUsageTotalsError::ConflictException(inner) => Error::ConflictException(inner),
1869 crate::operation::get_usage_totals::GetUsageTotalsError::InternalServerException(inner) => Error::InternalServerException(inner),
1870 crate::operation::get_usage_totals::GetUsageTotalsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1871 crate::operation::get_usage_totals::GetUsageTotalsError::ServiceQuotaExceededException(inner) => {
1872 Error::ServiceQuotaExceededException(inner)
1873 }
1874 crate::operation::get_usage_totals::GetUsageTotalsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1875 crate::operation::get_usage_totals::GetUsageTotalsError::ValidationException(inner) => Error::ValidationException(inner),
1876 crate::operation::get_usage_totals::GetUsageTotalsError::Unhandled(inner) => Error::Unhandled(inner),
1877 }
1878 }
1879}
1880impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_allow_lists::ListAllowListsError, R>> for Error
1881where
1882 R: Send + Sync + std::fmt::Debug + 'static,
1883{
1884 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_allow_lists::ListAllowListsError, R>) -> Self {
1885 match err {
1886 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1887 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1888 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1889 source: err.into(),
1890 }),
1891 }
1892 }
1893}
1894impl From<crate::operation::list_allow_lists::ListAllowListsError> for Error {
1895 fn from(err: crate::operation::list_allow_lists::ListAllowListsError) -> Self {
1896 match err {
1897 crate::operation::list_allow_lists::ListAllowListsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1898 crate::operation::list_allow_lists::ListAllowListsError::InternalServerException(inner) => Error::InternalServerException(inner),
1899 crate::operation::list_allow_lists::ListAllowListsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1900 crate::operation::list_allow_lists::ListAllowListsError::ValidationException(inner) => Error::ValidationException(inner),
1901 crate::operation::list_allow_lists::ListAllowListsError::Unhandled(inner) => Error::Unhandled(inner),
1902 }
1903 }
1904}
1905impl<R>
1906 From<
1907 ::aws_smithy_runtime_api::client::result::SdkError<
1908 crate::operation::list_automated_discovery_accounts::ListAutomatedDiscoveryAccountsError,
1909 R,
1910 >,
1911 > for Error
1912where
1913 R: Send + Sync + std::fmt::Debug + 'static,
1914{
1915 fn from(
1916 err: ::aws_smithy_runtime_api::client::result::SdkError<
1917 crate::operation::list_automated_discovery_accounts::ListAutomatedDiscoveryAccountsError,
1918 R,
1919 >,
1920 ) -> Self {
1921 match err {
1922 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1923 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1924 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1925 source: err.into(),
1926 }),
1927 }
1928 }
1929}
1930impl From<crate::operation::list_automated_discovery_accounts::ListAutomatedDiscoveryAccountsError> for Error {
1931 fn from(err: crate::operation::list_automated_discovery_accounts::ListAutomatedDiscoveryAccountsError) -> Self {
1932 match err {
1933 crate::operation::list_automated_discovery_accounts::ListAutomatedDiscoveryAccountsError::AccessDeniedException(inner) => {
1934 Error::AccessDeniedException(inner)
1935 }
1936 crate::operation::list_automated_discovery_accounts::ListAutomatedDiscoveryAccountsError::InternalServerException(inner) => {
1937 Error::InternalServerException(inner)
1938 }
1939 crate::operation::list_automated_discovery_accounts::ListAutomatedDiscoveryAccountsError::ResourceNotFoundException(inner) => {
1940 Error::ResourceNotFoundException(inner)
1941 }
1942 crate::operation::list_automated_discovery_accounts::ListAutomatedDiscoveryAccountsError::ThrottlingException(inner) => {
1943 Error::ThrottlingException(inner)
1944 }
1945 crate::operation::list_automated_discovery_accounts::ListAutomatedDiscoveryAccountsError::ValidationException(inner) => {
1946 Error::ValidationException(inner)
1947 }
1948 crate::operation::list_automated_discovery_accounts::ListAutomatedDiscoveryAccountsError::Unhandled(inner) => Error::Unhandled(inner),
1949 }
1950 }
1951}
1952impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_classification_jobs::ListClassificationJobsError, R>> for Error
1953where
1954 R: Send + Sync + std::fmt::Debug + 'static,
1955{
1956 fn from(
1957 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_classification_jobs::ListClassificationJobsError, R>,
1958 ) -> Self {
1959 match err {
1960 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1961 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1962 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1963 source: err.into(),
1964 }),
1965 }
1966 }
1967}
1968impl From<crate::operation::list_classification_jobs::ListClassificationJobsError> for Error {
1969 fn from(err: crate::operation::list_classification_jobs::ListClassificationJobsError) -> Self {
1970 match err {
1971 crate::operation::list_classification_jobs::ListClassificationJobsError::AccessDeniedException(inner) => {
1972 Error::AccessDeniedException(inner)
1973 }
1974 crate::operation::list_classification_jobs::ListClassificationJobsError::ConflictException(inner) => Error::ConflictException(inner),
1975 crate::operation::list_classification_jobs::ListClassificationJobsError::InternalServerException(inner) => {
1976 Error::InternalServerException(inner)
1977 }
1978 crate::operation::list_classification_jobs::ListClassificationJobsError::ResourceNotFoundException(inner) => {
1979 Error::ResourceNotFoundException(inner)
1980 }
1981 crate::operation::list_classification_jobs::ListClassificationJobsError::ServiceQuotaExceededException(inner) => {
1982 Error::ServiceQuotaExceededException(inner)
1983 }
1984 crate::operation::list_classification_jobs::ListClassificationJobsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1985 crate::operation::list_classification_jobs::ListClassificationJobsError::ValidationException(inner) => Error::ValidationException(inner),
1986 crate::operation::list_classification_jobs::ListClassificationJobsError::Unhandled(inner) => Error::Unhandled(inner),
1987 }
1988 }
1989}
1990impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_classification_scopes::ListClassificationScopesError, R>>
1991 for Error
1992where
1993 R: Send + Sync + std::fmt::Debug + 'static,
1994{
1995 fn from(
1996 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_classification_scopes::ListClassificationScopesError, R>,
1997 ) -> Self {
1998 match err {
1999 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2000 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2001 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2002 source: err.into(),
2003 }),
2004 }
2005 }
2006}
2007impl From<crate::operation::list_classification_scopes::ListClassificationScopesError> for Error {
2008 fn from(err: crate::operation::list_classification_scopes::ListClassificationScopesError) -> Self {
2009 match err {
2010 crate::operation::list_classification_scopes::ListClassificationScopesError::AccessDeniedException(inner) => {
2011 Error::AccessDeniedException(inner)
2012 }
2013 crate::operation::list_classification_scopes::ListClassificationScopesError::InternalServerException(inner) => {
2014 Error::InternalServerException(inner)
2015 }
2016 crate::operation::list_classification_scopes::ListClassificationScopesError::ThrottlingException(inner) => {
2017 Error::ThrottlingException(inner)
2018 }
2019 crate::operation::list_classification_scopes::ListClassificationScopesError::ValidationException(inner) => {
2020 Error::ValidationException(inner)
2021 }
2022 crate::operation::list_classification_scopes::ListClassificationScopesError::Unhandled(inner) => Error::Unhandled(inner),
2023 }
2024 }
2025}
2026impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_custom_data_identifiers::ListCustomDataIdentifiersError, R>>
2027 for Error
2028where
2029 R: Send + Sync + std::fmt::Debug + 'static,
2030{
2031 fn from(
2032 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_custom_data_identifiers::ListCustomDataIdentifiersError, R>,
2033 ) -> Self {
2034 match err {
2035 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2036 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2037 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2038 source: err.into(),
2039 }),
2040 }
2041 }
2042}
2043impl From<crate::operation::list_custom_data_identifiers::ListCustomDataIdentifiersError> for Error {
2044 fn from(err: crate::operation::list_custom_data_identifiers::ListCustomDataIdentifiersError) -> Self {
2045 match err {
2046 crate::operation::list_custom_data_identifiers::ListCustomDataIdentifiersError::AccessDeniedException(inner) => {
2047 Error::AccessDeniedException(inner)
2048 }
2049 crate::operation::list_custom_data_identifiers::ListCustomDataIdentifiersError::ConflictException(inner) => {
2050 Error::ConflictException(inner)
2051 }
2052 crate::operation::list_custom_data_identifiers::ListCustomDataIdentifiersError::InternalServerException(inner) => {
2053 Error::InternalServerException(inner)
2054 }
2055 crate::operation::list_custom_data_identifiers::ListCustomDataIdentifiersError::ResourceNotFoundException(inner) => {
2056 Error::ResourceNotFoundException(inner)
2057 }
2058 crate::operation::list_custom_data_identifiers::ListCustomDataIdentifiersError::ServiceQuotaExceededException(inner) => {
2059 Error::ServiceQuotaExceededException(inner)
2060 }
2061 crate::operation::list_custom_data_identifiers::ListCustomDataIdentifiersError::ThrottlingException(inner) => {
2062 Error::ThrottlingException(inner)
2063 }
2064 crate::operation::list_custom_data_identifiers::ListCustomDataIdentifiersError::ValidationException(inner) => {
2065 Error::ValidationException(inner)
2066 }
2067 crate::operation::list_custom_data_identifiers::ListCustomDataIdentifiersError::Unhandled(inner) => Error::Unhandled(inner),
2068 }
2069 }
2070}
2071impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_findings::ListFindingsError, R>> for Error
2072where
2073 R: Send + Sync + std::fmt::Debug + 'static,
2074{
2075 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_findings::ListFindingsError, R>) -> Self {
2076 match err {
2077 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2078 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2079 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2080 source: err.into(),
2081 }),
2082 }
2083 }
2084}
2085impl From<crate::operation::list_findings::ListFindingsError> for Error {
2086 fn from(err: crate::operation::list_findings::ListFindingsError) -> Self {
2087 match err {
2088 crate::operation::list_findings::ListFindingsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2089 crate::operation::list_findings::ListFindingsError::ConflictException(inner) => Error::ConflictException(inner),
2090 crate::operation::list_findings::ListFindingsError::InternalServerException(inner) => Error::InternalServerException(inner),
2091 crate::operation::list_findings::ListFindingsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2092 crate::operation::list_findings::ListFindingsError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
2093 crate::operation::list_findings::ListFindingsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2094 crate::operation::list_findings::ListFindingsError::ValidationException(inner) => Error::ValidationException(inner),
2095 crate::operation::list_findings::ListFindingsError::Unhandled(inner) => Error::Unhandled(inner),
2096 }
2097 }
2098}
2099impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_findings_filters::ListFindingsFiltersError, R>> for Error
2100where
2101 R: Send + Sync + std::fmt::Debug + 'static,
2102{
2103 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_findings_filters::ListFindingsFiltersError, R>) -> Self {
2104 match err {
2105 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2106 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2107 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2108 source: err.into(),
2109 }),
2110 }
2111 }
2112}
2113impl From<crate::operation::list_findings_filters::ListFindingsFiltersError> for Error {
2114 fn from(err: crate::operation::list_findings_filters::ListFindingsFiltersError) -> Self {
2115 match err {
2116 crate::operation::list_findings_filters::ListFindingsFiltersError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2117 crate::operation::list_findings_filters::ListFindingsFiltersError::ConflictException(inner) => Error::ConflictException(inner),
2118 crate::operation::list_findings_filters::ListFindingsFiltersError::InternalServerException(inner) => {
2119 Error::InternalServerException(inner)
2120 }
2121 crate::operation::list_findings_filters::ListFindingsFiltersError::ResourceNotFoundException(inner) => {
2122 Error::ResourceNotFoundException(inner)
2123 }
2124 crate::operation::list_findings_filters::ListFindingsFiltersError::ServiceQuotaExceededException(inner) => {
2125 Error::ServiceQuotaExceededException(inner)
2126 }
2127 crate::operation::list_findings_filters::ListFindingsFiltersError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2128 crate::operation::list_findings_filters::ListFindingsFiltersError::ValidationException(inner) => Error::ValidationException(inner),
2129 crate::operation::list_findings_filters::ListFindingsFiltersError::Unhandled(inner) => Error::Unhandled(inner),
2130 }
2131 }
2132}
2133impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_invitations::ListInvitationsError, R>> for Error
2134where
2135 R: Send + Sync + std::fmt::Debug + 'static,
2136{
2137 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_invitations::ListInvitationsError, R>) -> Self {
2138 match err {
2139 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2140 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2141 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2142 source: err.into(),
2143 }),
2144 }
2145 }
2146}
2147impl From<crate::operation::list_invitations::ListInvitationsError> for Error {
2148 fn from(err: crate::operation::list_invitations::ListInvitationsError) -> Self {
2149 match err {
2150 crate::operation::list_invitations::ListInvitationsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2151 crate::operation::list_invitations::ListInvitationsError::ConflictException(inner) => Error::ConflictException(inner),
2152 crate::operation::list_invitations::ListInvitationsError::InternalServerException(inner) => Error::InternalServerException(inner),
2153 crate::operation::list_invitations::ListInvitationsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2154 crate::operation::list_invitations::ListInvitationsError::ServiceQuotaExceededException(inner) => {
2155 Error::ServiceQuotaExceededException(inner)
2156 }
2157 crate::operation::list_invitations::ListInvitationsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2158 crate::operation::list_invitations::ListInvitationsError::ValidationException(inner) => Error::ValidationException(inner),
2159 crate::operation::list_invitations::ListInvitationsError::Unhandled(inner) => Error::Unhandled(inner),
2160 }
2161 }
2162}
2163impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_managed_data_identifiers::ListManagedDataIdentifiersError, R>>
2164 for Error
2165where
2166 R: Send + Sync + std::fmt::Debug + 'static,
2167{
2168 fn from(
2169 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_managed_data_identifiers::ListManagedDataIdentifiersError, R>,
2170 ) -> Self {
2171 match err {
2172 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2173 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2174 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2175 source: err.into(),
2176 }),
2177 }
2178 }
2179}
2180impl From<crate::operation::list_managed_data_identifiers::ListManagedDataIdentifiersError> for Error {
2181 fn from(err: crate::operation::list_managed_data_identifiers::ListManagedDataIdentifiersError) -> Self {
2182 match err {
2183 crate::operation::list_managed_data_identifiers::ListManagedDataIdentifiersError::Unhandled(inner) => Error::Unhandled(inner),
2184 }
2185 }
2186}
2187impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_members::ListMembersError, R>> for Error
2188where
2189 R: Send + Sync + std::fmt::Debug + 'static,
2190{
2191 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_members::ListMembersError, R>) -> Self {
2192 match err {
2193 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2194 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2195 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2196 source: err.into(),
2197 }),
2198 }
2199 }
2200}
2201impl From<crate::operation::list_members::ListMembersError> for Error {
2202 fn from(err: crate::operation::list_members::ListMembersError) -> Self {
2203 match err {
2204 crate::operation::list_members::ListMembersError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2205 crate::operation::list_members::ListMembersError::ConflictException(inner) => Error::ConflictException(inner),
2206 crate::operation::list_members::ListMembersError::InternalServerException(inner) => Error::InternalServerException(inner),
2207 crate::operation::list_members::ListMembersError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2208 crate::operation::list_members::ListMembersError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
2209 crate::operation::list_members::ListMembersError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2210 crate::operation::list_members::ListMembersError::ValidationException(inner) => Error::ValidationException(inner),
2211 crate::operation::list_members::ListMembersError::Unhandled(inner) => Error::Unhandled(inner),
2212 }
2213 }
2214}
2215impl<R>
2216 From<
2217 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_organization_admin_accounts::ListOrganizationAdminAccountsError, R>,
2218 > for Error
2219where
2220 R: Send + Sync + std::fmt::Debug + 'static,
2221{
2222 fn from(
2223 err: ::aws_smithy_runtime_api::client::result::SdkError<
2224 crate::operation::list_organization_admin_accounts::ListOrganizationAdminAccountsError,
2225 R,
2226 >,
2227 ) -> Self {
2228 match err {
2229 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2230 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2231 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2232 source: err.into(),
2233 }),
2234 }
2235 }
2236}
2237impl From<crate::operation::list_organization_admin_accounts::ListOrganizationAdminAccountsError> for Error {
2238 fn from(err: crate::operation::list_organization_admin_accounts::ListOrganizationAdminAccountsError) -> Self {
2239 match err {
2240 crate::operation::list_organization_admin_accounts::ListOrganizationAdminAccountsError::AccessDeniedException(inner) => {
2241 Error::AccessDeniedException(inner)
2242 }
2243 crate::operation::list_organization_admin_accounts::ListOrganizationAdminAccountsError::ConflictException(inner) => {
2244 Error::ConflictException(inner)
2245 }
2246 crate::operation::list_organization_admin_accounts::ListOrganizationAdminAccountsError::InternalServerException(inner) => {
2247 Error::InternalServerException(inner)
2248 }
2249 crate::operation::list_organization_admin_accounts::ListOrganizationAdminAccountsError::ResourceNotFoundException(inner) => {
2250 Error::ResourceNotFoundException(inner)
2251 }
2252 crate::operation::list_organization_admin_accounts::ListOrganizationAdminAccountsError::ServiceQuotaExceededException(inner) => {
2253 Error::ServiceQuotaExceededException(inner)
2254 }
2255 crate::operation::list_organization_admin_accounts::ListOrganizationAdminAccountsError::ThrottlingException(inner) => {
2256 Error::ThrottlingException(inner)
2257 }
2258 crate::operation::list_organization_admin_accounts::ListOrganizationAdminAccountsError::ValidationException(inner) => {
2259 Error::ValidationException(inner)
2260 }
2261 crate::operation::list_organization_admin_accounts::ListOrganizationAdminAccountsError::Unhandled(inner) => Error::Unhandled(inner),
2262 }
2263 }
2264}
2265impl<R>
2266 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_resource_profile_artifacts::ListResourceProfileArtifactsError, R>>
2267 for Error
2268where
2269 R: Send + Sync + std::fmt::Debug + 'static,
2270{
2271 fn from(
2272 err: ::aws_smithy_runtime_api::client::result::SdkError<
2273 crate::operation::list_resource_profile_artifacts::ListResourceProfileArtifactsError,
2274 R,
2275 >,
2276 ) -> Self {
2277 match err {
2278 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2279 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2280 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2281 source: err.into(),
2282 }),
2283 }
2284 }
2285}
2286impl From<crate::operation::list_resource_profile_artifacts::ListResourceProfileArtifactsError> for Error {
2287 fn from(err: crate::operation::list_resource_profile_artifacts::ListResourceProfileArtifactsError) -> Self {
2288 match err {
2289 crate::operation::list_resource_profile_artifacts::ListResourceProfileArtifactsError::AccessDeniedException(inner) => {
2290 Error::AccessDeniedException(inner)
2291 }
2292 crate::operation::list_resource_profile_artifacts::ListResourceProfileArtifactsError::InternalServerException(inner) => {
2293 Error::InternalServerException(inner)
2294 }
2295 crate::operation::list_resource_profile_artifacts::ListResourceProfileArtifactsError::ResourceNotFoundException(inner) => {
2296 Error::ResourceNotFoundException(inner)
2297 }
2298 crate::operation::list_resource_profile_artifacts::ListResourceProfileArtifactsError::ThrottlingException(inner) => {
2299 Error::ThrottlingException(inner)
2300 }
2301 crate::operation::list_resource_profile_artifacts::ListResourceProfileArtifactsError::ValidationException(inner) => {
2302 Error::ValidationException(inner)
2303 }
2304 crate::operation::list_resource_profile_artifacts::ListResourceProfileArtifactsError::Unhandled(inner) => Error::Unhandled(inner),
2305 }
2306 }
2307}
2308impl<R>
2309 From<
2310 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_resource_profile_detections::ListResourceProfileDetectionsError, R>,
2311 > for Error
2312where
2313 R: Send + Sync + std::fmt::Debug + 'static,
2314{
2315 fn from(
2316 err: ::aws_smithy_runtime_api::client::result::SdkError<
2317 crate::operation::list_resource_profile_detections::ListResourceProfileDetectionsError,
2318 R,
2319 >,
2320 ) -> Self {
2321 match err {
2322 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2323 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2324 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2325 source: err.into(),
2326 }),
2327 }
2328 }
2329}
2330impl From<crate::operation::list_resource_profile_detections::ListResourceProfileDetectionsError> for Error {
2331 fn from(err: crate::operation::list_resource_profile_detections::ListResourceProfileDetectionsError) -> Self {
2332 match err {
2333 crate::operation::list_resource_profile_detections::ListResourceProfileDetectionsError::AccessDeniedException(inner) => {
2334 Error::AccessDeniedException(inner)
2335 }
2336 crate::operation::list_resource_profile_detections::ListResourceProfileDetectionsError::InternalServerException(inner) => {
2337 Error::InternalServerException(inner)
2338 }
2339 crate::operation::list_resource_profile_detections::ListResourceProfileDetectionsError::ResourceNotFoundException(inner) => {
2340 Error::ResourceNotFoundException(inner)
2341 }
2342 crate::operation::list_resource_profile_detections::ListResourceProfileDetectionsError::ServiceQuotaExceededException(inner) => {
2343 Error::ServiceQuotaExceededException(inner)
2344 }
2345 crate::operation::list_resource_profile_detections::ListResourceProfileDetectionsError::ThrottlingException(inner) => {
2346 Error::ThrottlingException(inner)
2347 }
2348 crate::operation::list_resource_profile_detections::ListResourceProfileDetectionsError::ValidationException(inner) => {
2349 Error::ValidationException(inner)
2350 }
2351 crate::operation::list_resource_profile_detections::ListResourceProfileDetectionsError::Unhandled(inner) => Error::Unhandled(inner),
2352 }
2353 }
2354}
2355impl<R>
2356 From<
2357 ::aws_smithy_runtime_api::client::result::SdkError<
2358 crate::operation::list_sensitivity_inspection_templates::ListSensitivityInspectionTemplatesError,
2359 R,
2360 >,
2361 > for Error
2362where
2363 R: Send + Sync + std::fmt::Debug + 'static,
2364{
2365 fn from(
2366 err: ::aws_smithy_runtime_api::client::result::SdkError<
2367 crate::operation::list_sensitivity_inspection_templates::ListSensitivityInspectionTemplatesError,
2368 R,
2369 >,
2370 ) -> Self {
2371 match err {
2372 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2373 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2374 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2375 source: err.into(),
2376 }),
2377 }
2378 }
2379}
2380impl From<crate::operation::list_sensitivity_inspection_templates::ListSensitivityInspectionTemplatesError> for Error {
2381 fn from(err: crate::operation::list_sensitivity_inspection_templates::ListSensitivityInspectionTemplatesError) -> Self {
2382 match err {
2383 crate::operation::list_sensitivity_inspection_templates::ListSensitivityInspectionTemplatesError::AccessDeniedException(inner) => {
2384 Error::AccessDeniedException(inner)
2385 }
2386 crate::operation::list_sensitivity_inspection_templates::ListSensitivityInspectionTemplatesError::InternalServerException(inner) => {
2387 Error::InternalServerException(inner)
2388 }
2389 crate::operation::list_sensitivity_inspection_templates::ListSensitivityInspectionTemplatesError::ServiceQuotaExceededException(
2390 inner,
2391 ) => Error::ServiceQuotaExceededException(inner),
2392 crate::operation::list_sensitivity_inspection_templates::ListSensitivityInspectionTemplatesError::ThrottlingException(inner) => {
2393 Error::ThrottlingException(inner)
2394 }
2395 crate::operation::list_sensitivity_inspection_templates::ListSensitivityInspectionTemplatesError::ValidationException(inner) => {
2396 Error::ValidationException(inner)
2397 }
2398 crate::operation::list_sensitivity_inspection_templates::ListSensitivityInspectionTemplatesError::Unhandled(inner) => {
2399 Error::Unhandled(inner)
2400 }
2401 }
2402 }
2403}
2404impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
2405where
2406 R: Send + Sync + std::fmt::Debug + 'static,
2407{
2408 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
2409 match err {
2410 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2411 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2412 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2413 source: err.into(),
2414 }),
2415 }
2416 }
2417}
2418impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
2419 fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
2420 match err {
2421 crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
2422 }
2423 }
2424}
2425impl<R>
2426 From<
2427 ::aws_smithy_runtime_api::client::result::SdkError<
2428 crate::operation::put_classification_export_configuration::PutClassificationExportConfigurationError,
2429 R,
2430 >,
2431 > for Error
2432where
2433 R: Send + Sync + std::fmt::Debug + 'static,
2434{
2435 fn from(
2436 err: ::aws_smithy_runtime_api::client::result::SdkError<
2437 crate::operation::put_classification_export_configuration::PutClassificationExportConfigurationError,
2438 R,
2439 >,
2440 ) -> Self {
2441 match err {
2442 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2443 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2444 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2445 source: err.into(),
2446 }),
2447 }
2448 }
2449}
2450impl From<crate::operation::put_classification_export_configuration::PutClassificationExportConfigurationError> for Error {
2451 fn from(err: crate::operation::put_classification_export_configuration::PutClassificationExportConfigurationError) -> Self {
2452 match err {
2453 crate::operation::put_classification_export_configuration::PutClassificationExportConfigurationError::AccessDeniedException(inner) => {
2454 Error::AccessDeniedException(inner)
2455 }
2456 crate::operation::put_classification_export_configuration::PutClassificationExportConfigurationError::ConflictException(inner) => {
2457 Error::ConflictException(inner)
2458 }
2459 crate::operation::put_classification_export_configuration::PutClassificationExportConfigurationError::InternalServerException(inner) => {
2460 Error::InternalServerException(inner)
2461 }
2462 crate::operation::put_classification_export_configuration::PutClassificationExportConfigurationError::ResourceNotFoundException(
2463 inner,
2464 ) => Error::ResourceNotFoundException(inner),
2465 crate::operation::put_classification_export_configuration::PutClassificationExportConfigurationError::ServiceQuotaExceededException(
2466 inner,
2467 ) => Error::ServiceQuotaExceededException(inner),
2468 crate::operation::put_classification_export_configuration::PutClassificationExportConfigurationError::ThrottlingException(inner) => {
2469 Error::ThrottlingException(inner)
2470 }
2471 crate::operation::put_classification_export_configuration::PutClassificationExportConfigurationError::ValidationException(inner) => {
2472 Error::ValidationException(inner)
2473 }
2474 crate::operation::put_classification_export_configuration::PutClassificationExportConfigurationError::Unhandled(inner) => {
2475 Error::Unhandled(inner)
2476 }
2477 }
2478 }
2479}
2480impl<R>
2481 From<
2482 ::aws_smithy_runtime_api::client::result::SdkError<
2483 crate::operation::put_findings_publication_configuration::PutFindingsPublicationConfigurationError,
2484 R,
2485 >,
2486 > for Error
2487where
2488 R: Send + Sync + std::fmt::Debug + 'static,
2489{
2490 fn from(
2491 err: ::aws_smithy_runtime_api::client::result::SdkError<
2492 crate::operation::put_findings_publication_configuration::PutFindingsPublicationConfigurationError,
2493 R,
2494 >,
2495 ) -> Self {
2496 match err {
2497 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2498 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2499 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2500 source: err.into(),
2501 }),
2502 }
2503 }
2504}
2505impl From<crate::operation::put_findings_publication_configuration::PutFindingsPublicationConfigurationError> for Error {
2506 fn from(err: crate::operation::put_findings_publication_configuration::PutFindingsPublicationConfigurationError) -> Self {
2507 match err {
2508 crate::operation::put_findings_publication_configuration::PutFindingsPublicationConfigurationError::AccessDeniedException(inner) => {
2509 Error::AccessDeniedException(inner)
2510 }
2511 crate::operation::put_findings_publication_configuration::PutFindingsPublicationConfigurationError::ConflictException(inner) => {
2512 Error::ConflictException(inner)
2513 }
2514 crate::operation::put_findings_publication_configuration::PutFindingsPublicationConfigurationError::InternalServerException(inner) => {
2515 Error::InternalServerException(inner)
2516 }
2517 crate::operation::put_findings_publication_configuration::PutFindingsPublicationConfigurationError::ResourceNotFoundException(inner) => {
2518 Error::ResourceNotFoundException(inner)
2519 }
2520 crate::operation::put_findings_publication_configuration::PutFindingsPublicationConfigurationError::ServiceQuotaExceededException(
2521 inner,
2522 ) => Error::ServiceQuotaExceededException(inner),
2523 crate::operation::put_findings_publication_configuration::PutFindingsPublicationConfigurationError::ThrottlingException(inner) => {
2524 Error::ThrottlingException(inner)
2525 }
2526 crate::operation::put_findings_publication_configuration::PutFindingsPublicationConfigurationError::ValidationException(inner) => {
2527 Error::ValidationException(inner)
2528 }
2529 crate::operation::put_findings_publication_configuration::PutFindingsPublicationConfigurationError::Unhandled(inner) => {
2530 Error::Unhandled(inner)
2531 }
2532 }
2533 }
2534}
2535impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_resources::SearchResourcesError, R>> for Error
2536where
2537 R: Send + Sync + std::fmt::Debug + 'static,
2538{
2539 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_resources::SearchResourcesError, R>) -> Self {
2540 match err {
2541 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2542 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2543 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2544 source: err.into(),
2545 }),
2546 }
2547 }
2548}
2549impl From<crate::operation::search_resources::SearchResourcesError> for Error {
2550 fn from(err: crate::operation::search_resources::SearchResourcesError) -> Self {
2551 match err {
2552 crate::operation::search_resources::SearchResourcesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2553 crate::operation::search_resources::SearchResourcesError::ConflictException(inner) => Error::ConflictException(inner),
2554 crate::operation::search_resources::SearchResourcesError::InternalServerException(inner) => Error::InternalServerException(inner),
2555 crate::operation::search_resources::SearchResourcesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2556 crate::operation::search_resources::SearchResourcesError::ServiceQuotaExceededException(inner) => {
2557 Error::ServiceQuotaExceededException(inner)
2558 }
2559 crate::operation::search_resources::SearchResourcesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2560 crate::operation::search_resources::SearchResourcesError::ValidationException(inner) => Error::ValidationException(inner),
2561 crate::operation::search_resources::SearchResourcesError::Unhandled(inner) => Error::Unhandled(inner),
2562 }
2563 }
2564}
2565impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
2566where
2567 R: Send + Sync + std::fmt::Debug + 'static,
2568{
2569 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
2570 match err {
2571 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2572 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2573 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2574 source: err.into(),
2575 }),
2576 }
2577 }
2578}
2579impl From<crate::operation::tag_resource::TagResourceError> for Error {
2580 fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
2581 match err {
2582 crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
2583 }
2584 }
2585}
2586impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::test_custom_data_identifier::TestCustomDataIdentifierError, R>>
2587 for Error
2588where
2589 R: Send + Sync + std::fmt::Debug + 'static,
2590{
2591 fn from(
2592 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::test_custom_data_identifier::TestCustomDataIdentifierError, R>,
2593 ) -> Self {
2594 match err {
2595 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2596 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2597 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2598 source: err.into(),
2599 }),
2600 }
2601 }
2602}
2603impl From<crate::operation::test_custom_data_identifier::TestCustomDataIdentifierError> for Error {
2604 fn from(err: crate::operation::test_custom_data_identifier::TestCustomDataIdentifierError) -> Self {
2605 match err {
2606 crate::operation::test_custom_data_identifier::TestCustomDataIdentifierError::AccessDeniedException(inner) => {
2607 Error::AccessDeniedException(inner)
2608 }
2609 crate::operation::test_custom_data_identifier::TestCustomDataIdentifierError::ConflictException(inner) => Error::ConflictException(inner),
2610 crate::operation::test_custom_data_identifier::TestCustomDataIdentifierError::InternalServerException(inner) => {
2611 Error::InternalServerException(inner)
2612 }
2613 crate::operation::test_custom_data_identifier::TestCustomDataIdentifierError::ResourceNotFoundException(inner) => {
2614 Error::ResourceNotFoundException(inner)
2615 }
2616 crate::operation::test_custom_data_identifier::TestCustomDataIdentifierError::ServiceQuotaExceededException(inner) => {
2617 Error::ServiceQuotaExceededException(inner)
2618 }
2619 crate::operation::test_custom_data_identifier::TestCustomDataIdentifierError::ThrottlingException(inner) => {
2620 Error::ThrottlingException(inner)
2621 }
2622 crate::operation::test_custom_data_identifier::TestCustomDataIdentifierError::ValidationException(inner) => {
2623 Error::ValidationException(inner)
2624 }
2625 crate::operation::test_custom_data_identifier::TestCustomDataIdentifierError::Unhandled(inner) => Error::Unhandled(inner),
2626 }
2627 }
2628}
2629impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
2630where
2631 R: Send + Sync + std::fmt::Debug + 'static,
2632{
2633 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
2634 match err {
2635 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2636 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2637 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2638 source: err.into(),
2639 }),
2640 }
2641 }
2642}
2643impl From<crate::operation::untag_resource::UntagResourceError> for Error {
2644 fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
2645 match err {
2646 crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
2647 }
2648 }
2649}
2650impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_allow_list::UpdateAllowListError, R>> for Error
2651where
2652 R: Send + Sync + std::fmt::Debug + 'static,
2653{
2654 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_allow_list::UpdateAllowListError, R>) -> Self {
2655 match err {
2656 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2657 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2658 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2659 source: err.into(),
2660 }),
2661 }
2662 }
2663}
2664impl From<crate::operation::update_allow_list::UpdateAllowListError> for Error {
2665 fn from(err: crate::operation::update_allow_list::UpdateAllowListError) -> Self {
2666 match err {
2667 crate::operation::update_allow_list::UpdateAllowListError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2668 crate::operation::update_allow_list::UpdateAllowListError::InternalServerException(inner) => Error::InternalServerException(inner),
2669 crate::operation::update_allow_list::UpdateAllowListError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2670 crate::operation::update_allow_list::UpdateAllowListError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2671 crate::operation::update_allow_list::UpdateAllowListError::ValidationException(inner) => Error::ValidationException(inner),
2672 crate::operation::update_allow_list::UpdateAllowListError::Unhandled(inner) => Error::Unhandled(inner),
2673 }
2674 }
2675}
2676impl<R>
2677 From<
2678 ::aws_smithy_runtime_api::client::result::SdkError<
2679 crate::operation::update_automated_discovery_configuration::UpdateAutomatedDiscoveryConfigurationError,
2680 R,
2681 >,
2682 > for Error
2683where
2684 R: Send + Sync + std::fmt::Debug + 'static,
2685{
2686 fn from(
2687 err: ::aws_smithy_runtime_api::client::result::SdkError<
2688 crate::operation::update_automated_discovery_configuration::UpdateAutomatedDiscoveryConfigurationError,
2689 R,
2690 >,
2691 ) -> Self {
2692 match err {
2693 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2694 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2695 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2696 source: err.into(),
2697 }),
2698 }
2699 }
2700}
2701impl From<crate::operation::update_automated_discovery_configuration::UpdateAutomatedDiscoveryConfigurationError> for Error {
2702 fn from(err: crate::operation::update_automated_discovery_configuration::UpdateAutomatedDiscoveryConfigurationError) -> Self {
2703 match err {
2704 crate::operation::update_automated_discovery_configuration::UpdateAutomatedDiscoveryConfigurationError::AccessDeniedException(inner) => {
2705 Error::AccessDeniedException(inner)
2706 }
2707 crate::operation::update_automated_discovery_configuration::UpdateAutomatedDiscoveryConfigurationError::InternalServerException(
2708 inner,
2709 ) => Error::InternalServerException(inner),
2710 crate::operation::update_automated_discovery_configuration::UpdateAutomatedDiscoveryConfigurationError::ThrottlingException(inner) => {
2711 Error::ThrottlingException(inner)
2712 }
2713 crate::operation::update_automated_discovery_configuration::UpdateAutomatedDiscoveryConfigurationError::ValidationException(inner) => {
2714 Error::ValidationException(inner)
2715 }
2716 crate::operation::update_automated_discovery_configuration::UpdateAutomatedDiscoveryConfigurationError::Unhandled(inner) => {
2717 Error::Unhandled(inner)
2718 }
2719 }
2720 }
2721}
2722impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_classification_job::UpdateClassificationJobError, R>>
2723 for Error
2724where
2725 R: Send + Sync + std::fmt::Debug + 'static,
2726{
2727 fn from(
2728 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_classification_job::UpdateClassificationJobError, R>,
2729 ) -> Self {
2730 match err {
2731 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2732 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2733 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2734 source: err.into(),
2735 }),
2736 }
2737 }
2738}
2739impl From<crate::operation::update_classification_job::UpdateClassificationJobError> for Error {
2740 fn from(err: crate::operation::update_classification_job::UpdateClassificationJobError) -> Self {
2741 match err {
2742 crate::operation::update_classification_job::UpdateClassificationJobError::AccessDeniedException(inner) => {
2743 Error::AccessDeniedException(inner)
2744 }
2745 crate::operation::update_classification_job::UpdateClassificationJobError::ConflictException(inner) => Error::ConflictException(inner),
2746 crate::operation::update_classification_job::UpdateClassificationJobError::InternalServerException(inner) => {
2747 Error::InternalServerException(inner)
2748 }
2749 crate::operation::update_classification_job::UpdateClassificationJobError::ResourceNotFoundException(inner) => {
2750 Error::ResourceNotFoundException(inner)
2751 }
2752 crate::operation::update_classification_job::UpdateClassificationJobError::ServiceQuotaExceededException(inner) => {
2753 Error::ServiceQuotaExceededException(inner)
2754 }
2755 crate::operation::update_classification_job::UpdateClassificationJobError::ThrottlingException(inner) => {
2756 Error::ThrottlingException(inner)
2757 }
2758 crate::operation::update_classification_job::UpdateClassificationJobError::ValidationException(inner) => {
2759 Error::ValidationException(inner)
2760 }
2761 crate::operation::update_classification_job::UpdateClassificationJobError::Unhandled(inner) => Error::Unhandled(inner),
2762 }
2763 }
2764}
2765impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_classification_scope::UpdateClassificationScopeError, R>>
2766 for Error
2767where
2768 R: Send + Sync + std::fmt::Debug + 'static,
2769{
2770 fn from(
2771 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_classification_scope::UpdateClassificationScopeError, R>,
2772 ) -> Self {
2773 match err {
2774 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2775 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2776 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2777 source: err.into(),
2778 }),
2779 }
2780 }
2781}
2782impl From<crate::operation::update_classification_scope::UpdateClassificationScopeError> for Error {
2783 fn from(err: crate::operation::update_classification_scope::UpdateClassificationScopeError) -> Self {
2784 match err {
2785 crate::operation::update_classification_scope::UpdateClassificationScopeError::AccessDeniedException(inner) => {
2786 Error::AccessDeniedException(inner)
2787 }
2788 crate::operation::update_classification_scope::UpdateClassificationScopeError::InternalServerException(inner) => {
2789 Error::InternalServerException(inner)
2790 }
2791 crate::operation::update_classification_scope::UpdateClassificationScopeError::ResourceNotFoundException(inner) => {
2792 Error::ResourceNotFoundException(inner)
2793 }
2794 crate::operation::update_classification_scope::UpdateClassificationScopeError::ThrottlingException(inner) => {
2795 Error::ThrottlingException(inner)
2796 }
2797 crate::operation::update_classification_scope::UpdateClassificationScopeError::ValidationException(inner) => {
2798 Error::ValidationException(inner)
2799 }
2800 crate::operation::update_classification_scope::UpdateClassificationScopeError::Unhandled(inner) => Error::Unhandled(inner),
2801 }
2802 }
2803}
2804impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_findings_filter::UpdateFindingsFilterError, R>> for Error
2805where
2806 R: Send + Sync + std::fmt::Debug + 'static,
2807{
2808 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_findings_filter::UpdateFindingsFilterError, R>) -> Self {
2809 match err {
2810 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2811 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2812 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2813 source: err.into(),
2814 }),
2815 }
2816 }
2817}
2818impl From<crate::operation::update_findings_filter::UpdateFindingsFilterError> for Error {
2819 fn from(err: crate::operation::update_findings_filter::UpdateFindingsFilterError) -> Self {
2820 match err {
2821 crate::operation::update_findings_filter::UpdateFindingsFilterError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2822 crate::operation::update_findings_filter::UpdateFindingsFilterError::ConflictException(inner) => Error::ConflictException(inner),
2823 crate::operation::update_findings_filter::UpdateFindingsFilterError::InternalServerException(inner) => {
2824 Error::InternalServerException(inner)
2825 }
2826 crate::operation::update_findings_filter::UpdateFindingsFilterError::ResourceNotFoundException(inner) => {
2827 Error::ResourceNotFoundException(inner)
2828 }
2829 crate::operation::update_findings_filter::UpdateFindingsFilterError::ServiceQuotaExceededException(inner) => {
2830 Error::ServiceQuotaExceededException(inner)
2831 }
2832 crate::operation::update_findings_filter::UpdateFindingsFilterError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2833 crate::operation::update_findings_filter::UpdateFindingsFilterError::ValidationException(inner) => Error::ValidationException(inner),
2834 crate::operation::update_findings_filter::UpdateFindingsFilterError::Unhandled(inner) => Error::Unhandled(inner),
2835 }
2836 }
2837}
2838impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_macie_session::UpdateMacieSessionError, R>> for Error
2839where
2840 R: Send + Sync + std::fmt::Debug + 'static,
2841{
2842 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_macie_session::UpdateMacieSessionError, R>) -> Self {
2843 match err {
2844 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2845 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2846 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2847 source: err.into(),
2848 }),
2849 }
2850 }
2851}
2852impl From<crate::operation::update_macie_session::UpdateMacieSessionError> for Error {
2853 fn from(err: crate::operation::update_macie_session::UpdateMacieSessionError) -> Self {
2854 match err {
2855 crate::operation::update_macie_session::UpdateMacieSessionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2856 crate::operation::update_macie_session::UpdateMacieSessionError::ConflictException(inner) => Error::ConflictException(inner),
2857 crate::operation::update_macie_session::UpdateMacieSessionError::InternalServerException(inner) => Error::InternalServerException(inner),
2858 crate::operation::update_macie_session::UpdateMacieSessionError::ResourceNotFoundException(inner) => {
2859 Error::ResourceNotFoundException(inner)
2860 }
2861 crate::operation::update_macie_session::UpdateMacieSessionError::ServiceQuotaExceededException(inner) => {
2862 Error::ServiceQuotaExceededException(inner)
2863 }
2864 crate::operation::update_macie_session::UpdateMacieSessionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2865 crate::operation::update_macie_session::UpdateMacieSessionError::ValidationException(inner) => Error::ValidationException(inner),
2866 crate::operation::update_macie_session::UpdateMacieSessionError::Unhandled(inner) => Error::Unhandled(inner),
2867 }
2868 }
2869}
2870impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_member_session::UpdateMemberSessionError, R>> for Error
2871where
2872 R: Send + Sync + std::fmt::Debug + 'static,
2873{
2874 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_member_session::UpdateMemberSessionError, R>) -> Self {
2875 match err {
2876 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2877 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2878 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2879 source: err.into(),
2880 }),
2881 }
2882 }
2883}
2884impl From<crate::operation::update_member_session::UpdateMemberSessionError> for Error {
2885 fn from(err: crate::operation::update_member_session::UpdateMemberSessionError) -> Self {
2886 match err {
2887 crate::operation::update_member_session::UpdateMemberSessionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2888 crate::operation::update_member_session::UpdateMemberSessionError::ConflictException(inner) => Error::ConflictException(inner),
2889 crate::operation::update_member_session::UpdateMemberSessionError::InternalServerException(inner) => {
2890 Error::InternalServerException(inner)
2891 }
2892 crate::operation::update_member_session::UpdateMemberSessionError::ResourceNotFoundException(inner) => {
2893 Error::ResourceNotFoundException(inner)
2894 }
2895 crate::operation::update_member_session::UpdateMemberSessionError::ServiceQuotaExceededException(inner) => {
2896 Error::ServiceQuotaExceededException(inner)
2897 }
2898 crate::operation::update_member_session::UpdateMemberSessionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2899 crate::operation::update_member_session::UpdateMemberSessionError::ValidationException(inner) => Error::ValidationException(inner),
2900 crate::operation::update_member_session::UpdateMemberSessionError::Unhandled(inner) => Error::Unhandled(inner),
2901 }
2902 }
2903}
2904impl<R>
2905 From<
2906 ::aws_smithy_runtime_api::client::result::SdkError<
2907 crate::operation::update_organization_configuration::UpdateOrganizationConfigurationError,
2908 R,
2909 >,
2910 > for Error
2911where
2912 R: Send + Sync + std::fmt::Debug + 'static,
2913{
2914 fn from(
2915 err: ::aws_smithy_runtime_api::client::result::SdkError<
2916 crate::operation::update_organization_configuration::UpdateOrganizationConfigurationError,
2917 R,
2918 >,
2919 ) -> Self {
2920 match err {
2921 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2922 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2923 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2924 source: err.into(),
2925 }),
2926 }
2927 }
2928}
2929impl From<crate::operation::update_organization_configuration::UpdateOrganizationConfigurationError> for Error {
2930 fn from(err: crate::operation::update_organization_configuration::UpdateOrganizationConfigurationError) -> Self {
2931 match err {
2932 crate::operation::update_organization_configuration::UpdateOrganizationConfigurationError::AccessDeniedException(inner) => {
2933 Error::AccessDeniedException(inner)
2934 }
2935 crate::operation::update_organization_configuration::UpdateOrganizationConfigurationError::ConflictException(inner) => {
2936 Error::ConflictException(inner)
2937 }
2938 crate::operation::update_organization_configuration::UpdateOrganizationConfigurationError::InternalServerException(inner) => {
2939 Error::InternalServerException(inner)
2940 }
2941 crate::operation::update_organization_configuration::UpdateOrganizationConfigurationError::ResourceNotFoundException(inner) => {
2942 Error::ResourceNotFoundException(inner)
2943 }
2944 crate::operation::update_organization_configuration::UpdateOrganizationConfigurationError::ServiceQuotaExceededException(inner) => {
2945 Error::ServiceQuotaExceededException(inner)
2946 }
2947 crate::operation::update_organization_configuration::UpdateOrganizationConfigurationError::ThrottlingException(inner) => {
2948 Error::ThrottlingException(inner)
2949 }
2950 crate::operation::update_organization_configuration::UpdateOrganizationConfigurationError::ValidationException(inner) => {
2951 Error::ValidationException(inner)
2952 }
2953 crate::operation::update_organization_configuration::UpdateOrganizationConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
2954 }
2955 }
2956}
2957impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_resource_profile::UpdateResourceProfileError, R>> for Error
2958where
2959 R: Send + Sync + std::fmt::Debug + 'static,
2960{
2961 fn from(
2962 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_resource_profile::UpdateResourceProfileError, R>,
2963 ) -> Self {
2964 match err {
2965 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2966 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2967 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2968 source: err.into(),
2969 }),
2970 }
2971 }
2972}
2973impl From<crate::operation::update_resource_profile::UpdateResourceProfileError> for Error {
2974 fn from(err: crate::operation::update_resource_profile::UpdateResourceProfileError) -> Self {
2975 match err {
2976 crate::operation::update_resource_profile::UpdateResourceProfileError::AccessDeniedException(inner) => {
2977 Error::AccessDeniedException(inner)
2978 }
2979 crate::operation::update_resource_profile::UpdateResourceProfileError::InternalServerException(inner) => {
2980 Error::InternalServerException(inner)
2981 }
2982 crate::operation::update_resource_profile::UpdateResourceProfileError::ResourceNotFoundException(inner) => {
2983 Error::ResourceNotFoundException(inner)
2984 }
2985 crate::operation::update_resource_profile::UpdateResourceProfileError::ServiceQuotaExceededException(inner) => {
2986 Error::ServiceQuotaExceededException(inner)
2987 }
2988 crate::operation::update_resource_profile::UpdateResourceProfileError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2989 crate::operation::update_resource_profile::UpdateResourceProfileError::ValidationException(inner) => Error::ValidationException(inner),
2990 crate::operation::update_resource_profile::UpdateResourceProfileError::Unhandled(inner) => Error::Unhandled(inner),
2991 }
2992 }
2993}
2994impl<R>
2995 From<
2996 ::aws_smithy_runtime_api::client::result::SdkError<
2997 crate::operation::update_resource_profile_detections::UpdateResourceProfileDetectionsError,
2998 R,
2999 >,
3000 > for Error
3001where
3002 R: Send + Sync + std::fmt::Debug + 'static,
3003{
3004 fn from(
3005 err: ::aws_smithy_runtime_api::client::result::SdkError<
3006 crate::operation::update_resource_profile_detections::UpdateResourceProfileDetectionsError,
3007 R,
3008 >,
3009 ) -> Self {
3010 match err {
3011 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3012 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3013 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3014 source: err.into(),
3015 }),
3016 }
3017 }
3018}
3019impl From<crate::operation::update_resource_profile_detections::UpdateResourceProfileDetectionsError> for Error {
3020 fn from(err: crate::operation::update_resource_profile_detections::UpdateResourceProfileDetectionsError) -> Self {
3021 match err {
3022 crate::operation::update_resource_profile_detections::UpdateResourceProfileDetectionsError::AccessDeniedException(inner) => {
3023 Error::AccessDeniedException(inner)
3024 }
3025 crate::operation::update_resource_profile_detections::UpdateResourceProfileDetectionsError::InternalServerException(inner) => {
3026 Error::InternalServerException(inner)
3027 }
3028 crate::operation::update_resource_profile_detections::UpdateResourceProfileDetectionsError::ResourceNotFoundException(inner) => {
3029 Error::ResourceNotFoundException(inner)
3030 }
3031 crate::operation::update_resource_profile_detections::UpdateResourceProfileDetectionsError::ServiceQuotaExceededException(inner) => {
3032 Error::ServiceQuotaExceededException(inner)
3033 }
3034 crate::operation::update_resource_profile_detections::UpdateResourceProfileDetectionsError::ThrottlingException(inner) => {
3035 Error::ThrottlingException(inner)
3036 }
3037 crate::operation::update_resource_profile_detections::UpdateResourceProfileDetectionsError::ValidationException(inner) => {
3038 Error::ValidationException(inner)
3039 }
3040 crate::operation::update_resource_profile_detections::UpdateResourceProfileDetectionsError::Unhandled(inner) => Error::Unhandled(inner),
3041 }
3042 }
3043}
3044impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_reveal_configuration::UpdateRevealConfigurationError, R>>
3045 for Error
3046where
3047 R: Send + Sync + std::fmt::Debug + 'static,
3048{
3049 fn from(
3050 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_reveal_configuration::UpdateRevealConfigurationError, R>,
3051 ) -> Self {
3052 match err {
3053 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3054 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3055 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3056 source: err.into(),
3057 }),
3058 }
3059 }
3060}
3061impl From<crate::operation::update_reveal_configuration::UpdateRevealConfigurationError> for Error {
3062 fn from(err: crate::operation::update_reveal_configuration::UpdateRevealConfigurationError) -> Self {
3063 match err {
3064 crate::operation::update_reveal_configuration::UpdateRevealConfigurationError::AccessDeniedException(inner) => {
3065 Error::AccessDeniedException(inner)
3066 }
3067 crate::operation::update_reveal_configuration::UpdateRevealConfigurationError::InternalServerException(inner) => {
3068 Error::InternalServerException(inner)
3069 }
3070 crate::operation::update_reveal_configuration::UpdateRevealConfigurationError::ThrottlingException(inner) => {
3071 Error::ThrottlingException(inner)
3072 }
3073 crate::operation::update_reveal_configuration::UpdateRevealConfigurationError::ValidationException(inner) => {
3074 Error::ValidationException(inner)
3075 }
3076 crate::operation::update_reveal_configuration::UpdateRevealConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
3077 }
3078 }
3079}
3080impl<R>
3081 From<
3082 ::aws_smithy_runtime_api::client::result::SdkError<
3083 crate::operation::update_sensitivity_inspection_template::UpdateSensitivityInspectionTemplateError,
3084 R,
3085 >,
3086 > for Error
3087where
3088 R: Send + Sync + std::fmt::Debug + 'static,
3089{
3090 fn from(
3091 err: ::aws_smithy_runtime_api::client::result::SdkError<
3092 crate::operation::update_sensitivity_inspection_template::UpdateSensitivityInspectionTemplateError,
3093 R,
3094 >,
3095 ) -> Self {
3096 match err {
3097 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3098 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3099 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3100 source: err.into(),
3101 }),
3102 }
3103 }
3104}
3105impl From<crate::operation::update_sensitivity_inspection_template::UpdateSensitivityInspectionTemplateError> for Error {
3106 fn from(err: crate::operation::update_sensitivity_inspection_template::UpdateSensitivityInspectionTemplateError) -> Self {
3107 match err {
3108 crate::operation::update_sensitivity_inspection_template::UpdateSensitivityInspectionTemplateError::AccessDeniedException(inner) => {
3109 Error::AccessDeniedException(inner)
3110 }
3111 crate::operation::update_sensitivity_inspection_template::UpdateSensitivityInspectionTemplateError::InternalServerException(inner) => {
3112 Error::InternalServerException(inner)
3113 }
3114 crate::operation::update_sensitivity_inspection_template::UpdateSensitivityInspectionTemplateError::ResourceNotFoundException(inner) => {
3115 Error::ResourceNotFoundException(inner)
3116 }
3117 crate::operation::update_sensitivity_inspection_template::UpdateSensitivityInspectionTemplateError::ThrottlingException(inner) => {
3118 Error::ThrottlingException(inner)
3119 }
3120 crate::operation::update_sensitivity_inspection_template::UpdateSensitivityInspectionTemplateError::ValidationException(inner) => {
3121 Error::ValidationException(inner)
3122 }
3123 crate::operation::update_sensitivity_inspection_template::UpdateSensitivityInspectionTemplateError::Unhandled(inner) => {
3124 Error::Unhandled(inner)
3125 }
3126 }
3127 }
3128}
3129impl<O, E> ::std::convert::From<::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>> for Error
3130where
3131 O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
3132 E: ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static,
3133{
3134 fn from(err: ::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>) -> Self {
3135 Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3136 meta: ::std::default::Default::default(),
3137 source: err.into(),
3138 })
3139 }
3140}
3141impl ::std::error::Error for Error {
3142 fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
3143 match self {
3144 Error::AccessDeniedException(inner) => inner.source(),
3145 Error::ConflictException(inner) => inner.source(),
3146 Error::InternalServerException(inner) => inner.source(),
3147 Error::ResourceNotFoundException(inner) => inner.source(),
3148 Error::ServiceQuotaExceededException(inner) => inner.source(),
3149 Error::ThrottlingException(inner) => inner.source(),
3150 Error::UnprocessableEntityException(inner) => inner.source(),
3151 Error::ValidationException(inner) => inner.source(),
3152 Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
3153 }
3154 }
3155}
3156impl ::aws_types::request_id::RequestId for Error {
3157 fn request_id(&self) -> Option<&str> {
3158 match self {
3159 Self::AccessDeniedException(e) => e.request_id(),
3160 Self::ConflictException(e) => e.request_id(),
3161 Self::InternalServerException(e) => e.request_id(),
3162 Self::ResourceNotFoundException(e) => e.request_id(),
3163 Self::ServiceQuotaExceededException(e) => e.request_id(),
3164 Self::ThrottlingException(e) => e.request_id(),
3165 Self::UnprocessableEntityException(e) => e.request_id(),
3166 Self::ValidationException(e) => e.request_id(),
3167 Self::Unhandled(e) => e.meta.request_id(),
3168 }
3169 }
3170}