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