1#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6 AccessDeniedException(crate::types::error::AccessDeniedException),
8 ConcurrentModificationException(crate::types::error::ConcurrentModificationException),
10 ConflictException(crate::types::error::ConflictException),
12 DecryptionFailure(crate::types::error::DecryptionFailure),
14 EncryptionFailure(crate::types::error::EncryptionFailure),
16 InternalServerException(crate::types::error::InternalServerException),
18 ResourceLimitExceededException(crate::types::error::ResourceLimitExceededException),
20 ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
22 ServiceException(crate::types::error::ServiceException),
24 ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
26 ThrottledException(crate::types::error::ThrottledException),
28 ThrottlingException(crate::types::error::ThrottlingException),
30 UnauthorizedException(crate::types::error::UnauthorizedException),
32 ValidationException(crate::types::error::ValidationException),
34 #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
36 variable wildcard pattern and check `.code()`:
37 \
38 `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
39 \
40 See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
41 Unhandled(crate::error::sealed_unhandled::Unhandled),
42}
43impl ::std::fmt::Display for Error {
44 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
45 match self {
46 Error::AccessDeniedException(inner) => inner.fmt(f),
47 Error::ConcurrentModificationException(inner) => inner.fmt(f),
48 Error::ConflictException(inner) => inner.fmt(f),
49 Error::DecryptionFailure(inner) => inner.fmt(f),
50 Error::EncryptionFailure(inner) => inner.fmt(f),
51 Error::InternalServerException(inner) => inner.fmt(f),
52 Error::ResourceLimitExceededException(inner) => inner.fmt(f),
53 Error::ResourceNotFoundException(inner) => inner.fmt(f),
54 Error::ServiceException(inner) => inner.fmt(f),
55 Error::ServiceQuotaExceededException(inner) => inner.fmt(f),
56 Error::ThrottledException(inner) => inner.fmt(f),
57 Error::ThrottlingException(inner) => inner.fmt(f),
58 Error::UnauthorizedException(inner) => inner.fmt(f),
59 Error::ValidationException(inner) => inner.fmt(f),
60 Error::Unhandled(_) => {
61 if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
62 write!(f, "unhandled error ({code})")
63 } else {
64 f.write_str("unhandled error")
65 }
66 }
67 }
68 }
69}
70impl From<::aws_smithy_types::error::operation::BuildError> for Error {
71 fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
72 Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
73 source: value.into(),
74 meta: ::std::default::Default::default(),
75 })
76 }
77}
78impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
79 fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
80 match self {
81 Self::AccessDeniedException(inner) => inner.meta(),
82 Self::ConcurrentModificationException(inner) => inner.meta(),
83 Self::ConflictException(inner) => inner.meta(),
84 Self::DecryptionFailure(inner) => inner.meta(),
85 Self::EncryptionFailure(inner) => inner.meta(),
86 Self::InternalServerException(inner) => inner.meta(),
87 Self::ResourceLimitExceededException(inner) => inner.meta(),
88 Self::ResourceNotFoundException(inner) => inner.meta(),
89 Self::ServiceException(inner) => inner.meta(),
90 Self::ServiceQuotaExceededException(inner) => inner.meta(),
91 Self::ThrottledException(inner) => inner.meta(),
92 Self::ThrottlingException(inner) => inner.meta(),
93 Self::UnauthorizedException(inner) => inner.meta(),
94 Self::ValidationException(inner) => inner.meta(),
95 Self::Unhandled(inner) => &inner.meta,
96 }
97 }
98}
99impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::add_dataset_examples::AddDatasetExamplesError, R>> for Error
100where
101 R: Send + Sync + std::fmt::Debug + 'static,
102{
103 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::add_dataset_examples::AddDatasetExamplesError, R>) -> Self {
104 match err {
105 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
106 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
107 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
108 source: err.into(),
109 }),
110 }
111 }
112}
113impl From<crate::operation::add_dataset_examples::AddDatasetExamplesError> for Error {
114 fn from(err: crate::operation::add_dataset_examples::AddDatasetExamplesError) -> Self {
115 match err {
116 crate::operation::add_dataset_examples::AddDatasetExamplesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
117 crate::operation::add_dataset_examples::AddDatasetExamplesError::ConflictException(inner) => Error::ConflictException(inner),
118 crate::operation::add_dataset_examples::AddDatasetExamplesError::InternalServerException(inner) => Error::InternalServerException(inner),
119 crate::operation::add_dataset_examples::AddDatasetExamplesError::ResourceNotFoundException(inner) => {
120 Error::ResourceNotFoundException(inner)
121 }
122 crate::operation::add_dataset_examples::AddDatasetExamplesError::ServiceQuotaExceededException(inner) => {
123 Error::ServiceQuotaExceededException(inner)
124 }
125 crate::operation::add_dataset_examples::AddDatasetExamplesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
126 crate::operation::add_dataset_examples::AddDatasetExamplesError::ValidationException(inner) => Error::ValidationException(inner),
127 crate::operation::add_dataset_examples::AddDatasetExamplesError::Unhandled(inner) => Error::Unhandled(inner),
128 }
129 }
130}
131impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_agent_runtime::CreateAgentRuntimeError, R>> for Error
132where
133 R: Send + Sync + std::fmt::Debug + 'static,
134{
135 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_agent_runtime::CreateAgentRuntimeError, R>) -> Self {
136 match err {
137 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
138 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
139 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
140 source: err.into(),
141 }),
142 }
143 }
144}
145impl From<crate::operation::create_agent_runtime::CreateAgentRuntimeError> for Error {
146 fn from(err: crate::operation::create_agent_runtime::CreateAgentRuntimeError) -> Self {
147 match err {
148 crate::operation::create_agent_runtime::CreateAgentRuntimeError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
149 crate::operation::create_agent_runtime::CreateAgentRuntimeError::ConflictException(inner) => Error::ConflictException(inner),
150 crate::operation::create_agent_runtime::CreateAgentRuntimeError::InternalServerException(inner) => Error::InternalServerException(inner),
151 crate::operation::create_agent_runtime::CreateAgentRuntimeError::ServiceQuotaExceededException(inner) => {
152 Error::ServiceQuotaExceededException(inner)
153 }
154 crate::operation::create_agent_runtime::CreateAgentRuntimeError::ThrottlingException(inner) => Error::ThrottlingException(inner),
155 crate::operation::create_agent_runtime::CreateAgentRuntimeError::ValidationException(inner) => Error::ValidationException(inner),
156 crate::operation::create_agent_runtime::CreateAgentRuntimeError::Unhandled(inner) => Error::Unhandled(inner),
157 }
158 }
159}
160impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_agent_runtime_endpoint::CreateAgentRuntimeEndpointError, R>>
161 for Error
162where
163 R: Send + Sync + std::fmt::Debug + 'static,
164{
165 fn from(
166 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_agent_runtime_endpoint::CreateAgentRuntimeEndpointError, R>,
167 ) -> Self {
168 match err {
169 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
170 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
171 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
172 source: err.into(),
173 }),
174 }
175 }
176}
177impl From<crate::operation::create_agent_runtime_endpoint::CreateAgentRuntimeEndpointError> for Error {
178 fn from(err: crate::operation::create_agent_runtime_endpoint::CreateAgentRuntimeEndpointError) -> Self {
179 match err {
180 crate::operation::create_agent_runtime_endpoint::CreateAgentRuntimeEndpointError::AccessDeniedException(inner) => {
181 Error::AccessDeniedException(inner)
182 }
183 crate::operation::create_agent_runtime_endpoint::CreateAgentRuntimeEndpointError::ConflictException(inner) => {
184 Error::ConflictException(inner)
185 }
186 crate::operation::create_agent_runtime_endpoint::CreateAgentRuntimeEndpointError::InternalServerException(inner) => {
187 Error::InternalServerException(inner)
188 }
189 crate::operation::create_agent_runtime_endpoint::CreateAgentRuntimeEndpointError::ResourceNotFoundException(inner) => {
190 Error::ResourceNotFoundException(inner)
191 }
192 crate::operation::create_agent_runtime_endpoint::CreateAgentRuntimeEndpointError::ServiceQuotaExceededException(inner) => {
193 Error::ServiceQuotaExceededException(inner)
194 }
195 crate::operation::create_agent_runtime_endpoint::CreateAgentRuntimeEndpointError::ThrottlingException(inner) => {
196 Error::ThrottlingException(inner)
197 }
198 crate::operation::create_agent_runtime_endpoint::CreateAgentRuntimeEndpointError::ValidationException(inner) => {
199 Error::ValidationException(inner)
200 }
201 crate::operation::create_agent_runtime_endpoint::CreateAgentRuntimeEndpointError::Unhandled(inner) => Error::Unhandled(inner),
202 }
203 }
204}
205impl<R>
206 From<
207 ::aws_smithy_runtime_api::client::result::SdkError<
208 crate::operation::create_api_key_credential_provider::CreateApiKeyCredentialProviderError,
209 R,
210 >,
211 > for Error
212where
213 R: Send + Sync + std::fmt::Debug + 'static,
214{
215 fn from(
216 err: ::aws_smithy_runtime_api::client::result::SdkError<
217 crate::operation::create_api_key_credential_provider::CreateApiKeyCredentialProviderError,
218 R,
219 >,
220 ) -> Self {
221 match err {
222 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
223 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
224 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
225 source: err.into(),
226 }),
227 }
228 }
229}
230impl From<crate::operation::create_api_key_credential_provider::CreateApiKeyCredentialProviderError> for Error {
231 fn from(err: crate::operation::create_api_key_credential_provider::CreateApiKeyCredentialProviderError) -> Self {
232 match err {
233 crate::operation::create_api_key_credential_provider::CreateApiKeyCredentialProviderError::AccessDeniedException(inner) => {
234 Error::AccessDeniedException(inner)
235 }
236 crate::operation::create_api_key_credential_provider::CreateApiKeyCredentialProviderError::ConflictException(inner) => {
237 Error::ConflictException(inner)
238 }
239 crate::operation::create_api_key_credential_provider::CreateApiKeyCredentialProviderError::DecryptionFailure(inner) => {
240 Error::DecryptionFailure(inner)
241 }
242 crate::operation::create_api_key_credential_provider::CreateApiKeyCredentialProviderError::EncryptionFailure(inner) => {
243 Error::EncryptionFailure(inner)
244 }
245 crate::operation::create_api_key_credential_provider::CreateApiKeyCredentialProviderError::InternalServerException(inner) => {
246 Error::InternalServerException(inner)
247 }
248 crate::operation::create_api_key_credential_provider::CreateApiKeyCredentialProviderError::ResourceLimitExceededException(inner) => {
249 Error::ResourceLimitExceededException(inner)
250 }
251 crate::operation::create_api_key_credential_provider::CreateApiKeyCredentialProviderError::ResourceNotFoundException(inner) => {
252 Error::ResourceNotFoundException(inner)
253 }
254 crate::operation::create_api_key_credential_provider::CreateApiKeyCredentialProviderError::ServiceQuotaExceededException(inner) => {
255 Error::ServiceQuotaExceededException(inner)
256 }
257 crate::operation::create_api_key_credential_provider::CreateApiKeyCredentialProviderError::ThrottlingException(inner) => {
258 Error::ThrottlingException(inner)
259 }
260 crate::operation::create_api_key_credential_provider::CreateApiKeyCredentialProviderError::UnauthorizedException(inner) => {
261 Error::UnauthorizedException(inner)
262 }
263 crate::operation::create_api_key_credential_provider::CreateApiKeyCredentialProviderError::ValidationException(inner) => {
264 Error::ValidationException(inner)
265 }
266 crate::operation::create_api_key_credential_provider::CreateApiKeyCredentialProviderError::Unhandled(inner) => Error::Unhandled(inner),
267 }
268 }
269}
270impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_browser::CreateBrowserError, R>> for Error
271where
272 R: Send + Sync + std::fmt::Debug + 'static,
273{
274 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_browser::CreateBrowserError, R>) -> Self {
275 match err {
276 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
277 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
278 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
279 source: err.into(),
280 }),
281 }
282 }
283}
284impl From<crate::operation::create_browser::CreateBrowserError> for Error {
285 fn from(err: crate::operation::create_browser::CreateBrowserError) -> Self {
286 match err {
287 crate::operation::create_browser::CreateBrowserError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
288 crate::operation::create_browser::CreateBrowserError::ConflictException(inner) => Error::ConflictException(inner),
289 crate::operation::create_browser::CreateBrowserError::InternalServerException(inner) => Error::InternalServerException(inner),
290 crate::operation::create_browser::CreateBrowserError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
291 crate::operation::create_browser::CreateBrowserError::ThrottlingException(inner) => Error::ThrottlingException(inner),
292 crate::operation::create_browser::CreateBrowserError::ValidationException(inner) => Error::ValidationException(inner),
293 crate::operation::create_browser::CreateBrowserError::Unhandled(inner) => Error::Unhandled(inner),
294 }
295 }
296}
297impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_browser_profile::CreateBrowserProfileError, R>> for Error
298where
299 R: Send + Sync + std::fmt::Debug + 'static,
300{
301 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_browser_profile::CreateBrowserProfileError, R>) -> Self {
302 match err {
303 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
304 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
305 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
306 source: err.into(),
307 }),
308 }
309 }
310}
311impl From<crate::operation::create_browser_profile::CreateBrowserProfileError> for Error {
312 fn from(err: crate::operation::create_browser_profile::CreateBrowserProfileError) -> Self {
313 match err {
314 crate::operation::create_browser_profile::CreateBrowserProfileError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
315 crate::operation::create_browser_profile::CreateBrowserProfileError::ConflictException(inner) => Error::ConflictException(inner),
316 crate::operation::create_browser_profile::CreateBrowserProfileError::InternalServerException(inner) => {
317 Error::InternalServerException(inner)
318 }
319 crate::operation::create_browser_profile::CreateBrowserProfileError::ServiceQuotaExceededException(inner) => {
320 Error::ServiceQuotaExceededException(inner)
321 }
322 crate::operation::create_browser_profile::CreateBrowserProfileError::ThrottlingException(inner) => Error::ThrottlingException(inner),
323 crate::operation::create_browser_profile::CreateBrowserProfileError::ValidationException(inner) => Error::ValidationException(inner),
324 crate::operation::create_browser_profile::CreateBrowserProfileError::Unhandled(inner) => Error::Unhandled(inner),
325 }
326 }
327}
328impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_code_interpreter::CreateCodeInterpreterError, R>> for Error
329where
330 R: Send + Sync + std::fmt::Debug + 'static,
331{
332 fn from(
333 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_code_interpreter::CreateCodeInterpreterError, R>,
334 ) -> Self {
335 match err {
336 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
337 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
338 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
339 source: err.into(),
340 }),
341 }
342 }
343}
344impl From<crate::operation::create_code_interpreter::CreateCodeInterpreterError> for Error {
345 fn from(err: crate::operation::create_code_interpreter::CreateCodeInterpreterError) -> Self {
346 match err {
347 crate::operation::create_code_interpreter::CreateCodeInterpreterError::AccessDeniedException(inner) => {
348 Error::AccessDeniedException(inner)
349 }
350 crate::operation::create_code_interpreter::CreateCodeInterpreterError::ConflictException(inner) => Error::ConflictException(inner),
351 crate::operation::create_code_interpreter::CreateCodeInterpreterError::InternalServerException(inner) => {
352 Error::InternalServerException(inner)
353 }
354 crate::operation::create_code_interpreter::CreateCodeInterpreterError::ServiceQuotaExceededException(inner) => {
355 Error::ServiceQuotaExceededException(inner)
356 }
357 crate::operation::create_code_interpreter::CreateCodeInterpreterError::ThrottlingException(inner) => Error::ThrottlingException(inner),
358 crate::operation::create_code_interpreter::CreateCodeInterpreterError::ValidationException(inner) => Error::ValidationException(inner),
359 crate::operation::create_code_interpreter::CreateCodeInterpreterError::Unhandled(inner) => Error::Unhandled(inner),
360 }
361 }
362}
363impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_configuration_bundle::CreateConfigurationBundleError, R>>
364 for Error
365where
366 R: Send + Sync + std::fmt::Debug + 'static,
367{
368 fn from(
369 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_configuration_bundle::CreateConfigurationBundleError, R>,
370 ) -> Self {
371 match err {
372 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
373 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
374 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
375 source: err.into(),
376 }),
377 }
378 }
379}
380impl From<crate::operation::create_configuration_bundle::CreateConfigurationBundleError> for Error {
381 fn from(err: crate::operation::create_configuration_bundle::CreateConfigurationBundleError) -> Self {
382 match err {
383 crate::operation::create_configuration_bundle::CreateConfigurationBundleError::AccessDeniedException(inner) => {
384 Error::AccessDeniedException(inner)
385 }
386 crate::operation::create_configuration_bundle::CreateConfigurationBundleError::ConflictException(inner) => {
387 Error::ConflictException(inner)
388 }
389 crate::operation::create_configuration_bundle::CreateConfigurationBundleError::InternalServerException(inner) => {
390 Error::InternalServerException(inner)
391 }
392 crate::operation::create_configuration_bundle::CreateConfigurationBundleError::ServiceQuotaExceededException(inner) => {
393 Error::ServiceQuotaExceededException(inner)
394 }
395 crate::operation::create_configuration_bundle::CreateConfigurationBundleError::ThrottlingException(inner) => {
396 Error::ThrottlingException(inner)
397 }
398 crate::operation::create_configuration_bundle::CreateConfigurationBundleError::ValidationException(inner) => {
399 Error::ValidationException(inner)
400 }
401 crate::operation::create_configuration_bundle::CreateConfigurationBundleError::Unhandled(inner) => Error::Unhandled(inner),
402 }
403 }
404}
405impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_dataset::CreateDatasetError, R>> for Error
406where
407 R: Send + Sync + std::fmt::Debug + 'static,
408{
409 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_dataset::CreateDatasetError, R>) -> Self {
410 match err {
411 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
412 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
413 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
414 source: err.into(),
415 }),
416 }
417 }
418}
419impl From<crate::operation::create_dataset::CreateDatasetError> for Error {
420 fn from(err: crate::operation::create_dataset::CreateDatasetError) -> Self {
421 match err {
422 crate::operation::create_dataset::CreateDatasetError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
423 crate::operation::create_dataset::CreateDatasetError::ConflictException(inner) => Error::ConflictException(inner),
424 crate::operation::create_dataset::CreateDatasetError::InternalServerException(inner) => Error::InternalServerException(inner),
425 crate::operation::create_dataset::CreateDatasetError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
426 crate::operation::create_dataset::CreateDatasetError::ThrottlingException(inner) => Error::ThrottlingException(inner),
427 crate::operation::create_dataset::CreateDatasetError::ValidationException(inner) => Error::ValidationException(inner),
428 crate::operation::create_dataset::CreateDatasetError::Unhandled(inner) => Error::Unhandled(inner),
429 }
430 }
431}
432impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_dataset_version::CreateDatasetVersionError, R>> for Error
433where
434 R: Send + Sync + std::fmt::Debug + 'static,
435{
436 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_dataset_version::CreateDatasetVersionError, R>) -> Self {
437 match err {
438 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
439 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
440 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
441 source: err.into(),
442 }),
443 }
444 }
445}
446impl From<crate::operation::create_dataset_version::CreateDatasetVersionError> for Error {
447 fn from(err: crate::operation::create_dataset_version::CreateDatasetVersionError) -> Self {
448 match err {
449 crate::operation::create_dataset_version::CreateDatasetVersionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
450 crate::operation::create_dataset_version::CreateDatasetVersionError::ConflictException(inner) => Error::ConflictException(inner),
451 crate::operation::create_dataset_version::CreateDatasetVersionError::InternalServerException(inner) => {
452 Error::InternalServerException(inner)
453 }
454 crate::operation::create_dataset_version::CreateDatasetVersionError::ResourceNotFoundException(inner) => {
455 Error::ResourceNotFoundException(inner)
456 }
457 crate::operation::create_dataset_version::CreateDatasetVersionError::ServiceQuotaExceededException(inner) => {
458 Error::ServiceQuotaExceededException(inner)
459 }
460 crate::operation::create_dataset_version::CreateDatasetVersionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
461 crate::operation::create_dataset_version::CreateDatasetVersionError::ValidationException(inner) => Error::ValidationException(inner),
462 crate::operation::create_dataset_version::CreateDatasetVersionError::Unhandled(inner) => Error::Unhandled(inner),
463 }
464 }
465}
466impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_evaluator::CreateEvaluatorError, R>> for Error
467where
468 R: Send + Sync + std::fmt::Debug + 'static,
469{
470 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_evaluator::CreateEvaluatorError, R>) -> Self {
471 match err {
472 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
473 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
474 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
475 source: err.into(),
476 }),
477 }
478 }
479}
480impl From<crate::operation::create_evaluator::CreateEvaluatorError> for Error {
481 fn from(err: crate::operation::create_evaluator::CreateEvaluatorError) -> Self {
482 match err {
483 crate::operation::create_evaluator::CreateEvaluatorError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
484 crate::operation::create_evaluator::CreateEvaluatorError::ConflictException(inner) => Error::ConflictException(inner),
485 crate::operation::create_evaluator::CreateEvaluatorError::InternalServerException(inner) => Error::InternalServerException(inner),
486 crate::operation::create_evaluator::CreateEvaluatorError::ServiceQuotaExceededException(inner) => {
487 Error::ServiceQuotaExceededException(inner)
488 }
489 crate::operation::create_evaluator::CreateEvaluatorError::ThrottlingException(inner) => Error::ThrottlingException(inner),
490 crate::operation::create_evaluator::CreateEvaluatorError::ValidationException(inner) => Error::ValidationException(inner),
491 crate::operation::create_evaluator::CreateEvaluatorError::Unhandled(inner) => Error::Unhandled(inner),
492 }
493 }
494}
495impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_gateway::CreateGatewayError, R>> for Error
496where
497 R: Send + Sync + std::fmt::Debug + 'static,
498{
499 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_gateway::CreateGatewayError, R>) -> Self {
500 match err {
501 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
502 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
503 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
504 source: err.into(),
505 }),
506 }
507 }
508}
509impl From<crate::operation::create_gateway::CreateGatewayError> for Error {
510 fn from(err: crate::operation::create_gateway::CreateGatewayError) -> Self {
511 match err {
512 crate::operation::create_gateway::CreateGatewayError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
513 crate::operation::create_gateway::CreateGatewayError::ConflictException(inner) => Error::ConflictException(inner),
514 crate::operation::create_gateway::CreateGatewayError::InternalServerException(inner) => Error::InternalServerException(inner),
515 crate::operation::create_gateway::CreateGatewayError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
516 crate::operation::create_gateway::CreateGatewayError::ThrottlingException(inner) => Error::ThrottlingException(inner),
517 crate::operation::create_gateway::CreateGatewayError::ValidationException(inner) => Error::ValidationException(inner),
518 crate::operation::create_gateway::CreateGatewayError::Unhandled(inner) => Error::Unhandled(inner),
519 }
520 }
521}
522impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_gateway_rule::CreateGatewayRuleError, R>> for Error
523where
524 R: Send + Sync + std::fmt::Debug + 'static,
525{
526 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_gateway_rule::CreateGatewayRuleError, R>) -> Self {
527 match err {
528 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
529 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
530 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
531 source: err.into(),
532 }),
533 }
534 }
535}
536impl From<crate::operation::create_gateway_rule::CreateGatewayRuleError> for Error {
537 fn from(err: crate::operation::create_gateway_rule::CreateGatewayRuleError) -> Self {
538 match err {
539 crate::operation::create_gateway_rule::CreateGatewayRuleError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
540 crate::operation::create_gateway_rule::CreateGatewayRuleError::ConflictException(inner) => Error::ConflictException(inner),
541 crate::operation::create_gateway_rule::CreateGatewayRuleError::InternalServerException(inner) => Error::InternalServerException(inner),
542 crate::operation::create_gateway_rule::CreateGatewayRuleError::ResourceNotFoundException(inner) => {
543 Error::ResourceNotFoundException(inner)
544 }
545 crate::operation::create_gateway_rule::CreateGatewayRuleError::ServiceQuotaExceededException(inner) => {
546 Error::ServiceQuotaExceededException(inner)
547 }
548 crate::operation::create_gateway_rule::CreateGatewayRuleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
549 crate::operation::create_gateway_rule::CreateGatewayRuleError::ValidationException(inner) => Error::ValidationException(inner),
550 crate::operation::create_gateway_rule::CreateGatewayRuleError::Unhandled(inner) => Error::Unhandled(inner),
551 }
552 }
553}
554impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_gateway_target::CreateGatewayTargetError, 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::create_gateway_target::CreateGatewayTargetError, 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::create_gateway_target::CreateGatewayTargetError> for Error {
569 fn from(err: crate::operation::create_gateway_target::CreateGatewayTargetError) -> Self {
570 match err {
571 crate::operation::create_gateway_target::CreateGatewayTargetError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
572 crate::operation::create_gateway_target::CreateGatewayTargetError::ConflictException(inner) => Error::ConflictException(inner),
573 crate::operation::create_gateway_target::CreateGatewayTargetError::InternalServerException(inner) => {
574 Error::InternalServerException(inner)
575 }
576 crate::operation::create_gateway_target::CreateGatewayTargetError::ResourceNotFoundException(inner) => {
577 Error::ResourceNotFoundException(inner)
578 }
579 crate::operation::create_gateway_target::CreateGatewayTargetError::ServiceQuotaExceededException(inner) => {
580 Error::ServiceQuotaExceededException(inner)
581 }
582 crate::operation::create_gateway_target::CreateGatewayTargetError::ThrottlingException(inner) => Error::ThrottlingException(inner),
583 crate::operation::create_gateway_target::CreateGatewayTargetError::ValidationException(inner) => Error::ValidationException(inner),
584 crate::operation::create_gateway_target::CreateGatewayTargetError::Unhandled(inner) => Error::Unhandled(inner),
585 }
586 }
587}
588impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_harness::CreateHarnessError, 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::create_harness::CreateHarnessError, 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::create_harness::CreateHarnessError> for Error {
603 fn from(err: crate::operation::create_harness::CreateHarnessError) -> Self {
604 match err {
605 crate::operation::create_harness::CreateHarnessError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
606 crate::operation::create_harness::CreateHarnessError::ConflictException(inner) => Error::ConflictException(inner),
607 crate::operation::create_harness::CreateHarnessError::InternalServerException(inner) => Error::InternalServerException(inner),
608 crate::operation::create_harness::CreateHarnessError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
609 crate::operation::create_harness::CreateHarnessError::ThrottlingException(inner) => Error::ThrottlingException(inner),
610 crate::operation::create_harness::CreateHarnessError::ValidationException(inner) => Error::ValidationException(inner),
611 crate::operation::create_harness::CreateHarnessError::Unhandled(inner) => Error::Unhandled(inner),
612 }
613 }
614}
615impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_harness_endpoint::CreateHarnessEndpointError, R>> for Error
616where
617 R: Send + Sync + std::fmt::Debug + 'static,
618{
619 fn from(
620 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_harness_endpoint::CreateHarnessEndpointError, R>,
621 ) -> Self {
622 match err {
623 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
624 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
625 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
626 source: err.into(),
627 }),
628 }
629 }
630}
631impl From<crate::operation::create_harness_endpoint::CreateHarnessEndpointError> for Error {
632 fn from(err: crate::operation::create_harness_endpoint::CreateHarnessEndpointError) -> Self {
633 match err {
634 crate::operation::create_harness_endpoint::CreateHarnessEndpointError::AccessDeniedException(inner) => {
635 Error::AccessDeniedException(inner)
636 }
637 crate::operation::create_harness_endpoint::CreateHarnessEndpointError::ConflictException(inner) => Error::ConflictException(inner),
638 crate::operation::create_harness_endpoint::CreateHarnessEndpointError::InternalServerException(inner) => {
639 Error::InternalServerException(inner)
640 }
641 crate::operation::create_harness_endpoint::CreateHarnessEndpointError::ResourceNotFoundException(inner) => {
642 Error::ResourceNotFoundException(inner)
643 }
644 crate::operation::create_harness_endpoint::CreateHarnessEndpointError::ServiceQuotaExceededException(inner) => {
645 Error::ServiceQuotaExceededException(inner)
646 }
647 crate::operation::create_harness_endpoint::CreateHarnessEndpointError::ThrottlingException(inner) => Error::ThrottlingException(inner),
648 crate::operation::create_harness_endpoint::CreateHarnessEndpointError::ValidationException(inner) => Error::ValidationException(inner),
649 crate::operation::create_harness_endpoint::CreateHarnessEndpointError::Unhandled(inner) => Error::Unhandled(inner),
650 }
651 }
652}
653impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_memory::CreateMemoryError, R>> for Error
654where
655 R: Send + Sync + std::fmt::Debug + 'static,
656{
657 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_memory::CreateMemoryError, R>) -> Self {
658 match err {
659 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
660 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
661 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
662 source: err.into(),
663 }),
664 }
665 }
666}
667impl From<crate::operation::create_memory::CreateMemoryError> for Error {
668 fn from(err: crate::operation::create_memory::CreateMemoryError) -> Self {
669 match err {
670 crate::operation::create_memory::CreateMemoryError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
671 crate::operation::create_memory::CreateMemoryError::ConflictException(inner) => Error::ConflictException(inner),
672 crate::operation::create_memory::CreateMemoryError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
673 crate::operation::create_memory::CreateMemoryError::ServiceException(inner) => Error::ServiceException(inner),
674 crate::operation::create_memory::CreateMemoryError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
675 crate::operation::create_memory::CreateMemoryError::ThrottledException(inner) => Error::ThrottledException(inner),
676 crate::operation::create_memory::CreateMemoryError::ValidationException(inner) => Error::ValidationException(inner),
677 crate::operation::create_memory::CreateMemoryError::Unhandled(inner) => Error::Unhandled(inner),
678 }
679 }
680}
681impl<R>
682 From<
683 ::aws_smithy_runtime_api::client::result::SdkError<
684 crate::operation::create_oauth2_credential_provider::CreateOauth2CredentialProviderError,
685 R,
686 >,
687 > for Error
688where
689 R: Send + Sync + std::fmt::Debug + 'static,
690{
691 fn from(
692 err: ::aws_smithy_runtime_api::client::result::SdkError<
693 crate::operation::create_oauth2_credential_provider::CreateOauth2CredentialProviderError,
694 R,
695 >,
696 ) -> Self {
697 match err {
698 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
699 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
700 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
701 source: err.into(),
702 }),
703 }
704 }
705}
706impl From<crate::operation::create_oauth2_credential_provider::CreateOauth2CredentialProviderError> for Error {
707 fn from(err: crate::operation::create_oauth2_credential_provider::CreateOauth2CredentialProviderError) -> Self {
708 match err {
709 crate::operation::create_oauth2_credential_provider::CreateOauth2CredentialProviderError::AccessDeniedException(inner) => {
710 Error::AccessDeniedException(inner)
711 }
712 crate::operation::create_oauth2_credential_provider::CreateOauth2CredentialProviderError::ConflictException(inner) => {
713 Error::ConflictException(inner)
714 }
715 crate::operation::create_oauth2_credential_provider::CreateOauth2CredentialProviderError::DecryptionFailure(inner) => {
716 Error::DecryptionFailure(inner)
717 }
718 crate::operation::create_oauth2_credential_provider::CreateOauth2CredentialProviderError::EncryptionFailure(inner) => {
719 Error::EncryptionFailure(inner)
720 }
721 crate::operation::create_oauth2_credential_provider::CreateOauth2CredentialProviderError::InternalServerException(inner) => {
722 Error::InternalServerException(inner)
723 }
724 crate::operation::create_oauth2_credential_provider::CreateOauth2CredentialProviderError::ResourceLimitExceededException(inner) => {
725 Error::ResourceLimitExceededException(inner)
726 }
727 crate::operation::create_oauth2_credential_provider::CreateOauth2CredentialProviderError::ResourceNotFoundException(inner) => {
728 Error::ResourceNotFoundException(inner)
729 }
730 crate::operation::create_oauth2_credential_provider::CreateOauth2CredentialProviderError::ServiceQuotaExceededException(inner) => {
731 Error::ServiceQuotaExceededException(inner)
732 }
733 crate::operation::create_oauth2_credential_provider::CreateOauth2CredentialProviderError::ThrottlingException(inner) => {
734 Error::ThrottlingException(inner)
735 }
736 crate::operation::create_oauth2_credential_provider::CreateOauth2CredentialProviderError::UnauthorizedException(inner) => {
737 Error::UnauthorizedException(inner)
738 }
739 crate::operation::create_oauth2_credential_provider::CreateOauth2CredentialProviderError::ValidationException(inner) => {
740 Error::ValidationException(inner)
741 }
742 crate::operation::create_oauth2_credential_provider::CreateOauth2CredentialProviderError::Unhandled(inner) => Error::Unhandled(inner),
743 }
744 }
745}
746impl<R>
747 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_online_evaluation_config::CreateOnlineEvaluationConfigError, R>>
748 for Error
749where
750 R: Send + Sync + std::fmt::Debug + 'static,
751{
752 fn from(
753 err: ::aws_smithy_runtime_api::client::result::SdkError<
754 crate::operation::create_online_evaluation_config::CreateOnlineEvaluationConfigError,
755 R,
756 >,
757 ) -> Self {
758 match err {
759 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
760 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
761 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
762 source: err.into(),
763 }),
764 }
765 }
766}
767impl From<crate::operation::create_online_evaluation_config::CreateOnlineEvaluationConfigError> for Error {
768 fn from(err: crate::operation::create_online_evaluation_config::CreateOnlineEvaluationConfigError) -> Self {
769 match err {
770 crate::operation::create_online_evaluation_config::CreateOnlineEvaluationConfigError::AccessDeniedException(inner) => {
771 Error::AccessDeniedException(inner)
772 }
773 crate::operation::create_online_evaluation_config::CreateOnlineEvaluationConfigError::ConflictException(inner) => {
774 Error::ConflictException(inner)
775 }
776 crate::operation::create_online_evaluation_config::CreateOnlineEvaluationConfigError::InternalServerException(inner) => {
777 Error::InternalServerException(inner)
778 }
779 crate::operation::create_online_evaluation_config::CreateOnlineEvaluationConfigError::ServiceQuotaExceededException(inner) => {
780 Error::ServiceQuotaExceededException(inner)
781 }
782 crate::operation::create_online_evaluation_config::CreateOnlineEvaluationConfigError::ThrottlingException(inner) => {
783 Error::ThrottlingException(inner)
784 }
785 crate::operation::create_online_evaluation_config::CreateOnlineEvaluationConfigError::ValidationException(inner) => {
786 Error::ValidationException(inner)
787 }
788 crate::operation::create_online_evaluation_config::CreateOnlineEvaluationConfigError::Unhandled(inner) => Error::Unhandled(inner),
789 }
790 }
791}
792impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_payment_connector::CreatePaymentConnectorError, R>> for Error
793where
794 R: Send + Sync + std::fmt::Debug + 'static,
795{
796 fn from(
797 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_payment_connector::CreatePaymentConnectorError, R>,
798 ) -> Self {
799 match err {
800 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
801 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
802 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
803 source: err.into(),
804 }),
805 }
806 }
807}
808impl From<crate::operation::create_payment_connector::CreatePaymentConnectorError> for Error {
809 fn from(err: crate::operation::create_payment_connector::CreatePaymentConnectorError) -> Self {
810 match err {
811 crate::operation::create_payment_connector::CreatePaymentConnectorError::AccessDeniedException(inner) => {
812 Error::AccessDeniedException(inner)
813 }
814 crate::operation::create_payment_connector::CreatePaymentConnectorError::ConflictException(inner) => Error::ConflictException(inner),
815 crate::operation::create_payment_connector::CreatePaymentConnectorError::InternalServerException(inner) => {
816 Error::InternalServerException(inner)
817 }
818 crate::operation::create_payment_connector::CreatePaymentConnectorError::ResourceNotFoundException(inner) => {
819 Error::ResourceNotFoundException(inner)
820 }
821 crate::operation::create_payment_connector::CreatePaymentConnectorError::ServiceQuotaExceededException(inner) => {
822 Error::ServiceQuotaExceededException(inner)
823 }
824 crate::operation::create_payment_connector::CreatePaymentConnectorError::ThrottlingException(inner) => Error::ThrottlingException(inner),
825 crate::operation::create_payment_connector::CreatePaymentConnectorError::ValidationException(inner) => Error::ValidationException(inner),
826 crate::operation::create_payment_connector::CreatePaymentConnectorError::Unhandled(inner) => Error::Unhandled(inner),
827 }
828 }
829}
830impl<R>
831 From<
832 ::aws_smithy_runtime_api::client::result::SdkError<
833 crate::operation::create_payment_credential_provider::CreatePaymentCredentialProviderError,
834 R,
835 >,
836 > for Error
837where
838 R: Send + Sync + std::fmt::Debug + 'static,
839{
840 fn from(
841 err: ::aws_smithy_runtime_api::client::result::SdkError<
842 crate::operation::create_payment_credential_provider::CreatePaymentCredentialProviderError,
843 R,
844 >,
845 ) -> Self {
846 match err {
847 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
848 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
849 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
850 source: err.into(),
851 }),
852 }
853 }
854}
855impl From<crate::operation::create_payment_credential_provider::CreatePaymentCredentialProviderError> for Error {
856 fn from(err: crate::operation::create_payment_credential_provider::CreatePaymentCredentialProviderError) -> Self {
857 match err {
858 crate::operation::create_payment_credential_provider::CreatePaymentCredentialProviderError::AccessDeniedException(inner) => {
859 Error::AccessDeniedException(inner)
860 }
861 crate::operation::create_payment_credential_provider::CreatePaymentCredentialProviderError::ConflictException(inner) => {
862 Error::ConflictException(inner)
863 }
864 crate::operation::create_payment_credential_provider::CreatePaymentCredentialProviderError::DecryptionFailure(inner) => {
865 Error::DecryptionFailure(inner)
866 }
867 crate::operation::create_payment_credential_provider::CreatePaymentCredentialProviderError::EncryptionFailure(inner) => {
868 Error::EncryptionFailure(inner)
869 }
870 crate::operation::create_payment_credential_provider::CreatePaymentCredentialProviderError::InternalServerException(inner) => {
871 Error::InternalServerException(inner)
872 }
873 crate::operation::create_payment_credential_provider::CreatePaymentCredentialProviderError::ResourceLimitExceededException(inner) => {
874 Error::ResourceLimitExceededException(inner)
875 }
876 crate::operation::create_payment_credential_provider::CreatePaymentCredentialProviderError::ResourceNotFoundException(inner) => {
877 Error::ResourceNotFoundException(inner)
878 }
879 crate::operation::create_payment_credential_provider::CreatePaymentCredentialProviderError::ServiceQuotaExceededException(inner) => {
880 Error::ServiceQuotaExceededException(inner)
881 }
882 crate::operation::create_payment_credential_provider::CreatePaymentCredentialProviderError::ThrottlingException(inner) => {
883 Error::ThrottlingException(inner)
884 }
885 crate::operation::create_payment_credential_provider::CreatePaymentCredentialProviderError::UnauthorizedException(inner) => {
886 Error::UnauthorizedException(inner)
887 }
888 crate::operation::create_payment_credential_provider::CreatePaymentCredentialProviderError::ValidationException(inner) => {
889 Error::ValidationException(inner)
890 }
891 crate::operation::create_payment_credential_provider::CreatePaymentCredentialProviderError::Unhandled(inner) => Error::Unhandled(inner),
892 }
893 }
894}
895impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_payment_manager::CreatePaymentManagerError, R>> for Error
896where
897 R: Send + Sync + std::fmt::Debug + 'static,
898{
899 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_payment_manager::CreatePaymentManagerError, R>) -> Self {
900 match err {
901 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
902 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
903 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
904 source: err.into(),
905 }),
906 }
907 }
908}
909impl From<crate::operation::create_payment_manager::CreatePaymentManagerError> for Error {
910 fn from(err: crate::operation::create_payment_manager::CreatePaymentManagerError) -> Self {
911 match err {
912 crate::operation::create_payment_manager::CreatePaymentManagerError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
913 crate::operation::create_payment_manager::CreatePaymentManagerError::ConflictException(inner) => Error::ConflictException(inner),
914 crate::operation::create_payment_manager::CreatePaymentManagerError::InternalServerException(inner) => {
915 Error::InternalServerException(inner)
916 }
917 crate::operation::create_payment_manager::CreatePaymentManagerError::ServiceQuotaExceededException(inner) => {
918 Error::ServiceQuotaExceededException(inner)
919 }
920 crate::operation::create_payment_manager::CreatePaymentManagerError::ThrottlingException(inner) => Error::ThrottlingException(inner),
921 crate::operation::create_payment_manager::CreatePaymentManagerError::ValidationException(inner) => Error::ValidationException(inner),
922 crate::operation::create_payment_manager::CreatePaymentManagerError::Unhandled(inner) => Error::Unhandled(inner),
923 }
924 }
925}
926impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_policy::CreatePolicyError, R>> for Error
927where
928 R: Send + Sync + std::fmt::Debug + 'static,
929{
930 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_policy::CreatePolicyError, R>) -> Self {
931 match err {
932 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
933 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
934 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
935 source: err.into(),
936 }),
937 }
938 }
939}
940impl From<crate::operation::create_policy::CreatePolicyError> for Error {
941 fn from(err: crate::operation::create_policy::CreatePolicyError) -> Self {
942 match err {
943 crate::operation::create_policy::CreatePolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
944 crate::operation::create_policy::CreatePolicyError::ConflictException(inner) => Error::ConflictException(inner),
945 crate::operation::create_policy::CreatePolicyError::InternalServerException(inner) => Error::InternalServerException(inner),
946 crate::operation::create_policy::CreatePolicyError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
947 crate::operation::create_policy::CreatePolicyError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
948 crate::operation::create_policy::CreatePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
949 crate::operation::create_policy::CreatePolicyError::ValidationException(inner) => Error::ValidationException(inner),
950 crate::operation::create_policy::CreatePolicyError::Unhandled(inner) => Error::Unhandled(inner),
951 }
952 }
953}
954impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_policy_engine::CreatePolicyEngineError, R>> for Error
955where
956 R: Send + Sync + std::fmt::Debug + 'static,
957{
958 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_policy_engine::CreatePolicyEngineError, R>) -> Self {
959 match err {
960 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
961 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
962 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
963 source: err.into(),
964 }),
965 }
966 }
967}
968impl From<crate::operation::create_policy_engine::CreatePolicyEngineError> for Error {
969 fn from(err: crate::operation::create_policy_engine::CreatePolicyEngineError) -> Self {
970 match err {
971 crate::operation::create_policy_engine::CreatePolicyEngineError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
972 crate::operation::create_policy_engine::CreatePolicyEngineError::ConflictException(inner) => Error::ConflictException(inner),
973 crate::operation::create_policy_engine::CreatePolicyEngineError::InternalServerException(inner) => Error::InternalServerException(inner),
974 crate::operation::create_policy_engine::CreatePolicyEngineError::ServiceQuotaExceededException(inner) => {
975 Error::ServiceQuotaExceededException(inner)
976 }
977 crate::operation::create_policy_engine::CreatePolicyEngineError::ThrottlingException(inner) => Error::ThrottlingException(inner),
978 crate::operation::create_policy_engine::CreatePolicyEngineError::ValidationException(inner) => Error::ValidationException(inner),
979 crate::operation::create_policy_engine::CreatePolicyEngineError::Unhandled(inner) => Error::Unhandled(inner),
980 }
981 }
982}
983impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_registry::CreateRegistryError, R>> for Error
984where
985 R: Send + Sync + std::fmt::Debug + 'static,
986{
987 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_registry::CreateRegistryError, R>) -> Self {
988 match err {
989 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
990 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
991 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
992 source: err.into(),
993 }),
994 }
995 }
996}
997impl From<crate::operation::create_registry::CreateRegistryError> for Error {
998 fn from(err: crate::operation::create_registry::CreateRegistryError) -> Self {
999 match err {
1000 crate::operation::create_registry::CreateRegistryError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1001 crate::operation::create_registry::CreateRegistryError::ConflictException(inner) => Error::ConflictException(inner),
1002 crate::operation::create_registry::CreateRegistryError::InternalServerException(inner) => Error::InternalServerException(inner),
1003 crate::operation::create_registry::CreateRegistryError::ServiceQuotaExceededException(inner) => {
1004 Error::ServiceQuotaExceededException(inner)
1005 }
1006 crate::operation::create_registry::CreateRegistryError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1007 crate::operation::create_registry::CreateRegistryError::ValidationException(inner) => Error::ValidationException(inner),
1008 crate::operation::create_registry::CreateRegistryError::Unhandled(inner) => Error::Unhandled(inner),
1009 }
1010 }
1011}
1012impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_registry_record::CreateRegistryRecordError, R>> for Error
1013where
1014 R: Send + Sync + std::fmt::Debug + 'static,
1015{
1016 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_registry_record::CreateRegistryRecordError, R>) -> Self {
1017 match err {
1018 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1019 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1020 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1021 source: err.into(),
1022 }),
1023 }
1024 }
1025}
1026impl From<crate::operation::create_registry_record::CreateRegistryRecordError> for Error {
1027 fn from(err: crate::operation::create_registry_record::CreateRegistryRecordError) -> Self {
1028 match err {
1029 crate::operation::create_registry_record::CreateRegistryRecordError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1030 crate::operation::create_registry_record::CreateRegistryRecordError::ConflictException(inner) => Error::ConflictException(inner),
1031 crate::operation::create_registry_record::CreateRegistryRecordError::InternalServerException(inner) => {
1032 Error::InternalServerException(inner)
1033 }
1034 crate::operation::create_registry_record::CreateRegistryRecordError::ResourceNotFoundException(inner) => {
1035 Error::ResourceNotFoundException(inner)
1036 }
1037 crate::operation::create_registry_record::CreateRegistryRecordError::ServiceQuotaExceededException(inner) => {
1038 Error::ServiceQuotaExceededException(inner)
1039 }
1040 crate::operation::create_registry_record::CreateRegistryRecordError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1041 crate::operation::create_registry_record::CreateRegistryRecordError::ValidationException(inner) => Error::ValidationException(inner),
1042 crate::operation::create_registry_record::CreateRegistryRecordError::Unhandled(inner) => Error::Unhandled(inner),
1043 }
1044 }
1045}
1046impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_workload_identity::CreateWorkloadIdentityError, R>> for Error
1047where
1048 R: Send + Sync + std::fmt::Debug + 'static,
1049{
1050 fn from(
1051 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_workload_identity::CreateWorkloadIdentityError, R>,
1052 ) -> Self {
1053 match err {
1054 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1055 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1056 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1057 source: err.into(),
1058 }),
1059 }
1060 }
1061}
1062impl From<crate::operation::create_workload_identity::CreateWorkloadIdentityError> for Error {
1063 fn from(err: crate::operation::create_workload_identity::CreateWorkloadIdentityError) -> Self {
1064 match err {
1065 crate::operation::create_workload_identity::CreateWorkloadIdentityError::AccessDeniedException(inner) => {
1066 Error::AccessDeniedException(inner)
1067 }
1068 crate::operation::create_workload_identity::CreateWorkloadIdentityError::InternalServerException(inner) => {
1069 Error::InternalServerException(inner)
1070 }
1071 crate::operation::create_workload_identity::CreateWorkloadIdentityError::ResourceNotFoundException(inner) => {
1072 Error::ResourceNotFoundException(inner)
1073 }
1074 crate::operation::create_workload_identity::CreateWorkloadIdentityError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1075 crate::operation::create_workload_identity::CreateWorkloadIdentityError::UnauthorizedException(inner) => {
1076 Error::UnauthorizedException(inner)
1077 }
1078 crate::operation::create_workload_identity::CreateWorkloadIdentityError::ValidationException(inner) => Error::ValidationException(inner),
1079 crate::operation::create_workload_identity::CreateWorkloadIdentityError::Unhandled(inner) => Error::Unhandled(inner),
1080 }
1081 }
1082}
1083impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_agent_runtime::DeleteAgentRuntimeError, R>> for Error
1084where
1085 R: Send + Sync + std::fmt::Debug + 'static,
1086{
1087 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_agent_runtime::DeleteAgentRuntimeError, R>) -> Self {
1088 match err {
1089 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1090 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1091 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1092 source: err.into(),
1093 }),
1094 }
1095 }
1096}
1097impl From<crate::operation::delete_agent_runtime::DeleteAgentRuntimeError> for Error {
1098 fn from(err: crate::operation::delete_agent_runtime::DeleteAgentRuntimeError) -> Self {
1099 match err {
1100 crate::operation::delete_agent_runtime::DeleteAgentRuntimeError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1101 crate::operation::delete_agent_runtime::DeleteAgentRuntimeError::ConflictException(inner) => Error::ConflictException(inner),
1102 crate::operation::delete_agent_runtime::DeleteAgentRuntimeError::InternalServerException(inner) => Error::InternalServerException(inner),
1103 crate::operation::delete_agent_runtime::DeleteAgentRuntimeError::ResourceNotFoundException(inner) => {
1104 Error::ResourceNotFoundException(inner)
1105 }
1106 crate::operation::delete_agent_runtime::DeleteAgentRuntimeError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1107 crate::operation::delete_agent_runtime::DeleteAgentRuntimeError::Unhandled(inner) => Error::Unhandled(inner),
1108 }
1109 }
1110}
1111impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_agent_runtime_endpoint::DeleteAgentRuntimeEndpointError, R>>
1112 for Error
1113where
1114 R: Send + Sync + std::fmt::Debug + 'static,
1115{
1116 fn from(
1117 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_agent_runtime_endpoint::DeleteAgentRuntimeEndpointError, R>,
1118 ) -> Self {
1119 match err {
1120 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1121 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1122 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1123 source: err.into(),
1124 }),
1125 }
1126 }
1127}
1128impl From<crate::operation::delete_agent_runtime_endpoint::DeleteAgentRuntimeEndpointError> for Error {
1129 fn from(err: crate::operation::delete_agent_runtime_endpoint::DeleteAgentRuntimeEndpointError) -> Self {
1130 match err {
1131 crate::operation::delete_agent_runtime_endpoint::DeleteAgentRuntimeEndpointError::AccessDeniedException(inner) => {
1132 Error::AccessDeniedException(inner)
1133 }
1134 crate::operation::delete_agent_runtime_endpoint::DeleteAgentRuntimeEndpointError::ConflictException(inner) => {
1135 Error::ConflictException(inner)
1136 }
1137 crate::operation::delete_agent_runtime_endpoint::DeleteAgentRuntimeEndpointError::InternalServerException(inner) => {
1138 Error::InternalServerException(inner)
1139 }
1140 crate::operation::delete_agent_runtime_endpoint::DeleteAgentRuntimeEndpointError::ResourceNotFoundException(inner) => {
1141 Error::ResourceNotFoundException(inner)
1142 }
1143 crate::operation::delete_agent_runtime_endpoint::DeleteAgentRuntimeEndpointError::ThrottlingException(inner) => {
1144 Error::ThrottlingException(inner)
1145 }
1146 crate::operation::delete_agent_runtime_endpoint::DeleteAgentRuntimeEndpointError::Unhandled(inner) => Error::Unhandled(inner),
1147 }
1148 }
1149}
1150impl<R>
1151 From<
1152 ::aws_smithy_runtime_api::client::result::SdkError<
1153 crate::operation::delete_api_key_credential_provider::DeleteApiKeyCredentialProviderError,
1154 R,
1155 >,
1156 > for Error
1157where
1158 R: Send + Sync + std::fmt::Debug + 'static,
1159{
1160 fn from(
1161 err: ::aws_smithy_runtime_api::client::result::SdkError<
1162 crate::operation::delete_api_key_credential_provider::DeleteApiKeyCredentialProviderError,
1163 R,
1164 >,
1165 ) -> Self {
1166 match err {
1167 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1168 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1169 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1170 source: err.into(),
1171 }),
1172 }
1173 }
1174}
1175impl From<crate::operation::delete_api_key_credential_provider::DeleteApiKeyCredentialProviderError> for Error {
1176 fn from(err: crate::operation::delete_api_key_credential_provider::DeleteApiKeyCredentialProviderError) -> Self {
1177 match err {
1178 crate::operation::delete_api_key_credential_provider::DeleteApiKeyCredentialProviderError::AccessDeniedException(inner) => {
1179 Error::AccessDeniedException(inner)
1180 }
1181 crate::operation::delete_api_key_credential_provider::DeleteApiKeyCredentialProviderError::InternalServerException(inner) => {
1182 Error::InternalServerException(inner)
1183 }
1184 crate::operation::delete_api_key_credential_provider::DeleteApiKeyCredentialProviderError::ResourceNotFoundException(inner) => {
1185 Error::ResourceNotFoundException(inner)
1186 }
1187 crate::operation::delete_api_key_credential_provider::DeleteApiKeyCredentialProviderError::ThrottlingException(inner) => {
1188 Error::ThrottlingException(inner)
1189 }
1190 crate::operation::delete_api_key_credential_provider::DeleteApiKeyCredentialProviderError::UnauthorizedException(inner) => {
1191 Error::UnauthorizedException(inner)
1192 }
1193 crate::operation::delete_api_key_credential_provider::DeleteApiKeyCredentialProviderError::ValidationException(inner) => {
1194 Error::ValidationException(inner)
1195 }
1196 crate::operation::delete_api_key_credential_provider::DeleteApiKeyCredentialProviderError::Unhandled(inner) => Error::Unhandled(inner),
1197 }
1198 }
1199}
1200impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_browser::DeleteBrowserError, R>> for Error
1201where
1202 R: Send + Sync + std::fmt::Debug + 'static,
1203{
1204 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_browser::DeleteBrowserError, R>) -> Self {
1205 match err {
1206 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1207 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1208 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1209 source: err.into(),
1210 }),
1211 }
1212 }
1213}
1214impl From<crate::operation::delete_browser::DeleteBrowserError> for Error {
1215 fn from(err: crate::operation::delete_browser::DeleteBrowserError) -> Self {
1216 match err {
1217 crate::operation::delete_browser::DeleteBrowserError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1218 crate::operation::delete_browser::DeleteBrowserError::ConflictException(inner) => Error::ConflictException(inner),
1219 crate::operation::delete_browser::DeleteBrowserError::InternalServerException(inner) => Error::InternalServerException(inner),
1220 crate::operation::delete_browser::DeleteBrowserError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1221 crate::operation::delete_browser::DeleteBrowserError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1222 crate::operation::delete_browser::DeleteBrowserError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1223 crate::operation::delete_browser::DeleteBrowserError::ValidationException(inner) => Error::ValidationException(inner),
1224 crate::operation::delete_browser::DeleteBrowserError::Unhandled(inner) => Error::Unhandled(inner),
1225 }
1226 }
1227}
1228impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_browser_profile::DeleteBrowserProfileError, R>> for Error
1229where
1230 R: Send + Sync + std::fmt::Debug + 'static,
1231{
1232 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_browser_profile::DeleteBrowserProfileError, R>) -> Self {
1233 match err {
1234 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1235 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1236 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1237 source: err.into(),
1238 }),
1239 }
1240 }
1241}
1242impl From<crate::operation::delete_browser_profile::DeleteBrowserProfileError> for Error {
1243 fn from(err: crate::operation::delete_browser_profile::DeleteBrowserProfileError) -> Self {
1244 match err {
1245 crate::operation::delete_browser_profile::DeleteBrowserProfileError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1246 crate::operation::delete_browser_profile::DeleteBrowserProfileError::ConflictException(inner) => Error::ConflictException(inner),
1247 crate::operation::delete_browser_profile::DeleteBrowserProfileError::InternalServerException(inner) => {
1248 Error::InternalServerException(inner)
1249 }
1250 crate::operation::delete_browser_profile::DeleteBrowserProfileError::ResourceNotFoundException(inner) => {
1251 Error::ResourceNotFoundException(inner)
1252 }
1253 crate::operation::delete_browser_profile::DeleteBrowserProfileError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1254 crate::operation::delete_browser_profile::DeleteBrowserProfileError::ValidationException(inner) => Error::ValidationException(inner),
1255 crate::operation::delete_browser_profile::DeleteBrowserProfileError::Unhandled(inner) => Error::Unhandled(inner),
1256 }
1257 }
1258}
1259impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_code_interpreter::DeleteCodeInterpreterError, R>> for Error
1260where
1261 R: Send + Sync + std::fmt::Debug + 'static,
1262{
1263 fn from(
1264 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_code_interpreter::DeleteCodeInterpreterError, R>,
1265 ) -> Self {
1266 match err {
1267 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1268 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1269 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1270 source: err.into(),
1271 }),
1272 }
1273 }
1274}
1275impl From<crate::operation::delete_code_interpreter::DeleteCodeInterpreterError> for Error {
1276 fn from(err: crate::operation::delete_code_interpreter::DeleteCodeInterpreterError) -> Self {
1277 match err {
1278 crate::operation::delete_code_interpreter::DeleteCodeInterpreterError::AccessDeniedException(inner) => {
1279 Error::AccessDeniedException(inner)
1280 }
1281 crate::operation::delete_code_interpreter::DeleteCodeInterpreterError::ConflictException(inner) => Error::ConflictException(inner),
1282 crate::operation::delete_code_interpreter::DeleteCodeInterpreterError::InternalServerException(inner) => {
1283 Error::InternalServerException(inner)
1284 }
1285 crate::operation::delete_code_interpreter::DeleteCodeInterpreterError::ResourceNotFoundException(inner) => {
1286 Error::ResourceNotFoundException(inner)
1287 }
1288 crate::operation::delete_code_interpreter::DeleteCodeInterpreterError::ServiceQuotaExceededException(inner) => {
1289 Error::ServiceQuotaExceededException(inner)
1290 }
1291 crate::operation::delete_code_interpreter::DeleteCodeInterpreterError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1292 crate::operation::delete_code_interpreter::DeleteCodeInterpreterError::ValidationException(inner) => Error::ValidationException(inner),
1293 crate::operation::delete_code_interpreter::DeleteCodeInterpreterError::Unhandled(inner) => Error::Unhandled(inner),
1294 }
1295 }
1296}
1297impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_configuration_bundle::DeleteConfigurationBundleError, R>>
1298 for Error
1299where
1300 R: Send + Sync + std::fmt::Debug + 'static,
1301{
1302 fn from(
1303 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_configuration_bundle::DeleteConfigurationBundleError, R>,
1304 ) -> Self {
1305 match err {
1306 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1307 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1308 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1309 source: err.into(),
1310 }),
1311 }
1312 }
1313}
1314impl From<crate::operation::delete_configuration_bundle::DeleteConfigurationBundleError> for Error {
1315 fn from(err: crate::operation::delete_configuration_bundle::DeleteConfigurationBundleError) -> Self {
1316 match err {
1317 crate::operation::delete_configuration_bundle::DeleteConfigurationBundleError::AccessDeniedException(inner) => {
1318 Error::AccessDeniedException(inner)
1319 }
1320 crate::operation::delete_configuration_bundle::DeleteConfigurationBundleError::ConflictException(inner) => {
1321 Error::ConflictException(inner)
1322 }
1323 crate::operation::delete_configuration_bundle::DeleteConfigurationBundleError::InternalServerException(inner) => {
1324 Error::InternalServerException(inner)
1325 }
1326 crate::operation::delete_configuration_bundle::DeleteConfigurationBundleError::ResourceNotFoundException(inner) => {
1327 Error::ResourceNotFoundException(inner)
1328 }
1329 crate::operation::delete_configuration_bundle::DeleteConfigurationBundleError::ThrottlingException(inner) => {
1330 Error::ThrottlingException(inner)
1331 }
1332 crate::operation::delete_configuration_bundle::DeleteConfigurationBundleError::ValidationException(inner) => {
1333 Error::ValidationException(inner)
1334 }
1335 crate::operation::delete_configuration_bundle::DeleteConfigurationBundleError::Unhandled(inner) => Error::Unhandled(inner),
1336 }
1337 }
1338}
1339impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_dataset::DeleteDatasetError, R>> for Error
1340where
1341 R: Send + Sync + std::fmt::Debug + 'static,
1342{
1343 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_dataset::DeleteDatasetError, R>) -> Self {
1344 match err {
1345 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1346 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1347 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1348 source: err.into(),
1349 }),
1350 }
1351 }
1352}
1353impl From<crate::operation::delete_dataset::DeleteDatasetError> for Error {
1354 fn from(err: crate::operation::delete_dataset::DeleteDatasetError) -> Self {
1355 match err {
1356 crate::operation::delete_dataset::DeleteDatasetError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1357 crate::operation::delete_dataset::DeleteDatasetError::ConflictException(inner) => Error::ConflictException(inner),
1358 crate::operation::delete_dataset::DeleteDatasetError::InternalServerException(inner) => Error::InternalServerException(inner),
1359 crate::operation::delete_dataset::DeleteDatasetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1360 crate::operation::delete_dataset::DeleteDatasetError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1361 crate::operation::delete_dataset::DeleteDatasetError::ValidationException(inner) => Error::ValidationException(inner),
1362 crate::operation::delete_dataset::DeleteDatasetError::Unhandled(inner) => Error::Unhandled(inner),
1363 }
1364 }
1365}
1366impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_dataset_examples::DeleteDatasetExamplesError, R>> for Error
1367where
1368 R: Send + Sync + std::fmt::Debug + 'static,
1369{
1370 fn from(
1371 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_dataset_examples::DeleteDatasetExamplesError, R>,
1372 ) -> Self {
1373 match err {
1374 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1375 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1376 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1377 source: err.into(),
1378 }),
1379 }
1380 }
1381}
1382impl From<crate::operation::delete_dataset_examples::DeleteDatasetExamplesError> for Error {
1383 fn from(err: crate::operation::delete_dataset_examples::DeleteDatasetExamplesError) -> Self {
1384 match err {
1385 crate::operation::delete_dataset_examples::DeleteDatasetExamplesError::AccessDeniedException(inner) => {
1386 Error::AccessDeniedException(inner)
1387 }
1388 crate::operation::delete_dataset_examples::DeleteDatasetExamplesError::ConflictException(inner) => Error::ConflictException(inner),
1389 crate::operation::delete_dataset_examples::DeleteDatasetExamplesError::InternalServerException(inner) => {
1390 Error::InternalServerException(inner)
1391 }
1392 crate::operation::delete_dataset_examples::DeleteDatasetExamplesError::ResourceNotFoundException(inner) => {
1393 Error::ResourceNotFoundException(inner)
1394 }
1395 crate::operation::delete_dataset_examples::DeleteDatasetExamplesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1396 crate::operation::delete_dataset_examples::DeleteDatasetExamplesError::ValidationException(inner) => Error::ValidationException(inner),
1397 crate::operation::delete_dataset_examples::DeleteDatasetExamplesError::Unhandled(inner) => Error::Unhandled(inner),
1398 }
1399 }
1400}
1401impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_evaluator::DeleteEvaluatorError, R>> for Error
1402where
1403 R: Send + Sync + std::fmt::Debug + 'static,
1404{
1405 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_evaluator::DeleteEvaluatorError, R>) -> Self {
1406 match err {
1407 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1408 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1409 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1410 source: err.into(),
1411 }),
1412 }
1413 }
1414}
1415impl From<crate::operation::delete_evaluator::DeleteEvaluatorError> for Error {
1416 fn from(err: crate::operation::delete_evaluator::DeleteEvaluatorError) -> Self {
1417 match err {
1418 crate::operation::delete_evaluator::DeleteEvaluatorError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1419 crate::operation::delete_evaluator::DeleteEvaluatorError::ConflictException(inner) => Error::ConflictException(inner),
1420 crate::operation::delete_evaluator::DeleteEvaluatorError::InternalServerException(inner) => Error::InternalServerException(inner),
1421 crate::operation::delete_evaluator::DeleteEvaluatorError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1422 crate::operation::delete_evaluator::DeleteEvaluatorError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1423 crate::operation::delete_evaluator::DeleteEvaluatorError::ValidationException(inner) => Error::ValidationException(inner),
1424 crate::operation::delete_evaluator::DeleteEvaluatorError::Unhandled(inner) => Error::Unhandled(inner),
1425 }
1426 }
1427}
1428impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_gateway::DeleteGatewayError, R>> for Error
1429where
1430 R: Send + Sync + std::fmt::Debug + 'static,
1431{
1432 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_gateway::DeleteGatewayError, R>) -> Self {
1433 match err {
1434 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1435 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1436 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1437 source: err.into(),
1438 }),
1439 }
1440 }
1441}
1442impl From<crate::operation::delete_gateway::DeleteGatewayError> for Error {
1443 fn from(err: crate::operation::delete_gateway::DeleteGatewayError) -> Self {
1444 match err {
1445 crate::operation::delete_gateway::DeleteGatewayError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1446 crate::operation::delete_gateway::DeleteGatewayError::ConflictException(inner) => Error::ConflictException(inner),
1447 crate::operation::delete_gateway::DeleteGatewayError::InternalServerException(inner) => Error::InternalServerException(inner),
1448 crate::operation::delete_gateway::DeleteGatewayError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1449 crate::operation::delete_gateway::DeleteGatewayError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1450 crate::operation::delete_gateway::DeleteGatewayError::ValidationException(inner) => Error::ValidationException(inner),
1451 crate::operation::delete_gateway::DeleteGatewayError::Unhandled(inner) => Error::Unhandled(inner),
1452 }
1453 }
1454}
1455impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_gateway_rule::DeleteGatewayRuleError, R>> for Error
1456where
1457 R: Send + Sync + std::fmt::Debug + 'static,
1458{
1459 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_gateway_rule::DeleteGatewayRuleError, R>) -> Self {
1460 match err {
1461 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1462 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1463 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1464 source: err.into(),
1465 }),
1466 }
1467 }
1468}
1469impl From<crate::operation::delete_gateway_rule::DeleteGatewayRuleError> for Error {
1470 fn from(err: crate::operation::delete_gateway_rule::DeleteGatewayRuleError) -> Self {
1471 match err {
1472 crate::operation::delete_gateway_rule::DeleteGatewayRuleError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1473 crate::operation::delete_gateway_rule::DeleteGatewayRuleError::ConflictException(inner) => Error::ConflictException(inner),
1474 crate::operation::delete_gateway_rule::DeleteGatewayRuleError::InternalServerException(inner) => Error::InternalServerException(inner),
1475 crate::operation::delete_gateway_rule::DeleteGatewayRuleError::ResourceNotFoundException(inner) => {
1476 Error::ResourceNotFoundException(inner)
1477 }
1478 crate::operation::delete_gateway_rule::DeleteGatewayRuleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1479 crate::operation::delete_gateway_rule::DeleteGatewayRuleError::ValidationException(inner) => Error::ValidationException(inner),
1480 crate::operation::delete_gateway_rule::DeleteGatewayRuleError::Unhandled(inner) => Error::Unhandled(inner),
1481 }
1482 }
1483}
1484impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_gateway_target::DeleteGatewayTargetError, R>> for Error
1485where
1486 R: Send + Sync + std::fmt::Debug + 'static,
1487{
1488 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_gateway_target::DeleteGatewayTargetError, R>) -> Self {
1489 match err {
1490 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1491 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1492 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1493 source: err.into(),
1494 }),
1495 }
1496 }
1497}
1498impl From<crate::operation::delete_gateway_target::DeleteGatewayTargetError> for Error {
1499 fn from(err: crate::operation::delete_gateway_target::DeleteGatewayTargetError) -> Self {
1500 match err {
1501 crate::operation::delete_gateway_target::DeleteGatewayTargetError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1502 crate::operation::delete_gateway_target::DeleteGatewayTargetError::ConflictException(inner) => Error::ConflictException(inner),
1503 crate::operation::delete_gateway_target::DeleteGatewayTargetError::InternalServerException(inner) => {
1504 Error::InternalServerException(inner)
1505 }
1506 crate::operation::delete_gateway_target::DeleteGatewayTargetError::ResourceNotFoundException(inner) => {
1507 Error::ResourceNotFoundException(inner)
1508 }
1509 crate::operation::delete_gateway_target::DeleteGatewayTargetError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1510 crate::operation::delete_gateway_target::DeleteGatewayTargetError::ValidationException(inner) => Error::ValidationException(inner),
1511 crate::operation::delete_gateway_target::DeleteGatewayTargetError::Unhandled(inner) => Error::Unhandled(inner),
1512 }
1513 }
1514}
1515impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_harness::DeleteHarnessError, R>> for Error
1516where
1517 R: Send + Sync + std::fmt::Debug + 'static,
1518{
1519 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_harness::DeleteHarnessError, R>) -> Self {
1520 match err {
1521 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1522 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1523 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1524 source: err.into(),
1525 }),
1526 }
1527 }
1528}
1529impl From<crate::operation::delete_harness::DeleteHarnessError> for Error {
1530 fn from(err: crate::operation::delete_harness::DeleteHarnessError) -> Self {
1531 match err {
1532 crate::operation::delete_harness::DeleteHarnessError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1533 crate::operation::delete_harness::DeleteHarnessError::ConflictException(inner) => Error::ConflictException(inner),
1534 crate::operation::delete_harness::DeleteHarnessError::InternalServerException(inner) => Error::InternalServerException(inner),
1535 crate::operation::delete_harness::DeleteHarnessError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1536 crate::operation::delete_harness::DeleteHarnessError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1537 crate::operation::delete_harness::DeleteHarnessError::ValidationException(inner) => Error::ValidationException(inner),
1538 crate::operation::delete_harness::DeleteHarnessError::Unhandled(inner) => Error::Unhandled(inner),
1539 }
1540 }
1541}
1542impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_harness_endpoint::DeleteHarnessEndpointError, R>> for Error
1543where
1544 R: Send + Sync + std::fmt::Debug + 'static,
1545{
1546 fn from(
1547 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_harness_endpoint::DeleteHarnessEndpointError, R>,
1548 ) -> Self {
1549 match err {
1550 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1551 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1552 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1553 source: err.into(),
1554 }),
1555 }
1556 }
1557}
1558impl From<crate::operation::delete_harness_endpoint::DeleteHarnessEndpointError> for Error {
1559 fn from(err: crate::operation::delete_harness_endpoint::DeleteHarnessEndpointError) -> Self {
1560 match err {
1561 crate::operation::delete_harness_endpoint::DeleteHarnessEndpointError::AccessDeniedException(inner) => {
1562 Error::AccessDeniedException(inner)
1563 }
1564 crate::operation::delete_harness_endpoint::DeleteHarnessEndpointError::ConflictException(inner) => Error::ConflictException(inner),
1565 crate::operation::delete_harness_endpoint::DeleteHarnessEndpointError::InternalServerException(inner) => {
1566 Error::InternalServerException(inner)
1567 }
1568 crate::operation::delete_harness_endpoint::DeleteHarnessEndpointError::ResourceNotFoundException(inner) => {
1569 Error::ResourceNotFoundException(inner)
1570 }
1571 crate::operation::delete_harness_endpoint::DeleteHarnessEndpointError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1572 crate::operation::delete_harness_endpoint::DeleteHarnessEndpointError::ValidationException(inner) => Error::ValidationException(inner),
1573 crate::operation::delete_harness_endpoint::DeleteHarnessEndpointError::Unhandled(inner) => Error::Unhandled(inner),
1574 }
1575 }
1576}
1577impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_memory::DeleteMemoryError, R>> for Error
1578where
1579 R: Send + Sync + std::fmt::Debug + 'static,
1580{
1581 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_memory::DeleteMemoryError, R>) -> Self {
1582 match err {
1583 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1584 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1585 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1586 source: err.into(),
1587 }),
1588 }
1589 }
1590}
1591impl From<crate::operation::delete_memory::DeleteMemoryError> for Error {
1592 fn from(err: crate::operation::delete_memory::DeleteMemoryError) -> Self {
1593 match err {
1594 crate::operation::delete_memory::DeleteMemoryError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1595 crate::operation::delete_memory::DeleteMemoryError::ConflictException(inner) => Error::ConflictException(inner),
1596 crate::operation::delete_memory::DeleteMemoryError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1597 crate::operation::delete_memory::DeleteMemoryError::ServiceException(inner) => Error::ServiceException(inner),
1598 crate::operation::delete_memory::DeleteMemoryError::ThrottledException(inner) => Error::ThrottledException(inner),
1599 crate::operation::delete_memory::DeleteMemoryError::ValidationException(inner) => Error::ValidationException(inner),
1600 crate::operation::delete_memory::DeleteMemoryError::Unhandled(inner) => Error::Unhandled(inner),
1601 }
1602 }
1603}
1604impl<R>
1605 From<
1606 ::aws_smithy_runtime_api::client::result::SdkError<
1607 crate::operation::delete_oauth2_credential_provider::DeleteOauth2CredentialProviderError,
1608 R,
1609 >,
1610 > for Error
1611where
1612 R: Send + Sync + std::fmt::Debug + 'static,
1613{
1614 fn from(
1615 err: ::aws_smithy_runtime_api::client::result::SdkError<
1616 crate::operation::delete_oauth2_credential_provider::DeleteOauth2CredentialProviderError,
1617 R,
1618 >,
1619 ) -> Self {
1620 match err {
1621 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1622 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1623 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1624 source: err.into(),
1625 }),
1626 }
1627 }
1628}
1629impl From<crate::operation::delete_oauth2_credential_provider::DeleteOauth2CredentialProviderError> for Error {
1630 fn from(err: crate::operation::delete_oauth2_credential_provider::DeleteOauth2CredentialProviderError) -> Self {
1631 match err {
1632 crate::operation::delete_oauth2_credential_provider::DeleteOauth2CredentialProviderError::AccessDeniedException(inner) => {
1633 Error::AccessDeniedException(inner)
1634 }
1635 crate::operation::delete_oauth2_credential_provider::DeleteOauth2CredentialProviderError::ConflictException(inner) => {
1636 Error::ConflictException(inner)
1637 }
1638 crate::operation::delete_oauth2_credential_provider::DeleteOauth2CredentialProviderError::InternalServerException(inner) => {
1639 Error::InternalServerException(inner)
1640 }
1641 crate::operation::delete_oauth2_credential_provider::DeleteOauth2CredentialProviderError::ResourceNotFoundException(inner) => {
1642 Error::ResourceNotFoundException(inner)
1643 }
1644 crate::operation::delete_oauth2_credential_provider::DeleteOauth2CredentialProviderError::ThrottlingException(inner) => {
1645 Error::ThrottlingException(inner)
1646 }
1647 crate::operation::delete_oauth2_credential_provider::DeleteOauth2CredentialProviderError::UnauthorizedException(inner) => {
1648 Error::UnauthorizedException(inner)
1649 }
1650 crate::operation::delete_oauth2_credential_provider::DeleteOauth2CredentialProviderError::ValidationException(inner) => {
1651 Error::ValidationException(inner)
1652 }
1653 crate::operation::delete_oauth2_credential_provider::DeleteOauth2CredentialProviderError::Unhandled(inner) => Error::Unhandled(inner),
1654 }
1655 }
1656}
1657impl<R>
1658 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_online_evaluation_config::DeleteOnlineEvaluationConfigError, R>>
1659 for Error
1660where
1661 R: Send + Sync + std::fmt::Debug + 'static,
1662{
1663 fn from(
1664 err: ::aws_smithy_runtime_api::client::result::SdkError<
1665 crate::operation::delete_online_evaluation_config::DeleteOnlineEvaluationConfigError,
1666 R,
1667 >,
1668 ) -> Self {
1669 match err {
1670 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1671 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1672 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1673 source: err.into(),
1674 }),
1675 }
1676 }
1677}
1678impl From<crate::operation::delete_online_evaluation_config::DeleteOnlineEvaluationConfigError> for Error {
1679 fn from(err: crate::operation::delete_online_evaluation_config::DeleteOnlineEvaluationConfigError) -> Self {
1680 match err {
1681 crate::operation::delete_online_evaluation_config::DeleteOnlineEvaluationConfigError::AccessDeniedException(inner) => {
1682 Error::AccessDeniedException(inner)
1683 }
1684 crate::operation::delete_online_evaluation_config::DeleteOnlineEvaluationConfigError::ConflictException(inner) => {
1685 Error::ConflictException(inner)
1686 }
1687 crate::operation::delete_online_evaluation_config::DeleteOnlineEvaluationConfigError::InternalServerException(inner) => {
1688 Error::InternalServerException(inner)
1689 }
1690 crate::operation::delete_online_evaluation_config::DeleteOnlineEvaluationConfigError::ResourceNotFoundException(inner) => {
1691 Error::ResourceNotFoundException(inner)
1692 }
1693 crate::operation::delete_online_evaluation_config::DeleteOnlineEvaluationConfigError::ThrottlingException(inner) => {
1694 Error::ThrottlingException(inner)
1695 }
1696 crate::operation::delete_online_evaluation_config::DeleteOnlineEvaluationConfigError::ValidationException(inner) => {
1697 Error::ValidationException(inner)
1698 }
1699 crate::operation::delete_online_evaluation_config::DeleteOnlineEvaluationConfigError::Unhandled(inner) => Error::Unhandled(inner),
1700 }
1701 }
1702}
1703impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_payment_connector::DeletePaymentConnectorError, R>> for Error
1704where
1705 R: Send + Sync + std::fmt::Debug + 'static,
1706{
1707 fn from(
1708 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_payment_connector::DeletePaymentConnectorError, R>,
1709 ) -> Self {
1710 match err {
1711 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1712 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1713 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1714 source: err.into(),
1715 }),
1716 }
1717 }
1718}
1719impl From<crate::operation::delete_payment_connector::DeletePaymentConnectorError> for Error {
1720 fn from(err: crate::operation::delete_payment_connector::DeletePaymentConnectorError) -> Self {
1721 match err {
1722 crate::operation::delete_payment_connector::DeletePaymentConnectorError::AccessDeniedException(inner) => {
1723 Error::AccessDeniedException(inner)
1724 }
1725 crate::operation::delete_payment_connector::DeletePaymentConnectorError::ConflictException(inner) => Error::ConflictException(inner),
1726 crate::operation::delete_payment_connector::DeletePaymentConnectorError::InternalServerException(inner) => {
1727 Error::InternalServerException(inner)
1728 }
1729 crate::operation::delete_payment_connector::DeletePaymentConnectorError::ResourceNotFoundException(inner) => {
1730 Error::ResourceNotFoundException(inner)
1731 }
1732 crate::operation::delete_payment_connector::DeletePaymentConnectorError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1733 crate::operation::delete_payment_connector::DeletePaymentConnectorError::Unhandled(inner) => Error::Unhandled(inner),
1734 }
1735 }
1736}
1737impl<R>
1738 From<
1739 ::aws_smithy_runtime_api::client::result::SdkError<
1740 crate::operation::delete_payment_credential_provider::DeletePaymentCredentialProviderError,
1741 R,
1742 >,
1743 > for Error
1744where
1745 R: Send + Sync + std::fmt::Debug + 'static,
1746{
1747 fn from(
1748 err: ::aws_smithy_runtime_api::client::result::SdkError<
1749 crate::operation::delete_payment_credential_provider::DeletePaymentCredentialProviderError,
1750 R,
1751 >,
1752 ) -> Self {
1753 match err {
1754 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1755 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1756 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1757 source: err.into(),
1758 }),
1759 }
1760 }
1761}
1762impl From<crate::operation::delete_payment_credential_provider::DeletePaymentCredentialProviderError> for Error {
1763 fn from(err: crate::operation::delete_payment_credential_provider::DeletePaymentCredentialProviderError) -> Self {
1764 match err {
1765 crate::operation::delete_payment_credential_provider::DeletePaymentCredentialProviderError::AccessDeniedException(inner) => {
1766 Error::AccessDeniedException(inner)
1767 }
1768 crate::operation::delete_payment_credential_provider::DeletePaymentCredentialProviderError::InternalServerException(inner) => {
1769 Error::InternalServerException(inner)
1770 }
1771 crate::operation::delete_payment_credential_provider::DeletePaymentCredentialProviderError::ResourceNotFoundException(inner) => {
1772 Error::ResourceNotFoundException(inner)
1773 }
1774 crate::operation::delete_payment_credential_provider::DeletePaymentCredentialProviderError::ThrottlingException(inner) => {
1775 Error::ThrottlingException(inner)
1776 }
1777 crate::operation::delete_payment_credential_provider::DeletePaymentCredentialProviderError::UnauthorizedException(inner) => {
1778 Error::UnauthorizedException(inner)
1779 }
1780 crate::operation::delete_payment_credential_provider::DeletePaymentCredentialProviderError::ValidationException(inner) => {
1781 Error::ValidationException(inner)
1782 }
1783 crate::operation::delete_payment_credential_provider::DeletePaymentCredentialProviderError::Unhandled(inner) => Error::Unhandled(inner),
1784 }
1785 }
1786}
1787impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_payment_manager::DeletePaymentManagerError, R>> for Error
1788where
1789 R: Send + Sync + std::fmt::Debug + 'static,
1790{
1791 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_payment_manager::DeletePaymentManagerError, R>) -> Self {
1792 match err {
1793 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1794 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1795 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1796 source: err.into(),
1797 }),
1798 }
1799 }
1800}
1801impl From<crate::operation::delete_payment_manager::DeletePaymentManagerError> for Error {
1802 fn from(err: crate::operation::delete_payment_manager::DeletePaymentManagerError) -> Self {
1803 match err {
1804 crate::operation::delete_payment_manager::DeletePaymentManagerError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1805 crate::operation::delete_payment_manager::DeletePaymentManagerError::ConflictException(inner) => Error::ConflictException(inner),
1806 crate::operation::delete_payment_manager::DeletePaymentManagerError::InternalServerException(inner) => {
1807 Error::InternalServerException(inner)
1808 }
1809 crate::operation::delete_payment_manager::DeletePaymentManagerError::ResourceNotFoundException(inner) => {
1810 Error::ResourceNotFoundException(inner)
1811 }
1812 crate::operation::delete_payment_manager::DeletePaymentManagerError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1813 crate::operation::delete_payment_manager::DeletePaymentManagerError::Unhandled(inner) => Error::Unhandled(inner),
1814 }
1815 }
1816}
1817impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_policy::DeletePolicyError, R>> for Error
1818where
1819 R: Send + Sync + std::fmt::Debug + 'static,
1820{
1821 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_policy::DeletePolicyError, R>) -> Self {
1822 match err {
1823 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1824 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1825 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1826 source: err.into(),
1827 }),
1828 }
1829 }
1830}
1831impl From<crate::operation::delete_policy::DeletePolicyError> for Error {
1832 fn from(err: crate::operation::delete_policy::DeletePolicyError) -> Self {
1833 match err {
1834 crate::operation::delete_policy::DeletePolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1835 crate::operation::delete_policy::DeletePolicyError::ConflictException(inner) => Error::ConflictException(inner),
1836 crate::operation::delete_policy::DeletePolicyError::InternalServerException(inner) => Error::InternalServerException(inner),
1837 crate::operation::delete_policy::DeletePolicyError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1838 crate::operation::delete_policy::DeletePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1839 crate::operation::delete_policy::DeletePolicyError::ValidationException(inner) => Error::ValidationException(inner),
1840 crate::operation::delete_policy::DeletePolicyError::Unhandled(inner) => Error::Unhandled(inner),
1841 }
1842 }
1843}
1844impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_policy_engine::DeletePolicyEngineError, R>> for Error
1845where
1846 R: Send + Sync + std::fmt::Debug + 'static,
1847{
1848 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_policy_engine::DeletePolicyEngineError, R>) -> Self {
1849 match err {
1850 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1851 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1852 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1853 source: err.into(),
1854 }),
1855 }
1856 }
1857}
1858impl From<crate::operation::delete_policy_engine::DeletePolicyEngineError> for Error {
1859 fn from(err: crate::operation::delete_policy_engine::DeletePolicyEngineError) -> Self {
1860 match err {
1861 crate::operation::delete_policy_engine::DeletePolicyEngineError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1862 crate::operation::delete_policy_engine::DeletePolicyEngineError::ConflictException(inner) => Error::ConflictException(inner),
1863 crate::operation::delete_policy_engine::DeletePolicyEngineError::InternalServerException(inner) => Error::InternalServerException(inner),
1864 crate::operation::delete_policy_engine::DeletePolicyEngineError::ResourceNotFoundException(inner) => {
1865 Error::ResourceNotFoundException(inner)
1866 }
1867 crate::operation::delete_policy_engine::DeletePolicyEngineError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1868 crate::operation::delete_policy_engine::DeletePolicyEngineError::ValidationException(inner) => Error::ValidationException(inner),
1869 crate::operation::delete_policy_engine::DeletePolicyEngineError::Unhandled(inner) => Error::Unhandled(inner),
1870 }
1871 }
1872}
1873impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_registry::DeleteRegistryError, R>> for Error
1874where
1875 R: Send + Sync + std::fmt::Debug + 'static,
1876{
1877 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_registry::DeleteRegistryError, R>) -> Self {
1878 match err {
1879 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1880 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1881 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1882 source: err.into(),
1883 }),
1884 }
1885 }
1886}
1887impl From<crate::operation::delete_registry::DeleteRegistryError> for Error {
1888 fn from(err: crate::operation::delete_registry::DeleteRegistryError) -> Self {
1889 match err {
1890 crate::operation::delete_registry::DeleteRegistryError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1891 crate::operation::delete_registry::DeleteRegistryError::ConflictException(inner) => Error::ConflictException(inner),
1892 crate::operation::delete_registry::DeleteRegistryError::InternalServerException(inner) => Error::InternalServerException(inner),
1893 crate::operation::delete_registry::DeleteRegistryError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1894 crate::operation::delete_registry::DeleteRegistryError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1895 crate::operation::delete_registry::DeleteRegistryError::ValidationException(inner) => Error::ValidationException(inner),
1896 crate::operation::delete_registry::DeleteRegistryError::Unhandled(inner) => Error::Unhandled(inner),
1897 }
1898 }
1899}
1900impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_registry_record::DeleteRegistryRecordError, R>> for Error
1901where
1902 R: Send + Sync + std::fmt::Debug + 'static,
1903{
1904 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_registry_record::DeleteRegistryRecordError, R>) -> Self {
1905 match err {
1906 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1907 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1908 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1909 source: err.into(),
1910 }),
1911 }
1912 }
1913}
1914impl From<crate::operation::delete_registry_record::DeleteRegistryRecordError> for Error {
1915 fn from(err: crate::operation::delete_registry_record::DeleteRegistryRecordError) -> Self {
1916 match err {
1917 crate::operation::delete_registry_record::DeleteRegistryRecordError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1918 crate::operation::delete_registry_record::DeleteRegistryRecordError::ConflictException(inner) => Error::ConflictException(inner),
1919 crate::operation::delete_registry_record::DeleteRegistryRecordError::InternalServerException(inner) => {
1920 Error::InternalServerException(inner)
1921 }
1922 crate::operation::delete_registry_record::DeleteRegistryRecordError::ResourceNotFoundException(inner) => {
1923 Error::ResourceNotFoundException(inner)
1924 }
1925 crate::operation::delete_registry_record::DeleteRegistryRecordError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1926 crate::operation::delete_registry_record::DeleteRegistryRecordError::ValidationException(inner) => Error::ValidationException(inner),
1927 crate::operation::delete_registry_record::DeleteRegistryRecordError::Unhandled(inner) => Error::Unhandled(inner),
1928 }
1929 }
1930}
1931impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_policy::DeleteResourcePolicyError, R>> for Error
1932where
1933 R: Send + Sync + std::fmt::Debug + 'static,
1934{
1935 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_policy::DeleteResourcePolicyError, R>) -> Self {
1936 match err {
1937 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1938 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1939 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1940 source: err.into(),
1941 }),
1942 }
1943 }
1944}
1945impl From<crate::operation::delete_resource_policy::DeleteResourcePolicyError> for Error {
1946 fn from(err: crate::operation::delete_resource_policy::DeleteResourcePolicyError) -> Self {
1947 match err {
1948 crate::operation::delete_resource_policy::DeleteResourcePolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1949 crate::operation::delete_resource_policy::DeleteResourcePolicyError::InternalServerException(inner) => {
1950 Error::InternalServerException(inner)
1951 }
1952 crate::operation::delete_resource_policy::DeleteResourcePolicyError::ResourceNotFoundException(inner) => {
1953 Error::ResourceNotFoundException(inner)
1954 }
1955 crate::operation::delete_resource_policy::DeleteResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1956 crate::operation::delete_resource_policy::DeleteResourcePolicyError::ValidationException(inner) => Error::ValidationException(inner),
1957 crate::operation::delete_resource_policy::DeleteResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
1958 }
1959 }
1960}
1961impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_workload_identity::DeleteWorkloadIdentityError, R>> for Error
1962where
1963 R: Send + Sync + std::fmt::Debug + 'static,
1964{
1965 fn from(
1966 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_workload_identity::DeleteWorkloadIdentityError, R>,
1967 ) -> Self {
1968 match err {
1969 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1970 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1971 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1972 source: err.into(),
1973 }),
1974 }
1975 }
1976}
1977impl From<crate::operation::delete_workload_identity::DeleteWorkloadIdentityError> for Error {
1978 fn from(err: crate::operation::delete_workload_identity::DeleteWorkloadIdentityError) -> Self {
1979 match err {
1980 crate::operation::delete_workload_identity::DeleteWorkloadIdentityError::AccessDeniedException(inner) => {
1981 Error::AccessDeniedException(inner)
1982 }
1983 crate::operation::delete_workload_identity::DeleteWorkloadIdentityError::InternalServerException(inner) => {
1984 Error::InternalServerException(inner)
1985 }
1986 crate::operation::delete_workload_identity::DeleteWorkloadIdentityError::ResourceNotFoundException(inner) => {
1987 Error::ResourceNotFoundException(inner)
1988 }
1989 crate::operation::delete_workload_identity::DeleteWorkloadIdentityError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1990 crate::operation::delete_workload_identity::DeleteWorkloadIdentityError::UnauthorizedException(inner) => {
1991 Error::UnauthorizedException(inner)
1992 }
1993 crate::operation::delete_workload_identity::DeleteWorkloadIdentityError::ValidationException(inner) => Error::ValidationException(inner),
1994 crate::operation::delete_workload_identity::DeleteWorkloadIdentityError::Unhandled(inner) => Error::Unhandled(inner),
1995 }
1996 }
1997}
1998impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_agent_runtime::GetAgentRuntimeError, R>> for Error
1999where
2000 R: Send + Sync + std::fmt::Debug + 'static,
2001{
2002 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_agent_runtime::GetAgentRuntimeError, R>) -> Self {
2003 match err {
2004 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2005 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2006 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2007 source: err.into(),
2008 }),
2009 }
2010 }
2011}
2012impl From<crate::operation::get_agent_runtime::GetAgentRuntimeError> for Error {
2013 fn from(err: crate::operation::get_agent_runtime::GetAgentRuntimeError) -> Self {
2014 match err {
2015 crate::operation::get_agent_runtime::GetAgentRuntimeError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2016 crate::operation::get_agent_runtime::GetAgentRuntimeError::InternalServerException(inner) => Error::InternalServerException(inner),
2017 crate::operation::get_agent_runtime::GetAgentRuntimeError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2018 crate::operation::get_agent_runtime::GetAgentRuntimeError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2019 crate::operation::get_agent_runtime::GetAgentRuntimeError::ValidationException(inner) => Error::ValidationException(inner),
2020 crate::operation::get_agent_runtime::GetAgentRuntimeError::Unhandled(inner) => Error::Unhandled(inner),
2021 }
2022 }
2023}
2024impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_agent_runtime_endpoint::GetAgentRuntimeEndpointError, R>>
2025 for Error
2026where
2027 R: Send + Sync + std::fmt::Debug + 'static,
2028{
2029 fn from(
2030 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_agent_runtime_endpoint::GetAgentRuntimeEndpointError, R>,
2031 ) -> Self {
2032 match err {
2033 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2034 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2035 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2036 source: err.into(),
2037 }),
2038 }
2039 }
2040}
2041impl From<crate::operation::get_agent_runtime_endpoint::GetAgentRuntimeEndpointError> for Error {
2042 fn from(err: crate::operation::get_agent_runtime_endpoint::GetAgentRuntimeEndpointError) -> Self {
2043 match err {
2044 crate::operation::get_agent_runtime_endpoint::GetAgentRuntimeEndpointError::AccessDeniedException(inner) => {
2045 Error::AccessDeniedException(inner)
2046 }
2047 crate::operation::get_agent_runtime_endpoint::GetAgentRuntimeEndpointError::InternalServerException(inner) => {
2048 Error::InternalServerException(inner)
2049 }
2050 crate::operation::get_agent_runtime_endpoint::GetAgentRuntimeEndpointError::ResourceNotFoundException(inner) => {
2051 Error::ResourceNotFoundException(inner)
2052 }
2053 crate::operation::get_agent_runtime_endpoint::GetAgentRuntimeEndpointError::ThrottlingException(inner) => {
2054 Error::ThrottlingException(inner)
2055 }
2056 crate::operation::get_agent_runtime_endpoint::GetAgentRuntimeEndpointError::ValidationException(inner) => {
2057 Error::ValidationException(inner)
2058 }
2059 crate::operation::get_agent_runtime_endpoint::GetAgentRuntimeEndpointError::Unhandled(inner) => Error::Unhandled(inner),
2060 }
2061 }
2062}
2063impl<R>
2064 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_api_key_credential_provider::GetApiKeyCredentialProviderError, R>>
2065 for Error
2066where
2067 R: Send + Sync + std::fmt::Debug + 'static,
2068{
2069 fn from(
2070 err: ::aws_smithy_runtime_api::client::result::SdkError<
2071 crate::operation::get_api_key_credential_provider::GetApiKeyCredentialProviderError,
2072 R,
2073 >,
2074 ) -> Self {
2075 match err {
2076 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2077 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2078 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2079 source: err.into(),
2080 }),
2081 }
2082 }
2083}
2084impl From<crate::operation::get_api_key_credential_provider::GetApiKeyCredentialProviderError> for Error {
2085 fn from(err: crate::operation::get_api_key_credential_provider::GetApiKeyCredentialProviderError) -> Self {
2086 match err {
2087 crate::operation::get_api_key_credential_provider::GetApiKeyCredentialProviderError::AccessDeniedException(inner) => {
2088 Error::AccessDeniedException(inner)
2089 }
2090 crate::operation::get_api_key_credential_provider::GetApiKeyCredentialProviderError::DecryptionFailure(inner) => {
2091 Error::DecryptionFailure(inner)
2092 }
2093 crate::operation::get_api_key_credential_provider::GetApiKeyCredentialProviderError::InternalServerException(inner) => {
2094 Error::InternalServerException(inner)
2095 }
2096 crate::operation::get_api_key_credential_provider::GetApiKeyCredentialProviderError::ResourceNotFoundException(inner) => {
2097 Error::ResourceNotFoundException(inner)
2098 }
2099 crate::operation::get_api_key_credential_provider::GetApiKeyCredentialProviderError::ThrottlingException(inner) => {
2100 Error::ThrottlingException(inner)
2101 }
2102 crate::operation::get_api_key_credential_provider::GetApiKeyCredentialProviderError::UnauthorizedException(inner) => {
2103 Error::UnauthorizedException(inner)
2104 }
2105 crate::operation::get_api_key_credential_provider::GetApiKeyCredentialProviderError::ValidationException(inner) => {
2106 Error::ValidationException(inner)
2107 }
2108 crate::operation::get_api_key_credential_provider::GetApiKeyCredentialProviderError::Unhandled(inner) => Error::Unhandled(inner),
2109 }
2110 }
2111}
2112impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_browser::GetBrowserError, R>> for Error
2113where
2114 R: Send + Sync + std::fmt::Debug + 'static,
2115{
2116 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_browser::GetBrowserError, R>) -> Self {
2117 match err {
2118 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2119 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2120 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2121 source: err.into(),
2122 }),
2123 }
2124 }
2125}
2126impl From<crate::operation::get_browser::GetBrowserError> for Error {
2127 fn from(err: crate::operation::get_browser::GetBrowserError) -> Self {
2128 match err {
2129 crate::operation::get_browser::GetBrowserError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2130 crate::operation::get_browser::GetBrowserError::InternalServerException(inner) => Error::InternalServerException(inner),
2131 crate::operation::get_browser::GetBrowserError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2132 crate::operation::get_browser::GetBrowserError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
2133 crate::operation::get_browser::GetBrowserError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2134 crate::operation::get_browser::GetBrowserError::Unhandled(inner) => Error::Unhandled(inner),
2135 }
2136 }
2137}
2138impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_browser_profile::GetBrowserProfileError, R>> for Error
2139where
2140 R: Send + Sync + std::fmt::Debug + 'static,
2141{
2142 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_browser_profile::GetBrowserProfileError, R>) -> Self {
2143 match err {
2144 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2145 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2146 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2147 source: err.into(),
2148 }),
2149 }
2150 }
2151}
2152impl From<crate::operation::get_browser_profile::GetBrowserProfileError> for Error {
2153 fn from(err: crate::operation::get_browser_profile::GetBrowserProfileError) -> Self {
2154 match err {
2155 crate::operation::get_browser_profile::GetBrowserProfileError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2156 crate::operation::get_browser_profile::GetBrowserProfileError::InternalServerException(inner) => Error::InternalServerException(inner),
2157 crate::operation::get_browser_profile::GetBrowserProfileError::ResourceNotFoundException(inner) => {
2158 Error::ResourceNotFoundException(inner)
2159 }
2160 crate::operation::get_browser_profile::GetBrowserProfileError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2161 crate::operation::get_browser_profile::GetBrowserProfileError::ValidationException(inner) => Error::ValidationException(inner),
2162 crate::operation::get_browser_profile::GetBrowserProfileError::Unhandled(inner) => Error::Unhandled(inner),
2163 }
2164 }
2165}
2166impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_code_interpreter::GetCodeInterpreterError, R>> for Error
2167where
2168 R: Send + Sync + std::fmt::Debug + 'static,
2169{
2170 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_code_interpreter::GetCodeInterpreterError, R>) -> 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::get_code_interpreter::GetCodeInterpreterError> for Error {
2181 fn from(err: crate::operation::get_code_interpreter::GetCodeInterpreterError) -> Self {
2182 match err {
2183 crate::operation::get_code_interpreter::GetCodeInterpreterError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2184 crate::operation::get_code_interpreter::GetCodeInterpreterError::InternalServerException(inner) => Error::InternalServerException(inner),
2185 crate::operation::get_code_interpreter::GetCodeInterpreterError::ResourceNotFoundException(inner) => {
2186 Error::ResourceNotFoundException(inner)
2187 }
2188 crate::operation::get_code_interpreter::GetCodeInterpreterError::ServiceQuotaExceededException(inner) => {
2189 Error::ServiceQuotaExceededException(inner)
2190 }
2191 crate::operation::get_code_interpreter::GetCodeInterpreterError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2192 crate::operation::get_code_interpreter::GetCodeInterpreterError::Unhandled(inner) => Error::Unhandled(inner),
2193 }
2194 }
2195}
2196impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_configuration_bundle::GetConfigurationBundleError, R>> for Error
2197where
2198 R: Send + Sync + std::fmt::Debug + 'static,
2199{
2200 fn from(
2201 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_configuration_bundle::GetConfigurationBundleError, R>,
2202 ) -> Self {
2203 match err {
2204 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2205 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2206 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2207 source: err.into(),
2208 }),
2209 }
2210 }
2211}
2212impl From<crate::operation::get_configuration_bundle::GetConfigurationBundleError> for Error {
2213 fn from(err: crate::operation::get_configuration_bundle::GetConfigurationBundleError) -> Self {
2214 match err {
2215 crate::operation::get_configuration_bundle::GetConfigurationBundleError::AccessDeniedException(inner) => {
2216 Error::AccessDeniedException(inner)
2217 }
2218 crate::operation::get_configuration_bundle::GetConfigurationBundleError::InternalServerException(inner) => {
2219 Error::InternalServerException(inner)
2220 }
2221 crate::operation::get_configuration_bundle::GetConfigurationBundleError::ResourceNotFoundException(inner) => {
2222 Error::ResourceNotFoundException(inner)
2223 }
2224 crate::operation::get_configuration_bundle::GetConfigurationBundleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2225 crate::operation::get_configuration_bundle::GetConfigurationBundleError::ValidationException(inner) => Error::ValidationException(inner),
2226 crate::operation::get_configuration_bundle::GetConfigurationBundleError::Unhandled(inner) => Error::Unhandled(inner),
2227 }
2228 }
2229}
2230impl<R>
2231 From<
2232 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_configuration_bundle_version::GetConfigurationBundleVersionError, R>,
2233 > for Error
2234where
2235 R: Send + Sync + std::fmt::Debug + 'static,
2236{
2237 fn from(
2238 err: ::aws_smithy_runtime_api::client::result::SdkError<
2239 crate::operation::get_configuration_bundle_version::GetConfigurationBundleVersionError,
2240 R,
2241 >,
2242 ) -> Self {
2243 match err {
2244 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2245 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2246 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2247 source: err.into(),
2248 }),
2249 }
2250 }
2251}
2252impl From<crate::operation::get_configuration_bundle_version::GetConfigurationBundleVersionError> for Error {
2253 fn from(err: crate::operation::get_configuration_bundle_version::GetConfigurationBundleVersionError) -> Self {
2254 match err {
2255 crate::operation::get_configuration_bundle_version::GetConfigurationBundleVersionError::AccessDeniedException(inner) => {
2256 Error::AccessDeniedException(inner)
2257 }
2258 crate::operation::get_configuration_bundle_version::GetConfigurationBundleVersionError::InternalServerException(inner) => {
2259 Error::InternalServerException(inner)
2260 }
2261 crate::operation::get_configuration_bundle_version::GetConfigurationBundleVersionError::ResourceNotFoundException(inner) => {
2262 Error::ResourceNotFoundException(inner)
2263 }
2264 crate::operation::get_configuration_bundle_version::GetConfigurationBundleVersionError::ThrottlingException(inner) => {
2265 Error::ThrottlingException(inner)
2266 }
2267 crate::operation::get_configuration_bundle_version::GetConfigurationBundleVersionError::ValidationException(inner) => {
2268 Error::ValidationException(inner)
2269 }
2270 crate::operation::get_configuration_bundle_version::GetConfigurationBundleVersionError::Unhandled(inner) => Error::Unhandled(inner),
2271 }
2272 }
2273}
2274impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_dataset::GetDatasetError, R>> for Error
2275where
2276 R: Send + Sync + std::fmt::Debug + 'static,
2277{
2278 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_dataset::GetDatasetError, R>) -> Self {
2279 match err {
2280 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2281 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2282 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2283 source: err.into(),
2284 }),
2285 }
2286 }
2287}
2288impl From<crate::operation::get_dataset::GetDatasetError> for Error {
2289 fn from(err: crate::operation::get_dataset::GetDatasetError) -> Self {
2290 match err {
2291 crate::operation::get_dataset::GetDatasetError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2292 crate::operation::get_dataset::GetDatasetError::ConflictException(inner) => Error::ConflictException(inner),
2293 crate::operation::get_dataset::GetDatasetError::InternalServerException(inner) => Error::InternalServerException(inner),
2294 crate::operation::get_dataset::GetDatasetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2295 crate::operation::get_dataset::GetDatasetError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2296 crate::operation::get_dataset::GetDatasetError::ValidationException(inner) => Error::ValidationException(inner),
2297 crate::operation::get_dataset::GetDatasetError::Unhandled(inner) => Error::Unhandled(inner),
2298 }
2299 }
2300}
2301impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_evaluator::GetEvaluatorError, R>> for Error
2302where
2303 R: Send + Sync + std::fmt::Debug + 'static,
2304{
2305 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_evaluator::GetEvaluatorError, R>) -> Self {
2306 match err {
2307 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2308 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2309 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2310 source: err.into(),
2311 }),
2312 }
2313 }
2314}
2315impl From<crate::operation::get_evaluator::GetEvaluatorError> for Error {
2316 fn from(err: crate::operation::get_evaluator::GetEvaluatorError) -> Self {
2317 match err {
2318 crate::operation::get_evaluator::GetEvaluatorError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2319 crate::operation::get_evaluator::GetEvaluatorError::InternalServerException(inner) => Error::InternalServerException(inner),
2320 crate::operation::get_evaluator::GetEvaluatorError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2321 crate::operation::get_evaluator::GetEvaluatorError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2322 crate::operation::get_evaluator::GetEvaluatorError::ValidationException(inner) => Error::ValidationException(inner),
2323 crate::operation::get_evaluator::GetEvaluatorError::Unhandled(inner) => Error::Unhandled(inner),
2324 }
2325 }
2326}
2327impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_gateway::GetGatewayError, R>> for Error
2328where
2329 R: Send + Sync + std::fmt::Debug + 'static,
2330{
2331 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_gateway::GetGatewayError, R>) -> Self {
2332 match err {
2333 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2334 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2335 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2336 source: err.into(),
2337 }),
2338 }
2339 }
2340}
2341impl From<crate::operation::get_gateway::GetGatewayError> for Error {
2342 fn from(err: crate::operation::get_gateway::GetGatewayError) -> Self {
2343 match err {
2344 crate::operation::get_gateway::GetGatewayError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2345 crate::operation::get_gateway::GetGatewayError::InternalServerException(inner) => Error::InternalServerException(inner),
2346 crate::operation::get_gateway::GetGatewayError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2347 crate::operation::get_gateway::GetGatewayError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2348 crate::operation::get_gateway::GetGatewayError::ValidationException(inner) => Error::ValidationException(inner),
2349 crate::operation::get_gateway::GetGatewayError::Unhandled(inner) => Error::Unhandled(inner),
2350 }
2351 }
2352}
2353impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_gateway_rule::GetGatewayRuleError, R>> for Error
2354where
2355 R: Send + Sync + std::fmt::Debug + 'static,
2356{
2357 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_gateway_rule::GetGatewayRuleError, R>) -> Self {
2358 match err {
2359 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2360 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2361 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2362 source: err.into(),
2363 }),
2364 }
2365 }
2366}
2367impl From<crate::operation::get_gateway_rule::GetGatewayRuleError> for Error {
2368 fn from(err: crate::operation::get_gateway_rule::GetGatewayRuleError) -> Self {
2369 match err {
2370 crate::operation::get_gateway_rule::GetGatewayRuleError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2371 crate::operation::get_gateway_rule::GetGatewayRuleError::InternalServerException(inner) => Error::InternalServerException(inner),
2372 crate::operation::get_gateway_rule::GetGatewayRuleError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2373 crate::operation::get_gateway_rule::GetGatewayRuleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2374 crate::operation::get_gateway_rule::GetGatewayRuleError::ValidationException(inner) => Error::ValidationException(inner),
2375 crate::operation::get_gateway_rule::GetGatewayRuleError::Unhandled(inner) => Error::Unhandled(inner),
2376 }
2377 }
2378}
2379impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_gateway_target::GetGatewayTargetError, R>> for Error
2380where
2381 R: Send + Sync + std::fmt::Debug + 'static,
2382{
2383 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_gateway_target::GetGatewayTargetError, R>) -> Self {
2384 match err {
2385 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2386 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2387 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2388 source: err.into(),
2389 }),
2390 }
2391 }
2392}
2393impl From<crate::operation::get_gateway_target::GetGatewayTargetError> for Error {
2394 fn from(err: crate::operation::get_gateway_target::GetGatewayTargetError) -> Self {
2395 match err {
2396 crate::operation::get_gateway_target::GetGatewayTargetError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2397 crate::operation::get_gateway_target::GetGatewayTargetError::InternalServerException(inner) => Error::InternalServerException(inner),
2398 crate::operation::get_gateway_target::GetGatewayTargetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2399 crate::operation::get_gateway_target::GetGatewayTargetError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2400 crate::operation::get_gateway_target::GetGatewayTargetError::ValidationException(inner) => Error::ValidationException(inner),
2401 crate::operation::get_gateway_target::GetGatewayTargetError::Unhandled(inner) => Error::Unhandled(inner),
2402 }
2403 }
2404}
2405impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_harness::GetHarnessError, R>> for Error
2406where
2407 R: Send + Sync + std::fmt::Debug + 'static,
2408{
2409 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_harness::GetHarnessError, R>) -> Self {
2410 match err {
2411 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2412 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2413 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2414 source: err.into(),
2415 }),
2416 }
2417 }
2418}
2419impl From<crate::operation::get_harness::GetHarnessError> for Error {
2420 fn from(err: crate::operation::get_harness::GetHarnessError) -> Self {
2421 match err {
2422 crate::operation::get_harness::GetHarnessError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2423 crate::operation::get_harness::GetHarnessError::InternalServerException(inner) => Error::InternalServerException(inner),
2424 crate::operation::get_harness::GetHarnessError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2425 crate::operation::get_harness::GetHarnessError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2426 crate::operation::get_harness::GetHarnessError::ValidationException(inner) => Error::ValidationException(inner),
2427 crate::operation::get_harness::GetHarnessError::Unhandled(inner) => Error::Unhandled(inner),
2428 }
2429 }
2430}
2431impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_harness_endpoint::GetHarnessEndpointError, R>> for Error
2432where
2433 R: Send + Sync + std::fmt::Debug + 'static,
2434{
2435 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_harness_endpoint::GetHarnessEndpointError, R>) -> Self {
2436 match err {
2437 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2438 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2439 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2440 source: err.into(),
2441 }),
2442 }
2443 }
2444}
2445impl From<crate::operation::get_harness_endpoint::GetHarnessEndpointError> for Error {
2446 fn from(err: crate::operation::get_harness_endpoint::GetHarnessEndpointError) -> Self {
2447 match err {
2448 crate::operation::get_harness_endpoint::GetHarnessEndpointError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2449 crate::operation::get_harness_endpoint::GetHarnessEndpointError::InternalServerException(inner) => Error::InternalServerException(inner),
2450 crate::operation::get_harness_endpoint::GetHarnessEndpointError::ResourceNotFoundException(inner) => {
2451 Error::ResourceNotFoundException(inner)
2452 }
2453 crate::operation::get_harness_endpoint::GetHarnessEndpointError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2454 crate::operation::get_harness_endpoint::GetHarnessEndpointError::ValidationException(inner) => Error::ValidationException(inner),
2455 crate::operation::get_harness_endpoint::GetHarnessEndpointError::Unhandled(inner) => Error::Unhandled(inner),
2456 }
2457 }
2458}
2459impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_memory::GetMemoryError, R>> for Error
2460where
2461 R: Send + Sync + std::fmt::Debug + 'static,
2462{
2463 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_memory::GetMemoryError, R>) -> Self {
2464 match err {
2465 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2466 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2467 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2468 source: err.into(),
2469 }),
2470 }
2471 }
2472}
2473impl From<crate::operation::get_memory::GetMemoryError> for Error {
2474 fn from(err: crate::operation::get_memory::GetMemoryError) -> Self {
2475 match err {
2476 crate::operation::get_memory::GetMemoryError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2477 crate::operation::get_memory::GetMemoryError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2478 crate::operation::get_memory::GetMemoryError::ServiceException(inner) => Error::ServiceException(inner),
2479 crate::operation::get_memory::GetMemoryError::ThrottledException(inner) => Error::ThrottledException(inner),
2480 crate::operation::get_memory::GetMemoryError::ValidationException(inner) => Error::ValidationException(inner),
2481 crate::operation::get_memory::GetMemoryError::Unhandled(inner) => Error::Unhandled(inner),
2482 }
2483 }
2484}
2485impl<R>
2486 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_oauth2_credential_provider::GetOauth2CredentialProviderError, R>>
2487 for Error
2488where
2489 R: Send + Sync + std::fmt::Debug + 'static,
2490{
2491 fn from(
2492 err: ::aws_smithy_runtime_api::client::result::SdkError<
2493 crate::operation::get_oauth2_credential_provider::GetOauth2CredentialProviderError,
2494 R,
2495 >,
2496 ) -> Self {
2497 match err {
2498 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2499 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2500 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2501 source: err.into(),
2502 }),
2503 }
2504 }
2505}
2506impl From<crate::operation::get_oauth2_credential_provider::GetOauth2CredentialProviderError> for Error {
2507 fn from(err: crate::operation::get_oauth2_credential_provider::GetOauth2CredentialProviderError) -> Self {
2508 match err {
2509 crate::operation::get_oauth2_credential_provider::GetOauth2CredentialProviderError::AccessDeniedException(inner) => {
2510 Error::AccessDeniedException(inner)
2511 }
2512 crate::operation::get_oauth2_credential_provider::GetOauth2CredentialProviderError::DecryptionFailure(inner) => {
2513 Error::DecryptionFailure(inner)
2514 }
2515 crate::operation::get_oauth2_credential_provider::GetOauth2CredentialProviderError::InternalServerException(inner) => {
2516 Error::InternalServerException(inner)
2517 }
2518 crate::operation::get_oauth2_credential_provider::GetOauth2CredentialProviderError::ResourceNotFoundException(inner) => {
2519 Error::ResourceNotFoundException(inner)
2520 }
2521 crate::operation::get_oauth2_credential_provider::GetOauth2CredentialProviderError::ThrottlingException(inner) => {
2522 Error::ThrottlingException(inner)
2523 }
2524 crate::operation::get_oauth2_credential_provider::GetOauth2CredentialProviderError::UnauthorizedException(inner) => {
2525 Error::UnauthorizedException(inner)
2526 }
2527 crate::operation::get_oauth2_credential_provider::GetOauth2CredentialProviderError::ValidationException(inner) => {
2528 Error::ValidationException(inner)
2529 }
2530 crate::operation::get_oauth2_credential_provider::GetOauth2CredentialProviderError::Unhandled(inner) => Error::Unhandled(inner),
2531 }
2532 }
2533}
2534impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_online_evaluation_config::GetOnlineEvaluationConfigError, R>>
2535 for Error
2536where
2537 R: Send + Sync + std::fmt::Debug + 'static,
2538{
2539 fn from(
2540 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_online_evaluation_config::GetOnlineEvaluationConfigError, R>,
2541 ) -> Self {
2542 match err {
2543 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2544 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2545 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2546 source: err.into(),
2547 }),
2548 }
2549 }
2550}
2551impl From<crate::operation::get_online_evaluation_config::GetOnlineEvaluationConfigError> for Error {
2552 fn from(err: crate::operation::get_online_evaluation_config::GetOnlineEvaluationConfigError) -> Self {
2553 match err {
2554 crate::operation::get_online_evaluation_config::GetOnlineEvaluationConfigError::AccessDeniedException(inner) => {
2555 Error::AccessDeniedException(inner)
2556 }
2557 crate::operation::get_online_evaluation_config::GetOnlineEvaluationConfigError::InternalServerException(inner) => {
2558 Error::InternalServerException(inner)
2559 }
2560 crate::operation::get_online_evaluation_config::GetOnlineEvaluationConfigError::ResourceNotFoundException(inner) => {
2561 Error::ResourceNotFoundException(inner)
2562 }
2563 crate::operation::get_online_evaluation_config::GetOnlineEvaluationConfigError::ThrottlingException(inner) => {
2564 Error::ThrottlingException(inner)
2565 }
2566 crate::operation::get_online_evaluation_config::GetOnlineEvaluationConfigError::ValidationException(inner) => {
2567 Error::ValidationException(inner)
2568 }
2569 crate::operation::get_online_evaluation_config::GetOnlineEvaluationConfigError::Unhandled(inner) => Error::Unhandled(inner),
2570 }
2571 }
2572}
2573impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_payment_connector::GetPaymentConnectorError, R>> for Error
2574where
2575 R: Send + Sync + std::fmt::Debug + 'static,
2576{
2577 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_payment_connector::GetPaymentConnectorError, R>) -> Self {
2578 match err {
2579 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2580 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2581 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2582 source: err.into(),
2583 }),
2584 }
2585 }
2586}
2587impl From<crate::operation::get_payment_connector::GetPaymentConnectorError> for Error {
2588 fn from(err: crate::operation::get_payment_connector::GetPaymentConnectorError) -> Self {
2589 match err {
2590 crate::operation::get_payment_connector::GetPaymentConnectorError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2591 crate::operation::get_payment_connector::GetPaymentConnectorError::InternalServerException(inner) => {
2592 Error::InternalServerException(inner)
2593 }
2594 crate::operation::get_payment_connector::GetPaymentConnectorError::ResourceNotFoundException(inner) => {
2595 Error::ResourceNotFoundException(inner)
2596 }
2597 crate::operation::get_payment_connector::GetPaymentConnectorError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2598 crate::operation::get_payment_connector::GetPaymentConnectorError::ValidationException(inner) => Error::ValidationException(inner),
2599 crate::operation::get_payment_connector::GetPaymentConnectorError::Unhandled(inner) => Error::Unhandled(inner),
2600 }
2601 }
2602}
2603impl<R>
2604 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_payment_credential_provider::GetPaymentCredentialProviderError, R>>
2605 for Error
2606where
2607 R: Send + Sync + std::fmt::Debug + 'static,
2608{
2609 fn from(
2610 err: ::aws_smithy_runtime_api::client::result::SdkError<
2611 crate::operation::get_payment_credential_provider::GetPaymentCredentialProviderError,
2612 R,
2613 >,
2614 ) -> Self {
2615 match err {
2616 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2617 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2618 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2619 source: err.into(),
2620 }),
2621 }
2622 }
2623}
2624impl From<crate::operation::get_payment_credential_provider::GetPaymentCredentialProviderError> for Error {
2625 fn from(err: crate::operation::get_payment_credential_provider::GetPaymentCredentialProviderError) -> Self {
2626 match err {
2627 crate::operation::get_payment_credential_provider::GetPaymentCredentialProviderError::AccessDeniedException(inner) => {
2628 Error::AccessDeniedException(inner)
2629 }
2630 crate::operation::get_payment_credential_provider::GetPaymentCredentialProviderError::DecryptionFailure(inner) => {
2631 Error::DecryptionFailure(inner)
2632 }
2633 crate::operation::get_payment_credential_provider::GetPaymentCredentialProviderError::InternalServerException(inner) => {
2634 Error::InternalServerException(inner)
2635 }
2636 crate::operation::get_payment_credential_provider::GetPaymentCredentialProviderError::ResourceNotFoundException(inner) => {
2637 Error::ResourceNotFoundException(inner)
2638 }
2639 crate::operation::get_payment_credential_provider::GetPaymentCredentialProviderError::ThrottlingException(inner) => {
2640 Error::ThrottlingException(inner)
2641 }
2642 crate::operation::get_payment_credential_provider::GetPaymentCredentialProviderError::UnauthorizedException(inner) => {
2643 Error::UnauthorizedException(inner)
2644 }
2645 crate::operation::get_payment_credential_provider::GetPaymentCredentialProviderError::ValidationException(inner) => {
2646 Error::ValidationException(inner)
2647 }
2648 crate::operation::get_payment_credential_provider::GetPaymentCredentialProviderError::Unhandled(inner) => Error::Unhandled(inner),
2649 }
2650 }
2651}
2652impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_payment_manager::GetPaymentManagerError, R>> for Error
2653where
2654 R: Send + Sync + std::fmt::Debug + 'static,
2655{
2656 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_payment_manager::GetPaymentManagerError, R>) -> Self {
2657 match err {
2658 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2659 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2660 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2661 source: err.into(),
2662 }),
2663 }
2664 }
2665}
2666impl From<crate::operation::get_payment_manager::GetPaymentManagerError> for Error {
2667 fn from(err: crate::operation::get_payment_manager::GetPaymentManagerError) -> Self {
2668 match err {
2669 crate::operation::get_payment_manager::GetPaymentManagerError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2670 crate::operation::get_payment_manager::GetPaymentManagerError::InternalServerException(inner) => Error::InternalServerException(inner),
2671 crate::operation::get_payment_manager::GetPaymentManagerError::ResourceNotFoundException(inner) => {
2672 Error::ResourceNotFoundException(inner)
2673 }
2674 crate::operation::get_payment_manager::GetPaymentManagerError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2675 crate::operation::get_payment_manager::GetPaymentManagerError::ValidationException(inner) => Error::ValidationException(inner),
2676 crate::operation::get_payment_manager::GetPaymentManagerError::Unhandled(inner) => Error::Unhandled(inner),
2677 }
2678 }
2679}
2680impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_policy::GetPolicyError, R>> for Error
2681where
2682 R: Send + Sync + std::fmt::Debug + 'static,
2683{
2684 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_policy::GetPolicyError, R>) -> Self {
2685 match err {
2686 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2687 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2688 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2689 source: err.into(),
2690 }),
2691 }
2692 }
2693}
2694impl From<crate::operation::get_policy::GetPolicyError> for Error {
2695 fn from(err: crate::operation::get_policy::GetPolicyError) -> Self {
2696 match err {
2697 crate::operation::get_policy::GetPolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2698 crate::operation::get_policy::GetPolicyError::InternalServerException(inner) => Error::InternalServerException(inner),
2699 crate::operation::get_policy::GetPolicyError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2700 crate::operation::get_policy::GetPolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2701 crate::operation::get_policy::GetPolicyError::ValidationException(inner) => Error::ValidationException(inner),
2702 crate::operation::get_policy::GetPolicyError::Unhandled(inner) => Error::Unhandled(inner),
2703 }
2704 }
2705}
2706impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_policy_engine::GetPolicyEngineError, R>> for Error
2707where
2708 R: Send + Sync + std::fmt::Debug + 'static,
2709{
2710 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_policy_engine::GetPolicyEngineError, R>) -> Self {
2711 match err {
2712 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2713 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2714 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2715 source: err.into(),
2716 }),
2717 }
2718 }
2719}
2720impl From<crate::operation::get_policy_engine::GetPolicyEngineError> for Error {
2721 fn from(err: crate::operation::get_policy_engine::GetPolicyEngineError) -> Self {
2722 match err {
2723 crate::operation::get_policy_engine::GetPolicyEngineError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2724 crate::operation::get_policy_engine::GetPolicyEngineError::InternalServerException(inner) => Error::InternalServerException(inner),
2725 crate::operation::get_policy_engine::GetPolicyEngineError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2726 crate::operation::get_policy_engine::GetPolicyEngineError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2727 crate::operation::get_policy_engine::GetPolicyEngineError::ValidationException(inner) => Error::ValidationException(inner),
2728 crate::operation::get_policy_engine::GetPolicyEngineError::Unhandled(inner) => Error::Unhandled(inner),
2729 }
2730 }
2731}
2732impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_policy_engine_summary::GetPolicyEngineSummaryError, R>>
2733 for Error
2734where
2735 R: Send + Sync + std::fmt::Debug + 'static,
2736{
2737 fn from(
2738 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_policy_engine_summary::GetPolicyEngineSummaryError, R>,
2739 ) -> Self {
2740 match err {
2741 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2742 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2743 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2744 source: err.into(),
2745 }),
2746 }
2747 }
2748}
2749impl From<crate::operation::get_policy_engine_summary::GetPolicyEngineSummaryError> for Error {
2750 fn from(err: crate::operation::get_policy_engine_summary::GetPolicyEngineSummaryError) -> Self {
2751 match err {
2752 crate::operation::get_policy_engine_summary::GetPolicyEngineSummaryError::AccessDeniedException(inner) => {
2753 Error::AccessDeniedException(inner)
2754 }
2755 crate::operation::get_policy_engine_summary::GetPolicyEngineSummaryError::InternalServerException(inner) => {
2756 Error::InternalServerException(inner)
2757 }
2758 crate::operation::get_policy_engine_summary::GetPolicyEngineSummaryError::ResourceNotFoundException(inner) => {
2759 Error::ResourceNotFoundException(inner)
2760 }
2761 crate::operation::get_policy_engine_summary::GetPolicyEngineSummaryError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2762 crate::operation::get_policy_engine_summary::GetPolicyEngineSummaryError::ValidationException(inner) => Error::ValidationException(inner),
2763 crate::operation::get_policy_engine_summary::GetPolicyEngineSummaryError::Unhandled(inner) => Error::Unhandled(inner),
2764 }
2765 }
2766}
2767impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_policy_generation::GetPolicyGenerationError, R>> for Error
2768where
2769 R: Send + Sync + std::fmt::Debug + 'static,
2770{
2771 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_policy_generation::GetPolicyGenerationError, R>) -> Self {
2772 match err {
2773 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2774 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2775 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2776 source: err.into(),
2777 }),
2778 }
2779 }
2780}
2781impl From<crate::operation::get_policy_generation::GetPolicyGenerationError> for Error {
2782 fn from(err: crate::operation::get_policy_generation::GetPolicyGenerationError) -> Self {
2783 match err {
2784 crate::operation::get_policy_generation::GetPolicyGenerationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2785 crate::operation::get_policy_generation::GetPolicyGenerationError::InternalServerException(inner) => {
2786 Error::InternalServerException(inner)
2787 }
2788 crate::operation::get_policy_generation::GetPolicyGenerationError::ResourceNotFoundException(inner) => {
2789 Error::ResourceNotFoundException(inner)
2790 }
2791 crate::operation::get_policy_generation::GetPolicyGenerationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2792 crate::operation::get_policy_generation::GetPolicyGenerationError::ValidationException(inner) => Error::ValidationException(inner),
2793 crate::operation::get_policy_generation::GetPolicyGenerationError::Unhandled(inner) => Error::Unhandled(inner),
2794 }
2795 }
2796}
2797impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_policy_generation_summary::GetPolicyGenerationSummaryError, R>>
2798 for Error
2799where
2800 R: Send + Sync + std::fmt::Debug + 'static,
2801{
2802 fn from(
2803 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_policy_generation_summary::GetPolicyGenerationSummaryError, R>,
2804 ) -> Self {
2805 match err {
2806 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2807 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2808 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2809 source: err.into(),
2810 }),
2811 }
2812 }
2813}
2814impl From<crate::operation::get_policy_generation_summary::GetPolicyGenerationSummaryError> for Error {
2815 fn from(err: crate::operation::get_policy_generation_summary::GetPolicyGenerationSummaryError) -> Self {
2816 match err {
2817 crate::operation::get_policy_generation_summary::GetPolicyGenerationSummaryError::AccessDeniedException(inner) => {
2818 Error::AccessDeniedException(inner)
2819 }
2820 crate::operation::get_policy_generation_summary::GetPolicyGenerationSummaryError::InternalServerException(inner) => {
2821 Error::InternalServerException(inner)
2822 }
2823 crate::operation::get_policy_generation_summary::GetPolicyGenerationSummaryError::ResourceNotFoundException(inner) => {
2824 Error::ResourceNotFoundException(inner)
2825 }
2826 crate::operation::get_policy_generation_summary::GetPolicyGenerationSummaryError::ThrottlingException(inner) => {
2827 Error::ThrottlingException(inner)
2828 }
2829 crate::operation::get_policy_generation_summary::GetPolicyGenerationSummaryError::ValidationException(inner) => {
2830 Error::ValidationException(inner)
2831 }
2832 crate::operation::get_policy_generation_summary::GetPolicyGenerationSummaryError::Unhandled(inner) => Error::Unhandled(inner),
2833 }
2834 }
2835}
2836impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_policy_summary::GetPolicySummaryError, R>> for Error
2837where
2838 R: Send + Sync + std::fmt::Debug + 'static,
2839{
2840 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_policy_summary::GetPolicySummaryError, R>) -> Self {
2841 match err {
2842 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2843 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2844 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2845 source: err.into(),
2846 }),
2847 }
2848 }
2849}
2850impl From<crate::operation::get_policy_summary::GetPolicySummaryError> for Error {
2851 fn from(err: crate::operation::get_policy_summary::GetPolicySummaryError) -> Self {
2852 match err {
2853 crate::operation::get_policy_summary::GetPolicySummaryError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2854 crate::operation::get_policy_summary::GetPolicySummaryError::InternalServerException(inner) => Error::InternalServerException(inner),
2855 crate::operation::get_policy_summary::GetPolicySummaryError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2856 crate::operation::get_policy_summary::GetPolicySummaryError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2857 crate::operation::get_policy_summary::GetPolicySummaryError::ValidationException(inner) => Error::ValidationException(inner),
2858 crate::operation::get_policy_summary::GetPolicySummaryError::Unhandled(inner) => Error::Unhandled(inner),
2859 }
2860 }
2861}
2862impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_registry::GetRegistryError, R>> for Error
2863where
2864 R: Send + Sync + std::fmt::Debug + 'static,
2865{
2866 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_registry::GetRegistryError, R>) -> Self {
2867 match err {
2868 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2869 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2870 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2871 source: err.into(),
2872 }),
2873 }
2874 }
2875}
2876impl From<crate::operation::get_registry::GetRegistryError> for Error {
2877 fn from(err: crate::operation::get_registry::GetRegistryError) -> Self {
2878 match err {
2879 crate::operation::get_registry::GetRegistryError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2880 crate::operation::get_registry::GetRegistryError::InternalServerException(inner) => Error::InternalServerException(inner),
2881 crate::operation::get_registry::GetRegistryError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2882 crate::operation::get_registry::GetRegistryError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2883 crate::operation::get_registry::GetRegistryError::ValidationException(inner) => Error::ValidationException(inner),
2884 crate::operation::get_registry::GetRegistryError::Unhandled(inner) => Error::Unhandled(inner),
2885 }
2886 }
2887}
2888impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_registry_record::GetRegistryRecordError, R>> for Error
2889where
2890 R: Send + Sync + std::fmt::Debug + 'static,
2891{
2892 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_registry_record::GetRegistryRecordError, R>) -> Self {
2893 match err {
2894 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2895 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2896 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2897 source: err.into(),
2898 }),
2899 }
2900 }
2901}
2902impl From<crate::operation::get_registry_record::GetRegistryRecordError> for Error {
2903 fn from(err: crate::operation::get_registry_record::GetRegistryRecordError) -> Self {
2904 match err {
2905 crate::operation::get_registry_record::GetRegistryRecordError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2906 crate::operation::get_registry_record::GetRegistryRecordError::ConflictException(inner) => Error::ConflictException(inner),
2907 crate::operation::get_registry_record::GetRegistryRecordError::InternalServerException(inner) => Error::InternalServerException(inner),
2908 crate::operation::get_registry_record::GetRegistryRecordError::ResourceNotFoundException(inner) => {
2909 Error::ResourceNotFoundException(inner)
2910 }
2911 crate::operation::get_registry_record::GetRegistryRecordError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2912 crate::operation::get_registry_record::GetRegistryRecordError::ValidationException(inner) => Error::ValidationException(inner),
2913 crate::operation::get_registry_record::GetRegistryRecordError::Unhandled(inner) => Error::Unhandled(inner),
2914 }
2915 }
2916}
2917impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_policy::GetResourcePolicyError, R>> for Error
2918where
2919 R: Send + Sync + std::fmt::Debug + 'static,
2920{
2921 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_policy::GetResourcePolicyError, R>) -> Self {
2922 match err {
2923 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2924 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2925 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2926 source: err.into(),
2927 }),
2928 }
2929 }
2930}
2931impl From<crate::operation::get_resource_policy::GetResourcePolicyError> for Error {
2932 fn from(err: crate::operation::get_resource_policy::GetResourcePolicyError) -> Self {
2933 match err {
2934 crate::operation::get_resource_policy::GetResourcePolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2935 crate::operation::get_resource_policy::GetResourcePolicyError::InternalServerException(inner) => Error::InternalServerException(inner),
2936 crate::operation::get_resource_policy::GetResourcePolicyError::ResourceNotFoundException(inner) => {
2937 Error::ResourceNotFoundException(inner)
2938 }
2939 crate::operation::get_resource_policy::GetResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2940 crate::operation::get_resource_policy::GetResourcePolicyError::ValidationException(inner) => Error::ValidationException(inner),
2941 crate::operation::get_resource_policy::GetResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
2942 }
2943 }
2944}
2945impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_token_vault::GetTokenVaultError, R>> for Error
2946where
2947 R: Send + Sync + std::fmt::Debug + 'static,
2948{
2949 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_token_vault::GetTokenVaultError, R>) -> Self {
2950 match err {
2951 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2952 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2953 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2954 source: err.into(),
2955 }),
2956 }
2957 }
2958}
2959impl From<crate::operation::get_token_vault::GetTokenVaultError> for Error {
2960 fn from(err: crate::operation::get_token_vault::GetTokenVaultError) -> Self {
2961 match err {
2962 crate::operation::get_token_vault::GetTokenVaultError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2963 crate::operation::get_token_vault::GetTokenVaultError::InternalServerException(inner) => Error::InternalServerException(inner),
2964 crate::operation::get_token_vault::GetTokenVaultError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2965 crate::operation::get_token_vault::GetTokenVaultError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2966 crate::operation::get_token_vault::GetTokenVaultError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
2967 crate::operation::get_token_vault::GetTokenVaultError::ValidationException(inner) => Error::ValidationException(inner),
2968 crate::operation::get_token_vault::GetTokenVaultError::Unhandled(inner) => Error::Unhandled(inner),
2969 }
2970 }
2971}
2972impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_workload_identity::GetWorkloadIdentityError, R>> for Error
2973where
2974 R: Send + Sync + std::fmt::Debug + 'static,
2975{
2976 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_workload_identity::GetWorkloadIdentityError, R>) -> Self {
2977 match err {
2978 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2979 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2980 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2981 source: err.into(),
2982 }),
2983 }
2984 }
2985}
2986impl From<crate::operation::get_workload_identity::GetWorkloadIdentityError> for Error {
2987 fn from(err: crate::operation::get_workload_identity::GetWorkloadIdentityError) -> Self {
2988 match err {
2989 crate::operation::get_workload_identity::GetWorkloadIdentityError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2990 crate::operation::get_workload_identity::GetWorkloadIdentityError::InternalServerException(inner) => {
2991 Error::InternalServerException(inner)
2992 }
2993 crate::operation::get_workload_identity::GetWorkloadIdentityError::ResourceNotFoundException(inner) => {
2994 Error::ResourceNotFoundException(inner)
2995 }
2996 crate::operation::get_workload_identity::GetWorkloadIdentityError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2997 crate::operation::get_workload_identity::GetWorkloadIdentityError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
2998 crate::operation::get_workload_identity::GetWorkloadIdentityError::ValidationException(inner) => Error::ValidationException(inner),
2999 crate::operation::get_workload_identity::GetWorkloadIdentityError::Unhandled(inner) => Error::Unhandled(inner),
3000 }
3001 }
3002}
3003impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_agent_runtime_endpoints::ListAgentRuntimeEndpointsError, R>>
3004 for Error
3005where
3006 R: Send + Sync + std::fmt::Debug + 'static,
3007{
3008 fn from(
3009 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_agent_runtime_endpoints::ListAgentRuntimeEndpointsError, R>,
3010 ) -> Self {
3011 match err {
3012 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3013 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3014 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3015 source: err.into(),
3016 }),
3017 }
3018 }
3019}
3020impl From<crate::operation::list_agent_runtime_endpoints::ListAgentRuntimeEndpointsError> for Error {
3021 fn from(err: crate::operation::list_agent_runtime_endpoints::ListAgentRuntimeEndpointsError) -> Self {
3022 match err {
3023 crate::operation::list_agent_runtime_endpoints::ListAgentRuntimeEndpointsError::AccessDeniedException(inner) => {
3024 Error::AccessDeniedException(inner)
3025 }
3026 crate::operation::list_agent_runtime_endpoints::ListAgentRuntimeEndpointsError::InternalServerException(inner) => {
3027 Error::InternalServerException(inner)
3028 }
3029 crate::operation::list_agent_runtime_endpoints::ListAgentRuntimeEndpointsError::ThrottlingException(inner) => {
3030 Error::ThrottlingException(inner)
3031 }
3032 crate::operation::list_agent_runtime_endpoints::ListAgentRuntimeEndpointsError::ValidationException(inner) => {
3033 Error::ValidationException(inner)
3034 }
3035 crate::operation::list_agent_runtime_endpoints::ListAgentRuntimeEndpointsError::Unhandled(inner) => Error::Unhandled(inner),
3036 }
3037 }
3038}
3039impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_agent_runtimes::ListAgentRuntimesError, R>> for Error
3040where
3041 R: Send + Sync + std::fmt::Debug + 'static,
3042{
3043 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_agent_runtimes::ListAgentRuntimesError, R>) -> Self {
3044 match err {
3045 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3046 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3047 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3048 source: err.into(),
3049 }),
3050 }
3051 }
3052}
3053impl From<crate::operation::list_agent_runtimes::ListAgentRuntimesError> for Error {
3054 fn from(err: crate::operation::list_agent_runtimes::ListAgentRuntimesError) -> Self {
3055 match err {
3056 crate::operation::list_agent_runtimes::ListAgentRuntimesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3057 crate::operation::list_agent_runtimes::ListAgentRuntimesError::InternalServerException(inner) => Error::InternalServerException(inner),
3058 crate::operation::list_agent_runtimes::ListAgentRuntimesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3059 crate::operation::list_agent_runtimes::ListAgentRuntimesError::ValidationException(inner) => Error::ValidationException(inner),
3060 crate::operation::list_agent_runtimes::ListAgentRuntimesError::Unhandled(inner) => Error::Unhandled(inner),
3061 }
3062 }
3063}
3064impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_agent_runtime_versions::ListAgentRuntimeVersionsError, R>>
3065 for Error
3066where
3067 R: Send + Sync + std::fmt::Debug + 'static,
3068{
3069 fn from(
3070 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_agent_runtime_versions::ListAgentRuntimeVersionsError, R>,
3071 ) -> Self {
3072 match err {
3073 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3074 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3075 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3076 source: err.into(),
3077 }),
3078 }
3079 }
3080}
3081impl From<crate::operation::list_agent_runtime_versions::ListAgentRuntimeVersionsError> for Error {
3082 fn from(err: crate::operation::list_agent_runtime_versions::ListAgentRuntimeVersionsError) -> Self {
3083 match err {
3084 crate::operation::list_agent_runtime_versions::ListAgentRuntimeVersionsError::AccessDeniedException(inner) => {
3085 Error::AccessDeniedException(inner)
3086 }
3087 crate::operation::list_agent_runtime_versions::ListAgentRuntimeVersionsError::InternalServerException(inner) => {
3088 Error::InternalServerException(inner)
3089 }
3090 crate::operation::list_agent_runtime_versions::ListAgentRuntimeVersionsError::ResourceNotFoundException(inner) => {
3091 Error::ResourceNotFoundException(inner)
3092 }
3093 crate::operation::list_agent_runtime_versions::ListAgentRuntimeVersionsError::ThrottlingException(inner) => {
3094 Error::ThrottlingException(inner)
3095 }
3096 crate::operation::list_agent_runtime_versions::ListAgentRuntimeVersionsError::ValidationException(inner) => {
3097 Error::ValidationException(inner)
3098 }
3099 crate::operation::list_agent_runtime_versions::ListAgentRuntimeVersionsError::Unhandled(inner) => Error::Unhandled(inner),
3100 }
3101 }
3102}
3103impl<R>
3104 From<
3105 ::aws_smithy_runtime_api::client::result::SdkError<
3106 crate::operation::list_api_key_credential_providers::ListApiKeyCredentialProvidersError,
3107 R,
3108 >,
3109 > for Error
3110where
3111 R: Send + Sync + std::fmt::Debug + 'static,
3112{
3113 fn from(
3114 err: ::aws_smithy_runtime_api::client::result::SdkError<
3115 crate::operation::list_api_key_credential_providers::ListApiKeyCredentialProvidersError,
3116 R,
3117 >,
3118 ) -> Self {
3119 match err {
3120 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3121 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3122 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3123 source: err.into(),
3124 }),
3125 }
3126 }
3127}
3128impl From<crate::operation::list_api_key_credential_providers::ListApiKeyCredentialProvidersError> for Error {
3129 fn from(err: crate::operation::list_api_key_credential_providers::ListApiKeyCredentialProvidersError) -> Self {
3130 match err {
3131 crate::operation::list_api_key_credential_providers::ListApiKeyCredentialProvidersError::AccessDeniedException(inner) => {
3132 Error::AccessDeniedException(inner)
3133 }
3134 crate::operation::list_api_key_credential_providers::ListApiKeyCredentialProvidersError::InternalServerException(inner) => {
3135 Error::InternalServerException(inner)
3136 }
3137 crate::operation::list_api_key_credential_providers::ListApiKeyCredentialProvidersError::ResourceNotFoundException(inner) => {
3138 Error::ResourceNotFoundException(inner)
3139 }
3140 crate::operation::list_api_key_credential_providers::ListApiKeyCredentialProvidersError::ThrottlingException(inner) => {
3141 Error::ThrottlingException(inner)
3142 }
3143 crate::operation::list_api_key_credential_providers::ListApiKeyCredentialProvidersError::UnauthorizedException(inner) => {
3144 Error::UnauthorizedException(inner)
3145 }
3146 crate::operation::list_api_key_credential_providers::ListApiKeyCredentialProvidersError::ValidationException(inner) => {
3147 Error::ValidationException(inner)
3148 }
3149 crate::operation::list_api_key_credential_providers::ListApiKeyCredentialProvidersError::Unhandled(inner) => Error::Unhandled(inner),
3150 }
3151 }
3152}
3153impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_browser_profiles::ListBrowserProfilesError, R>> for Error
3154where
3155 R: Send + Sync + std::fmt::Debug + 'static,
3156{
3157 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_browser_profiles::ListBrowserProfilesError, R>) -> Self {
3158 match err {
3159 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3160 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3161 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3162 source: err.into(),
3163 }),
3164 }
3165 }
3166}
3167impl From<crate::operation::list_browser_profiles::ListBrowserProfilesError> for Error {
3168 fn from(err: crate::operation::list_browser_profiles::ListBrowserProfilesError) -> Self {
3169 match err {
3170 crate::operation::list_browser_profiles::ListBrowserProfilesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3171 crate::operation::list_browser_profiles::ListBrowserProfilesError::InternalServerException(inner) => {
3172 Error::InternalServerException(inner)
3173 }
3174 crate::operation::list_browser_profiles::ListBrowserProfilesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3175 crate::operation::list_browser_profiles::ListBrowserProfilesError::ValidationException(inner) => Error::ValidationException(inner),
3176 crate::operation::list_browser_profiles::ListBrowserProfilesError::Unhandled(inner) => Error::Unhandled(inner),
3177 }
3178 }
3179}
3180impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_browsers::ListBrowsersError, R>> for Error
3181where
3182 R: Send + Sync + std::fmt::Debug + 'static,
3183{
3184 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_browsers::ListBrowsersError, R>) -> Self {
3185 match err {
3186 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3187 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3188 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3189 source: err.into(),
3190 }),
3191 }
3192 }
3193}
3194impl From<crate::operation::list_browsers::ListBrowsersError> for Error {
3195 fn from(err: crate::operation::list_browsers::ListBrowsersError) -> Self {
3196 match err {
3197 crate::operation::list_browsers::ListBrowsersError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3198 crate::operation::list_browsers::ListBrowsersError::InternalServerException(inner) => Error::InternalServerException(inner),
3199 crate::operation::list_browsers::ListBrowsersError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3200 crate::operation::list_browsers::ListBrowsersError::ValidationException(inner) => Error::ValidationException(inner),
3201 crate::operation::list_browsers::ListBrowsersError::Unhandled(inner) => Error::Unhandled(inner),
3202 }
3203 }
3204}
3205impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_code_interpreters::ListCodeInterpretersError, R>> for Error
3206where
3207 R: Send + Sync + std::fmt::Debug + 'static,
3208{
3209 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_code_interpreters::ListCodeInterpretersError, R>) -> Self {
3210 match err {
3211 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3212 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3213 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3214 source: err.into(),
3215 }),
3216 }
3217 }
3218}
3219impl From<crate::operation::list_code_interpreters::ListCodeInterpretersError> for Error {
3220 fn from(err: crate::operation::list_code_interpreters::ListCodeInterpretersError) -> Self {
3221 match err {
3222 crate::operation::list_code_interpreters::ListCodeInterpretersError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3223 crate::operation::list_code_interpreters::ListCodeInterpretersError::InternalServerException(inner) => {
3224 Error::InternalServerException(inner)
3225 }
3226 crate::operation::list_code_interpreters::ListCodeInterpretersError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3227 crate::operation::list_code_interpreters::ListCodeInterpretersError::ValidationException(inner) => Error::ValidationException(inner),
3228 crate::operation::list_code_interpreters::ListCodeInterpretersError::Unhandled(inner) => Error::Unhandled(inner),
3229 }
3230 }
3231}
3232impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_configuration_bundles::ListConfigurationBundlesError, R>>
3233 for Error
3234where
3235 R: Send + Sync + std::fmt::Debug + 'static,
3236{
3237 fn from(
3238 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_configuration_bundles::ListConfigurationBundlesError, R>,
3239 ) -> Self {
3240 match err {
3241 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3242 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3243 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3244 source: err.into(),
3245 }),
3246 }
3247 }
3248}
3249impl From<crate::operation::list_configuration_bundles::ListConfigurationBundlesError> for Error {
3250 fn from(err: crate::operation::list_configuration_bundles::ListConfigurationBundlesError) -> Self {
3251 match err {
3252 crate::operation::list_configuration_bundles::ListConfigurationBundlesError::AccessDeniedException(inner) => {
3253 Error::AccessDeniedException(inner)
3254 }
3255 crate::operation::list_configuration_bundles::ListConfigurationBundlesError::InternalServerException(inner) => {
3256 Error::InternalServerException(inner)
3257 }
3258 crate::operation::list_configuration_bundles::ListConfigurationBundlesError::ThrottlingException(inner) => {
3259 Error::ThrottlingException(inner)
3260 }
3261 crate::operation::list_configuration_bundles::ListConfigurationBundlesError::ValidationException(inner) => {
3262 Error::ValidationException(inner)
3263 }
3264 crate::operation::list_configuration_bundles::ListConfigurationBundlesError::Unhandled(inner) => Error::Unhandled(inner),
3265 }
3266 }
3267}
3268impl<R>
3269 From<
3270 ::aws_smithy_runtime_api::client::result::SdkError<
3271 crate::operation::list_configuration_bundle_versions::ListConfigurationBundleVersionsError,
3272 R,
3273 >,
3274 > for Error
3275where
3276 R: Send + Sync + std::fmt::Debug + 'static,
3277{
3278 fn from(
3279 err: ::aws_smithy_runtime_api::client::result::SdkError<
3280 crate::operation::list_configuration_bundle_versions::ListConfigurationBundleVersionsError,
3281 R,
3282 >,
3283 ) -> Self {
3284 match err {
3285 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3286 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3287 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3288 source: err.into(),
3289 }),
3290 }
3291 }
3292}
3293impl From<crate::operation::list_configuration_bundle_versions::ListConfigurationBundleVersionsError> for Error {
3294 fn from(err: crate::operation::list_configuration_bundle_versions::ListConfigurationBundleVersionsError) -> Self {
3295 match err {
3296 crate::operation::list_configuration_bundle_versions::ListConfigurationBundleVersionsError::AccessDeniedException(inner) => {
3297 Error::AccessDeniedException(inner)
3298 }
3299 crate::operation::list_configuration_bundle_versions::ListConfigurationBundleVersionsError::InternalServerException(inner) => {
3300 Error::InternalServerException(inner)
3301 }
3302 crate::operation::list_configuration_bundle_versions::ListConfigurationBundleVersionsError::ResourceNotFoundException(inner) => {
3303 Error::ResourceNotFoundException(inner)
3304 }
3305 crate::operation::list_configuration_bundle_versions::ListConfigurationBundleVersionsError::ThrottlingException(inner) => {
3306 Error::ThrottlingException(inner)
3307 }
3308 crate::operation::list_configuration_bundle_versions::ListConfigurationBundleVersionsError::ValidationException(inner) => {
3309 Error::ValidationException(inner)
3310 }
3311 crate::operation::list_configuration_bundle_versions::ListConfigurationBundleVersionsError::Unhandled(inner) => Error::Unhandled(inner),
3312 }
3313 }
3314}
3315impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_dataset_examples::ListDatasetExamplesError, R>> for Error
3316where
3317 R: Send + Sync + std::fmt::Debug + 'static,
3318{
3319 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_dataset_examples::ListDatasetExamplesError, R>) -> Self {
3320 match err {
3321 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3322 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3323 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3324 source: err.into(),
3325 }),
3326 }
3327 }
3328}
3329impl From<crate::operation::list_dataset_examples::ListDatasetExamplesError> for Error {
3330 fn from(err: crate::operation::list_dataset_examples::ListDatasetExamplesError) -> Self {
3331 match err {
3332 crate::operation::list_dataset_examples::ListDatasetExamplesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3333 crate::operation::list_dataset_examples::ListDatasetExamplesError::ConflictException(inner) => Error::ConflictException(inner),
3334 crate::operation::list_dataset_examples::ListDatasetExamplesError::InternalServerException(inner) => {
3335 Error::InternalServerException(inner)
3336 }
3337 crate::operation::list_dataset_examples::ListDatasetExamplesError::ResourceNotFoundException(inner) => {
3338 Error::ResourceNotFoundException(inner)
3339 }
3340 crate::operation::list_dataset_examples::ListDatasetExamplesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3341 crate::operation::list_dataset_examples::ListDatasetExamplesError::ValidationException(inner) => Error::ValidationException(inner),
3342 crate::operation::list_dataset_examples::ListDatasetExamplesError::Unhandled(inner) => Error::Unhandled(inner),
3343 }
3344 }
3345}
3346impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_datasets::ListDatasetsError, R>> for Error
3347where
3348 R: Send + Sync + std::fmt::Debug + 'static,
3349{
3350 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_datasets::ListDatasetsError, R>) -> Self {
3351 match err {
3352 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3353 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3354 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3355 source: err.into(),
3356 }),
3357 }
3358 }
3359}
3360impl From<crate::operation::list_datasets::ListDatasetsError> for Error {
3361 fn from(err: crate::operation::list_datasets::ListDatasetsError) -> Self {
3362 match err {
3363 crate::operation::list_datasets::ListDatasetsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3364 crate::operation::list_datasets::ListDatasetsError::InternalServerException(inner) => Error::InternalServerException(inner),
3365 crate::operation::list_datasets::ListDatasetsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3366 crate::operation::list_datasets::ListDatasetsError::ValidationException(inner) => Error::ValidationException(inner),
3367 crate::operation::list_datasets::ListDatasetsError::Unhandled(inner) => Error::Unhandled(inner),
3368 }
3369 }
3370}
3371impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_dataset_versions::ListDatasetVersionsError, R>> for Error
3372where
3373 R: Send + Sync + std::fmt::Debug + 'static,
3374{
3375 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_dataset_versions::ListDatasetVersionsError, R>) -> Self {
3376 match err {
3377 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3378 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3379 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3380 source: err.into(),
3381 }),
3382 }
3383 }
3384}
3385impl From<crate::operation::list_dataset_versions::ListDatasetVersionsError> for Error {
3386 fn from(err: crate::operation::list_dataset_versions::ListDatasetVersionsError) -> Self {
3387 match err {
3388 crate::operation::list_dataset_versions::ListDatasetVersionsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3389 crate::operation::list_dataset_versions::ListDatasetVersionsError::InternalServerException(inner) => {
3390 Error::InternalServerException(inner)
3391 }
3392 crate::operation::list_dataset_versions::ListDatasetVersionsError::ResourceNotFoundException(inner) => {
3393 Error::ResourceNotFoundException(inner)
3394 }
3395 crate::operation::list_dataset_versions::ListDatasetVersionsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3396 crate::operation::list_dataset_versions::ListDatasetVersionsError::ValidationException(inner) => Error::ValidationException(inner),
3397 crate::operation::list_dataset_versions::ListDatasetVersionsError::Unhandled(inner) => Error::Unhandled(inner),
3398 }
3399 }
3400}
3401impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_evaluators::ListEvaluatorsError, R>> for Error
3402where
3403 R: Send + Sync + std::fmt::Debug + 'static,
3404{
3405 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_evaluators::ListEvaluatorsError, R>) -> Self {
3406 match err {
3407 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3408 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3409 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3410 source: err.into(),
3411 }),
3412 }
3413 }
3414}
3415impl From<crate::operation::list_evaluators::ListEvaluatorsError> for Error {
3416 fn from(err: crate::operation::list_evaluators::ListEvaluatorsError) -> Self {
3417 match err {
3418 crate::operation::list_evaluators::ListEvaluatorsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3419 crate::operation::list_evaluators::ListEvaluatorsError::InternalServerException(inner) => Error::InternalServerException(inner),
3420 crate::operation::list_evaluators::ListEvaluatorsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3421 crate::operation::list_evaluators::ListEvaluatorsError::ValidationException(inner) => Error::ValidationException(inner),
3422 crate::operation::list_evaluators::ListEvaluatorsError::Unhandled(inner) => Error::Unhandled(inner),
3423 }
3424 }
3425}
3426impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_gateway_rules::ListGatewayRulesError, R>> for Error
3427where
3428 R: Send + Sync + std::fmt::Debug + 'static,
3429{
3430 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_gateway_rules::ListGatewayRulesError, R>) -> Self {
3431 match err {
3432 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3433 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3434 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3435 source: err.into(),
3436 }),
3437 }
3438 }
3439}
3440impl From<crate::operation::list_gateway_rules::ListGatewayRulesError> for Error {
3441 fn from(err: crate::operation::list_gateway_rules::ListGatewayRulesError) -> Self {
3442 match err {
3443 crate::operation::list_gateway_rules::ListGatewayRulesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3444 crate::operation::list_gateway_rules::ListGatewayRulesError::InternalServerException(inner) => Error::InternalServerException(inner),
3445 crate::operation::list_gateway_rules::ListGatewayRulesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3446 crate::operation::list_gateway_rules::ListGatewayRulesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3447 crate::operation::list_gateway_rules::ListGatewayRulesError::ValidationException(inner) => Error::ValidationException(inner),
3448 crate::operation::list_gateway_rules::ListGatewayRulesError::Unhandled(inner) => Error::Unhandled(inner),
3449 }
3450 }
3451}
3452impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_gateways::ListGatewaysError, R>> for Error
3453where
3454 R: Send + Sync + std::fmt::Debug + 'static,
3455{
3456 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_gateways::ListGatewaysError, R>) -> Self {
3457 match err {
3458 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3459 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3460 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3461 source: err.into(),
3462 }),
3463 }
3464 }
3465}
3466impl From<crate::operation::list_gateways::ListGatewaysError> for Error {
3467 fn from(err: crate::operation::list_gateways::ListGatewaysError) -> Self {
3468 match err {
3469 crate::operation::list_gateways::ListGatewaysError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3470 crate::operation::list_gateways::ListGatewaysError::InternalServerException(inner) => Error::InternalServerException(inner),
3471 crate::operation::list_gateways::ListGatewaysError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3472 crate::operation::list_gateways::ListGatewaysError::ValidationException(inner) => Error::ValidationException(inner),
3473 crate::operation::list_gateways::ListGatewaysError::Unhandled(inner) => Error::Unhandled(inner),
3474 }
3475 }
3476}
3477impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_gateway_targets::ListGatewayTargetsError, R>> for Error
3478where
3479 R: Send + Sync + std::fmt::Debug + 'static,
3480{
3481 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_gateway_targets::ListGatewayTargetsError, R>) -> Self {
3482 match err {
3483 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3484 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3485 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3486 source: err.into(),
3487 }),
3488 }
3489 }
3490}
3491impl From<crate::operation::list_gateway_targets::ListGatewayTargetsError> for Error {
3492 fn from(err: crate::operation::list_gateway_targets::ListGatewayTargetsError) -> Self {
3493 match err {
3494 crate::operation::list_gateway_targets::ListGatewayTargetsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3495 crate::operation::list_gateway_targets::ListGatewayTargetsError::InternalServerException(inner) => Error::InternalServerException(inner),
3496 crate::operation::list_gateway_targets::ListGatewayTargetsError::ResourceNotFoundException(inner) => {
3497 Error::ResourceNotFoundException(inner)
3498 }
3499 crate::operation::list_gateway_targets::ListGatewayTargetsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3500 crate::operation::list_gateway_targets::ListGatewayTargetsError::ValidationException(inner) => Error::ValidationException(inner),
3501 crate::operation::list_gateway_targets::ListGatewayTargetsError::Unhandled(inner) => Error::Unhandled(inner),
3502 }
3503 }
3504}
3505impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_harness_endpoints::ListHarnessEndpointsError, R>> for Error
3506where
3507 R: Send + Sync + std::fmt::Debug + 'static,
3508{
3509 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_harness_endpoints::ListHarnessEndpointsError, R>) -> Self {
3510 match err {
3511 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3512 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3513 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3514 source: err.into(),
3515 }),
3516 }
3517 }
3518}
3519impl From<crate::operation::list_harness_endpoints::ListHarnessEndpointsError> for Error {
3520 fn from(err: crate::operation::list_harness_endpoints::ListHarnessEndpointsError) -> Self {
3521 match err {
3522 crate::operation::list_harness_endpoints::ListHarnessEndpointsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3523 crate::operation::list_harness_endpoints::ListHarnessEndpointsError::InternalServerException(inner) => {
3524 Error::InternalServerException(inner)
3525 }
3526 crate::operation::list_harness_endpoints::ListHarnessEndpointsError::ResourceNotFoundException(inner) => {
3527 Error::ResourceNotFoundException(inner)
3528 }
3529 crate::operation::list_harness_endpoints::ListHarnessEndpointsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3530 crate::operation::list_harness_endpoints::ListHarnessEndpointsError::ValidationException(inner) => Error::ValidationException(inner),
3531 crate::operation::list_harness_endpoints::ListHarnessEndpointsError::Unhandled(inner) => Error::Unhandled(inner),
3532 }
3533 }
3534}
3535impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_harnesses::ListHarnessesError, R>> for Error
3536where
3537 R: Send + Sync + std::fmt::Debug + 'static,
3538{
3539 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_harnesses::ListHarnessesError, R>) -> Self {
3540 match err {
3541 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3542 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3543 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3544 source: err.into(),
3545 }),
3546 }
3547 }
3548}
3549impl From<crate::operation::list_harnesses::ListHarnessesError> for Error {
3550 fn from(err: crate::operation::list_harnesses::ListHarnessesError) -> Self {
3551 match err {
3552 crate::operation::list_harnesses::ListHarnessesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3553 crate::operation::list_harnesses::ListHarnessesError::InternalServerException(inner) => Error::InternalServerException(inner),
3554 crate::operation::list_harnesses::ListHarnessesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3555 crate::operation::list_harnesses::ListHarnessesError::ValidationException(inner) => Error::ValidationException(inner),
3556 crate::operation::list_harnesses::ListHarnessesError::Unhandled(inner) => Error::Unhandled(inner),
3557 }
3558 }
3559}
3560impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_harness_versions::ListHarnessVersionsError, R>> for Error
3561where
3562 R: Send + Sync + std::fmt::Debug + 'static,
3563{
3564 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_harness_versions::ListHarnessVersionsError, R>) -> Self {
3565 match err {
3566 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3567 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3568 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3569 source: err.into(),
3570 }),
3571 }
3572 }
3573}
3574impl From<crate::operation::list_harness_versions::ListHarnessVersionsError> for Error {
3575 fn from(err: crate::operation::list_harness_versions::ListHarnessVersionsError) -> Self {
3576 match err {
3577 crate::operation::list_harness_versions::ListHarnessVersionsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3578 crate::operation::list_harness_versions::ListHarnessVersionsError::InternalServerException(inner) => {
3579 Error::InternalServerException(inner)
3580 }
3581 crate::operation::list_harness_versions::ListHarnessVersionsError::ResourceNotFoundException(inner) => {
3582 Error::ResourceNotFoundException(inner)
3583 }
3584 crate::operation::list_harness_versions::ListHarnessVersionsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3585 crate::operation::list_harness_versions::ListHarnessVersionsError::ValidationException(inner) => Error::ValidationException(inner),
3586 crate::operation::list_harness_versions::ListHarnessVersionsError::Unhandled(inner) => Error::Unhandled(inner),
3587 }
3588 }
3589}
3590impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_memories::ListMemoriesError, R>> for Error
3591where
3592 R: Send + Sync + std::fmt::Debug + 'static,
3593{
3594 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_memories::ListMemoriesError, R>) -> Self {
3595 match err {
3596 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3597 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3598 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3599 source: err.into(),
3600 }),
3601 }
3602 }
3603}
3604impl From<crate::operation::list_memories::ListMemoriesError> for Error {
3605 fn from(err: crate::operation::list_memories::ListMemoriesError) -> Self {
3606 match err {
3607 crate::operation::list_memories::ListMemoriesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3608 crate::operation::list_memories::ListMemoriesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3609 crate::operation::list_memories::ListMemoriesError::ServiceException(inner) => Error::ServiceException(inner),
3610 crate::operation::list_memories::ListMemoriesError::ThrottledException(inner) => Error::ThrottledException(inner),
3611 crate::operation::list_memories::ListMemoriesError::ValidationException(inner) => Error::ValidationException(inner),
3612 crate::operation::list_memories::ListMemoriesError::Unhandled(inner) => Error::Unhandled(inner),
3613 }
3614 }
3615}
3616impl<R>
3617 From<
3618 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_oauth2_credential_providers::ListOauth2CredentialProvidersError, R>,
3619 > for Error
3620where
3621 R: Send + Sync + std::fmt::Debug + 'static,
3622{
3623 fn from(
3624 err: ::aws_smithy_runtime_api::client::result::SdkError<
3625 crate::operation::list_oauth2_credential_providers::ListOauth2CredentialProvidersError,
3626 R,
3627 >,
3628 ) -> Self {
3629 match err {
3630 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3631 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3632 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3633 source: err.into(),
3634 }),
3635 }
3636 }
3637}
3638impl From<crate::operation::list_oauth2_credential_providers::ListOauth2CredentialProvidersError> for Error {
3639 fn from(err: crate::operation::list_oauth2_credential_providers::ListOauth2CredentialProvidersError) -> Self {
3640 match err {
3641 crate::operation::list_oauth2_credential_providers::ListOauth2CredentialProvidersError::AccessDeniedException(inner) => {
3642 Error::AccessDeniedException(inner)
3643 }
3644 crate::operation::list_oauth2_credential_providers::ListOauth2CredentialProvidersError::InternalServerException(inner) => {
3645 Error::InternalServerException(inner)
3646 }
3647 crate::operation::list_oauth2_credential_providers::ListOauth2CredentialProvidersError::ResourceNotFoundException(inner) => {
3648 Error::ResourceNotFoundException(inner)
3649 }
3650 crate::operation::list_oauth2_credential_providers::ListOauth2CredentialProvidersError::ThrottlingException(inner) => {
3651 Error::ThrottlingException(inner)
3652 }
3653 crate::operation::list_oauth2_credential_providers::ListOauth2CredentialProvidersError::UnauthorizedException(inner) => {
3654 Error::UnauthorizedException(inner)
3655 }
3656 crate::operation::list_oauth2_credential_providers::ListOauth2CredentialProvidersError::ValidationException(inner) => {
3657 Error::ValidationException(inner)
3658 }
3659 crate::operation::list_oauth2_credential_providers::ListOauth2CredentialProvidersError::Unhandled(inner) => Error::Unhandled(inner),
3660 }
3661 }
3662}
3663impl<R>
3664 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_online_evaluation_configs::ListOnlineEvaluationConfigsError, R>>
3665 for Error
3666where
3667 R: Send + Sync + std::fmt::Debug + 'static,
3668{
3669 fn from(
3670 err: ::aws_smithy_runtime_api::client::result::SdkError<
3671 crate::operation::list_online_evaluation_configs::ListOnlineEvaluationConfigsError,
3672 R,
3673 >,
3674 ) -> Self {
3675 match err {
3676 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3677 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3678 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3679 source: err.into(),
3680 }),
3681 }
3682 }
3683}
3684impl From<crate::operation::list_online_evaluation_configs::ListOnlineEvaluationConfigsError> for Error {
3685 fn from(err: crate::operation::list_online_evaluation_configs::ListOnlineEvaluationConfigsError) -> Self {
3686 match err {
3687 crate::operation::list_online_evaluation_configs::ListOnlineEvaluationConfigsError::AccessDeniedException(inner) => {
3688 Error::AccessDeniedException(inner)
3689 }
3690 crate::operation::list_online_evaluation_configs::ListOnlineEvaluationConfigsError::InternalServerException(inner) => {
3691 Error::InternalServerException(inner)
3692 }
3693 crate::operation::list_online_evaluation_configs::ListOnlineEvaluationConfigsError::ThrottlingException(inner) => {
3694 Error::ThrottlingException(inner)
3695 }
3696 crate::operation::list_online_evaluation_configs::ListOnlineEvaluationConfigsError::ValidationException(inner) => {
3697 Error::ValidationException(inner)
3698 }
3699 crate::operation::list_online_evaluation_configs::ListOnlineEvaluationConfigsError::Unhandled(inner) => Error::Unhandled(inner),
3700 }
3701 }
3702}
3703impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_payment_connectors::ListPaymentConnectorsError, R>> for Error
3704where
3705 R: Send + Sync + std::fmt::Debug + 'static,
3706{
3707 fn from(
3708 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_payment_connectors::ListPaymentConnectorsError, R>,
3709 ) -> Self {
3710 match err {
3711 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3712 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3713 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3714 source: err.into(),
3715 }),
3716 }
3717 }
3718}
3719impl From<crate::operation::list_payment_connectors::ListPaymentConnectorsError> for Error {
3720 fn from(err: crate::operation::list_payment_connectors::ListPaymentConnectorsError) -> Self {
3721 match err {
3722 crate::operation::list_payment_connectors::ListPaymentConnectorsError::AccessDeniedException(inner) => {
3723 Error::AccessDeniedException(inner)
3724 }
3725 crate::operation::list_payment_connectors::ListPaymentConnectorsError::InternalServerException(inner) => {
3726 Error::InternalServerException(inner)
3727 }
3728 crate::operation::list_payment_connectors::ListPaymentConnectorsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3729 crate::operation::list_payment_connectors::ListPaymentConnectorsError::ValidationException(inner) => Error::ValidationException(inner),
3730 crate::operation::list_payment_connectors::ListPaymentConnectorsError::Unhandled(inner) => Error::Unhandled(inner),
3731 }
3732 }
3733}
3734impl<R>
3735 From<
3736 ::aws_smithy_runtime_api::client::result::SdkError<
3737 crate::operation::list_payment_credential_providers::ListPaymentCredentialProvidersError,
3738 R,
3739 >,
3740 > for Error
3741where
3742 R: Send + Sync + std::fmt::Debug + 'static,
3743{
3744 fn from(
3745 err: ::aws_smithy_runtime_api::client::result::SdkError<
3746 crate::operation::list_payment_credential_providers::ListPaymentCredentialProvidersError,
3747 R,
3748 >,
3749 ) -> Self {
3750 match err {
3751 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3752 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3753 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3754 source: err.into(),
3755 }),
3756 }
3757 }
3758}
3759impl From<crate::operation::list_payment_credential_providers::ListPaymentCredentialProvidersError> for Error {
3760 fn from(err: crate::operation::list_payment_credential_providers::ListPaymentCredentialProvidersError) -> Self {
3761 match err {
3762 crate::operation::list_payment_credential_providers::ListPaymentCredentialProvidersError::AccessDeniedException(inner) => {
3763 Error::AccessDeniedException(inner)
3764 }
3765 crate::operation::list_payment_credential_providers::ListPaymentCredentialProvidersError::InternalServerException(inner) => {
3766 Error::InternalServerException(inner)
3767 }
3768 crate::operation::list_payment_credential_providers::ListPaymentCredentialProvidersError::ResourceNotFoundException(inner) => {
3769 Error::ResourceNotFoundException(inner)
3770 }
3771 crate::operation::list_payment_credential_providers::ListPaymentCredentialProvidersError::ThrottlingException(inner) => {
3772 Error::ThrottlingException(inner)
3773 }
3774 crate::operation::list_payment_credential_providers::ListPaymentCredentialProvidersError::UnauthorizedException(inner) => {
3775 Error::UnauthorizedException(inner)
3776 }
3777 crate::operation::list_payment_credential_providers::ListPaymentCredentialProvidersError::ValidationException(inner) => {
3778 Error::ValidationException(inner)
3779 }
3780 crate::operation::list_payment_credential_providers::ListPaymentCredentialProvidersError::Unhandled(inner) => Error::Unhandled(inner),
3781 }
3782 }
3783}
3784impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_payment_managers::ListPaymentManagersError, R>> for Error
3785where
3786 R: Send + Sync + std::fmt::Debug + 'static,
3787{
3788 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_payment_managers::ListPaymentManagersError, R>) -> Self {
3789 match err {
3790 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3791 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3792 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3793 source: err.into(),
3794 }),
3795 }
3796 }
3797}
3798impl From<crate::operation::list_payment_managers::ListPaymentManagersError> for Error {
3799 fn from(err: crate::operation::list_payment_managers::ListPaymentManagersError) -> Self {
3800 match err {
3801 crate::operation::list_payment_managers::ListPaymentManagersError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3802 crate::operation::list_payment_managers::ListPaymentManagersError::InternalServerException(inner) => {
3803 Error::InternalServerException(inner)
3804 }
3805 crate::operation::list_payment_managers::ListPaymentManagersError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3806 crate::operation::list_payment_managers::ListPaymentManagersError::ValidationException(inner) => Error::ValidationException(inner),
3807 crate::operation::list_payment_managers::ListPaymentManagersError::Unhandled(inner) => Error::Unhandled(inner),
3808 }
3809 }
3810}
3811impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_policies::ListPoliciesError, R>> for Error
3812where
3813 R: Send + Sync + std::fmt::Debug + 'static,
3814{
3815 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_policies::ListPoliciesError, R>) -> Self {
3816 match err {
3817 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3818 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3819 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3820 source: err.into(),
3821 }),
3822 }
3823 }
3824}
3825impl From<crate::operation::list_policies::ListPoliciesError> for Error {
3826 fn from(err: crate::operation::list_policies::ListPoliciesError) -> Self {
3827 match err {
3828 crate::operation::list_policies::ListPoliciesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3829 crate::operation::list_policies::ListPoliciesError::InternalServerException(inner) => Error::InternalServerException(inner),
3830 crate::operation::list_policies::ListPoliciesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3831 crate::operation::list_policies::ListPoliciesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3832 crate::operation::list_policies::ListPoliciesError::ValidationException(inner) => Error::ValidationException(inner),
3833 crate::operation::list_policies::ListPoliciesError::Unhandled(inner) => Error::Unhandled(inner),
3834 }
3835 }
3836}
3837impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_policy_engines::ListPolicyEnginesError, R>> for Error
3838where
3839 R: Send + Sync + std::fmt::Debug + 'static,
3840{
3841 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_policy_engines::ListPolicyEnginesError, R>) -> Self {
3842 match err {
3843 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3844 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3845 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3846 source: err.into(),
3847 }),
3848 }
3849 }
3850}
3851impl From<crate::operation::list_policy_engines::ListPolicyEnginesError> for Error {
3852 fn from(err: crate::operation::list_policy_engines::ListPolicyEnginesError) -> Self {
3853 match err {
3854 crate::operation::list_policy_engines::ListPolicyEnginesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3855 crate::operation::list_policy_engines::ListPolicyEnginesError::InternalServerException(inner) => Error::InternalServerException(inner),
3856 crate::operation::list_policy_engines::ListPolicyEnginesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3857 crate::operation::list_policy_engines::ListPolicyEnginesError::ValidationException(inner) => Error::ValidationException(inner),
3858 crate::operation::list_policy_engines::ListPolicyEnginesError::Unhandled(inner) => Error::Unhandled(inner),
3859 }
3860 }
3861}
3862impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_policy_engine_summaries::ListPolicyEngineSummariesError, R>>
3863 for Error
3864where
3865 R: Send + Sync + std::fmt::Debug + 'static,
3866{
3867 fn from(
3868 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_policy_engine_summaries::ListPolicyEngineSummariesError, R>,
3869 ) -> Self {
3870 match err {
3871 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3872 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3873 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3874 source: err.into(),
3875 }),
3876 }
3877 }
3878}
3879impl From<crate::operation::list_policy_engine_summaries::ListPolicyEngineSummariesError> for Error {
3880 fn from(err: crate::operation::list_policy_engine_summaries::ListPolicyEngineSummariesError) -> Self {
3881 match err {
3882 crate::operation::list_policy_engine_summaries::ListPolicyEngineSummariesError::AccessDeniedException(inner) => {
3883 Error::AccessDeniedException(inner)
3884 }
3885 crate::operation::list_policy_engine_summaries::ListPolicyEngineSummariesError::InternalServerException(inner) => {
3886 Error::InternalServerException(inner)
3887 }
3888 crate::operation::list_policy_engine_summaries::ListPolicyEngineSummariesError::ThrottlingException(inner) => {
3889 Error::ThrottlingException(inner)
3890 }
3891 crate::operation::list_policy_engine_summaries::ListPolicyEngineSummariesError::ValidationException(inner) => {
3892 Error::ValidationException(inner)
3893 }
3894 crate::operation::list_policy_engine_summaries::ListPolicyEngineSummariesError::Unhandled(inner) => Error::Unhandled(inner),
3895 }
3896 }
3897}
3898impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_policy_generation_assets::ListPolicyGenerationAssetsError, R>>
3899 for Error
3900where
3901 R: Send + Sync + std::fmt::Debug + 'static,
3902{
3903 fn from(
3904 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_policy_generation_assets::ListPolicyGenerationAssetsError, R>,
3905 ) -> Self {
3906 match err {
3907 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3908 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3909 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3910 source: err.into(),
3911 }),
3912 }
3913 }
3914}
3915impl From<crate::operation::list_policy_generation_assets::ListPolicyGenerationAssetsError> for Error {
3916 fn from(err: crate::operation::list_policy_generation_assets::ListPolicyGenerationAssetsError) -> Self {
3917 match err {
3918 crate::operation::list_policy_generation_assets::ListPolicyGenerationAssetsError::AccessDeniedException(inner) => {
3919 Error::AccessDeniedException(inner)
3920 }
3921 crate::operation::list_policy_generation_assets::ListPolicyGenerationAssetsError::InternalServerException(inner) => {
3922 Error::InternalServerException(inner)
3923 }
3924 crate::operation::list_policy_generation_assets::ListPolicyGenerationAssetsError::ResourceNotFoundException(inner) => {
3925 Error::ResourceNotFoundException(inner)
3926 }
3927 crate::operation::list_policy_generation_assets::ListPolicyGenerationAssetsError::ThrottlingException(inner) => {
3928 Error::ThrottlingException(inner)
3929 }
3930 crate::operation::list_policy_generation_assets::ListPolicyGenerationAssetsError::ValidationException(inner) => {
3931 Error::ValidationException(inner)
3932 }
3933 crate::operation::list_policy_generation_assets::ListPolicyGenerationAssetsError::Unhandled(inner) => Error::Unhandled(inner),
3934 }
3935 }
3936}
3937impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_policy_generations::ListPolicyGenerationsError, R>> for Error
3938where
3939 R: Send + Sync + std::fmt::Debug + 'static,
3940{
3941 fn from(
3942 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_policy_generations::ListPolicyGenerationsError, R>,
3943 ) -> Self {
3944 match err {
3945 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3946 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3947 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3948 source: err.into(),
3949 }),
3950 }
3951 }
3952}
3953impl From<crate::operation::list_policy_generations::ListPolicyGenerationsError> for Error {
3954 fn from(err: crate::operation::list_policy_generations::ListPolicyGenerationsError) -> Self {
3955 match err {
3956 crate::operation::list_policy_generations::ListPolicyGenerationsError::AccessDeniedException(inner) => {
3957 Error::AccessDeniedException(inner)
3958 }
3959 crate::operation::list_policy_generations::ListPolicyGenerationsError::InternalServerException(inner) => {
3960 Error::InternalServerException(inner)
3961 }
3962 crate::operation::list_policy_generations::ListPolicyGenerationsError::ResourceNotFoundException(inner) => {
3963 Error::ResourceNotFoundException(inner)
3964 }
3965 crate::operation::list_policy_generations::ListPolicyGenerationsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3966 crate::operation::list_policy_generations::ListPolicyGenerationsError::ValidationException(inner) => Error::ValidationException(inner),
3967 crate::operation::list_policy_generations::ListPolicyGenerationsError::Unhandled(inner) => Error::Unhandled(inner),
3968 }
3969 }
3970}
3971impl<R>
3972 From<
3973 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_policy_generation_summaries::ListPolicyGenerationSummariesError, R>,
3974 > for Error
3975where
3976 R: Send + Sync + std::fmt::Debug + 'static,
3977{
3978 fn from(
3979 err: ::aws_smithy_runtime_api::client::result::SdkError<
3980 crate::operation::list_policy_generation_summaries::ListPolicyGenerationSummariesError,
3981 R,
3982 >,
3983 ) -> Self {
3984 match err {
3985 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3986 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3987 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3988 source: err.into(),
3989 }),
3990 }
3991 }
3992}
3993impl From<crate::operation::list_policy_generation_summaries::ListPolicyGenerationSummariesError> for Error {
3994 fn from(err: crate::operation::list_policy_generation_summaries::ListPolicyGenerationSummariesError) -> Self {
3995 match err {
3996 crate::operation::list_policy_generation_summaries::ListPolicyGenerationSummariesError::AccessDeniedException(inner) => {
3997 Error::AccessDeniedException(inner)
3998 }
3999 crate::operation::list_policy_generation_summaries::ListPolicyGenerationSummariesError::InternalServerException(inner) => {
4000 Error::InternalServerException(inner)
4001 }
4002 crate::operation::list_policy_generation_summaries::ListPolicyGenerationSummariesError::ResourceNotFoundException(inner) => {
4003 Error::ResourceNotFoundException(inner)
4004 }
4005 crate::operation::list_policy_generation_summaries::ListPolicyGenerationSummariesError::ThrottlingException(inner) => {
4006 Error::ThrottlingException(inner)
4007 }
4008 crate::operation::list_policy_generation_summaries::ListPolicyGenerationSummariesError::ValidationException(inner) => {
4009 Error::ValidationException(inner)
4010 }
4011 crate::operation::list_policy_generation_summaries::ListPolicyGenerationSummariesError::Unhandled(inner) => Error::Unhandled(inner),
4012 }
4013 }
4014}
4015impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_policy_summaries::ListPolicySummariesError, R>> for Error
4016where
4017 R: Send + Sync + std::fmt::Debug + 'static,
4018{
4019 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_policy_summaries::ListPolicySummariesError, R>) -> Self {
4020 match err {
4021 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4022 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4023 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4024 source: err.into(),
4025 }),
4026 }
4027 }
4028}
4029impl From<crate::operation::list_policy_summaries::ListPolicySummariesError> for Error {
4030 fn from(err: crate::operation::list_policy_summaries::ListPolicySummariesError) -> Self {
4031 match err {
4032 crate::operation::list_policy_summaries::ListPolicySummariesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
4033 crate::operation::list_policy_summaries::ListPolicySummariesError::InternalServerException(inner) => {
4034 Error::InternalServerException(inner)
4035 }
4036 crate::operation::list_policy_summaries::ListPolicySummariesError::ResourceNotFoundException(inner) => {
4037 Error::ResourceNotFoundException(inner)
4038 }
4039 crate::operation::list_policy_summaries::ListPolicySummariesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4040 crate::operation::list_policy_summaries::ListPolicySummariesError::ValidationException(inner) => Error::ValidationException(inner),
4041 crate::operation::list_policy_summaries::ListPolicySummariesError::Unhandled(inner) => Error::Unhandled(inner),
4042 }
4043 }
4044}
4045impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_registries::ListRegistriesError, R>> for Error
4046where
4047 R: Send + Sync + std::fmt::Debug + 'static,
4048{
4049 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_registries::ListRegistriesError, R>) -> Self {
4050 match err {
4051 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4052 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4053 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4054 source: err.into(),
4055 }),
4056 }
4057 }
4058}
4059impl From<crate::operation::list_registries::ListRegistriesError> for Error {
4060 fn from(err: crate::operation::list_registries::ListRegistriesError) -> Self {
4061 match err {
4062 crate::operation::list_registries::ListRegistriesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
4063 crate::operation::list_registries::ListRegistriesError::InternalServerException(inner) => Error::InternalServerException(inner),
4064 crate::operation::list_registries::ListRegistriesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4065 crate::operation::list_registries::ListRegistriesError::ValidationException(inner) => Error::ValidationException(inner),
4066 crate::operation::list_registries::ListRegistriesError::Unhandled(inner) => Error::Unhandled(inner),
4067 }
4068 }
4069}
4070impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_registry_records::ListRegistryRecordsError, R>> for Error
4071where
4072 R: Send + Sync + std::fmt::Debug + 'static,
4073{
4074 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_registry_records::ListRegistryRecordsError, R>) -> Self {
4075 match err {
4076 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4077 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4078 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4079 source: err.into(),
4080 }),
4081 }
4082 }
4083}
4084impl From<crate::operation::list_registry_records::ListRegistryRecordsError> for Error {
4085 fn from(err: crate::operation::list_registry_records::ListRegistryRecordsError) -> Self {
4086 match err {
4087 crate::operation::list_registry_records::ListRegistryRecordsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
4088 crate::operation::list_registry_records::ListRegistryRecordsError::ConflictException(inner) => Error::ConflictException(inner),
4089 crate::operation::list_registry_records::ListRegistryRecordsError::InternalServerException(inner) => {
4090 Error::InternalServerException(inner)
4091 }
4092 crate::operation::list_registry_records::ListRegistryRecordsError::ResourceNotFoundException(inner) => {
4093 Error::ResourceNotFoundException(inner)
4094 }
4095 crate::operation::list_registry_records::ListRegistryRecordsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4096 crate::operation::list_registry_records::ListRegistryRecordsError::ValidationException(inner) => Error::ValidationException(inner),
4097 crate::operation::list_registry_records::ListRegistryRecordsError::Unhandled(inner) => Error::Unhandled(inner),
4098 }
4099 }
4100}
4101impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
4102where
4103 R: Send + Sync + std::fmt::Debug + 'static,
4104{
4105 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
4106 match err {
4107 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4108 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4109 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4110 source: err.into(),
4111 }),
4112 }
4113 }
4114}
4115impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
4116 fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
4117 match err {
4118 crate::operation::list_tags_for_resource::ListTagsForResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
4119 crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerException(inner) => {
4120 Error::InternalServerException(inner)
4121 }
4122 crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
4123 Error::ResourceNotFoundException(inner)
4124 }
4125 crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4126 crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
4127 crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
4128 }
4129 }
4130}
4131impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_workload_identities::ListWorkloadIdentitiesError, R>> for Error
4132where
4133 R: Send + Sync + std::fmt::Debug + 'static,
4134{
4135 fn from(
4136 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_workload_identities::ListWorkloadIdentitiesError, R>,
4137 ) -> Self {
4138 match err {
4139 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4140 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4141 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4142 source: err.into(),
4143 }),
4144 }
4145 }
4146}
4147impl From<crate::operation::list_workload_identities::ListWorkloadIdentitiesError> for Error {
4148 fn from(err: crate::operation::list_workload_identities::ListWorkloadIdentitiesError) -> Self {
4149 match err {
4150 crate::operation::list_workload_identities::ListWorkloadIdentitiesError::AccessDeniedException(inner) => {
4151 Error::AccessDeniedException(inner)
4152 }
4153 crate::operation::list_workload_identities::ListWorkloadIdentitiesError::InternalServerException(inner) => {
4154 Error::InternalServerException(inner)
4155 }
4156 crate::operation::list_workload_identities::ListWorkloadIdentitiesError::ResourceNotFoundException(inner) => {
4157 Error::ResourceNotFoundException(inner)
4158 }
4159 crate::operation::list_workload_identities::ListWorkloadIdentitiesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4160 crate::operation::list_workload_identities::ListWorkloadIdentitiesError::UnauthorizedException(inner) => {
4161 Error::UnauthorizedException(inner)
4162 }
4163 crate::operation::list_workload_identities::ListWorkloadIdentitiesError::ValidationException(inner) => Error::ValidationException(inner),
4164 crate::operation::list_workload_identities::ListWorkloadIdentitiesError::Unhandled(inner) => Error::Unhandled(inner),
4165 }
4166 }
4167}
4168impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_resource_policy::PutResourcePolicyError, R>> for Error
4169where
4170 R: Send + Sync + std::fmt::Debug + 'static,
4171{
4172 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_resource_policy::PutResourcePolicyError, R>) -> Self {
4173 match err {
4174 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4175 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4176 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4177 source: err.into(),
4178 }),
4179 }
4180 }
4181}
4182impl From<crate::operation::put_resource_policy::PutResourcePolicyError> for Error {
4183 fn from(err: crate::operation::put_resource_policy::PutResourcePolicyError) -> Self {
4184 match err {
4185 crate::operation::put_resource_policy::PutResourcePolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
4186 crate::operation::put_resource_policy::PutResourcePolicyError::InternalServerException(inner) => Error::InternalServerException(inner),
4187 crate::operation::put_resource_policy::PutResourcePolicyError::ResourceNotFoundException(inner) => {
4188 Error::ResourceNotFoundException(inner)
4189 }
4190 crate::operation::put_resource_policy::PutResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4191 crate::operation::put_resource_policy::PutResourcePolicyError::ValidationException(inner) => Error::ValidationException(inner),
4192 crate::operation::put_resource_policy::PutResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
4193 }
4194 }
4195}
4196impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_token_vault_cmk::SetTokenVaultCMKError, R>> for Error
4197where
4198 R: Send + Sync + std::fmt::Debug + 'static,
4199{
4200 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_token_vault_cmk::SetTokenVaultCMKError, R>) -> Self {
4201 match err {
4202 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4203 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4204 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4205 source: err.into(),
4206 }),
4207 }
4208 }
4209}
4210impl From<crate::operation::set_token_vault_cmk::SetTokenVaultCMKError> for Error {
4211 fn from(err: crate::operation::set_token_vault_cmk::SetTokenVaultCMKError) -> Self {
4212 match err {
4213 crate::operation::set_token_vault_cmk::SetTokenVaultCMKError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
4214 crate::operation::set_token_vault_cmk::SetTokenVaultCMKError::ConcurrentModificationException(inner) => {
4215 Error::ConcurrentModificationException(inner)
4216 }
4217 crate::operation::set_token_vault_cmk::SetTokenVaultCMKError::InternalServerException(inner) => Error::InternalServerException(inner),
4218 crate::operation::set_token_vault_cmk::SetTokenVaultCMKError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
4219 crate::operation::set_token_vault_cmk::SetTokenVaultCMKError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4220 crate::operation::set_token_vault_cmk::SetTokenVaultCMKError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
4221 crate::operation::set_token_vault_cmk::SetTokenVaultCMKError::ValidationException(inner) => Error::ValidationException(inner),
4222 crate::operation::set_token_vault_cmk::SetTokenVaultCMKError::Unhandled(inner) => Error::Unhandled(inner),
4223 }
4224 }
4225}
4226impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_policy_generation::StartPolicyGenerationError, R>> for Error
4227where
4228 R: Send + Sync + std::fmt::Debug + 'static,
4229{
4230 fn from(
4231 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_policy_generation::StartPolicyGenerationError, R>,
4232 ) -> Self {
4233 match err {
4234 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4235 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4236 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4237 source: err.into(),
4238 }),
4239 }
4240 }
4241}
4242impl From<crate::operation::start_policy_generation::StartPolicyGenerationError> for Error {
4243 fn from(err: crate::operation::start_policy_generation::StartPolicyGenerationError) -> Self {
4244 match err {
4245 crate::operation::start_policy_generation::StartPolicyGenerationError::AccessDeniedException(inner) => {
4246 Error::AccessDeniedException(inner)
4247 }
4248 crate::operation::start_policy_generation::StartPolicyGenerationError::ConflictException(inner) => Error::ConflictException(inner),
4249 crate::operation::start_policy_generation::StartPolicyGenerationError::InternalServerException(inner) => {
4250 Error::InternalServerException(inner)
4251 }
4252 crate::operation::start_policy_generation::StartPolicyGenerationError::ResourceNotFoundException(inner) => {
4253 Error::ResourceNotFoundException(inner)
4254 }
4255 crate::operation::start_policy_generation::StartPolicyGenerationError::ServiceQuotaExceededException(inner) => {
4256 Error::ServiceQuotaExceededException(inner)
4257 }
4258 crate::operation::start_policy_generation::StartPolicyGenerationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4259 crate::operation::start_policy_generation::StartPolicyGenerationError::ValidationException(inner) => Error::ValidationException(inner),
4260 crate::operation::start_policy_generation::StartPolicyGenerationError::Unhandled(inner) => Error::Unhandled(inner),
4261 }
4262 }
4263}
4264impl<R>
4265 From<
4266 ::aws_smithy_runtime_api::client::result::SdkError<
4267 crate::operation::submit_registry_record_for_approval::SubmitRegistryRecordForApprovalError,
4268 R,
4269 >,
4270 > for Error
4271where
4272 R: Send + Sync + std::fmt::Debug + 'static,
4273{
4274 fn from(
4275 err: ::aws_smithy_runtime_api::client::result::SdkError<
4276 crate::operation::submit_registry_record_for_approval::SubmitRegistryRecordForApprovalError,
4277 R,
4278 >,
4279 ) -> Self {
4280 match err {
4281 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4282 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4283 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4284 source: err.into(),
4285 }),
4286 }
4287 }
4288}
4289impl From<crate::operation::submit_registry_record_for_approval::SubmitRegistryRecordForApprovalError> for Error {
4290 fn from(err: crate::operation::submit_registry_record_for_approval::SubmitRegistryRecordForApprovalError) -> Self {
4291 match err {
4292 crate::operation::submit_registry_record_for_approval::SubmitRegistryRecordForApprovalError::AccessDeniedException(inner) => {
4293 Error::AccessDeniedException(inner)
4294 }
4295 crate::operation::submit_registry_record_for_approval::SubmitRegistryRecordForApprovalError::ConflictException(inner) => {
4296 Error::ConflictException(inner)
4297 }
4298 crate::operation::submit_registry_record_for_approval::SubmitRegistryRecordForApprovalError::InternalServerException(inner) => {
4299 Error::InternalServerException(inner)
4300 }
4301 crate::operation::submit_registry_record_for_approval::SubmitRegistryRecordForApprovalError::ResourceNotFoundException(inner) => {
4302 Error::ResourceNotFoundException(inner)
4303 }
4304 crate::operation::submit_registry_record_for_approval::SubmitRegistryRecordForApprovalError::ThrottlingException(inner) => {
4305 Error::ThrottlingException(inner)
4306 }
4307 crate::operation::submit_registry_record_for_approval::SubmitRegistryRecordForApprovalError::ValidationException(inner) => {
4308 Error::ValidationException(inner)
4309 }
4310 crate::operation::submit_registry_record_for_approval::SubmitRegistryRecordForApprovalError::Unhandled(inner) => Error::Unhandled(inner),
4311 }
4312 }
4313}
4314impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::synchronize_gateway_targets::SynchronizeGatewayTargetsError, R>>
4315 for Error
4316where
4317 R: Send + Sync + std::fmt::Debug + 'static,
4318{
4319 fn from(
4320 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::synchronize_gateway_targets::SynchronizeGatewayTargetsError, R>,
4321 ) -> Self {
4322 match err {
4323 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4324 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4325 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4326 source: err.into(),
4327 }),
4328 }
4329 }
4330}
4331impl From<crate::operation::synchronize_gateway_targets::SynchronizeGatewayTargetsError> for Error {
4332 fn from(err: crate::operation::synchronize_gateway_targets::SynchronizeGatewayTargetsError) -> Self {
4333 match err {
4334 crate::operation::synchronize_gateway_targets::SynchronizeGatewayTargetsError::AccessDeniedException(inner) => {
4335 Error::AccessDeniedException(inner)
4336 }
4337 crate::operation::synchronize_gateway_targets::SynchronizeGatewayTargetsError::ConflictException(inner) => {
4338 Error::ConflictException(inner)
4339 }
4340 crate::operation::synchronize_gateway_targets::SynchronizeGatewayTargetsError::InternalServerException(inner) => {
4341 Error::InternalServerException(inner)
4342 }
4343 crate::operation::synchronize_gateway_targets::SynchronizeGatewayTargetsError::ResourceNotFoundException(inner) => {
4344 Error::ResourceNotFoundException(inner)
4345 }
4346 crate::operation::synchronize_gateway_targets::SynchronizeGatewayTargetsError::ServiceQuotaExceededException(inner) => {
4347 Error::ServiceQuotaExceededException(inner)
4348 }
4349 crate::operation::synchronize_gateway_targets::SynchronizeGatewayTargetsError::ThrottlingException(inner) => {
4350 Error::ThrottlingException(inner)
4351 }
4352 crate::operation::synchronize_gateway_targets::SynchronizeGatewayTargetsError::ValidationException(inner) => {
4353 Error::ValidationException(inner)
4354 }
4355 crate::operation::synchronize_gateway_targets::SynchronizeGatewayTargetsError::Unhandled(inner) => Error::Unhandled(inner),
4356 }
4357 }
4358}
4359impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
4360where
4361 R: Send + Sync + std::fmt::Debug + 'static,
4362{
4363 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
4364 match err {
4365 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4366 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4367 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4368 source: err.into(),
4369 }),
4370 }
4371 }
4372}
4373impl From<crate::operation::tag_resource::TagResourceError> for Error {
4374 fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
4375 match err {
4376 crate::operation::tag_resource::TagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
4377 crate::operation::tag_resource::TagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
4378 crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
4379 crate::operation::tag_resource::TagResourceError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
4380 crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4381 crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
4382 crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
4383 }
4384 }
4385}
4386impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
4387where
4388 R: Send + Sync + std::fmt::Debug + 'static,
4389{
4390 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
4391 match err {
4392 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4393 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4394 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4395 source: err.into(),
4396 }),
4397 }
4398 }
4399}
4400impl From<crate::operation::untag_resource::UntagResourceError> for Error {
4401 fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
4402 match err {
4403 crate::operation::untag_resource::UntagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
4404 crate::operation::untag_resource::UntagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
4405 crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
4406 crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4407 crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
4408 crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
4409 }
4410 }
4411}
4412impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_agent_runtime::UpdateAgentRuntimeError, R>> for Error
4413where
4414 R: Send + Sync + std::fmt::Debug + 'static,
4415{
4416 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_agent_runtime::UpdateAgentRuntimeError, R>) -> Self {
4417 match err {
4418 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4419 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4420 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4421 source: err.into(),
4422 }),
4423 }
4424 }
4425}
4426impl From<crate::operation::update_agent_runtime::UpdateAgentRuntimeError> for Error {
4427 fn from(err: crate::operation::update_agent_runtime::UpdateAgentRuntimeError) -> Self {
4428 match err {
4429 crate::operation::update_agent_runtime::UpdateAgentRuntimeError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
4430 crate::operation::update_agent_runtime::UpdateAgentRuntimeError::ConflictException(inner) => Error::ConflictException(inner),
4431 crate::operation::update_agent_runtime::UpdateAgentRuntimeError::InternalServerException(inner) => Error::InternalServerException(inner),
4432 crate::operation::update_agent_runtime::UpdateAgentRuntimeError::ResourceNotFoundException(inner) => {
4433 Error::ResourceNotFoundException(inner)
4434 }
4435 crate::operation::update_agent_runtime::UpdateAgentRuntimeError::ServiceQuotaExceededException(inner) => {
4436 Error::ServiceQuotaExceededException(inner)
4437 }
4438 crate::operation::update_agent_runtime::UpdateAgentRuntimeError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4439 crate::operation::update_agent_runtime::UpdateAgentRuntimeError::ValidationException(inner) => Error::ValidationException(inner),
4440 crate::operation::update_agent_runtime::UpdateAgentRuntimeError::Unhandled(inner) => Error::Unhandled(inner),
4441 }
4442 }
4443}
4444impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_agent_runtime_endpoint::UpdateAgentRuntimeEndpointError, R>>
4445 for Error
4446where
4447 R: Send + Sync + std::fmt::Debug + 'static,
4448{
4449 fn from(
4450 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_agent_runtime_endpoint::UpdateAgentRuntimeEndpointError, R>,
4451 ) -> Self {
4452 match err {
4453 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4454 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4455 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4456 source: err.into(),
4457 }),
4458 }
4459 }
4460}
4461impl From<crate::operation::update_agent_runtime_endpoint::UpdateAgentRuntimeEndpointError> for Error {
4462 fn from(err: crate::operation::update_agent_runtime_endpoint::UpdateAgentRuntimeEndpointError) -> Self {
4463 match err {
4464 crate::operation::update_agent_runtime_endpoint::UpdateAgentRuntimeEndpointError::AccessDeniedException(inner) => {
4465 Error::AccessDeniedException(inner)
4466 }
4467 crate::operation::update_agent_runtime_endpoint::UpdateAgentRuntimeEndpointError::ConflictException(inner) => {
4468 Error::ConflictException(inner)
4469 }
4470 crate::operation::update_agent_runtime_endpoint::UpdateAgentRuntimeEndpointError::InternalServerException(inner) => {
4471 Error::InternalServerException(inner)
4472 }
4473 crate::operation::update_agent_runtime_endpoint::UpdateAgentRuntimeEndpointError::ResourceNotFoundException(inner) => {
4474 Error::ResourceNotFoundException(inner)
4475 }
4476 crate::operation::update_agent_runtime_endpoint::UpdateAgentRuntimeEndpointError::ServiceQuotaExceededException(inner) => {
4477 Error::ServiceQuotaExceededException(inner)
4478 }
4479 crate::operation::update_agent_runtime_endpoint::UpdateAgentRuntimeEndpointError::ThrottlingException(inner) => {
4480 Error::ThrottlingException(inner)
4481 }
4482 crate::operation::update_agent_runtime_endpoint::UpdateAgentRuntimeEndpointError::ValidationException(inner) => {
4483 Error::ValidationException(inner)
4484 }
4485 crate::operation::update_agent_runtime_endpoint::UpdateAgentRuntimeEndpointError::Unhandled(inner) => Error::Unhandled(inner),
4486 }
4487 }
4488}
4489impl<R>
4490 From<
4491 ::aws_smithy_runtime_api::client::result::SdkError<
4492 crate::operation::update_api_key_credential_provider::UpdateApiKeyCredentialProviderError,
4493 R,
4494 >,
4495 > for Error
4496where
4497 R: Send + Sync + std::fmt::Debug + 'static,
4498{
4499 fn from(
4500 err: ::aws_smithy_runtime_api::client::result::SdkError<
4501 crate::operation::update_api_key_credential_provider::UpdateApiKeyCredentialProviderError,
4502 R,
4503 >,
4504 ) -> Self {
4505 match err {
4506 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4507 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4508 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4509 source: err.into(),
4510 }),
4511 }
4512 }
4513}
4514impl From<crate::operation::update_api_key_credential_provider::UpdateApiKeyCredentialProviderError> for Error {
4515 fn from(err: crate::operation::update_api_key_credential_provider::UpdateApiKeyCredentialProviderError) -> Self {
4516 match err {
4517 crate::operation::update_api_key_credential_provider::UpdateApiKeyCredentialProviderError::AccessDeniedException(inner) => {
4518 Error::AccessDeniedException(inner)
4519 }
4520 crate::operation::update_api_key_credential_provider::UpdateApiKeyCredentialProviderError::ConflictException(inner) => {
4521 Error::ConflictException(inner)
4522 }
4523 crate::operation::update_api_key_credential_provider::UpdateApiKeyCredentialProviderError::DecryptionFailure(inner) => {
4524 Error::DecryptionFailure(inner)
4525 }
4526 crate::operation::update_api_key_credential_provider::UpdateApiKeyCredentialProviderError::EncryptionFailure(inner) => {
4527 Error::EncryptionFailure(inner)
4528 }
4529 crate::operation::update_api_key_credential_provider::UpdateApiKeyCredentialProviderError::InternalServerException(inner) => {
4530 Error::InternalServerException(inner)
4531 }
4532 crate::operation::update_api_key_credential_provider::UpdateApiKeyCredentialProviderError::ResourceNotFoundException(inner) => {
4533 Error::ResourceNotFoundException(inner)
4534 }
4535 crate::operation::update_api_key_credential_provider::UpdateApiKeyCredentialProviderError::ServiceQuotaExceededException(inner) => {
4536 Error::ServiceQuotaExceededException(inner)
4537 }
4538 crate::operation::update_api_key_credential_provider::UpdateApiKeyCredentialProviderError::ThrottlingException(inner) => {
4539 Error::ThrottlingException(inner)
4540 }
4541 crate::operation::update_api_key_credential_provider::UpdateApiKeyCredentialProviderError::UnauthorizedException(inner) => {
4542 Error::UnauthorizedException(inner)
4543 }
4544 crate::operation::update_api_key_credential_provider::UpdateApiKeyCredentialProviderError::ValidationException(inner) => {
4545 Error::ValidationException(inner)
4546 }
4547 crate::operation::update_api_key_credential_provider::UpdateApiKeyCredentialProviderError::Unhandled(inner) => Error::Unhandled(inner),
4548 }
4549 }
4550}
4551impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_configuration_bundle::UpdateConfigurationBundleError, R>>
4552 for Error
4553where
4554 R: Send + Sync + std::fmt::Debug + 'static,
4555{
4556 fn from(
4557 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_configuration_bundle::UpdateConfigurationBundleError, R>,
4558 ) -> Self {
4559 match err {
4560 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4561 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4562 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4563 source: err.into(),
4564 }),
4565 }
4566 }
4567}
4568impl From<crate::operation::update_configuration_bundle::UpdateConfigurationBundleError> for Error {
4569 fn from(err: crate::operation::update_configuration_bundle::UpdateConfigurationBundleError) -> Self {
4570 match err {
4571 crate::operation::update_configuration_bundle::UpdateConfigurationBundleError::AccessDeniedException(inner) => {
4572 Error::AccessDeniedException(inner)
4573 }
4574 crate::operation::update_configuration_bundle::UpdateConfigurationBundleError::ConflictException(inner) => {
4575 Error::ConflictException(inner)
4576 }
4577 crate::operation::update_configuration_bundle::UpdateConfigurationBundleError::InternalServerException(inner) => {
4578 Error::InternalServerException(inner)
4579 }
4580 crate::operation::update_configuration_bundle::UpdateConfigurationBundleError::ResourceNotFoundException(inner) => {
4581 Error::ResourceNotFoundException(inner)
4582 }
4583 crate::operation::update_configuration_bundle::UpdateConfigurationBundleError::ThrottlingException(inner) => {
4584 Error::ThrottlingException(inner)
4585 }
4586 crate::operation::update_configuration_bundle::UpdateConfigurationBundleError::ValidationException(inner) => {
4587 Error::ValidationException(inner)
4588 }
4589 crate::operation::update_configuration_bundle::UpdateConfigurationBundleError::Unhandled(inner) => Error::Unhandled(inner),
4590 }
4591 }
4592}
4593impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_dataset::UpdateDatasetError, R>> for Error
4594where
4595 R: Send + Sync + std::fmt::Debug + 'static,
4596{
4597 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_dataset::UpdateDatasetError, R>) -> Self {
4598 match err {
4599 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4600 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4601 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4602 source: err.into(),
4603 }),
4604 }
4605 }
4606}
4607impl From<crate::operation::update_dataset::UpdateDatasetError> for Error {
4608 fn from(err: crate::operation::update_dataset::UpdateDatasetError) -> Self {
4609 match err {
4610 crate::operation::update_dataset::UpdateDatasetError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
4611 crate::operation::update_dataset::UpdateDatasetError::ConflictException(inner) => Error::ConflictException(inner),
4612 crate::operation::update_dataset::UpdateDatasetError::InternalServerException(inner) => Error::InternalServerException(inner),
4613 crate::operation::update_dataset::UpdateDatasetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
4614 crate::operation::update_dataset::UpdateDatasetError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4615 crate::operation::update_dataset::UpdateDatasetError::ValidationException(inner) => Error::ValidationException(inner),
4616 crate::operation::update_dataset::UpdateDatasetError::Unhandled(inner) => Error::Unhandled(inner),
4617 }
4618 }
4619}
4620impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_dataset_examples::UpdateDatasetExamplesError, R>> for Error
4621where
4622 R: Send + Sync + std::fmt::Debug + 'static,
4623{
4624 fn from(
4625 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_dataset_examples::UpdateDatasetExamplesError, R>,
4626 ) -> Self {
4627 match err {
4628 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4629 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4630 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4631 source: err.into(),
4632 }),
4633 }
4634 }
4635}
4636impl From<crate::operation::update_dataset_examples::UpdateDatasetExamplesError> for Error {
4637 fn from(err: crate::operation::update_dataset_examples::UpdateDatasetExamplesError) -> Self {
4638 match err {
4639 crate::operation::update_dataset_examples::UpdateDatasetExamplesError::AccessDeniedException(inner) => {
4640 Error::AccessDeniedException(inner)
4641 }
4642 crate::operation::update_dataset_examples::UpdateDatasetExamplesError::ConflictException(inner) => Error::ConflictException(inner),
4643 crate::operation::update_dataset_examples::UpdateDatasetExamplesError::InternalServerException(inner) => {
4644 Error::InternalServerException(inner)
4645 }
4646 crate::operation::update_dataset_examples::UpdateDatasetExamplesError::ResourceNotFoundException(inner) => {
4647 Error::ResourceNotFoundException(inner)
4648 }
4649 crate::operation::update_dataset_examples::UpdateDatasetExamplesError::ServiceQuotaExceededException(inner) => {
4650 Error::ServiceQuotaExceededException(inner)
4651 }
4652 crate::operation::update_dataset_examples::UpdateDatasetExamplesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4653 crate::operation::update_dataset_examples::UpdateDatasetExamplesError::ValidationException(inner) => Error::ValidationException(inner),
4654 crate::operation::update_dataset_examples::UpdateDatasetExamplesError::Unhandled(inner) => Error::Unhandled(inner),
4655 }
4656 }
4657}
4658impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_evaluator::UpdateEvaluatorError, R>> for Error
4659where
4660 R: Send + Sync + std::fmt::Debug + 'static,
4661{
4662 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_evaluator::UpdateEvaluatorError, R>) -> Self {
4663 match err {
4664 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4665 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4666 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4667 source: err.into(),
4668 }),
4669 }
4670 }
4671}
4672impl From<crate::operation::update_evaluator::UpdateEvaluatorError> for Error {
4673 fn from(err: crate::operation::update_evaluator::UpdateEvaluatorError) -> Self {
4674 match err {
4675 crate::operation::update_evaluator::UpdateEvaluatorError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
4676 crate::operation::update_evaluator::UpdateEvaluatorError::ConflictException(inner) => Error::ConflictException(inner),
4677 crate::operation::update_evaluator::UpdateEvaluatorError::InternalServerException(inner) => Error::InternalServerException(inner),
4678 crate::operation::update_evaluator::UpdateEvaluatorError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
4679 crate::operation::update_evaluator::UpdateEvaluatorError::ServiceQuotaExceededException(inner) => {
4680 Error::ServiceQuotaExceededException(inner)
4681 }
4682 crate::operation::update_evaluator::UpdateEvaluatorError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4683 crate::operation::update_evaluator::UpdateEvaluatorError::ValidationException(inner) => Error::ValidationException(inner),
4684 crate::operation::update_evaluator::UpdateEvaluatorError::Unhandled(inner) => Error::Unhandled(inner),
4685 }
4686 }
4687}
4688impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_gateway::UpdateGatewayError, R>> for Error
4689where
4690 R: Send + Sync + std::fmt::Debug + 'static,
4691{
4692 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_gateway::UpdateGatewayError, R>) -> Self {
4693 match err {
4694 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4695 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4696 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4697 source: err.into(),
4698 }),
4699 }
4700 }
4701}
4702impl From<crate::operation::update_gateway::UpdateGatewayError> for Error {
4703 fn from(err: crate::operation::update_gateway::UpdateGatewayError) -> Self {
4704 match err {
4705 crate::operation::update_gateway::UpdateGatewayError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
4706 crate::operation::update_gateway::UpdateGatewayError::ConflictException(inner) => Error::ConflictException(inner),
4707 crate::operation::update_gateway::UpdateGatewayError::InternalServerException(inner) => Error::InternalServerException(inner),
4708 crate::operation::update_gateway::UpdateGatewayError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
4709 crate::operation::update_gateway::UpdateGatewayError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
4710 crate::operation::update_gateway::UpdateGatewayError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4711 crate::operation::update_gateway::UpdateGatewayError::ValidationException(inner) => Error::ValidationException(inner),
4712 crate::operation::update_gateway::UpdateGatewayError::Unhandled(inner) => Error::Unhandled(inner),
4713 }
4714 }
4715}
4716impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_gateway_rule::UpdateGatewayRuleError, R>> for Error
4717where
4718 R: Send + Sync + std::fmt::Debug + 'static,
4719{
4720 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_gateway_rule::UpdateGatewayRuleError, R>) -> Self {
4721 match err {
4722 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4723 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4724 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4725 source: err.into(),
4726 }),
4727 }
4728 }
4729}
4730impl From<crate::operation::update_gateway_rule::UpdateGatewayRuleError> for Error {
4731 fn from(err: crate::operation::update_gateway_rule::UpdateGatewayRuleError) -> Self {
4732 match err {
4733 crate::operation::update_gateway_rule::UpdateGatewayRuleError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
4734 crate::operation::update_gateway_rule::UpdateGatewayRuleError::ConflictException(inner) => Error::ConflictException(inner),
4735 crate::operation::update_gateway_rule::UpdateGatewayRuleError::InternalServerException(inner) => Error::InternalServerException(inner),
4736 crate::operation::update_gateway_rule::UpdateGatewayRuleError::ResourceNotFoundException(inner) => {
4737 Error::ResourceNotFoundException(inner)
4738 }
4739 crate::operation::update_gateway_rule::UpdateGatewayRuleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4740 crate::operation::update_gateway_rule::UpdateGatewayRuleError::ValidationException(inner) => Error::ValidationException(inner),
4741 crate::operation::update_gateway_rule::UpdateGatewayRuleError::Unhandled(inner) => Error::Unhandled(inner),
4742 }
4743 }
4744}
4745impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_gateway_target::UpdateGatewayTargetError, R>> for Error
4746where
4747 R: Send + Sync + std::fmt::Debug + 'static,
4748{
4749 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_gateway_target::UpdateGatewayTargetError, R>) -> Self {
4750 match err {
4751 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4752 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4753 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4754 source: err.into(),
4755 }),
4756 }
4757 }
4758}
4759impl From<crate::operation::update_gateway_target::UpdateGatewayTargetError> for Error {
4760 fn from(err: crate::operation::update_gateway_target::UpdateGatewayTargetError) -> Self {
4761 match err {
4762 crate::operation::update_gateway_target::UpdateGatewayTargetError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
4763 crate::operation::update_gateway_target::UpdateGatewayTargetError::ConflictException(inner) => Error::ConflictException(inner),
4764 crate::operation::update_gateway_target::UpdateGatewayTargetError::InternalServerException(inner) => {
4765 Error::InternalServerException(inner)
4766 }
4767 crate::operation::update_gateway_target::UpdateGatewayTargetError::ResourceNotFoundException(inner) => {
4768 Error::ResourceNotFoundException(inner)
4769 }
4770 crate::operation::update_gateway_target::UpdateGatewayTargetError::ServiceQuotaExceededException(inner) => {
4771 Error::ServiceQuotaExceededException(inner)
4772 }
4773 crate::operation::update_gateway_target::UpdateGatewayTargetError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4774 crate::operation::update_gateway_target::UpdateGatewayTargetError::ValidationException(inner) => Error::ValidationException(inner),
4775 crate::operation::update_gateway_target::UpdateGatewayTargetError::Unhandled(inner) => Error::Unhandled(inner),
4776 }
4777 }
4778}
4779impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_harness::UpdateHarnessError, R>> for Error
4780where
4781 R: Send + Sync + std::fmt::Debug + 'static,
4782{
4783 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_harness::UpdateHarnessError, R>) -> Self {
4784 match err {
4785 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4786 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4787 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4788 source: err.into(),
4789 }),
4790 }
4791 }
4792}
4793impl From<crate::operation::update_harness::UpdateHarnessError> for Error {
4794 fn from(err: crate::operation::update_harness::UpdateHarnessError) -> Self {
4795 match err {
4796 crate::operation::update_harness::UpdateHarnessError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
4797 crate::operation::update_harness::UpdateHarnessError::ConflictException(inner) => Error::ConflictException(inner),
4798 crate::operation::update_harness::UpdateHarnessError::InternalServerException(inner) => Error::InternalServerException(inner),
4799 crate::operation::update_harness::UpdateHarnessError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
4800 crate::operation::update_harness::UpdateHarnessError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4801 crate::operation::update_harness::UpdateHarnessError::ValidationException(inner) => Error::ValidationException(inner),
4802 crate::operation::update_harness::UpdateHarnessError::Unhandled(inner) => Error::Unhandled(inner),
4803 }
4804 }
4805}
4806impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_harness_endpoint::UpdateHarnessEndpointError, R>> for Error
4807where
4808 R: Send + Sync + std::fmt::Debug + 'static,
4809{
4810 fn from(
4811 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_harness_endpoint::UpdateHarnessEndpointError, R>,
4812 ) -> Self {
4813 match err {
4814 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4815 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4816 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4817 source: err.into(),
4818 }),
4819 }
4820 }
4821}
4822impl From<crate::operation::update_harness_endpoint::UpdateHarnessEndpointError> for Error {
4823 fn from(err: crate::operation::update_harness_endpoint::UpdateHarnessEndpointError) -> Self {
4824 match err {
4825 crate::operation::update_harness_endpoint::UpdateHarnessEndpointError::AccessDeniedException(inner) => {
4826 Error::AccessDeniedException(inner)
4827 }
4828 crate::operation::update_harness_endpoint::UpdateHarnessEndpointError::ConflictException(inner) => Error::ConflictException(inner),
4829 crate::operation::update_harness_endpoint::UpdateHarnessEndpointError::InternalServerException(inner) => {
4830 Error::InternalServerException(inner)
4831 }
4832 crate::operation::update_harness_endpoint::UpdateHarnessEndpointError::ResourceNotFoundException(inner) => {
4833 Error::ResourceNotFoundException(inner)
4834 }
4835 crate::operation::update_harness_endpoint::UpdateHarnessEndpointError::ServiceQuotaExceededException(inner) => {
4836 Error::ServiceQuotaExceededException(inner)
4837 }
4838 crate::operation::update_harness_endpoint::UpdateHarnessEndpointError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4839 crate::operation::update_harness_endpoint::UpdateHarnessEndpointError::ValidationException(inner) => Error::ValidationException(inner),
4840 crate::operation::update_harness_endpoint::UpdateHarnessEndpointError::Unhandled(inner) => Error::Unhandled(inner),
4841 }
4842 }
4843}
4844impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_memory::UpdateMemoryError, R>> for Error
4845where
4846 R: Send + Sync + std::fmt::Debug + 'static,
4847{
4848 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_memory::UpdateMemoryError, R>) -> Self {
4849 match err {
4850 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4851 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4852 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4853 source: err.into(),
4854 }),
4855 }
4856 }
4857}
4858impl From<crate::operation::update_memory::UpdateMemoryError> for Error {
4859 fn from(err: crate::operation::update_memory::UpdateMemoryError) -> Self {
4860 match err {
4861 crate::operation::update_memory::UpdateMemoryError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
4862 crate::operation::update_memory::UpdateMemoryError::ConflictException(inner) => Error::ConflictException(inner),
4863 crate::operation::update_memory::UpdateMemoryError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
4864 crate::operation::update_memory::UpdateMemoryError::ServiceException(inner) => Error::ServiceException(inner),
4865 crate::operation::update_memory::UpdateMemoryError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
4866 crate::operation::update_memory::UpdateMemoryError::ThrottledException(inner) => Error::ThrottledException(inner),
4867 crate::operation::update_memory::UpdateMemoryError::ValidationException(inner) => Error::ValidationException(inner),
4868 crate::operation::update_memory::UpdateMemoryError::Unhandled(inner) => Error::Unhandled(inner),
4869 }
4870 }
4871}
4872impl<R>
4873 From<
4874 ::aws_smithy_runtime_api::client::result::SdkError<
4875 crate::operation::update_oauth2_credential_provider::UpdateOauth2CredentialProviderError,
4876 R,
4877 >,
4878 > for Error
4879where
4880 R: Send + Sync + std::fmt::Debug + 'static,
4881{
4882 fn from(
4883 err: ::aws_smithy_runtime_api::client::result::SdkError<
4884 crate::operation::update_oauth2_credential_provider::UpdateOauth2CredentialProviderError,
4885 R,
4886 >,
4887 ) -> Self {
4888 match err {
4889 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4890 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4891 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4892 source: err.into(),
4893 }),
4894 }
4895 }
4896}
4897impl From<crate::operation::update_oauth2_credential_provider::UpdateOauth2CredentialProviderError> for Error {
4898 fn from(err: crate::operation::update_oauth2_credential_provider::UpdateOauth2CredentialProviderError) -> Self {
4899 match err {
4900 crate::operation::update_oauth2_credential_provider::UpdateOauth2CredentialProviderError::AccessDeniedException(inner) => {
4901 Error::AccessDeniedException(inner)
4902 }
4903 crate::operation::update_oauth2_credential_provider::UpdateOauth2CredentialProviderError::ConflictException(inner) => {
4904 Error::ConflictException(inner)
4905 }
4906 crate::operation::update_oauth2_credential_provider::UpdateOauth2CredentialProviderError::DecryptionFailure(inner) => {
4907 Error::DecryptionFailure(inner)
4908 }
4909 crate::operation::update_oauth2_credential_provider::UpdateOauth2CredentialProviderError::EncryptionFailure(inner) => {
4910 Error::EncryptionFailure(inner)
4911 }
4912 crate::operation::update_oauth2_credential_provider::UpdateOauth2CredentialProviderError::InternalServerException(inner) => {
4913 Error::InternalServerException(inner)
4914 }
4915 crate::operation::update_oauth2_credential_provider::UpdateOauth2CredentialProviderError::ResourceNotFoundException(inner) => {
4916 Error::ResourceNotFoundException(inner)
4917 }
4918 crate::operation::update_oauth2_credential_provider::UpdateOauth2CredentialProviderError::ServiceQuotaExceededException(inner) => {
4919 Error::ServiceQuotaExceededException(inner)
4920 }
4921 crate::operation::update_oauth2_credential_provider::UpdateOauth2CredentialProviderError::ThrottlingException(inner) => {
4922 Error::ThrottlingException(inner)
4923 }
4924 crate::operation::update_oauth2_credential_provider::UpdateOauth2CredentialProviderError::UnauthorizedException(inner) => {
4925 Error::UnauthorizedException(inner)
4926 }
4927 crate::operation::update_oauth2_credential_provider::UpdateOauth2CredentialProviderError::ValidationException(inner) => {
4928 Error::ValidationException(inner)
4929 }
4930 crate::operation::update_oauth2_credential_provider::UpdateOauth2CredentialProviderError::Unhandled(inner) => Error::Unhandled(inner),
4931 }
4932 }
4933}
4934impl<R>
4935 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_online_evaluation_config::UpdateOnlineEvaluationConfigError, R>>
4936 for Error
4937where
4938 R: Send + Sync + std::fmt::Debug + 'static,
4939{
4940 fn from(
4941 err: ::aws_smithy_runtime_api::client::result::SdkError<
4942 crate::operation::update_online_evaluation_config::UpdateOnlineEvaluationConfigError,
4943 R,
4944 >,
4945 ) -> Self {
4946 match err {
4947 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4948 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4949 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4950 source: err.into(),
4951 }),
4952 }
4953 }
4954}
4955impl From<crate::operation::update_online_evaluation_config::UpdateOnlineEvaluationConfigError> for Error {
4956 fn from(err: crate::operation::update_online_evaluation_config::UpdateOnlineEvaluationConfigError) -> Self {
4957 match err {
4958 crate::operation::update_online_evaluation_config::UpdateOnlineEvaluationConfigError::AccessDeniedException(inner) => {
4959 Error::AccessDeniedException(inner)
4960 }
4961 crate::operation::update_online_evaluation_config::UpdateOnlineEvaluationConfigError::ConflictException(inner) => {
4962 Error::ConflictException(inner)
4963 }
4964 crate::operation::update_online_evaluation_config::UpdateOnlineEvaluationConfigError::InternalServerException(inner) => {
4965 Error::InternalServerException(inner)
4966 }
4967 crate::operation::update_online_evaluation_config::UpdateOnlineEvaluationConfigError::ResourceNotFoundException(inner) => {
4968 Error::ResourceNotFoundException(inner)
4969 }
4970 crate::operation::update_online_evaluation_config::UpdateOnlineEvaluationConfigError::ServiceQuotaExceededException(inner) => {
4971 Error::ServiceQuotaExceededException(inner)
4972 }
4973 crate::operation::update_online_evaluation_config::UpdateOnlineEvaluationConfigError::ThrottlingException(inner) => {
4974 Error::ThrottlingException(inner)
4975 }
4976 crate::operation::update_online_evaluation_config::UpdateOnlineEvaluationConfigError::ValidationException(inner) => {
4977 Error::ValidationException(inner)
4978 }
4979 crate::operation::update_online_evaluation_config::UpdateOnlineEvaluationConfigError::Unhandled(inner) => Error::Unhandled(inner),
4980 }
4981 }
4982}
4983impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_payment_connector::UpdatePaymentConnectorError, R>> for Error
4984where
4985 R: Send + Sync + std::fmt::Debug + 'static,
4986{
4987 fn from(
4988 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_payment_connector::UpdatePaymentConnectorError, R>,
4989 ) -> Self {
4990 match err {
4991 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4992 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4993 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4994 source: err.into(),
4995 }),
4996 }
4997 }
4998}
4999impl From<crate::operation::update_payment_connector::UpdatePaymentConnectorError> for Error {
5000 fn from(err: crate::operation::update_payment_connector::UpdatePaymentConnectorError) -> Self {
5001 match err {
5002 crate::operation::update_payment_connector::UpdatePaymentConnectorError::AccessDeniedException(inner) => {
5003 Error::AccessDeniedException(inner)
5004 }
5005 crate::operation::update_payment_connector::UpdatePaymentConnectorError::ConflictException(inner) => Error::ConflictException(inner),
5006 crate::operation::update_payment_connector::UpdatePaymentConnectorError::InternalServerException(inner) => {
5007 Error::InternalServerException(inner)
5008 }
5009 crate::operation::update_payment_connector::UpdatePaymentConnectorError::ResourceNotFoundException(inner) => {
5010 Error::ResourceNotFoundException(inner)
5011 }
5012 crate::operation::update_payment_connector::UpdatePaymentConnectorError::ServiceQuotaExceededException(inner) => {
5013 Error::ServiceQuotaExceededException(inner)
5014 }
5015 crate::operation::update_payment_connector::UpdatePaymentConnectorError::ThrottlingException(inner) => Error::ThrottlingException(inner),
5016 crate::operation::update_payment_connector::UpdatePaymentConnectorError::ValidationException(inner) => Error::ValidationException(inner),
5017 crate::operation::update_payment_connector::UpdatePaymentConnectorError::Unhandled(inner) => Error::Unhandled(inner),
5018 }
5019 }
5020}
5021impl<R>
5022 From<
5023 ::aws_smithy_runtime_api::client::result::SdkError<
5024 crate::operation::update_payment_credential_provider::UpdatePaymentCredentialProviderError,
5025 R,
5026 >,
5027 > for Error
5028where
5029 R: Send + Sync + std::fmt::Debug + 'static,
5030{
5031 fn from(
5032 err: ::aws_smithy_runtime_api::client::result::SdkError<
5033 crate::operation::update_payment_credential_provider::UpdatePaymentCredentialProviderError,
5034 R,
5035 >,
5036 ) -> Self {
5037 match err {
5038 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5039 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5040 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5041 source: err.into(),
5042 }),
5043 }
5044 }
5045}
5046impl From<crate::operation::update_payment_credential_provider::UpdatePaymentCredentialProviderError> for Error {
5047 fn from(err: crate::operation::update_payment_credential_provider::UpdatePaymentCredentialProviderError) -> Self {
5048 match err {
5049 crate::operation::update_payment_credential_provider::UpdatePaymentCredentialProviderError::AccessDeniedException(inner) => {
5050 Error::AccessDeniedException(inner)
5051 }
5052 crate::operation::update_payment_credential_provider::UpdatePaymentCredentialProviderError::ConflictException(inner) => {
5053 Error::ConflictException(inner)
5054 }
5055 crate::operation::update_payment_credential_provider::UpdatePaymentCredentialProviderError::DecryptionFailure(inner) => {
5056 Error::DecryptionFailure(inner)
5057 }
5058 crate::operation::update_payment_credential_provider::UpdatePaymentCredentialProviderError::EncryptionFailure(inner) => {
5059 Error::EncryptionFailure(inner)
5060 }
5061 crate::operation::update_payment_credential_provider::UpdatePaymentCredentialProviderError::InternalServerException(inner) => {
5062 Error::InternalServerException(inner)
5063 }
5064 crate::operation::update_payment_credential_provider::UpdatePaymentCredentialProviderError::ResourceNotFoundException(inner) => {
5065 Error::ResourceNotFoundException(inner)
5066 }
5067 crate::operation::update_payment_credential_provider::UpdatePaymentCredentialProviderError::ServiceQuotaExceededException(inner) => {
5068 Error::ServiceQuotaExceededException(inner)
5069 }
5070 crate::operation::update_payment_credential_provider::UpdatePaymentCredentialProviderError::ThrottlingException(inner) => {
5071 Error::ThrottlingException(inner)
5072 }
5073 crate::operation::update_payment_credential_provider::UpdatePaymentCredentialProviderError::UnauthorizedException(inner) => {
5074 Error::UnauthorizedException(inner)
5075 }
5076 crate::operation::update_payment_credential_provider::UpdatePaymentCredentialProviderError::ValidationException(inner) => {
5077 Error::ValidationException(inner)
5078 }
5079 crate::operation::update_payment_credential_provider::UpdatePaymentCredentialProviderError::Unhandled(inner) => Error::Unhandled(inner),
5080 }
5081 }
5082}
5083impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_payment_manager::UpdatePaymentManagerError, R>> for Error
5084where
5085 R: Send + Sync + std::fmt::Debug + 'static,
5086{
5087 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_payment_manager::UpdatePaymentManagerError, R>) -> Self {
5088 match err {
5089 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5090 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5091 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5092 source: err.into(),
5093 }),
5094 }
5095 }
5096}
5097impl From<crate::operation::update_payment_manager::UpdatePaymentManagerError> for Error {
5098 fn from(err: crate::operation::update_payment_manager::UpdatePaymentManagerError) -> Self {
5099 match err {
5100 crate::operation::update_payment_manager::UpdatePaymentManagerError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
5101 crate::operation::update_payment_manager::UpdatePaymentManagerError::ConflictException(inner) => Error::ConflictException(inner),
5102 crate::operation::update_payment_manager::UpdatePaymentManagerError::InternalServerException(inner) => {
5103 Error::InternalServerException(inner)
5104 }
5105 crate::operation::update_payment_manager::UpdatePaymentManagerError::ResourceNotFoundException(inner) => {
5106 Error::ResourceNotFoundException(inner)
5107 }
5108 crate::operation::update_payment_manager::UpdatePaymentManagerError::ServiceQuotaExceededException(inner) => {
5109 Error::ServiceQuotaExceededException(inner)
5110 }
5111 crate::operation::update_payment_manager::UpdatePaymentManagerError::ThrottlingException(inner) => Error::ThrottlingException(inner),
5112 crate::operation::update_payment_manager::UpdatePaymentManagerError::ValidationException(inner) => Error::ValidationException(inner),
5113 crate::operation::update_payment_manager::UpdatePaymentManagerError::Unhandled(inner) => Error::Unhandled(inner),
5114 }
5115 }
5116}
5117impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_policy::UpdatePolicyError, R>> for Error
5118where
5119 R: Send + Sync + std::fmt::Debug + 'static,
5120{
5121 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_policy::UpdatePolicyError, R>) -> Self {
5122 match err {
5123 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5124 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5125 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5126 source: err.into(),
5127 }),
5128 }
5129 }
5130}
5131impl From<crate::operation::update_policy::UpdatePolicyError> for Error {
5132 fn from(err: crate::operation::update_policy::UpdatePolicyError) -> Self {
5133 match err {
5134 crate::operation::update_policy::UpdatePolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
5135 crate::operation::update_policy::UpdatePolicyError::ConflictException(inner) => Error::ConflictException(inner),
5136 crate::operation::update_policy::UpdatePolicyError::InternalServerException(inner) => Error::InternalServerException(inner),
5137 crate::operation::update_policy::UpdatePolicyError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
5138 crate::operation::update_policy::UpdatePolicyError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
5139 crate::operation::update_policy::UpdatePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
5140 crate::operation::update_policy::UpdatePolicyError::ValidationException(inner) => Error::ValidationException(inner),
5141 crate::operation::update_policy::UpdatePolicyError::Unhandled(inner) => Error::Unhandled(inner),
5142 }
5143 }
5144}
5145impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_policy_engine::UpdatePolicyEngineError, R>> for Error
5146where
5147 R: Send + Sync + std::fmt::Debug + 'static,
5148{
5149 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_policy_engine::UpdatePolicyEngineError, R>) -> Self {
5150 match err {
5151 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5152 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5153 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5154 source: err.into(),
5155 }),
5156 }
5157 }
5158}
5159impl From<crate::operation::update_policy_engine::UpdatePolicyEngineError> for Error {
5160 fn from(err: crate::operation::update_policy_engine::UpdatePolicyEngineError) -> Self {
5161 match err {
5162 crate::operation::update_policy_engine::UpdatePolicyEngineError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
5163 crate::operation::update_policy_engine::UpdatePolicyEngineError::ConflictException(inner) => Error::ConflictException(inner),
5164 crate::operation::update_policy_engine::UpdatePolicyEngineError::InternalServerException(inner) => Error::InternalServerException(inner),
5165 crate::operation::update_policy_engine::UpdatePolicyEngineError::ResourceNotFoundException(inner) => {
5166 Error::ResourceNotFoundException(inner)
5167 }
5168 crate::operation::update_policy_engine::UpdatePolicyEngineError::ThrottlingException(inner) => Error::ThrottlingException(inner),
5169 crate::operation::update_policy_engine::UpdatePolicyEngineError::ValidationException(inner) => Error::ValidationException(inner),
5170 crate::operation::update_policy_engine::UpdatePolicyEngineError::Unhandled(inner) => Error::Unhandled(inner),
5171 }
5172 }
5173}
5174impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_registry::UpdateRegistryError, R>> for Error
5175where
5176 R: Send + Sync + std::fmt::Debug + 'static,
5177{
5178 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_registry::UpdateRegistryError, R>) -> Self {
5179 match err {
5180 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5181 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5182 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5183 source: err.into(),
5184 }),
5185 }
5186 }
5187}
5188impl From<crate::operation::update_registry::UpdateRegistryError> for Error {
5189 fn from(err: crate::operation::update_registry::UpdateRegistryError) -> Self {
5190 match err {
5191 crate::operation::update_registry::UpdateRegistryError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
5192 crate::operation::update_registry::UpdateRegistryError::ConflictException(inner) => Error::ConflictException(inner),
5193 crate::operation::update_registry::UpdateRegistryError::InternalServerException(inner) => Error::InternalServerException(inner),
5194 crate::operation::update_registry::UpdateRegistryError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
5195 crate::operation::update_registry::UpdateRegistryError::ServiceQuotaExceededException(inner) => {
5196 Error::ServiceQuotaExceededException(inner)
5197 }
5198 crate::operation::update_registry::UpdateRegistryError::ThrottlingException(inner) => Error::ThrottlingException(inner),
5199 crate::operation::update_registry::UpdateRegistryError::ValidationException(inner) => Error::ValidationException(inner),
5200 crate::operation::update_registry::UpdateRegistryError::Unhandled(inner) => Error::Unhandled(inner),
5201 }
5202 }
5203}
5204impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_registry_record::UpdateRegistryRecordError, R>> for Error
5205where
5206 R: Send + Sync + std::fmt::Debug + 'static,
5207{
5208 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_registry_record::UpdateRegistryRecordError, R>) -> Self {
5209 match err {
5210 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5211 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5212 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5213 source: err.into(),
5214 }),
5215 }
5216 }
5217}
5218impl From<crate::operation::update_registry_record::UpdateRegistryRecordError> for Error {
5219 fn from(err: crate::operation::update_registry_record::UpdateRegistryRecordError) -> Self {
5220 match err {
5221 crate::operation::update_registry_record::UpdateRegistryRecordError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
5222 crate::operation::update_registry_record::UpdateRegistryRecordError::ConflictException(inner) => Error::ConflictException(inner),
5223 crate::operation::update_registry_record::UpdateRegistryRecordError::InternalServerException(inner) => {
5224 Error::InternalServerException(inner)
5225 }
5226 crate::operation::update_registry_record::UpdateRegistryRecordError::ResourceNotFoundException(inner) => {
5227 Error::ResourceNotFoundException(inner)
5228 }
5229 crate::operation::update_registry_record::UpdateRegistryRecordError::ThrottlingException(inner) => Error::ThrottlingException(inner),
5230 crate::operation::update_registry_record::UpdateRegistryRecordError::ValidationException(inner) => Error::ValidationException(inner),
5231 crate::operation::update_registry_record::UpdateRegistryRecordError::Unhandled(inner) => Error::Unhandled(inner),
5232 }
5233 }
5234}
5235impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_registry_record_status::UpdateRegistryRecordStatusError, R>>
5236 for Error
5237where
5238 R: Send + Sync + std::fmt::Debug + 'static,
5239{
5240 fn from(
5241 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_registry_record_status::UpdateRegistryRecordStatusError, R>,
5242 ) -> Self {
5243 match err {
5244 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5245 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5246 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5247 source: err.into(),
5248 }),
5249 }
5250 }
5251}
5252impl From<crate::operation::update_registry_record_status::UpdateRegistryRecordStatusError> for Error {
5253 fn from(err: crate::operation::update_registry_record_status::UpdateRegistryRecordStatusError) -> Self {
5254 match err {
5255 crate::operation::update_registry_record_status::UpdateRegistryRecordStatusError::AccessDeniedException(inner) => {
5256 Error::AccessDeniedException(inner)
5257 }
5258 crate::operation::update_registry_record_status::UpdateRegistryRecordStatusError::ConflictException(inner) => {
5259 Error::ConflictException(inner)
5260 }
5261 crate::operation::update_registry_record_status::UpdateRegistryRecordStatusError::InternalServerException(inner) => {
5262 Error::InternalServerException(inner)
5263 }
5264 crate::operation::update_registry_record_status::UpdateRegistryRecordStatusError::ResourceNotFoundException(inner) => {
5265 Error::ResourceNotFoundException(inner)
5266 }
5267 crate::operation::update_registry_record_status::UpdateRegistryRecordStatusError::ThrottlingException(inner) => {
5268 Error::ThrottlingException(inner)
5269 }
5270 crate::operation::update_registry_record_status::UpdateRegistryRecordStatusError::ValidationException(inner) => {
5271 Error::ValidationException(inner)
5272 }
5273 crate::operation::update_registry_record_status::UpdateRegistryRecordStatusError::Unhandled(inner) => Error::Unhandled(inner),
5274 }
5275 }
5276}
5277impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_workload_identity::UpdateWorkloadIdentityError, R>> for Error
5278where
5279 R: Send + Sync + std::fmt::Debug + 'static,
5280{
5281 fn from(
5282 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_workload_identity::UpdateWorkloadIdentityError, R>,
5283 ) -> Self {
5284 match err {
5285 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5286 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5287 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5288 source: err.into(),
5289 }),
5290 }
5291 }
5292}
5293impl From<crate::operation::update_workload_identity::UpdateWorkloadIdentityError> for Error {
5294 fn from(err: crate::operation::update_workload_identity::UpdateWorkloadIdentityError) -> Self {
5295 match err {
5296 crate::operation::update_workload_identity::UpdateWorkloadIdentityError::AccessDeniedException(inner) => {
5297 Error::AccessDeniedException(inner)
5298 }
5299 crate::operation::update_workload_identity::UpdateWorkloadIdentityError::InternalServerException(inner) => {
5300 Error::InternalServerException(inner)
5301 }
5302 crate::operation::update_workload_identity::UpdateWorkloadIdentityError::ResourceNotFoundException(inner) => {
5303 Error::ResourceNotFoundException(inner)
5304 }
5305 crate::operation::update_workload_identity::UpdateWorkloadIdentityError::ThrottlingException(inner) => Error::ThrottlingException(inner),
5306 crate::operation::update_workload_identity::UpdateWorkloadIdentityError::UnauthorizedException(inner) => {
5307 Error::UnauthorizedException(inner)
5308 }
5309 crate::operation::update_workload_identity::UpdateWorkloadIdentityError::ValidationException(inner) => Error::ValidationException(inner),
5310 crate::operation::update_workload_identity::UpdateWorkloadIdentityError::Unhandled(inner) => Error::Unhandled(inner),
5311 }
5312 }
5313}
5314impl<O, E> ::std::convert::From<::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>> for Error
5315where
5316 O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
5317 E: ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static,
5318{
5319 fn from(err: ::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>) -> Self {
5320 Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5321 meta: ::std::default::Default::default(),
5322 source: err.into(),
5323 })
5324 }
5325}
5326impl ::std::error::Error for Error {
5327 fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
5328 match self {
5329 Error::AccessDeniedException(inner) => inner.source(),
5330 Error::ConcurrentModificationException(inner) => inner.source(),
5331 Error::ConflictException(inner) => inner.source(),
5332 Error::DecryptionFailure(inner) => inner.source(),
5333 Error::EncryptionFailure(inner) => inner.source(),
5334 Error::InternalServerException(inner) => inner.source(),
5335 Error::ResourceLimitExceededException(inner) => inner.source(),
5336 Error::ResourceNotFoundException(inner) => inner.source(),
5337 Error::ServiceException(inner) => inner.source(),
5338 Error::ServiceQuotaExceededException(inner) => inner.source(),
5339 Error::ThrottledException(inner) => inner.source(),
5340 Error::ThrottlingException(inner) => inner.source(),
5341 Error::UnauthorizedException(inner) => inner.source(),
5342 Error::ValidationException(inner) => inner.source(),
5343 Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
5344 }
5345 }
5346}
5347impl ::aws_types::request_id::RequestId for Error {
5348 fn request_id(&self) -> Option<&str> {
5349 match self {
5350 Self::AccessDeniedException(e) => e.request_id(),
5351 Self::ConcurrentModificationException(e) => e.request_id(),
5352 Self::ConflictException(e) => e.request_id(),
5353 Self::DecryptionFailure(e) => e.request_id(),
5354 Self::EncryptionFailure(e) => e.request_id(),
5355 Self::InternalServerException(e) => e.request_id(),
5356 Self::ResourceLimitExceededException(e) => e.request_id(),
5357 Self::ResourceNotFoundException(e) => e.request_id(),
5358 Self::ServiceException(e) => e.request_id(),
5359 Self::ServiceQuotaExceededException(e) => e.request_id(),
5360 Self::ThrottledException(e) => e.request_id(),
5361 Self::ThrottlingException(e) => e.request_id(),
5362 Self::UnauthorizedException(e) => e.request_id(),
5363 Self::ValidationException(e) => e.request_id(),
5364 Self::Unhandled(e) => e.meta.request_id(),
5365 }
5366 }
5367}