1#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6 AccessDeniedException(crate::types::error::AccessDeniedException),
8 ApiKeyLimitExceededException(crate::types::error::ApiKeyLimitExceededException),
10 ApiKeyValidityOutOfBoundsException(crate::types::error::ApiKeyValidityOutOfBoundsException),
12 ApiLimitExceededException(crate::types::error::ApiLimitExceededException),
14 BadRequestException(crate::types::error::BadRequestException),
16 ConcurrentModificationException(crate::types::error::ConcurrentModificationException),
18 ConflictException(crate::types::error::ConflictException),
20 GraphQlSchemaException(crate::types::error::GraphQlSchemaException),
22 InternalFailureException(crate::types::error::InternalFailureException),
24 LimitExceededException(crate::types::error::LimitExceededException),
26 NotFoundException(crate::types::error::NotFoundException),
28 ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
30 UnauthorizedException(crate::types::error::UnauthorizedException),
32 #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
34 variable wildcard pattern and check `.code()`:
35 \
36 `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
37 \
38 See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
39 Unhandled(crate::error::sealed_unhandled::Unhandled),
40}
41impl ::std::fmt::Display for Error {
42 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
43 match self {
44 Error::AccessDeniedException(inner) => inner.fmt(f),
45 Error::ApiKeyLimitExceededException(inner) => inner.fmt(f),
46 Error::ApiKeyValidityOutOfBoundsException(inner) => inner.fmt(f),
47 Error::ApiLimitExceededException(inner) => inner.fmt(f),
48 Error::BadRequestException(inner) => inner.fmt(f),
49 Error::ConcurrentModificationException(inner) => inner.fmt(f),
50 Error::ConflictException(inner) => inner.fmt(f),
51 Error::GraphQlSchemaException(inner) => inner.fmt(f),
52 Error::InternalFailureException(inner) => inner.fmt(f),
53 Error::LimitExceededException(inner) => inner.fmt(f),
54 Error::NotFoundException(inner) => inner.fmt(f),
55 Error::ServiceQuotaExceededException(inner) => inner.fmt(f),
56 Error::UnauthorizedException(inner) => inner.fmt(f),
57 Error::Unhandled(_) => {
58 if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
59 write!(f, "unhandled error ({code})")
60 } else {
61 f.write_str("unhandled error")
62 }
63 }
64 }
65 }
66}
67impl From<::aws_smithy_types::error::operation::BuildError> for Error {
68 fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
69 Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
70 source: value.into(),
71 meta: ::std::default::Default::default(),
72 })
73 }
74}
75impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
76 fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
77 match self {
78 Self::AccessDeniedException(inner) => inner.meta(),
79 Self::ApiKeyLimitExceededException(inner) => inner.meta(),
80 Self::ApiKeyValidityOutOfBoundsException(inner) => inner.meta(),
81 Self::ApiLimitExceededException(inner) => inner.meta(),
82 Self::BadRequestException(inner) => inner.meta(),
83 Self::ConcurrentModificationException(inner) => inner.meta(),
84 Self::ConflictException(inner) => inner.meta(),
85 Self::GraphQlSchemaException(inner) => inner.meta(),
86 Self::InternalFailureException(inner) => inner.meta(),
87 Self::LimitExceededException(inner) => inner.meta(),
88 Self::NotFoundException(inner) => inner.meta(),
89 Self::ServiceQuotaExceededException(inner) => inner.meta(),
90 Self::UnauthorizedException(inner) => inner.meta(),
91 Self::Unhandled(inner) => &inner.meta,
92 }
93 }
94}
95impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_api::AssociateApiError, R>> for Error
96where
97 R: Send + Sync + std::fmt::Debug + 'static,
98{
99 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_api::AssociateApiError, R>) -> Self {
100 match err {
101 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
102 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
103 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
104 source: err.into(),
105 }),
106 }
107 }
108}
109impl From<crate::operation::associate_api::AssociateApiError> for Error {
110 fn from(err: crate::operation::associate_api::AssociateApiError) -> Self {
111 match err {
112 crate::operation::associate_api::AssociateApiError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
113 crate::operation::associate_api::AssociateApiError::BadRequestException(inner) => Error::BadRequestException(inner),
114 crate::operation::associate_api::AssociateApiError::InternalFailureException(inner) => Error::InternalFailureException(inner),
115 crate::operation::associate_api::AssociateApiError::NotFoundException(inner) => Error::NotFoundException(inner),
116 crate::operation::associate_api::AssociateApiError::Unhandled(inner) => Error::Unhandled(inner),
117 }
118 }
119}
120impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_merged_graphql_api::AssociateMergedGraphqlApiError, R>>
121 for Error
122where
123 R: Send + Sync + std::fmt::Debug + 'static,
124{
125 fn from(
126 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_merged_graphql_api::AssociateMergedGraphqlApiError, R>,
127 ) -> Self {
128 match err {
129 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
130 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
131 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
132 source: err.into(),
133 }),
134 }
135 }
136}
137impl From<crate::operation::associate_merged_graphql_api::AssociateMergedGraphqlApiError> for Error {
138 fn from(err: crate::operation::associate_merged_graphql_api::AssociateMergedGraphqlApiError) -> Self {
139 match err {
140 crate::operation::associate_merged_graphql_api::AssociateMergedGraphqlApiError::BadRequestException(inner) => {
141 Error::BadRequestException(inner)
142 }
143 crate::operation::associate_merged_graphql_api::AssociateMergedGraphqlApiError::ConcurrentModificationException(inner) => {
144 Error::ConcurrentModificationException(inner)
145 }
146 crate::operation::associate_merged_graphql_api::AssociateMergedGraphqlApiError::InternalFailureException(inner) => {
147 Error::InternalFailureException(inner)
148 }
149 crate::operation::associate_merged_graphql_api::AssociateMergedGraphqlApiError::LimitExceededException(inner) => {
150 Error::LimitExceededException(inner)
151 }
152 crate::operation::associate_merged_graphql_api::AssociateMergedGraphqlApiError::NotFoundException(inner) => {
153 Error::NotFoundException(inner)
154 }
155 crate::operation::associate_merged_graphql_api::AssociateMergedGraphqlApiError::UnauthorizedException(inner) => {
156 Error::UnauthorizedException(inner)
157 }
158 crate::operation::associate_merged_graphql_api::AssociateMergedGraphqlApiError::Unhandled(inner) => Error::Unhandled(inner),
159 }
160 }
161}
162impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_source_graphql_api::AssociateSourceGraphqlApiError, R>>
163 for Error
164where
165 R: Send + Sync + std::fmt::Debug + 'static,
166{
167 fn from(
168 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_source_graphql_api::AssociateSourceGraphqlApiError, R>,
169 ) -> Self {
170 match err {
171 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
172 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
173 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
174 source: err.into(),
175 }),
176 }
177 }
178}
179impl From<crate::operation::associate_source_graphql_api::AssociateSourceGraphqlApiError> for Error {
180 fn from(err: crate::operation::associate_source_graphql_api::AssociateSourceGraphqlApiError) -> Self {
181 match err {
182 crate::operation::associate_source_graphql_api::AssociateSourceGraphqlApiError::BadRequestException(inner) => {
183 Error::BadRequestException(inner)
184 }
185 crate::operation::associate_source_graphql_api::AssociateSourceGraphqlApiError::ConcurrentModificationException(inner) => {
186 Error::ConcurrentModificationException(inner)
187 }
188 crate::operation::associate_source_graphql_api::AssociateSourceGraphqlApiError::InternalFailureException(inner) => {
189 Error::InternalFailureException(inner)
190 }
191 crate::operation::associate_source_graphql_api::AssociateSourceGraphqlApiError::LimitExceededException(inner) => {
192 Error::LimitExceededException(inner)
193 }
194 crate::operation::associate_source_graphql_api::AssociateSourceGraphqlApiError::NotFoundException(inner) => {
195 Error::NotFoundException(inner)
196 }
197 crate::operation::associate_source_graphql_api::AssociateSourceGraphqlApiError::UnauthorizedException(inner) => {
198 Error::UnauthorizedException(inner)
199 }
200 crate::operation::associate_source_graphql_api::AssociateSourceGraphqlApiError::Unhandled(inner) => Error::Unhandled(inner),
201 }
202 }
203}
204impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_api::CreateApiError, R>> for Error
205where
206 R: Send + Sync + std::fmt::Debug + 'static,
207{
208 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_api::CreateApiError, R>) -> Self {
209 match err {
210 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
211 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
212 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
213 source: err.into(),
214 }),
215 }
216 }
217}
218impl From<crate::operation::create_api::CreateApiError> for Error {
219 fn from(err: crate::operation::create_api::CreateApiError) -> Self {
220 match err {
221 crate::operation::create_api::CreateApiError::BadRequestException(inner) => Error::BadRequestException(inner),
222 crate::operation::create_api::CreateApiError::ConcurrentModificationException(inner) => Error::ConcurrentModificationException(inner),
223 crate::operation::create_api::CreateApiError::InternalFailureException(inner) => Error::InternalFailureException(inner),
224 crate::operation::create_api::CreateApiError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
225 crate::operation::create_api::CreateApiError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
226 crate::operation::create_api::CreateApiError::Unhandled(inner) => Error::Unhandled(inner),
227 }
228 }
229}
230impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_api_cache::CreateApiCacheError, R>> for Error
231where
232 R: Send + Sync + std::fmt::Debug + 'static,
233{
234 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_api_cache::CreateApiCacheError, R>) -> Self {
235 match err {
236 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
237 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
238 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
239 source: err.into(),
240 }),
241 }
242 }
243}
244impl From<crate::operation::create_api_cache::CreateApiCacheError> for Error {
245 fn from(err: crate::operation::create_api_cache::CreateApiCacheError) -> Self {
246 match err {
247 crate::operation::create_api_cache::CreateApiCacheError::BadRequestException(inner) => Error::BadRequestException(inner),
248 crate::operation::create_api_cache::CreateApiCacheError::ConcurrentModificationException(inner) => {
249 Error::ConcurrentModificationException(inner)
250 }
251 crate::operation::create_api_cache::CreateApiCacheError::InternalFailureException(inner) => Error::InternalFailureException(inner),
252 crate::operation::create_api_cache::CreateApiCacheError::NotFoundException(inner) => Error::NotFoundException(inner),
253 crate::operation::create_api_cache::CreateApiCacheError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
254 crate::operation::create_api_cache::CreateApiCacheError::Unhandled(inner) => Error::Unhandled(inner),
255 }
256 }
257}
258impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_api_key::CreateApiKeyError, R>> for Error
259where
260 R: Send + Sync + std::fmt::Debug + 'static,
261{
262 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_api_key::CreateApiKeyError, R>) -> Self {
263 match err {
264 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
265 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
266 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
267 source: err.into(),
268 }),
269 }
270 }
271}
272impl From<crate::operation::create_api_key::CreateApiKeyError> for Error {
273 fn from(err: crate::operation::create_api_key::CreateApiKeyError) -> Self {
274 match err {
275 crate::operation::create_api_key::CreateApiKeyError::ApiKeyLimitExceededException(inner) => Error::ApiKeyLimitExceededException(inner),
276 crate::operation::create_api_key::CreateApiKeyError::ApiKeyValidityOutOfBoundsException(inner) => {
277 Error::ApiKeyValidityOutOfBoundsException(inner)
278 }
279 crate::operation::create_api_key::CreateApiKeyError::BadRequestException(inner) => Error::BadRequestException(inner),
280 crate::operation::create_api_key::CreateApiKeyError::InternalFailureException(inner) => Error::InternalFailureException(inner),
281 crate::operation::create_api_key::CreateApiKeyError::LimitExceededException(inner) => Error::LimitExceededException(inner),
282 crate::operation::create_api_key::CreateApiKeyError::NotFoundException(inner) => Error::NotFoundException(inner),
283 crate::operation::create_api_key::CreateApiKeyError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
284 crate::operation::create_api_key::CreateApiKeyError::Unhandled(inner) => Error::Unhandled(inner),
285 }
286 }
287}
288impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_channel_namespace::CreateChannelNamespaceError, R>> for Error
289where
290 R: Send + Sync + std::fmt::Debug + 'static,
291{
292 fn from(
293 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_channel_namespace::CreateChannelNamespaceError, R>,
294 ) -> Self {
295 match err {
296 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
297 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
298 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
299 source: err.into(),
300 }),
301 }
302 }
303}
304impl From<crate::operation::create_channel_namespace::CreateChannelNamespaceError> for Error {
305 fn from(err: crate::operation::create_channel_namespace::CreateChannelNamespaceError) -> Self {
306 match err {
307 crate::operation::create_channel_namespace::CreateChannelNamespaceError::BadRequestException(inner) => Error::BadRequestException(inner),
308 crate::operation::create_channel_namespace::CreateChannelNamespaceError::ConcurrentModificationException(inner) => {
309 Error::ConcurrentModificationException(inner)
310 }
311 crate::operation::create_channel_namespace::CreateChannelNamespaceError::ConflictException(inner) => Error::ConflictException(inner),
312 crate::operation::create_channel_namespace::CreateChannelNamespaceError::InternalFailureException(inner) => {
313 Error::InternalFailureException(inner)
314 }
315 crate::operation::create_channel_namespace::CreateChannelNamespaceError::NotFoundException(inner) => Error::NotFoundException(inner),
316 crate::operation::create_channel_namespace::CreateChannelNamespaceError::ServiceQuotaExceededException(inner) => {
317 Error::ServiceQuotaExceededException(inner)
318 }
319 crate::operation::create_channel_namespace::CreateChannelNamespaceError::UnauthorizedException(inner) => {
320 Error::UnauthorizedException(inner)
321 }
322 crate::operation::create_channel_namespace::CreateChannelNamespaceError::Unhandled(inner) => Error::Unhandled(inner),
323 }
324 }
325}
326impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_data_source::CreateDataSourceError, R>> for Error
327where
328 R: Send + Sync + std::fmt::Debug + 'static,
329{
330 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_data_source::CreateDataSourceError, R>) -> Self {
331 match err {
332 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
333 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
334 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
335 source: err.into(),
336 }),
337 }
338 }
339}
340impl From<crate::operation::create_data_source::CreateDataSourceError> for Error {
341 fn from(err: crate::operation::create_data_source::CreateDataSourceError) -> Self {
342 match err {
343 crate::operation::create_data_source::CreateDataSourceError::BadRequestException(inner) => Error::BadRequestException(inner),
344 crate::operation::create_data_source::CreateDataSourceError::ConcurrentModificationException(inner) => {
345 Error::ConcurrentModificationException(inner)
346 }
347 crate::operation::create_data_source::CreateDataSourceError::InternalFailureException(inner) => Error::InternalFailureException(inner),
348 crate::operation::create_data_source::CreateDataSourceError::NotFoundException(inner) => Error::NotFoundException(inner),
349 crate::operation::create_data_source::CreateDataSourceError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
350 crate::operation::create_data_source::CreateDataSourceError::Unhandled(inner) => Error::Unhandled(inner),
351 }
352 }
353}
354impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_domain_name::CreateDomainNameError, R>> for Error
355where
356 R: Send + Sync + std::fmt::Debug + 'static,
357{
358 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_domain_name::CreateDomainNameError, R>) -> Self {
359 match err {
360 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
361 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
362 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
363 source: err.into(),
364 }),
365 }
366 }
367}
368impl From<crate::operation::create_domain_name::CreateDomainNameError> for Error {
369 fn from(err: crate::operation::create_domain_name::CreateDomainNameError) -> Self {
370 match err {
371 crate::operation::create_domain_name::CreateDomainNameError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
372 crate::operation::create_domain_name::CreateDomainNameError::BadRequestException(inner) => Error::BadRequestException(inner),
373 crate::operation::create_domain_name::CreateDomainNameError::InternalFailureException(inner) => Error::InternalFailureException(inner),
374 crate::operation::create_domain_name::CreateDomainNameError::Unhandled(inner) => Error::Unhandled(inner),
375 }
376 }
377}
378impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_function::CreateFunctionError, R>> for Error
379where
380 R: Send + Sync + std::fmt::Debug + 'static,
381{
382 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_function::CreateFunctionError, R>) -> Self {
383 match err {
384 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
385 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
386 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
387 source: err.into(),
388 }),
389 }
390 }
391}
392impl From<crate::operation::create_function::CreateFunctionError> for Error {
393 fn from(err: crate::operation::create_function::CreateFunctionError) -> Self {
394 match err {
395 crate::operation::create_function::CreateFunctionError::BadRequestException(inner) => Error::BadRequestException(inner),
396 crate::operation::create_function::CreateFunctionError::ConcurrentModificationException(inner) => {
397 Error::ConcurrentModificationException(inner)
398 }
399 crate::operation::create_function::CreateFunctionError::InternalFailureException(inner) => Error::InternalFailureException(inner),
400 crate::operation::create_function::CreateFunctionError::NotFoundException(inner) => Error::NotFoundException(inner),
401 crate::operation::create_function::CreateFunctionError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
402 crate::operation::create_function::CreateFunctionError::Unhandled(inner) => Error::Unhandled(inner),
403 }
404 }
405}
406impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_graphql_api::CreateGraphqlApiError, R>> for Error
407where
408 R: Send + Sync + std::fmt::Debug + 'static,
409{
410 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_graphql_api::CreateGraphqlApiError, R>) -> Self {
411 match err {
412 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
413 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
414 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
415 source: err.into(),
416 }),
417 }
418 }
419}
420impl From<crate::operation::create_graphql_api::CreateGraphqlApiError> for Error {
421 fn from(err: crate::operation::create_graphql_api::CreateGraphqlApiError) -> Self {
422 match err {
423 crate::operation::create_graphql_api::CreateGraphqlApiError::ApiLimitExceededException(inner) => Error::ApiLimitExceededException(inner),
424 crate::operation::create_graphql_api::CreateGraphqlApiError::BadRequestException(inner) => Error::BadRequestException(inner),
425 crate::operation::create_graphql_api::CreateGraphqlApiError::ConcurrentModificationException(inner) => {
426 Error::ConcurrentModificationException(inner)
427 }
428 crate::operation::create_graphql_api::CreateGraphqlApiError::InternalFailureException(inner) => Error::InternalFailureException(inner),
429 crate::operation::create_graphql_api::CreateGraphqlApiError::LimitExceededException(inner) => Error::LimitExceededException(inner),
430 crate::operation::create_graphql_api::CreateGraphqlApiError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
431 crate::operation::create_graphql_api::CreateGraphqlApiError::Unhandled(inner) => Error::Unhandled(inner),
432 }
433 }
434}
435impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_resolver::CreateResolverError, R>> for Error
436where
437 R: Send + Sync + std::fmt::Debug + 'static,
438{
439 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_resolver::CreateResolverError, R>) -> Self {
440 match err {
441 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
442 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
443 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
444 source: err.into(),
445 }),
446 }
447 }
448}
449impl From<crate::operation::create_resolver::CreateResolverError> for Error {
450 fn from(err: crate::operation::create_resolver::CreateResolverError) -> Self {
451 match err {
452 crate::operation::create_resolver::CreateResolverError::BadRequestException(inner) => Error::BadRequestException(inner),
453 crate::operation::create_resolver::CreateResolverError::ConcurrentModificationException(inner) => {
454 Error::ConcurrentModificationException(inner)
455 }
456 crate::operation::create_resolver::CreateResolverError::InternalFailureException(inner) => Error::InternalFailureException(inner),
457 crate::operation::create_resolver::CreateResolverError::NotFoundException(inner) => Error::NotFoundException(inner),
458 crate::operation::create_resolver::CreateResolverError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
459 crate::operation::create_resolver::CreateResolverError::Unhandled(inner) => Error::Unhandled(inner),
460 }
461 }
462}
463impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_type::CreateTypeError, R>> for Error
464where
465 R: Send + Sync + std::fmt::Debug + 'static,
466{
467 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_type::CreateTypeError, R>) -> Self {
468 match err {
469 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
470 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
471 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
472 source: err.into(),
473 }),
474 }
475 }
476}
477impl From<crate::operation::create_type::CreateTypeError> for Error {
478 fn from(err: crate::operation::create_type::CreateTypeError) -> Self {
479 match err {
480 crate::operation::create_type::CreateTypeError::BadRequestException(inner) => Error::BadRequestException(inner),
481 crate::operation::create_type::CreateTypeError::ConcurrentModificationException(inner) => Error::ConcurrentModificationException(inner),
482 crate::operation::create_type::CreateTypeError::InternalFailureException(inner) => Error::InternalFailureException(inner),
483 crate::operation::create_type::CreateTypeError::NotFoundException(inner) => Error::NotFoundException(inner),
484 crate::operation::create_type::CreateTypeError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
485 crate::operation::create_type::CreateTypeError::Unhandled(inner) => Error::Unhandled(inner),
486 }
487 }
488}
489impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_api::DeleteApiError, R>> for Error
490where
491 R: Send + Sync + std::fmt::Debug + 'static,
492{
493 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_api::DeleteApiError, R>) -> Self {
494 match err {
495 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
496 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
497 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
498 source: err.into(),
499 }),
500 }
501 }
502}
503impl From<crate::operation::delete_api::DeleteApiError> for Error {
504 fn from(err: crate::operation::delete_api::DeleteApiError) -> Self {
505 match err {
506 crate::operation::delete_api::DeleteApiError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
507 crate::operation::delete_api::DeleteApiError::BadRequestException(inner) => Error::BadRequestException(inner),
508 crate::operation::delete_api::DeleteApiError::ConcurrentModificationException(inner) => Error::ConcurrentModificationException(inner),
509 crate::operation::delete_api::DeleteApiError::InternalFailureException(inner) => Error::InternalFailureException(inner),
510 crate::operation::delete_api::DeleteApiError::NotFoundException(inner) => Error::NotFoundException(inner),
511 crate::operation::delete_api::DeleteApiError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
512 crate::operation::delete_api::DeleteApiError::Unhandled(inner) => Error::Unhandled(inner),
513 }
514 }
515}
516impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_api_cache::DeleteApiCacheError, R>> for Error
517where
518 R: Send + Sync + std::fmt::Debug + 'static,
519{
520 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_api_cache::DeleteApiCacheError, R>) -> Self {
521 match err {
522 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
523 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
524 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
525 source: err.into(),
526 }),
527 }
528 }
529}
530impl From<crate::operation::delete_api_cache::DeleteApiCacheError> for Error {
531 fn from(err: crate::operation::delete_api_cache::DeleteApiCacheError) -> Self {
532 match err {
533 crate::operation::delete_api_cache::DeleteApiCacheError::BadRequestException(inner) => Error::BadRequestException(inner),
534 crate::operation::delete_api_cache::DeleteApiCacheError::ConcurrentModificationException(inner) => {
535 Error::ConcurrentModificationException(inner)
536 }
537 crate::operation::delete_api_cache::DeleteApiCacheError::InternalFailureException(inner) => Error::InternalFailureException(inner),
538 crate::operation::delete_api_cache::DeleteApiCacheError::NotFoundException(inner) => Error::NotFoundException(inner),
539 crate::operation::delete_api_cache::DeleteApiCacheError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
540 crate::operation::delete_api_cache::DeleteApiCacheError::Unhandled(inner) => Error::Unhandled(inner),
541 }
542 }
543}
544impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_api_key::DeleteApiKeyError, R>> for Error
545where
546 R: Send + Sync + std::fmt::Debug + 'static,
547{
548 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_api_key::DeleteApiKeyError, R>) -> Self {
549 match err {
550 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
551 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
552 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
553 source: err.into(),
554 }),
555 }
556 }
557}
558impl From<crate::operation::delete_api_key::DeleteApiKeyError> for Error {
559 fn from(err: crate::operation::delete_api_key::DeleteApiKeyError) -> Self {
560 match err {
561 crate::operation::delete_api_key::DeleteApiKeyError::BadRequestException(inner) => Error::BadRequestException(inner),
562 crate::operation::delete_api_key::DeleteApiKeyError::InternalFailureException(inner) => Error::InternalFailureException(inner),
563 crate::operation::delete_api_key::DeleteApiKeyError::NotFoundException(inner) => Error::NotFoundException(inner),
564 crate::operation::delete_api_key::DeleteApiKeyError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
565 crate::operation::delete_api_key::DeleteApiKeyError::Unhandled(inner) => Error::Unhandled(inner),
566 }
567 }
568}
569impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_channel_namespace::DeleteChannelNamespaceError, R>> for Error
570where
571 R: Send + Sync + std::fmt::Debug + 'static,
572{
573 fn from(
574 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_channel_namespace::DeleteChannelNamespaceError, R>,
575 ) -> Self {
576 match err {
577 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
578 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
579 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
580 source: err.into(),
581 }),
582 }
583 }
584}
585impl From<crate::operation::delete_channel_namespace::DeleteChannelNamespaceError> for Error {
586 fn from(err: crate::operation::delete_channel_namespace::DeleteChannelNamespaceError) -> Self {
587 match err {
588 crate::operation::delete_channel_namespace::DeleteChannelNamespaceError::AccessDeniedException(inner) => {
589 Error::AccessDeniedException(inner)
590 }
591 crate::operation::delete_channel_namespace::DeleteChannelNamespaceError::BadRequestException(inner) => Error::BadRequestException(inner),
592 crate::operation::delete_channel_namespace::DeleteChannelNamespaceError::ConcurrentModificationException(inner) => {
593 Error::ConcurrentModificationException(inner)
594 }
595 crate::operation::delete_channel_namespace::DeleteChannelNamespaceError::InternalFailureException(inner) => {
596 Error::InternalFailureException(inner)
597 }
598 crate::operation::delete_channel_namespace::DeleteChannelNamespaceError::NotFoundException(inner) => Error::NotFoundException(inner),
599 crate::operation::delete_channel_namespace::DeleteChannelNamespaceError::UnauthorizedException(inner) => {
600 Error::UnauthorizedException(inner)
601 }
602 crate::operation::delete_channel_namespace::DeleteChannelNamespaceError::Unhandled(inner) => Error::Unhandled(inner),
603 }
604 }
605}
606impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_data_source::DeleteDataSourceError, R>> for Error
607where
608 R: Send + Sync + std::fmt::Debug + 'static,
609{
610 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_data_source::DeleteDataSourceError, R>) -> Self {
611 match err {
612 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
613 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
614 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
615 source: err.into(),
616 }),
617 }
618 }
619}
620impl From<crate::operation::delete_data_source::DeleteDataSourceError> for Error {
621 fn from(err: crate::operation::delete_data_source::DeleteDataSourceError) -> Self {
622 match err {
623 crate::operation::delete_data_source::DeleteDataSourceError::BadRequestException(inner) => Error::BadRequestException(inner),
624 crate::operation::delete_data_source::DeleteDataSourceError::ConcurrentModificationException(inner) => {
625 Error::ConcurrentModificationException(inner)
626 }
627 crate::operation::delete_data_source::DeleteDataSourceError::InternalFailureException(inner) => Error::InternalFailureException(inner),
628 crate::operation::delete_data_source::DeleteDataSourceError::NotFoundException(inner) => Error::NotFoundException(inner),
629 crate::operation::delete_data_source::DeleteDataSourceError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
630 crate::operation::delete_data_source::DeleteDataSourceError::Unhandled(inner) => Error::Unhandled(inner),
631 }
632 }
633}
634impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_domain_name::DeleteDomainNameError, R>> for Error
635where
636 R: Send + Sync + std::fmt::Debug + 'static,
637{
638 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_domain_name::DeleteDomainNameError, R>) -> Self {
639 match err {
640 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
641 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
642 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
643 source: err.into(),
644 }),
645 }
646 }
647}
648impl From<crate::operation::delete_domain_name::DeleteDomainNameError> for Error {
649 fn from(err: crate::operation::delete_domain_name::DeleteDomainNameError) -> Self {
650 match err {
651 crate::operation::delete_domain_name::DeleteDomainNameError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
652 crate::operation::delete_domain_name::DeleteDomainNameError::BadRequestException(inner) => Error::BadRequestException(inner),
653 crate::operation::delete_domain_name::DeleteDomainNameError::ConcurrentModificationException(inner) => {
654 Error::ConcurrentModificationException(inner)
655 }
656 crate::operation::delete_domain_name::DeleteDomainNameError::InternalFailureException(inner) => Error::InternalFailureException(inner),
657 crate::operation::delete_domain_name::DeleteDomainNameError::NotFoundException(inner) => Error::NotFoundException(inner),
658 crate::operation::delete_domain_name::DeleteDomainNameError::Unhandled(inner) => Error::Unhandled(inner),
659 }
660 }
661}
662impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_function::DeleteFunctionError, R>> for Error
663where
664 R: Send + Sync + std::fmt::Debug + 'static,
665{
666 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_function::DeleteFunctionError, R>) -> Self {
667 match err {
668 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
669 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
670 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
671 source: err.into(),
672 }),
673 }
674 }
675}
676impl From<crate::operation::delete_function::DeleteFunctionError> for Error {
677 fn from(err: crate::operation::delete_function::DeleteFunctionError) -> Self {
678 match err {
679 crate::operation::delete_function::DeleteFunctionError::BadRequestException(inner) => Error::BadRequestException(inner),
680 crate::operation::delete_function::DeleteFunctionError::ConcurrentModificationException(inner) => {
681 Error::ConcurrentModificationException(inner)
682 }
683 crate::operation::delete_function::DeleteFunctionError::InternalFailureException(inner) => Error::InternalFailureException(inner),
684 crate::operation::delete_function::DeleteFunctionError::NotFoundException(inner) => Error::NotFoundException(inner),
685 crate::operation::delete_function::DeleteFunctionError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
686 crate::operation::delete_function::DeleteFunctionError::Unhandled(inner) => Error::Unhandled(inner),
687 }
688 }
689}
690impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_graphql_api::DeleteGraphqlApiError, R>> for Error
691where
692 R: Send + Sync + std::fmt::Debug + 'static,
693{
694 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_graphql_api::DeleteGraphqlApiError, R>) -> Self {
695 match err {
696 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
697 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
698 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
699 source: err.into(),
700 }),
701 }
702 }
703}
704impl From<crate::operation::delete_graphql_api::DeleteGraphqlApiError> for Error {
705 fn from(err: crate::operation::delete_graphql_api::DeleteGraphqlApiError) -> Self {
706 match err {
707 crate::operation::delete_graphql_api::DeleteGraphqlApiError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
708 crate::operation::delete_graphql_api::DeleteGraphqlApiError::BadRequestException(inner) => Error::BadRequestException(inner),
709 crate::operation::delete_graphql_api::DeleteGraphqlApiError::ConcurrentModificationException(inner) => {
710 Error::ConcurrentModificationException(inner)
711 }
712 crate::operation::delete_graphql_api::DeleteGraphqlApiError::InternalFailureException(inner) => Error::InternalFailureException(inner),
713 crate::operation::delete_graphql_api::DeleteGraphqlApiError::NotFoundException(inner) => Error::NotFoundException(inner),
714 crate::operation::delete_graphql_api::DeleteGraphqlApiError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
715 crate::operation::delete_graphql_api::DeleteGraphqlApiError::Unhandled(inner) => Error::Unhandled(inner),
716 }
717 }
718}
719impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resolver::DeleteResolverError, R>> for Error
720where
721 R: Send + Sync + std::fmt::Debug + 'static,
722{
723 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resolver::DeleteResolverError, R>) -> Self {
724 match err {
725 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
726 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
727 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
728 source: err.into(),
729 }),
730 }
731 }
732}
733impl From<crate::operation::delete_resolver::DeleteResolverError> for Error {
734 fn from(err: crate::operation::delete_resolver::DeleteResolverError) -> Self {
735 match err {
736 crate::operation::delete_resolver::DeleteResolverError::BadRequestException(inner) => Error::BadRequestException(inner),
737 crate::operation::delete_resolver::DeleteResolverError::ConcurrentModificationException(inner) => {
738 Error::ConcurrentModificationException(inner)
739 }
740 crate::operation::delete_resolver::DeleteResolverError::InternalFailureException(inner) => Error::InternalFailureException(inner),
741 crate::operation::delete_resolver::DeleteResolverError::NotFoundException(inner) => Error::NotFoundException(inner),
742 crate::operation::delete_resolver::DeleteResolverError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
743 crate::operation::delete_resolver::DeleteResolverError::Unhandled(inner) => Error::Unhandled(inner),
744 }
745 }
746}
747impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_type::DeleteTypeError, R>> for Error
748where
749 R: Send + Sync + std::fmt::Debug + 'static,
750{
751 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_type::DeleteTypeError, R>) -> Self {
752 match err {
753 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
754 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
755 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
756 source: err.into(),
757 }),
758 }
759 }
760}
761impl From<crate::operation::delete_type::DeleteTypeError> for Error {
762 fn from(err: crate::operation::delete_type::DeleteTypeError) -> Self {
763 match err {
764 crate::operation::delete_type::DeleteTypeError::BadRequestException(inner) => Error::BadRequestException(inner),
765 crate::operation::delete_type::DeleteTypeError::ConcurrentModificationException(inner) => Error::ConcurrentModificationException(inner),
766 crate::operation::delete_type::DeleteTypeError::InternalFailureException(inner) => Error::InternalFailureException(inner),
767 crate::operation::delete_type::DeleteTypeError::NotFoundException(inner) => Error::NotFoundException(inner),
768 crate::operation::delete_type::DeleteTypeError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
769 crate::operation::delete_type::DeleteTypeError::Unhandled(inner) => Error::Unhandled(inner),
770 }
771 }
772}
773impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_api::DisassociateApiError, R>> for Error
774where
775 R: Send + Sync + std::fmt::Debug + 'static,
776{
777 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_api::DisassociateApiError, R>) -> Self {
778 match err {
779 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
780 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
781 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
782 source: err.into(),
783 }),
784 }
785 }
786}
787impl From<crate::operation::disassociate_api::DisassociateApiError> for Error {
788 fn from(err: crate::operation::disassociate_api::DisassociateApiError) -> Self {
789 match err {
790 crate::operation::disassociate_api::DisassociateApiError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
791 crate::operation::disassociate_api::DisassociateApiError::BadRequestException(inner) => Error::BadRequestException(inner),
792 crate::operation::disassociate_api::DisassociateApiError::ConcurrentModificationException(inner) => {
793 Error::ConcurrentModificationException(inner)
794 }
795 crate::operation::disassociate_api::DisassociateApiError::InternalFailureException(inner) => Error::InternalFailureException(inner),
796 crate::operation::disassociate_api::DisassociateApiError::NotFoundException(inner) => Error::NotFoundException(inner),
797 crate::operation::disassociate_api::DisassociateApiError::Unhandled(inner) => Error::Unhandled(inner),
798 }
799 }
800}
801impl<R>
802 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_merged_graphql_api::DisassociateMergedGraphqlApiError, R>>
803 for Error
804where
805 R: Send + Sync + std::fmt::Debug + 'static,
806{
807 fn from(
808 err: ::aws_smithy_runtime_api::client::result::SdkError<
809 crate::operation::disassociate_merged_graphql_api::DisassociateMergedGraphqlApiError,
810 R,
811 >,
812 ) -> Self {
813 match err {
814 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
815 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
816 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
817 source: err.into(),
818 }),
819 }
820 }
821}
822impl From<crate::operation::disassociate_merged_graphql_api::DisassociateMergedGraphqlApiError> for Error {
823 fn from(err: crate::operation::disassociate_merged_graphql_api::DisassociateMergedGraphqlApiError) -> Self {
824 match err {
825 crate::operation::disassociate_merged_graphql_api::DisassociateMergedGraphqlApiError::BadRequestException(inner) => {
826 Error::BadRequestException(inner)
827 }
828 crate::operation::disassociate_merged_graphql_api::DisassociateMergedGraphqlApiError::ConcurrentModificationException(inner) => {
829 Error::ConcurrentModificationException(inner)
830 }
831 crate::operation::disassociate_merged_graphql_api::DisassociateMergedGraphqlApiError::InternalFailureException(inner) => {
832 Error::InternalFailureException(inner)
833 }
834 crate::operation::disassociate_merged_graphql_api::DisassociateMergedGraphqlApiError::NotFoundException(inner) => {
835 Error::NotFoundException(inner)
836 }
837 crate::operation::disassociate_merged_graphql_api::DisassociateMergedGraphqlApiError::UnauthorizedException(inner) => {
838 Error::UnauthorizedException(inner)
839 }
840 crate::operation::disassociate_merged_graphql_api::DisassociateMergedGraphqlApiError::Unhandled(inner) => Error::Unhandled(inner),
841 }
842 }
843}
844impl<R>
845 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_source_graphql_api::DisassociateSourceGraphqlApiError, R>>
846 for Error
847where
848 R: Send + Sync + std::fmt::Debug + 'static,
849{
850 fn from(
851 err: ::aws_smithy_runtime_api::client::result::SdkError<
852 crate::operation::disassociate_source_graphql_api::DisassociateSourceGraphqlApiError,
853 R,
854 >,
855 ) -> Self {
856 match err {
857 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
858 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
859 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
860 source: err.into(),
861 }),
862 }
863 }
864}
865impl From<crate::operation::disassociate_source_graphql_api::DisassociateSourceGraphqlApiError> for Error {
866 fn from(err: crate::operation::disassociate_source_graphql_api::DisassociateSourceGraphqlApiError) -> Self {
867 match err {
868 crate::operation::disassociate_source_graphql_api::DisassociateSourceGraphqlApiError::BadRequestException(inner) => {
869 Error::BadRequestException(inner)
870 }
871 crate::operation::disassociate_source_graphql_api::DisassociateSourceGraphqlApiError::ConcurrentModificationException(inner) => {
872 Error::ConcurrentModificationException(inner)
873 }
874 crate::operation::disassociate_source_graphql_api::DisassociateSourceGraphqlApiError::InternalFailureException(inner) => {
875 Error::InternalFailureException(inner)
876 }
877 crate::operation::disassociate_source_graphql_api::DisassociateSourceGraphqlApiError::NotFoundException(inner) => {
878 Error::NotFoundException(inner)
879 }
880 crate::operation::disassociate_source_graphql_api::DisassociateSourceGraphqlApiError::UnauthorizedException(inner) => {
881 Error::UnauthorizedException(inner)
882 }
883 crate::operation::disassociate_source_graphql_api::DisassociateSourceGraphqlApiError::Unhandled(inner) => Error::Unhandled(inner),
884 }
885 }
886}
887impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::evaluate_code::EvaluateCodeError, R>> for Error
888where
889 R: Send + Sync + std::fmt::Debug + 'static,
890{
891 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::evaluate_code::EvaluateCodeError, R>) -> Self {
892 match err {
893 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
894 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
895 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
896 source: err.into(),
897 }),
898 }
899 }
900}
901impl From<crate::operation::evaluate_code::EvaluateCodeError> for Error {
902 fn from(err: crate::operation::evaluate_code::EvaluateCodeError) -> Self {
903 match err {
904 crate::operation::evaluate_code::EvaluateCodeError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
905 crate::operation::evaluate_code::EvaluateCodeError::BadRequestException(inner) => Error::BadRequestException(inner),
906 crate::operation::evaluate_code::EvaluateCodeError::InternalFailureException(inner) => Error::InternalFailureException(inner),
907 crate::operation::evaluate_code::EvaluateCodeError::Unhandled(inner) => Error::Unhandled(inner),
908 }
909 }
910}
911impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::evaluate_mapping_template::EvaluateMappingTemplateError, R>>
912 for Error
913where
914 R: Send + Sync + std::fmt::Debug + 'static,
915{
916 fn from(
917 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::evaluate_mapping_template::EvaluateMappingTemplateError, R>,
918 ) -> Self {
919 match err {
920 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
921 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
922 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
923 source: err.into(),
924 }),
925 }
926 }
927}
928impl From<crate::operation::evaluate_mapping_template::EvaluateMappingTemplateError> for Error {
929 fn from(err: crate::operation::evaluate_mapping_template::EvaluateMappingTemplateError) -> Self {
930 match err {
931 crate::operation::evaluate_mapping_template::EvaluateMappingTemplateError::AccessDeniedException(inner) => {
932 Error::AccessDeniedException(inner)
933 }
934 crate::operation::evaluate_mapping_template::EvaluateMappingTemplateError::BadRequestException(inner) => {
935 Error::BadRequestException(inner)
936 }
937 crate::operation::evaluate_mapping_template::EvaluateMappingTemplateError::InternalFailureException(inner) => {
938 Error::InternalFailureException(inner)
939 }
940 crate::operation::evaluate_mapping_template::EvaluateMappingTemplateError::Unhandled(inner) => Error::Unhandled(inner),
941 }
942 }
943}
944impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::flush_api_cache::FlushApiCacheError, R>> for Error
945where
946 R: Send + Sync + std::fmt::Debug + 'static,
947{
948 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::flush_api_cache::FlushApiCacheError, R>) -> Self {
949 match err {
950 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
951 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
952 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
953 source: err.into(),
954 }),
955 }
956 }
957}
958impl From<crate::operation::flush_api_cache::FlushApiCacheError> for Error {
959 fn from(err: crate::operation::flush_api_cache::FlushApiCacheError) -> Self {
960 match err {
961 crate::operation::flush_api_cache::FlushApiCacheError::BadRequestException(inner) => Error::BadRequestException(inner),
962 crate::operation::flush_api_cache::FlushApiCacheError::ConcurrentModificationException(inner) => {
963 Error::ConcurrentModificationException(inner)
964 }
965 crate::operation::flush_api_cache::FlushApiCacheError::InternalFailureException(inner) => Error::InternalFailureException(inner),
966 crate::operation::flush_api_cache::FlushApiCacheError::NotFoundException(inner) => Error::NotFoundException(inner),
967 crate::operation::flush_api_cache::FlushApiCacheError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
968 crate::operation::flush_api_cache::FlushApiCacheError::Unhandled(inner) => Error::Unhandled(inner),
969 }
970 }
971}
972impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_api::GetApiError, R>> for Error
973where
974 R: Send + Sync + std::fmt::Debug + 'static,
975{
976 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_api::GetApiError, R>) -> Self {
977 match err {
978 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
979 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
980 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
981 source: err.into(),
982 }),
983 }
984 }
985}
986impl From<crate::operation::get_api::GetApiError> for Error {
987 fn from(err: crate::operation::get_api::GetApiError) -> Self {
988 match err {
989 crate::operation::get_api::GetApiError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
990 crate::operation::get_api::GetApiError::BadRequestException(inner) => Error::BadRequestException(inner),
991 crate::operation::get_api::GetApiError::InternalFailureException(inner) => Error::InternalFailureException(inner),
992 crate::operation::get_api::GetApiError::NotFoundException(inner) => Error::NotFoundException(inner),
993 crate::operation::get_api::GetApiError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
994 crate::operation::get_api::GetApiError::Unhandled(inner) => Error::Unhandled(inner),
995 }
996 }
997}
998impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_api_association::GetApiAssociationError, R>> for Error
999where
1000 R: Send + Sync + std::fmt::Debug + 'static,
1001{
1002 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_api_association::GetApiAssociationError, R>) -> Self {
1003 match err {
1004 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1005 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1006 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1007 source: err.into(),
1008 }),
1009 }
1010 }
1011}
1012impl From<crate::operation::get_api_association::GetApiAssociationError> for Error {
1013 fn from(err: crate::operation::get_api_association::GetApiAssociationError) -> Self {
1014 match err {
1015 crate::operation::get_api_association::GetApiAssociationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1016 crate::operation::get_api_association::GetApiAssociationError::BadRequestException(inner) => Error::BadRequestException(inner),
1017 crate::operation::get_api_association::GetApiAssociationError::InternalFailureException(inner) => Error::InternalFailureException(inner),
1018 crate::operation::get_api_association::GetApiAssociationError::NotFoundException(inner) => Error::NotFoundException(inner),
1019 crate::operation::get_api_association::GetApiAssociationError::Unhandled(inner) => Error::Unhandled(inner),
1020 }
1021 }
1022}
1023impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_api_cache::GetApiCacheError, R>> for Error
1024where
1025 R: Send + Sync + std::fmt::Debug + 'static,
1026{
1027 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_api_cache::GetApiCacheError, R>) -> Self {
1028 match err {
1029 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1030 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1031 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1032 source: err.into(),
1033 }),
1034 }
1035 }
1036}
1037impl From<crate::operation::get_api_cache::GetApiCacheError> for Error {
1038 fn from(err: crate::operation::get_api_cache::GetApiCacheError) -> Self {
1039 match err {
1040 crate::operation::get_api_cache::GetApiCacheError::BadRequestException(inner) => Error::BadRequestException(inner),
1041 crate::operation::get_api_cache::GetApiCacheError::ConcurrentModificationException(inner) => {
1042 Error::ConcurrentModificationException(inner)
1043 }
1044 crate::operation::get_api_cache::GetApiCacheError::InternalFailureException(inner) => Error::InternalFailureException(inner),
1045 crate::operation::get_api_cache::GetApiCacheError::NotFoundException(inner) => Error::NotFoundException(inner),
1046 crate::operation::get_api_cache::GetApiCacheError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1047 crate::operation::get_api_cache::GetApiCacheError::Unhandled(inner) => Error::Unhandled(inner),
1048 }
1049 }
1050}
1051impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_channel_namespace::GetChannelNamespaceError, R>> for Error
1052where
1053 R: Send + Sync + std::fmt::Debug + 'static,
1054{
1055 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_channel_namespace::GetChannelNamespaceError, R>) -> Self {
1056 match err {
1057 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1058 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1059 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1060 source: err.into(),
1061 }),
1062 }
1063 }
1064}
1065impl From<crate::operation::get_channel_namespace::GetChannelNamespaceError> for Error {
1066 fn from(err: crate::operation::get_channel_namespace::GetChannelNamespaceError) -> Self {
1067 match err {
1068 crate::operation::get_channel_namespace::GetChannelNamespaceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1069 crate::operation::get_channel_namespace::GetChannelNamespaceError::BadRequestException(inner) => Error::BadRequestException(inner),
1070 crate::operation::get_channel_namespace::GetChannelNamespaceError::InternalFailureException(inner) => {
1071 Error::InternalFailureException(inner)
1072 }
1073 crate::operation::get_channel_namespace::GetChannelNamespaceError::NotFoundException(inner) => Error::NotFoundException(inner),
1074 crate::operation::get_channel_namespace::GetChannelNamespaceError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1075 crate::operation::get_channel_namespace::GetChannelNamespaceError::Unhandled(inner) => Error::Unhandled(inner),
1076 }
1077 }
1078}
1079impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_data_source::GetDataSourceError, R>> for Error
1080where
1081 R: Send + Sync + std::fmt::Debug + 'static,
1082{
1083 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_data_source::GetDataSourceError, R>) -> Self {
1084 match err {
1085 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1086 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1087 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1088 source: err.into(),
1089 }),
1090 }
1091 }
1092}
1093impl From<crate::operation::get_data_source::GetDataSourceError> for Error {
1094 fn from(err: crate::operation::get_data_source::GetDataSourceError) -> Self {
1095 match err {
1096 crate::operation::get_data_source::GetDataSourceError::BadRequestException(inner) => Error::BadRequestException(inner),
1097 crate::operation::get_data_source::GetDataSourceError::ConcurrentModificationException(inner) => {
1098 Error::ConcurrentModificationException(inner)
1099 }
1100 crate::operation::get_data_source::GetDataSourceError::InternalFailureException(inner) => Error::InternalFailureException(inner),
1101 crate::operation::get_data_source::GetDataSourceError::NotFoundException(inner) => Error::NotFoundException(inner),
1102 crate::operation::get_data_source::GetDataSourceError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1103 crate::operation::get_data_source::GetDataSourceError::Unhandled(inner) => Error::Unhandled(inner),
1104 }
1105 }
1106}
1107impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_data_source_introspection::GetDataSourceIntrospectionError, R>>
1108 for Error
1109where
1110 R: Send + Sync + std::fmt::Debug + 'static,
1111{
1112 fn from(
1113 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_data_source_introspection::GetDataSourceIntrospectionError, R>,
1114 ) -> Self {
1115 match err {
1116 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1117 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1118 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1119 source: err.into(),
1120 }),
1121 }
1122 }
1123}
1124impl From<crate::operation::get_data_source_introspection::GetDataSourceIntrospectionError> for Error {
1125 fn from(err: crate::operation::get_data_source_introspection::GetDataSourceIntrospectionError) -> Self {
1126 match err {
1127 crate::operation::get_data_source_introspection::GetDataSourceIntrospectionError::BadRequestException(inner) => {
1128 Error::BadRequestException(inner)
1129 }
1130 crate::operation::get_data_source_introspection::GetDataSourceIntrospectionError::InternalFailureException(inner) => {
1131 Error::InternalFailureException(inner)
1132 }
1133 crate::operation::get_data_source_introspection::GetDataSourceIntrospectionError::NotFoundException(inner) => {
1134 Error::NotFoundException(inner)
1135 }
1136 crate::operation::get_data_source_introspection::GetDataSourceIntrospectionError::Unhandled(inner) => Error::Unhandled(inner),
1137 }
1138 }
1139}
1140impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_domain_name::GetDomainNameError, R>> for Error
1141where
1142 R: Send + Sync + std::fmt::Debug + 'static,
1143{
1144 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_domain_name::GetDomainNameError, R>) -> Self {
1145 match err {
1146 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1147 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1148 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1149 source: err.into(),
1150 }),
1151 }
1152 }
1153}
1154impl From<crate::operation::get_domain_name::GetDomainNameError> for Error {
1155 fn from(err: crate::operation::get_domain_name::GetDomainNameError) -> Self {
1156 match err {
1157 crate::operation::get_domain_name::GetDomainNameError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1158 crate::operation::get_domain_name::GetDomainNameError::BadRequestException(inner) => Error::BadRequestException(inner),
1159 crate::operation::get_domain_name::GetDomainNameError::InternalFailureException(inner) => Error::InternalFailureException(inner),
1160 crate::operation::get_domain_name::GetDomainNameError::NotFoundException(inner) => Error::NotFoundException(inner),
1161 crate::operation::get_domain_name::GetDomainNameError::Unhandled(inner) => Error::Unhandled(inner),
1162 }
1163 }
1164}
1165impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_function::GetFunctionError, R>> for Error
1166where
1167 R: Send + Sync + std::fmt::Debug + 'static,
1168{
1169 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_function::GetFunctionError, R>) -> Self {
1170 match err {
1171 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1172 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1173 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1174 source: err.into(),
1175 }),
1176 }
1177 }
1178}
1179impl From<crate::operation::get_function::GetFunctionError> for Error {
1180 fn from(err: crate::operation::get_function::GetFunctionError) -> Self {
1181 match err {
1182 crate::operation::get_function::GetFunctionError::ConcurrentModificationException(inner) => Error::ConcurrentModificationException(inner),
1183 crate::operation::get_function::GetFunctionError::NotFoundException(inner) => Error::NotFoundException(inner),
1184 crate::operation::get_function::GetFunctionError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1185 crate::operation::get_function::GetFunctionError::Unhandled(inner) => Error::Unhandled(inner),
1186 }
1187 }
1188}
1189impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_graphql_api::GetGraphqlApiError, R>> for Error
1190where
1191 R: Send + Sync + std::fmt::Debug + 'static,
1192{
1193 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_graphql_api::GetGraphqlApiError, R>) -> Self {
1194 match err {
1195 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1196 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1197 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1198 source: err.into(),
1199 }),
1200 }
1201 }
1202}
1203impl From<crate::operation::get_graphql_api::GetGraphqlApiError> for Error {
1204 fn from(err: crate::operation::get_graphql_api::GetGraphqlApiError) -> Self {
1205 match err {
1206 crate::operation::get_graphql_api::GetGraphqlApiError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1207 crate::operation::get_graphql_api::GetGraphqlApiError::BadRequestException(inner) => Error::BadRequestException(inner),
1208 crate::operation::get_graphql_api::GetGraphqlApiError::InternalFailureException(inner) => Error::InternalFailureException(inner),
1209 crate::operation::get_graphql_api::GetGraphqlApiError::NotFoundException(inner) => Error::NotFoundException(inner),
1210 crate::operation::get_graphql_api::GetGraphqlApiError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1211 crate::operation::get_graphql_api::GetGraphqlApiError::Unhandled(inner) => Error::Unhandled(inner),
1212 }
1213 }
1214}
1215impl<R>
1216 From<
1217 ::aws_smithy_runtime_api::client::result::SdkError<
1218 crate::operation::get_graphql_api_environment_variables::GetGraphqlApiEnvironmentVariablesError,
1219 R,
1220 >,
1221 > for Error
1222where
1223 R: Send + Sync + std::fmt::Debug + 'static,
1224{
1225 fn from(
1226 err: ::aws_smithy_runtime_api::client::result::SdkError<
1227 crate::operation::get_graphql_api_environment_variables::GetGraphqlApiEnvironmentVariablesError,
1228 R,
1229 >,
1230 ) -> Self {
1231 match err {
1232 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1233 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1234 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1235 source: err.into(),
1236 }),
1237 }
1238 }
1239}
1240impl From<crate::operation::get_graphql_api_environment_variables::GetGraphqlApiEnvironmentVariablesError> for Error {
1241 fn from(err: crate::operation::get_graphql_api_environment_variables::GetGraphqlApiEnvironmentVariablesError) -> Self {
1242 match err {
1243 crate::operation::get_graphql_api_environment_variables::GetGraphqlApiEnvironmentVariablesError::AccessDeniedException(inner) => {
1244 Error::AccessDeniedException(inner)
1245 }
1246 crate::operation::get_graphql_api_environment_variables::GetGraphqlApiEnvironmentVariablesError::BadRequestException(inner) => {
1247 Error::BadRequestException(inner)
1248 }
1249 crate::operation::get_graphql_api_environment_variables::GetGraphqlApiEnvironmentVariablesError::InternalFailureException(inner) => {
1250 Error::InternalFailureException(inner)
1251 }
1252 crate::operation::get_graphql_api_environment_variables::GetGraphqlApiEnvironmentVariablesError::NotFoundException(inner) => {
1253 Error::NotFoundException(inner)
1254 }
1255 crate::operation::get_graphql_api_environment_variables::GetGraphqlApiEnvironmentVariablesError::UnauthorizedException(inner) => {
1256 Error::UnauthorizedException(inner)
1257 }
1258 crate::operation::get_graphql_api_environment_variables::GetGraphqlApiEnvironmentVariablesError::Unhandled(inner) => {
1259 Error::Unhandled(inner)
1260 }
1261 }
1262 }
1263}
1264impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_introspection_schema::GetIntrospectionSchemaError, R>> for Error
1265where
1266 R: Send + Sync + std::fmt::Debug + 'static,
1267{
1268 fn from(
1269 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_introspection_schema::GetIntrospectionSchemaError, R>,
1270 ) -> Self {
1271 match err {
1272 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1273 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1274 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1275 source: err.into(),
1276 }),
1277 }
1278 }
1279}
1280impl From<crate::operation::get_introspection_schema::GetIntrospectionSchemaError> for Error {
1281 fn from(err: crate::operation::get_introspection_schema::GetIntrospectionSchemaError) -> Self {
1282 match err {
1283 crate::operation::get_introspection_schema::GetIntrospectionSchemaError::GraphQlSchemaException(inner) => {
1284 Error::GraphQlSchemaException(inner)
1285 }
1286 crate::operation::get_introspection_schema::GetIntrospectionSchemaError::InternalFailureException(inner) => {
1287 Error::InternalFailureException(inner)
1288 }
1289 crate::operation::get_introspection_schema::GetIntrospectionSchemaError::NotFoundException(inner) => Error::NotFoundException(inner),
1290 crate::operation::get_introspection_schema::GetIntrospectionSchemaError::UnauthorizedException(inner) => {
1291 Error::UnauthorizedException(inner)
1292 }
1293 crate::operation::get_introspection_schema::GetIntrospectionSchemaError::Unhandled(inner) => Error::Unhandled(inner),
1294 }
1295 }
1296}
1297impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resolver::GetResolverError, R>> for Error
1298where
1299 R: Send + Sync + std::fmt::Debug + 'static,
1300{
1301 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resolver::GetResolverError, R>) -> Self {
1302 match err {
1303 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1304 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1305 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1306 source: err.into(),
1307 }),
1308 }
1309 }
1310}
1311impl From<crate::operation::get_resolver::GetResolverError> for Error {
1312 fn from(err: crate::operation::get_resolver::GetResolverError) -> Self {
1313 match err {
1314 crate::operation::get_resolver::GetResolverError::ConcurrentModificationException(inner) => Error::ConcurrentModificationException(inner),
1315 crate::operation::get_resolver::GetResolverError::NotFoundException(inner) => Error::NotFoundException(inner),
1316 crate::operation::get_resolver::GetResolverError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1317 crate::operation::get_resolver::GetResolverError::Unhandled(inner) => Error::Unhandled(inner),
1318 }
1319 }
1320}
1321impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_schema_creation_status::GetSchemaCreationStatusError, R>>
1322 for Error
1323where
1324 R: Send + Sync + std::fmt::Debug + 'static,
1325{
1326 fn from(
1327 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_schema_creation_status::GetSchemaCreationStatusError, R>,
1328 ) -> Self {
1329 match err {
1330 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1331 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1332 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1333 source: err.into(),
1334 }),
1335 }
1336 }
1337}
1338impl From<crate::operation::get_schema_creation_status::GetSchemaCreationStatusError> for Error {
1339 fn from(err: crate::operation::get_schema_creation_status::GetSchemaCreationStatusError) -> Self {
1340 match err {
1341 crate::operation::get_schema_creation_status::GetSchemaCreationStatusError::BadRequestException(inner) => {
1342 Error::BadRequestException(inner)
1343 }
1344 crate::operation::get_schema_creation_status::GetSchemaCreationStatusError::InternalFailureException(inner) => {
1345 Error::InternalFailureException(inner)
1346 }
1347 crate::operation::get_schema_creation_status::GetSchemaCreationStatusError::NotFoundException(inner) => Error::NotFoundException(inner),
1348 crate::operation::get_schema_creation_status::GetSchemaCreationStatusError::UnauthorizedException(inner) => {
1349 Error::UnauthorizedException(inner)
1350 }
1351 crate::operation::get_schema_creation_status::GetSchemaCreationStatusError::Unhandled(inner) => Error::Unhandled(inner),
1352 }
1353 }
1354}
1355impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_source_api_association::GetSourceApiAssociationError, R>>
1356 for Error
1357where
1358 R: Send + Sync + std::fmt::Debug + 'static,
1359{
1360 fn from(
1361 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_source_api_association::GetSourceApiAssociationError, R>,
1362 ) -> Self {
1363 match err {
1364 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1365 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1366 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1367 source: err.into(),
1368 }),
1369 }
1370 }
1371}
1372impl From<crate::operation::get_source_api_association::GetSourceApiAssociationError> for Error {
1373 fn from(err: crate::operation::get_source_api_association::GetSourceApiAssociationError) -> Self {
1374 match err {
1375 crate::operation::get_source_api_association::GetSourceApiAssociationError::BadRequestException(inner) => {
1376 Error::BadRequestException(inner)
1377 }
1378 crate::operation::get_source_api_association::GetSourceApiAssociationError::InternalFailureException(inner) => {
1379 Error::InternalFailureException(inner)
1380 }
1381 crate::operation::get_source_api_association::GetSourceApiAssociationError::NotFoundException(inner) => Error::NotFoundException(inner),
1382 crate::operation::get_source_api_association::GetSourceApiAssociationError::UnauthorizedException(inner) => {
1383 Error::UnauthorizedException(inner)
1384 }
1385 crate::operation::get_source_api_association::GetSourceApiAssociationError::Unhandled(inner) => Error::Unhandled(inner),
1386 }
1387 }
1388}
1389impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_type::GetTypeError, R>> for Error
1390where
1391 R: Send + Sync + std::fmt::Debug + 'static,
1392{
1393 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_type::GetTypeError, R>) -> Self {
1394 match err {
1395 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1396 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1397 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1398 source: err.into(),
1399 }),
1400 }
1401 }
1402}
1403impl From<crate::operation::get_type::GetTypeError> for Error {
1404 fn from(err: crate::operation::get_type::GetTypeError) -> Self {
1405 match err {
1406 crate::operation::get_type::GetTypeError::BadRequestException(inner) => Error::BadRequestException(inner),
1407 crate::operation::get_type::GetTypeError::ConcurrentModificationException(inner) => Error::ConcurrentModificationException(inner),
1408 crate::operation::get_type::GetTypeError::InternalFailureException(inner) => Error::InternalFailureException(inner),
1409 crate::operation::get_type::GetTypeError::NotFoundException(inner) => Error::NotFoundException(inner),
1410 crate::operation::get_type::GetTypeError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1411 crate::operation::get_type::GetTypeError::Unhandled(inner) => Error::Unhandled(inner),
1412 }
1413 }
1414}
1415impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_api_keys::ListApiKeysError, R>> for Error
1416where
1417 R: Send + Sync + std::fmt::Debug + 'static,
1418{
1419 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_api_keys::ListApiKeysError, R>) -> Self {
1420 match err {
1421 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1422 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1423 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1424 source: err.into(),
1425 }),
1426 }
1427 }
1428}
1429impl From<crate::operation::list_api_keys::ListApiKeysError> for Error {
1430 fn from(err: crate::operation::list_api_keys::ListApiKeysError) -> Self {
1431 match err {
1432 crate::operation::list_api_keys::ListApiKeysError::BadRequestException(inner) => Error::BadRequestException(inner),
1433 crate::operation::list_api_keys::ListApiKeysError::InternalFailureException(inner) => Error::InternalFailureException(inner),
1434 crate::operation::list_api_keys::ListApiKeysError::NotFoundException(inner) => Error::NotFoundException(inner),
1435 crate::operation::list_api_keys::ListApiKeysError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1436 crate::operation::list_api_keys::ListApiKeysError::Unhandled(inner) => Error::Unhandled(inner),
1437 }
1438 }
1439}
1440impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_apis::ListApisError, R>> for Error
1441where
1442 R: Send + Sync + std::fmt::Debug + 'static,
1443{
1444 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_apis::ListApisError, R>) -> Self {
1445 match err {
1446 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1447 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1448 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1449 source: err.into(),
1450 }),
1451 }
1452 }
1453}
1454impl From<crate::operation::list_apis::ListApisError> for Error {
1455 fn from(err: crate::operation::list_apis::ListApisError) -> Self {
1456 match err {
1457 crate::operation::list_apis::ListApisError::BadRequestException(inner) => Error::BadRequestException(inner),
1458 crate::operation::list_apis::ListApisError::InternalFailureException(inner) => Error::InternalFailureException(inner),
1459 crate::operation::list_apis::ListApisError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1460 crate::operation::list_apis::ListApisError::Unhandled(inner) => Error::Unhandled(inner),
1461 }
1462 }
1463}
1464impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_channel_namespaces::ListChannelNamespacesError, R>> for Error
1465where
1466 R: Send + Sync + std::fmt::Debug + 'static,
1467{
1468 fn from(
1469 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_channel_namespaces::ListChannelNamespacesError, R>,
1470 ) -> Self {
1471 match err {
1472 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1473 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1474 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1475 source: err.into(),
1476 }),
1477 }
1478 }
1479}
1480impl From<crate::operation::list_channel_namespaces::ListChannelNamespacesError> for Error {
1481 fn from(err: crate::operation::list_channel_namespaces::ListChannelNamespacesError) -> Self {
1482 match err {
1483 crate::operation::list_channel_namespaces::ListChannelNamespacesError::BadRequestException(inner) => Error::BadRequestException(inner),
1484 crate::operation::list_channel_namespaces::ListChannelNamespacesError::InternalFailureException(inner) => {
1485 Error::InternalFailureException(inner)
1486 }
1487 crate::operation::list_channel_namespaces::ListChannelNamespacesError::NotFoundException(inner) => Error::NotFoundException(inner),
1488 crate::operation::list_channel_namespaces::ListChannelNamespacesError::UnauthorizedException(inner) => {
1489 Error::UnauthorizedException(inner)
1490 }
1491 crate::operation::list_channel_namespaces::ListChannelNamespacesError::Unhandled(inner) => Error::Unhandled(inner),
1492 }
1493 }
1494}
1495impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_data_sources::ListDataSourcesError, R>> for Error
1496where
1497 R: Send + Sync + std::fmt::Debug + 'static,
1498{
1499 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_data_sources::ListDataSourcesError, R>) -> Self {
1500 match err {
1501 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1502 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1503 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1504 source: err.into(),
1505 }),
1506 }
1507 }
1508}
1509impl From<crate::operation::list_data_sources::ListDataSourcesError> for Error {
1510 fn from(err: crate::operation::list_data_sources::ListDataSourcesError) -> Self {
1511 match err {
1512 crate::operation::list_data_sources::ListDataSourcesError::BadRequestException(inner) => Error::BadRequestException(inner),
1513 crate::operation::list_data_sources::ListDataSourcesError::InternalFailureException(inner) => Error::InternalFailureException(inner),
1514 crate::operation::list_data_sources::ListDataSourcesError::NotFoundException(inner) => Error::NotFoundException(inner),
1515 crate::operation::list_data_sources::ListDataSourcesError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1516 crate::operation::list_data_sources::ListDataSourcesError::Unhandled(inner) => Error::Unhandled(inner),
1517 }
1518 }
1519}
1520impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_domain_names::ListDomainNamesError, R>> for Error
1521where
1522 R: Send + Sync + std::fmt::Debug + 'static,
1523{
1524 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_domain_names::ListDomainNamesError, R>) -> Self {
1525 match err {
1526 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1527 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1528 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1529 source: err.into(),
1530 }),
1531 }
1532 }
1533}
1534impl From<crate::operation::list_domain_names::ListDomainNamesError> for Error {
1535 fn from(err: crate::operation::list_domain_names::ListDomainNamesError) -> Self {
1536 match err {
1537 crate::operation::list_domain_names::ListDomainNamesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1538 crate::operation::list_domain_names::ListDomainNamesError::BadRequestException(inner) => Error::BadRequestException(inner),
1539 crate::operation::list_domain_names::ListDomainNamesError::InternalFailureException(inner) => Error::InternalFailureException(inner),
1540 crate::operation::list_domain_names::ListDomainNamesError::Unhandled(inner) => Error::Unhandled(inner),
1541 }
1542 }
1543}
1544impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_functions::ListFunctionsError, R>> for Error
1545where
1546 R: Send + Sync + std::fmt::Debug + 'static,
1547{
1548 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_functions::ListFunctionsError, R>) -> 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::list_functions::ListFunctionsError> for Error {
1559 fn from(err: crate::operation::list_functions::ListFunctionsError) -> Self {
1560 match err {
1561 crate::operation::list_functions::ListFunctionsError::BadRequestException(inner) => Error::BadRequestException(inner),
1562 crate::operation::list_functions::ListFunctionsError::InternalFailureException(inner) => Error::InternalFailureException(inner),
1563 crate::operation::list_functions::ListFunctionsError::NotFoundException(inner) => Error::NotFoundException(inner),
1564 crate::operation::list_functions::ListFunctionsError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1565 crate::operation::list_functions::ListFunctionsError::Unhandled(inner) => Error::Unhandled(inner),
1566 }
1567 }
1568}
1569impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_graphql_apis::ListGraphqlApisError, R>> for Error
1570where
1571 R: Send + Sync + std::fmt::Debug + 'static,
1572{
1573 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_graphql_apis::ListGraphqlApisError, R>) -> Self {
1574 match err {
1575 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1576 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1577 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1578 source: err.into(),
1579 }),
1580 }
1581 }
1582}
1583impl From<crate::operation::list_graphql_apis::ListGraphqlApisError> for Error {
1584 fn from(err: crate::operation::list_graphql_apis::ListGraphqlApisError) -> Self {
1585 match err {
1586 crate::operation::list_graphql_apis::ListGraphqlApisError::BadRequestException(inner) => Error::BadRequestException(inner),
1587 crate::operation::list_graphql_apis::ListGraphqlApisError::InternalFailureException(inner) => Error::InternalFailureException(inner),
1588 crate::operation::list_graphql_apis::ListGraphqlApisError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1589 crate::operation::list_graphql_apis::ListGraphqlApisError::Unhandled(inner) => Error::Unhandled(inner),
1590 }
1591 }
1592}
1593impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_resolvers::ListResolversError, R>> for Error
1594where
1595 R: Send + Sync + std::fmt::Debug + 'static,
1596{
1597 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_resolvers::ListResolversError, R>) -> Self {
1598 match err {
1599 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1600 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1601 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1602 source: err.into(),
1603 }),
1604 }
1605 }
1606}
1607impl From<crate::operation::list_resolvers::ListResolversError> for Error {
1608 fn from(err: crate::operation::list_resolvers::ListResolversError) -> Self {
1609 match err {
1610 crate::operation::list_resolvers::ListResolversError::BadRequestException(inner) => Error::BadRequestException(inner),
1611 crate::operation::list_resolvers::ListResolversError::InternalFailureException(inner) => Error::InternalFailureException(inner),
1612 crate::operation::list_resolvers::ListResolversError::NotFoundException(inner) => Error::NotFoundException(inner),
1613 crate::operation::list_resolvers::ListResolversError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1614 crate::operation::list_resolvers::ListResolversError::Unhandled(inner) => Error::Unhandled(inner),
1615 }
1616 }
1617}
1618impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_resolvers_by_function::ListResolversByFunctionError, R>>
1619 for Error
1620where
1621 R: Send + Sync + std::fmt::Debug + 'static,
1622{
1623 fn from(
1624 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_resolvers_by_function::ListResolversByFunctionError, R>,
1625 ) -> Self {
1626 match err {
1627 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1628 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1629 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1630 source: err.into(),
1631 }),
1632 }
1633 }
1634}
1635impl From<crate::operation::list_resolvers_by_function::ListResolversByFunctionError> for Error {
1636 fn from(err: crate::operation::list_resolvers_by_function::ListResolversByFunctionError) -> Self {
1637 match err {
1638 crate::operation::list_resolvers_by_function::ListResolversByFunctionError::BadRequestException(inner) => {
1639 Error::BadRequestException(inner)
1640 }
1641 crate::operation::list_resolvers_by_function::ListResolversByFunctionError::InternalFailureException(inner) => {
1642 Error::InternalFailureException(inner)
1643 }
1644 crate::operation::list_resolvers_by_function::ListResolversByFunctionError::NotFoundException(inner) => Error::NotFoundException(inner),
1645 crate::operation::list_resolvers_by_function::ListResolversByFunctionError::UnauthorizedException(inner) => {
1646 Error::UnauthorizedException(inner)
1647 }
1648 crate::operation::list_resolvers_by_function::ListResolversByFunctionError::Unhandled(inner) => Error::Unhandled(inner),
1649 }
1650 }
1651}
1652impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_source_api_associations::ListSourceApiAssociationsError, R>>
1653 for Error
1654where
1655 R: Send + Sync + std::fmt::Debug + 'static,
1656{
1657 fn from(
1658 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_source_api_associations::ListSourceApiAssociationsError, R>,
1659 ) -> Self {
1660 match err {
1661 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1662 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1663 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1664 source: err.into(),
1665 }),
1666 }
1667 }
1668}
1669impl From<crate::operation::list_source_api_associations::ListSourceApiAssociationsError> for Error {
1670 fn from(err: crate::operation::list_source_api_associations::ListSourceApiAssociationsError) -> Self {
1671 match err {
1672 crate::operation::list_source_api_associations::ListSourceApiAssociationsError::BadRequestException(inner) => {
1673 Error::BadRequestException(inner)
1674 }
1675 crate::operation::list_source_api_associations::ListSourceApiAssociationsError::InternalFailureException(inner) => {
1676 Error::InternalFailureException(inner)
1677 }
1678 crate::operation::list_source_api_associations::ListSourceApiAssociationsError::NotFoundException(inner) => {
1679 Error::NotFoundException(inner)
1680 }
1681 crate::operation::list_source_api_associations::ListSourceApiAssociationsError::UnauthorizedException(inner) => {
1682 Error::UnauthorizedException(inner)
1683 }
1684 crate::operation::list_source_api_associations::ListSourceApiAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
1685 }
1686 }
1687}
1688impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
1689where
1690 R: Send + Sync + std::fmt::Debug + 'static,
1691{
1692 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
1693 match err {
1694 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1695 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1696 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1697 source: err.into(),
1698 }),
1699 }
1700 }
1701}
1702impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
1703 fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
1704 match err {
1705 crate::operation::list_tags_for_resource::ListTagsForResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1706 crate::operation::list_tags_for_resource::ListTagsForResourceError::BadRequestException(inner) => Error::BadRequestException(inner),
1707 crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalFailureException(inner) => {
1708 Error::InternalFailureException(inner)
1709 }
1710 crate::operation::list_tags_for_resource::ListTagsForResourceError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1711 crate::operation::list_tags_for_resource::ListTagsForResourceError::NotFoundException(inner) => Error::NotFoundException(inner),
1712 crate::operation::list_tags_for_resource::ListTagsForResourceError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1713 crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
1714 }
1715 }
1716}
1717impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_types::ListTypesError, R>> for Error
1718where
1719 R: Send + Sync + std::fmt::Debug + 'static,
1720{
1721 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_types::ListTypesError, R>) -> Self {
1722 match err {
1723 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1724 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1725 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1726 source: err.into(),
1727 }),
1728 }
1729 }
1730}
1731impl From<crate::operation::list_types::ListTypesError> for Error {
1732 fn from(err: crate::operation::list_types::ListTypesError) -> Self {
1733 match err {
1734 crate::operation::list_types::ListTypesError::BadRequestException(inner) => Error::BadRequestException(inner),
1735 crate::operation::list_types::ListTypesError::ConcurrentModificationException(inner) => Error::ConcurrentModificationException(inner),
1736 crate::operation::list_types::ListTypesError::InternalFailureException(inner) => Error::InternalFailureException(inner),
1737 crate::operation::list_types::ListTypesError::NotFoundException(inner) => Error::NotFoundException(inner),
1738 crate::operation::list_types::ListTypesError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1739 crate::operation::list_types::ListTypesError::Unhandled(inner) => Error::Unhandled(inner),
1740 }
1741 }
1742}
1743impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_types_by_association::ListTypesByAssociationError, R>>
1744 for Error
1745where
1746 R: Send + Sync + std::fmt::Debug + 'static,
1747{
1748 fn from(
1749 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_types_by_association::ListTypesByAssociationError, R>,
1750 ) -> Self {
1751 match err {
1752 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1753 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1754 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1755 source: err.into(),
1756 }),
1757 }
1758 }
1759}
1760impl From<crate::operation::list_types_by_association::ListTypesByAssociationError> for Error {
1761 fn from(err: crate::operation::list_types_by_association::ListTypesByAssociationError) -> Self {
1762 match err {
1763 crate::operation::list_types_by_association::ListTypesByAssociationError::BadRequestException(inner) => Error::BadRequestException(inner),
1764 crate::operation::list_types_by_association::ListTypesByAssociationError::ConcurrentModificationException(inner) => {
1765 Error::ConcurrentModificationException(inner)
1766 }
1767 crate::operation::list_types_by_association::ListTypesByAssociationError::InternalFailureException(inner) => {
1768 Error::InternalFailureException(inner)
1769 }
1770 crate::operation::list_types_by_association::ListTypesByAssociationError::NotFoundException(inner) => Error::NotFoundException(inner),
1771 crate::operation::list_types_by_association::ListTypesByAssociationError::UnauthorizedException(inner) => {
1772 Error::UnauthorizedException(inner)
1773 }
1774 crate::operation::list_types_by_association::ListTypesByAssociationError::Unhandled(inner) => Error::Unhandled(inner),
1775 }
1776 }
1777}
1778impl<R>
1779 From<
1780 ::aws_smithy_runtime_api::client::result::SdkError<
1781 crate::operation::put_graphql_api_environment_variables::PutGraphqlApiEnvironmentVariablesError,
1782 R,
1783 >,
1784 > for Error
1785where
1786 R: Send + Sync + std::fmt::Debug + 'static,
1787{
1788 fn from(
1789 err: ::aws_smithy_runtime_api::client::result::SdkError<
1790 crate::operation::put_graphql_api_environment_variables::PutGraphqlApiEnvironmentVariablesError,
1791 R,
1792 >,
1793 ) -> Self {
1794 match err {
1795 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1796 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1797 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1798 source: err.into(),
1799 }),
1800 }
1801 }
1802}
1803impl From<crate::operation::put_graphql_api_environment_variables::PutGraphqlApiEnvironmentVariablesError> for Error {
1804 fn from(err: crate::operation::put_graphql_api_environment_variables::PutGraphqlApiEnvironmentVariablesError) -> Self {
1805 match err {
1806 crate::operation::put_graphql_api_environment_variables::PutGraphqlApiEnvironmentVariablesError::AccessDeniedException(inner) => {
1807 Error::AccessDeniedException(inner)
1808 }
1809 crate::operation::put_graphql_api_environment_variables::PutGraphqlApiEnvironmentVariablesError::BadRequestException(inner) => {
1810 Error::BadRequestException(inner)
1811 }
1812 crate::operation::put_graphql_api_environment_variables::PutGraphqlApiEnvironmentVariablesError::ConcurrentModificationException(
1813 inner,
1814 ) => Error::ConcurrentModificationException(inner),
1815 crate::operation::put_graphql_api_environment_variables::PutGraphqlApiEnvironmentVariablesError::InternalFailureException(inner) => {
1816 Error::InternalFailureException(inner)
1817 }
1818 crate::operation::put_graphql_api_environment_variables::PutGraphqlApiEnvironmentVariablesError::NotFoundException(inner) => {
1819 Error::NotFoundException(inner)
1820 }
1821 crate::operation::put_graphql_api_environment_variables::PutGraphqlApiEnvironmentVariablesError::UnauthorizedException(inner) => {
1822 Error::UnauthorizedException(inner)
1823 }
1824 crate::operation::put_graphql_api_environment_variables::PutGraphqlApiEnvironmentVariablesError::Unhandled(inner) => {
1825 Error::Unhandled(inner)
1826 }
1827 }
1828 }
1829}
1830impl<R>
1831 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_data_source_introspection::StartDataSourceIntrospectionError, R>>
1832 for Error
1833where
1834 R: Send + Sync + std::fmt::Debug + 'static,
1835{
1836 fn from(
1837 err: ::aws_smithy_runtime_api::client::result::SdkError<
1838 crate::operation::start_data_source_introspection::StartDataSourceIntrospectionError,
1839 R,
1840 >,
1841 ) -> Self {
1842 match err {
1843 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1844 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1845 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1846 source: err.into(),
1847 }),
1848 }
1849 }
1850}
1851impl From<crate::operation::start_data_source_introspection::StartDataSourceIntrospectionError> for Error {
1852 fn from(err: crate::operation::start_data_source_introspection::StartDataSourceIntrospectionError) -> Self {
1853 match err {
1854 crate::operation::start_data_source_introspection::StartDataSourceIntrospectionError::BadRequestException(inner) => {
1855 Error::BadRequestException(inner)
1856 }
1857 crate::operation::start_data_source_introspection::StartDataSourceIntrospectionError::InternalFailureException(inner) => {
1858 Error::InternalFailureException(inner)
1859 }
1860 crate::operation::start_data_source_introspection::StartDataSourceIntrospectionError::NotFoundException(inner) => {
1861 Error::NotFoundException(inner)
1862 }
1863 crate::operation::start_data_source_introspection::StartDataSourceIntrospectionError::UnauthorizedException(inner) => {
1864 Error::UnauthorizedException(inner)
1865 }
1866 crate::operation::start_data_source_introspection::StartDataSourceIntrospectionError::Unhandled(inner) => Error::Unhandled(inner),
1867 }
1868 }
1869}
1870impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_schema_creation::StartSchemaCreationError, R>> for Error
1871where
1872 R: Send + Sync + std::fmt::Debug + 'static,
1873{
1874 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_schema_creation::StartSchemaCreationError, R>) -> Self {
1875 match err {
1876 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1877 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1878 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1879 source: err.into(),
1880 }),
1881 }
1882 }
1883}
1884impl From<crate::operation::start_schema_creation::StartSchemaCreationError> for Error {
1885 fn from(err: crate::operation::start_schema_creation::StartSchemaCreationError) -> Self {
1886 match err {
1887 crate::operation::start_schema_creation::StartSchemaCreationError::BadRequestException(inner) => Error::BadRequestException(inner),
1888 crate::operation::start_schema_creation::StartSchemaCreationError::ConcurrentModificationException(inner) => {
1889 Error::ConcurrentModificationException(inner)
1890 }
1891 crate::operation::start_schema_creation::StartSchemaCreationError::InternalFailureException(inner) => {
1892 Error::InternalFailureException(inner)
1893 }
1894 crate::operation::start_schema_creation::StartSchemaCreationError::NotFoundException(inner) => Error::NotFoundException(inner),
1895 crate::operation::start_schema_creation::StartSchemaCreationError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1896 crate::operation::start_schema_creation::StartSchemaCreationError::Unhandled(inner) => Error::Unhandled(inner),
1897 }
1898 }
1899}
1900impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_schema_merge::StartSchemaMergeError, 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::start_schema_merge::StartSchemaMergeError, 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::start_schema_merge::StartSchemaMergeError> for Error {
1915 fn from(err: crate::operation::start_schema_merge::StartSchemaMergeError) -> Self {
1916 match err {
1917 crate::operation::start_schema_merge::StartSchemaMergeError::BadRequestException(inner) => Error::BadRequestException(inner),
1918 crate::operation::start_schema_merge::StartSchemaMergeError::ConcurrentModificationException(inner) => {
1919 Error::ConcurrentModificationException(inner)
1920 }
1921 crate::operation::start_schema_merge::StartSchemaMergeError::InternalFailureException(inner) => Error::InternalFailureException(inner),
1922 crate::operation::start_schema_merge::StartSchemaMergeError::NotFoundException(inner) => Error::NotFoundException(inner),
1923 crate::operation::start_schema_merge::StartSchemaMergeError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1924 crate::operation::start_schema_merge::StartSchemaMergeError::Unhandled(inner) => Error::Unhandled(inner),
1925 }
1926 }
1927}
1928impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
1929where
1930 R: Send + Sync + std::fmt::Debug + 'static,
1931{
1932 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
1933 match err {
1934 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1935 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1936 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1937 source: err.into(),
1938 }),
1939 }
1940 }
1941}
1942impl From<crate::operation::tag_resource::TagResourceError> for Error {
1943 fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
1944 match err {
1945 crate::operation::tag_resource::TagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1946 crate::operation::tag_resource::TagResourceError::BadRequestException(inner) => Error::BadRequestException(inner),
1947 crate::operation::tag_resource::TagResourceError::InternalFailureException(inner) => Error::InternalFailureException(inner),
1948 crate::operation::tag_resource::TagResourceError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1949 crate::operation::tag_resource::TagResourceError::NotFoundException(inner) => Error::NotFoundException(inner),
1950 crate::operation::tag_resource::TagResourceError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1951 crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1952 }
1953 }
1954}
1955impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
1956where
1957 R: Send + Sync + std::fmt::Debug + 'static,
1958{
1959 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
1960 match err {
1961 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1962 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1963 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1964 source: err.into(),
1965 }),
1966 }
1967 }
1968}
1969impl From<crate::operation::untag_resource::UntagResourceError> for Error {
1970 fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
1971 match err {
1972 crate::operation::untag_resource::UntagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1973 crate::operation::untag_resource::UntagResourceError::BadRequestException(inner) => Error::BadRequestException(inner),
1974 crate::operation::untag_resource::UntagResourceError::InternalFailureException(inner) => Error::InternalFailureException(inner),
1975 crate::operation::untag_resource::UntagResourceError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1976 crate::operation::untag_resource::UntagResourceError::NotFoundException(inner) => Error::NotFoundException(inner),
1977 crate::operation::untag_resource::UntagResourceError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1978 crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1979 }
1980 }
1981}
1982impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_api::UpdateApiError, R>> for Error
1983where
1984 R: Send + Sync + std::fmt::Debug + 'static,
1985{
1986 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_api::UpdateApiError, R>) -> Self {
1987 match err {
1988 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1989 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1990 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1991 source: err.into(),
1992 }),
1993 }
1994 }
1995}
1996impl From<crate::operation::update_api::UpdateApiError> for Error {
1997 fn from(err: crate::operation::update_api::UpdateApiError) -> Self {
1998 match err {
1999 crate::operation::update_api::UpdateApiError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2000 crate::operation::update_api::UpdateApiError::BadRequestException(inner) => Error::BadRequestException(inner),
2001 crate::operation::update_api::UpdateApiError::ConcurrentModificationException(inner) => Error::ConcurrentModificationException(inner),
2002 crate::operation::update_api::UpdateApiError::InternalFailureException(inner) => Error::InternalFailureException(inner),
2003 crate::operation::update_api::UpdateApiError::NotFoundException(inner) => Error::NotFoundException(inner),
2004 crate::operation::update_api::UpdateApiError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
2005 crate::operation::update_api::UpdateApiError::Unhandled(inner) => Error::Unhandled(inner),
2006 }
2007 }
2008}
2009impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_api_cache::UpdateApiCacheError, R>> for Error
2010where
2011 R: Send + Sync + std::fmt::Debug + 'static,
2012{
2013 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_api_cache::UpdateApiCacheError, R>) -> Self {
2014 match err {
2015 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2016 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2017 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2018 source: err.into(),
2019 }),
2020 }
2021 }
2022}
2023impl From<crate::operation::update_api_cache::UpdateApiCacheError> for Error {
2024 fn from(err: crate::operation::update_api_cache::UpdateApiCacheError) -> Self {
2025 match err {
2026 crate::operation::update_api_cache::UpdateApiCacheError::BadRequestException(inner) => Error::BadRequestException(inner),
2027 crate::operation::update_api_cache::UpdateApiCacheError::ConcurrentModificationException(inner) => {
2028 Error::ConcurrentModificationException(inner)
2029 }
2030 crate::operation::update_api_cache::UpdateApiCacheError::InternalFailureException(inner) => Error::InternalFailureException(inner),
2031 crate::operation::update_api_cache::UpdateApiCacheError::NotFoundException(inner) => Error::NotFoundException(inner),
2032 crate::operation::update_api_cache::UpdateApiCacheError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
2033 crate::operation::update_api_cache::UpdateApiCacheError::Unhandled(inner) => Error::Unhandled(inner),
2034 }
2035 }
2036}
2037impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_api_key::UpdateApiKeyError, R>> for Error
2038where
2039 R: Send + Sync + std::fmt::Debug + 'static,
2040{
2041 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_api_key::UpdateApiKeyError, R>) -> Self {
2042 match err {
2043 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2044 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2045 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2046 source: err.into(),
2047 }),
2048 }
2049 }
2050}
2051impl From<crate::operation::update_api_key::UpdateApiKeyError> for Error {
2052 fn from(err: crate::operation::update_api_key::UpdateApiKeyError) -> Self {
2053 match err {
2054 crate::operation::update_api_key::UpdateApiKeyError::ApiKeyValidityOutOfBoundsException(inner) => {
2055 Error::ApiKeyValidityOutOfBoundsException(inner)
2056 }
2057 crate::operation::update_api_key::UpdateApiKeyError::BadRequestException(inner) => Error::BadRequestException(inner),
2058 crate::operation::update_api_key::UpdateApiKeyError::InternalFailureException(inner) => Error::InternalFailureException(inner),
2059 crate::operation::update_api_key::UpdateApiKeyError::LimitExceededException(inner) => Error::LimitExceededException(inner),
2060 crate::operation::update_api_key::UpdateApiKeyError::NotFoundException(inner) => Error::NotFoundException(inner),
2061 crate::operation::update_api_key::UpdateApiKeyError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
2062 crate::operation::update_api_key::UpdateApiKeyError::Unhandled(inner) => Error::Unhandled(inner),
2063 }
2064 }
2065}
2066impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_channel_namespace::UpdateChannelNamespaceError, R>> for Error
2067where
2068 R: Send + Sync + std::fmt::Debug + 'static,
2069{
2070 fn from(
2071 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_channel_namespace::UpdateChannelNamespaceError, R>,
2072 ) -> Self {
2073 match err {
2074 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2075 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2076 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2077 source: err.into(),
2078 }),
2079 }
2080 }
2081}
2082impl From<crate::operation::update_channel_namespace::UpdateChannelNamespaceError> for Error {
2083 fn from(err: crate::operation::update_channel_namespace::UpdateChannelNamespaceError) -> Self {
2084 match err {
2085 crate::operation::update_channel_namespace::UpdateChannelNamespaceError::AccessDeniedException(inner) => {
2086 Error::AccessDeniedException(inner)
2087 }
2088 crate::operation::update_channel_namespace::UpdateChannelNamespaceError::BadRequestException(inner) => Error::BadRequestException(inner),
2089 crate::operation::update_channel_namespace::UpdateChannelNamespaceError::ConcurrentModificationException(inner) => {
2090 Error::ConcurrentModificationException(inner)
2091 }
2092 crate::operation::update_channel_namespace::UpdateChannelNamespaceError::InternalFailureException(inner) => {
2093 Error::InternalFailureException(inner)
2094 }
2095 crate::operation::update_channel_namespace::UpdateChannelNamespaceError::NotFoundException(inner) => Error::NotFoundException(inner),
2096 crate::operation::update_channel_namespace::UpdateChannelNamespaceError::UnauthorizedException(inner) => {
2097 Error::UnauthorizedException(inner)
2098 }
2099 crate::operation::update_channel_namespace::UpdateChannelNamespaceError::Unhandled(inner) => Error::Unhandled(inner),
2100 }
2101 }
2102}
2103impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_data_source::UpdateDataSourceError, R>> for Error
2104where
2105 R: Send + Sync + std::fmt::Debug + 'static,
2106{
2107 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_data_source::UpdateDataSourceError, R>) -> Self {
2108 match err {
2109 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2110 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2111 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2112 source: err.into(),
2113 }),
2114 }
2115 }
2116}
2117impl From<crate::operation::update_data_source::UpdateDataSourceError> for Error {
2118 fn from(err: crate::operation::update_data_source::UpdateDataSourceError) -> Self {
2119 match err {
2120 crate::operation::update_data_source::UpdateDataSourceError::BadRequestException(inner) => Error::BadRequestException(inner),
2121 crate::operation::update_data_source::UpdateDataSourceError::ConcurrentModificationException(inner) => {
2122 Error::ConcurrentModificationException(inner)
2123 }
2124 crate::operation::update_data_source::UpdateDataSourceError::InternalFailureException(inner) => Error::InternalFailureException(inner),
2125 crate::operation::update_data_source::UpdateDataSourceError::NotFoundException(inner) => Error::NotFoundException(inner),
2126 crate::operation::update_data_source::UpdateDataSourceError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
2127 crate::operation::update_data_source::UpdateDataSourceError::Unhandled(inner) => Error::Unhandled(inner),
2128 }
2129 }
2130}
2131impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_domain_name::UpdateDomainNameError, R>> for Error
2132where
2133 R: Send + Sync + std::fmt::Debug + 'static,
2134{
2135 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_domain_name::UpdateDomainNameError, R>) -> Self {
2136 match err {
2137 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2138 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2139 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2140 source: err.into(),
2141 }),
2142 }
2143 }
2144}
2145impl From<crate::operation::update_domain_name::UpdateDomainNameError> for Error {
2146 fn from(err: crate::operation::update_domain_name::UpdateDomainNameError) -> Self {
2147 match err {
2148 crate::operation::update_domain_name::UpdateDomainNameError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2149 crate::operation::update_domain_name::UpdateDomainNameError::BadRequestException(inner) => Error::BadRequestException(inner),
2150 crate::operation::update_domain_name::UpdateDomainNameError::ConcurrentModificationException(inner) => {
2151 Error::ConcurrentModificationException(inner)
2152 }
2153 crate::operation::update_domain_name::UpdateDomainNameError::InternalFailureException(inner) => Error::InternalFailureException(inner),
2154 crate::operation::update_domain_name::UpdateDomainNameError::NotFoundException(inner) => Error::NotFoundException(inner),
2155 crate::operation::update_domain_name::UpdateDomainNameError::Unhandled(inner) => Error::Unhandled(inner),
2156 }
2157 }
2158}
2159impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_function::UpdateFunctionError, R>> for Error
2160where
2161 R: Send + Sync + std::fmt::Debug + 'static,
2162{
2163 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_function::UpdateFunctionError, R>) -> Self {
2164 match err {
2165 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2166 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2167 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2168 source: err.into(),
2169 }),
2170 }
2171 }
2172}
2173impl From<crate::operation::update_function::UpdateFunctionError> for Error {
2174 fn from(err: crate::operation::update_function::UpdateFunctionError) -> Self {
2175 match err {
2176 crate::operation::update_function::UpdateFunctionError::BadRequestException(inner) => Error::BadRequestException(inner),
2177 crate::operation::update_function::UpdateFunctionError::ConcurrentModificationException(inner) => {
2178 Error::ConcurrentModificationException(inner)
2179 }
2180 crate::operation::update_function::UpdateFunctionError::InternalFailureException(inner) => Error::InternalFailureException(inner),
2181 crate::operation::update_function::UpdateFunctionError::NotFoundException(inner) => Error::NotFoundException(inner),
2182 crate::operation::update_function::UpdateFunctionError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
2183 crate::operation::update_function::UpdateFunctionError::Unhandled(inner) => Error::Unhandled(inner),
2184 }
2185 }
2186}
2187impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_graphql_api::UpdateGraphqlApiError, R>> for Error
2188where
2189 R: Send + Sync + std::fmt::Debug + 'static,
2190{
2191 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_graphql_api::UpdateGraphqlApiError, R>) -> Self {
2192 match err {
2193 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2194 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2195 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2196 source: err.into(),
2197 }),
2198 }
2199 }
2200}
2201impl From<crate::operation::update_graphql_api::UpdateGraphqlApiError> for Error {
2202 fn from(err: crate::operation::update_graphql_api::UpdateGraphqlApiError) -> Self {
2203 match err {
2204 crate::operation::update_graphql_api::UpdateGraphqlApiError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2205 crate::operation::update_graphql_api::UpdateGraphqlApiError::BadRequestException(inner) => Error::BadRequestException(inner),
2206 crate::operation::update_graphql_api::UpdateGraphqlApiError::ConcurrentModificationException(inner) => {
2207 Error::ConcurrentModificationException(inner)
2208 }
2209 crate::operation::update_graphql_api::UpdateGraphqlApiError::InternalFailureException(inner) => Error::InternalFailureException(inner),
2210 crate::operation::update_graphql_api::UpdateGraphqlApiError::NotFoundException(inner) => Error::NotFoundException(inner),
2211 crate::operation::update_graphql_api::UpdateGraphqlApiError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
2212 crate::operation::update_graphql_api::UpdateGraphqlApiError::Unhandled(inner) => Error::Unhandled(inner),
2213 }
2214 }
2215}
2216impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_resolver::UpdateResolverError, R>> for Error
2217where
2218 R: Send + Sync + std::fmt::Debug + 'static,
2219{
2220 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_resolver::UpdateResolverError, R>) -> Self {
2221 match err {
2222 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2223 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2224 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2225 source: err.into(),
2226 }),
2227 }
2228 }
2229}
2230impl From<crate::operation::update_resolver::UpdateResolverError> for Error {
2231 fn from(err: crate::operation::update_resolver::UpdateResolverError) -> Self {
2232 match err {
2233 crate::operation::update_resolver::UpdateResolverError::BadRequestException(inner) => Error::BadRequestException(inner),
2234 crate::operation::update_resolver::UpdateResolverError::ConcurrentModificationException(inner) => {
2235 Error::ConcurrentModificationException(inner)
2236 }
2237 crate::operation::update_resolver::UpdateResolverError::InternalFailureException(inner) => Error::InternalFailureException(inner),
2238 crate::operation::update_resolver::UpdateResolverError::NotFoundException(inner) => Error::NotFoundException(inner),
2239 crate::operation::update_resolver::UpdateResolverError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
2240 crate::operation::update_resolver::UpdateResolverError::Unhandled(inner) => Error::Unhandled(inner),
2241 }
2242 }
2243}
2244impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_source_api_association::UpdateSourceApiAssociationError, R>>
2245 for Error
2246where
2247 R: Send + Sync + std::fmt::Debug + 'static,
2248{
2249 fn from(
2250 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_source_api_association::UpdateSourceApiAssociationError, R>,
2251 ) -> Self {
2252 match err {
2253 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2254 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2255 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2256 source: err.into(),
2257 }),
2258 }
2259 }
2260}
2261impl From<crate::operation::update_source_api_association::UpdateSourceApiAssociationError> for Error {
2262 fn from(err: crate::operation::update_source_api_association::UpdateSourceApiAssociationError) -> Self {
2263 match err {
2264 crate::operation::update_source_api_association::UpdateSourceApiAssociationError::BadRequestException(inner) => {
2265 Error::BadRequestException(inner)
2266 }
2267 crate::operation::update_source_api_association::UpdateSourceApiAssociationError::ConcurrentModificationException(inner) => {
2268 Error::ConcurrentModificationException(inner)
2269 }
2270 crate::operation::update_source_api_association::UpdateSourceApiAssociationError::InternalFailureException(inner) => {
2271 Error::InternalFailureException(inner)
2272 }
2273 crate::operation::update_source_api_association::UpdateSourceApiAssociationError::NotFoundException(inner) => {
2274 Error::NotFoundException(inner)
2275 }
2276 crate::operation::update_source_api_association::UpdateSourceApiAssociationError::UnauthorizedException(inner) => {
2277 Error::UnauthorizedException(inner)
2278 }
2279 crate::operation::update_source_api_association::UpdateSourceApiAssociationError::Unhandled(inner) => Error::Unhandled(inner),
2280 }
2281 }
2282}
2283impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_type::UpdateTypeError, R>> for Error
2284where
2285 R: Send + Sync + std::fmt::Debug + 'static,
2286{
2287 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_type::UpdateTypeError, R>) -> Self {
2288 match err {
2289 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2290 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2291 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2292 source: err.into(),
2293 }),
2294 }
2295 }
2296}
2297impl From<crate::operation::update_type::UpdateTypeError> for Error {
2298 fn from(err: crate::operation::update_type::UpdateTypeError) -> Self {
2299 match err {
2300 crate::operation::update_type::UpdateTypeError::BadRequestException(inner) => Error::BadRequestException(inner),
2301 crate::operation::update_type::UpdateTypeError::ConcurrentModificationException(inner) => Error::ConcurrentModificationException(inner),
2302 crate::operation::update_type::UpdateTypeError::InternalFailureException(inner) => Error::InternalFailureException(inner),
2303 crate::operation::update_type::UpdateTypeError::NotFoundException(inner) => Error::NotFoundException(inner),
2304 crate::operation::update_type::UpdateTypeError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
2305 crate::operation::update_type::UpdateTypeError::Unhandled(inner) => Error::Unhandled(inner),
2306 }
2307 }
2308}
2309impl ::std::error::Error for Error {
2310 fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
2311 match self {
2312 Error::AccessDeniedException(inner) => inner.source(),
2313 Error::ApiKeyLimitExceededException(inner) => inner.source(),
2314 Error::ApiKeyValidityOutOfBoundsException(inner) => inner.source(),
2315 Error::ApiLimitExceededException(inner) => inner.source(),
2316 Error::BadRequestException(inner) => inner.source(),
2317 Error::ConcurrentModificationException(inner) => inner.source(),
2318 Error::ConflictException(inner) => inner.source(),
2319 Error::GraphQlSchemaException(inner) => inner.source(),
2320 Error::InternalFailureException(inner) => inner.source(),
2321 Error::LimitExceededException(inner) => inner.source(),
2322 Error::NotFoundException(inner) => inner.source(),
2323 Error::ServiceQuotaExceededException(inner) => inner.source(),
2324 Error::UnauthorizedException(inner) => inner.source(),
2325 Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
2326 }
2327 }
2328}
2329impl ::aws_types::request_id::RequestId for Error {
2330 fn request_id(&self) -> Option<&str> {
2331 match self {
2332 Self::AccessDeniedException(e) => e.request_id(),
2333 Self::ApiKeyLimitExceededException(e) => e.request_id(),
2334 Self::ApiKeyValidityOutOfBoundsException(e) => e.request_id(),
2335 Self::ApiLimitExceededException(e) => e.request_id(),
2336 Self::BadRequestException(e) => e.request_id(),
2337 Self::ConcurrentModificationException(e) => e.request_id(),
2338 Self::ConflictException(e) => e.request_id(),
2339 Self::GraphQlSchemaException(e) => e.request_id(),
2340 Self::InternalFailureException(e) => e.request_id(),
2341 Self::LimitExceededException(e) => e.request_id(),
2342 Self::NotFoundException(e) => e.request_id(),
2343 Self::ServiceQuotaExceededException(e) => e.request_id(),
2344 Self::UnauthorizedException(e) => e.request_id(),
2345 Self::Unhandled(e) => e.meta.request_id(),
2346 }
2347 }
2348}