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