1#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6 AlreadyExistsException(crate::types::error::AlreadyExistsException),
8 CfnRegistryException(crate::types::error::CfnRegistryException),
10 ChangeSetNotFoundException(crate::types::error::ChangeSetNotFoundException),
12 ConcurrentResourcesLimitExceededException(crate::types::error::ConcurrentResourcesLimitExceededException),
14 CreatedButModifiedException(crate::types::error::CreatedButModifiedException),
16 GeneratedTemplateNotFoundException(crate::types::error::GeneratedTemplateNotFoundException),
18 HookResultNotFoundException(crate::types::error::HookResultNotFoundException),
20 InsufficientCapabilitiesException(crate::types::error::InsufficientCapabilitiesException),
22 InvalidChangeSetStatusException(crate::types::error::InvalidChangeSetStatusException),
24 InvalidOperationException(crate::types::error::InvalidOperationException),
26 InvalidStateTransitionException(crate::types::error::InvalidStateTransitionException),
28 LimitExceededException(crate::types::error::LimitExceededException),
31 NameAlreadyExistsException(crate::types::error::NameAlreadyExistsException),
33 OperationIdAlreadyExistsException(crate::types::error::OperationIdAlreadyExistsException),
35 OperationInProgressException(crate::types::error::OperationInProgressException),
37 OperationNotFoundException(crate::types::error::OperationNotFoundException),
39 OperationStatusCheckFailedException(crate::types::error::OperationStatusCheckFailedException),
41 ResourceScanInProgressException(crate::types::error::ResourceScanInProgressException),
43 ResourceScanLimitExceededException(crate::types::error::ResourceScanLimitExceededException),
53 ResourceScanNotFoundException(crate::types::error::ResourceScanNotFoundException),
55 StackInstanceNotFoundException(crate::types::error::StackInstanceNotFoundException),
57 StackNotFoundException(crate::types::error::StackNotFoundException),
59 StackRefactorNotFoundException(crate::types::error::StackRefactorNotFoundException),
61 StackSetNotEmptyException(crate::types::error::StackSetNotEmptyException),
63 StackSetNotFoundException(crate::types::error::StackSetNotFoundException),
65 StaleRequestException(crate::types::error::StaleRequestException),
67 TokenAlreadyExistsException(crate::types::error::TokenAlreadyExistsException),
69 TypeConfigurationNotFoundException(crate::types::error::TypeConfigurationNotFoundException),
71 TypeNotFoundException(crate::types::error::TypeNotFoundException),
73 #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
75 variable wildcard pattern and check `.code()`:
76 \
77 `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
78 \
79 See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
80 Unhandled(crate::error::sealed_unhandled::Unhandled),
81}
82impl ::std::fmt::Display for Error {
83 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
84 match self {
85 Error::AlreadyExistsException(inner) => inner.fmt(f),
86 Error::CfnRegistryException(inner) => inner.fmt(f),
87 Error::ChangeSetNotFoundException(inner) => inner.fmt(f),
88 Error::ConcurrentResourcesLimitExceededException(inner) => inner.fmt(f),
89 Error::CreatedButModifiedException(inner) => inner.fmt(f),
90 Error::GeneratedTemplateNotFoundException(inner) => inner.fmt(f),
91 Error::HookResultNotFoundException(inner) => inner.fmt(f),
92 Error::InsufficientCapabilitiesException(inner) => inner.fmt(f),
93 Error::InvalidChangeSetStatusException(inner) => inner.fmt(f),
94 Error::InvalidOperationException(inner) => inner.fmt(f),
95 Error::InvalidStateTransitionException(inner) => inner.fmt(f),
96 Error::LimitExceededException(inner) => inner.fmt(f),
97 Error::NameAlreadyExistsException(inner) => inner.fmt(f),
98 Error::OperationIdAlreadyExistsException(inner) => inner.fmt(f),
99 Error::OperationInProgressException(inner) => inner.fmt(f),
100 Error::OperationNotFoundException(inner) => inner.fmt(f),
101 Error::OperationStatusCheckFailedException(inner) => inner.fmt(f),
102 Error::ResourceScanInProgressException(inner) => inner.fmt(f),
103 Error::ResourceScanLimitExceededException(inner) => inner.fmt(f),
104 Error::ResourceScanNotFoundException(inner) => inner.fmt(f),
105 Error::StackInstanceNotFoundException(inner) => inner.fmt(f),
106 Error::StackNotFoundException(inner) => inner.fmt(f),
107 Error::StackRefactorNotFoundException(inner) => inner.fmt(f),
108 Error::StackSetNotEmptyException(inner) => inner.fmt(f),
109 Error::StackSetNotFoundException(inner) => inner.fmt(f),
110 Error::StaleRequestException(inner) => inner.fmt(f),
111 Error::TokenAlreadyExistsException(inner) => inner.fmt(f),
112 Error::TypeConfigurationNotFoundException(inner) => inner.fmt(f),
113 Error::TypeNotFoundException(inner) => inner.fmt(f),
114 Error::Unhandled(_) => {
115 if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
116 write!(f, "unhandled error ({code})")
117 } else {
118 f.write_str("unhandled error")
119 }
120 }
121 }
122 }
123}
124impl From<::aws_smithy_types::error::operation::BuildError> for Error {
125 fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
126 Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
127 source: value.into(),
128 meta: ::std::default::Default::default(),
129 })
130 }
131}
132impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
133 fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
134 match self {
135 Self::AlreadyExistsException(inner) => inner.meta(),
136 Self::CfnRegistryException(inner) => inner.meta(),
137 Self::ChangeSetNotFoundException(inner) => inner.meta(),
138 Self::ConcurrentResourcesLimitExceededException(inner) => inner.meta(),
139 Self::CreatedButModifiedException(inner) => inner.meta(),
140 Self::GeneratedTemplateNotFoundException(inner) => inner.meta(),
141 Self::HookResultNotFoundException(inner) => inner.meta(),
142 Self::InsufficientCapabilitiesException(inner) => inner.meta(),
143 Self::InvalidChangeSetStatusException(inner) => inner.meta(),
144 Self::InvalidOperationException(inner) => inner.meta(),
145 Self::InvalidStateTransitionException(inner) => inner.meta(),
146 Self::LimitExceededException(inner) => inner.meta(),
147 Self::NameAlreadyExistsException(inner) => inner.meta(),
148 Self::OperationIdAlreadyExistsException(inner) => inner.meta(),
149 Self::OperationInProgressException(inner) => inner.meta(),
150 Self::OperationNotFoundException(inner) => inner.meta(),
151 Self::OperationStatusCheckFailedException(inner) => inner.meta(),
152 Self::ResourceScanInProgressException(inner) => inner.meta(),
153 Self::ResourceScanLimitExceededException(inner) => inner.meta(),
154 Self::ResourceScanNotFoundException(inner) => inner.meta(),
155 Self::StackInstanceNotFoundException(inner) => inner.meta(),
156 Self::StackNotFoundException(inner) => inner.meta(),
157 Self::StackRefactorNotFoundException(inner) => inner.meta(),
158 Self::StackSetNotEmptyException(inner) => inner.meta(),
159 Self::StackSetNotFoundException(inner) => inner.meta(),
160 Self::StaleRequestException(inner) => inner.meta(),
161 Self::TokenAlreadyExistsException(inner) => inner.meta(),
162 Self::TypeConfigurationNotFoundException(inner) => inner.meta(),
163 Self::TypeNotFoundException(inner) => inner.meta(),
164 Self::Unhandled(inner) => &inner.meta,
165 }
166 }
167}
168impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::activate_organizations_access::ActivateOrganizationsAccessError, R>>
169 for Error
170where
171 R: Send + Sync + std::fmt::Debug + 'static,
172{
173 fn from(
174 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::activate_organizations_access::ActivateOrganizationsAccessError, R>,
175 ) -> Self {
176 match err {
177 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
178 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
179 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
180 source: err.into(),
181 }),
182 }
183 }
184}
185impl From<crate::operation::activate_organizations_access::ActivateOrganizationsAccessError> for Error {
186 fn from(err: crate::operation::activate_organizations_access::ActivateOrganizationsAccessError) -> Self {
187 match err {
188 crate::operation::activate_organizations_access::ActivateOrganizationsAccessError::InvalidOperationException(inner) => {
189 Error::InvalidOperationException(inner)
190 }
191 crate::operation::activate_organizations_access::ActivateOrganizationsAccessError::OperationNotFoundException(inner) => {
192 Error::OperationNotFoundException(inner)
193 }
194 crate::operation::activate_organizations_access::ActivateOrganizationsAccessError::Unhandled(inner) => Error::Unhandled(inner),
195 }
196 }
197}
198impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::activate_type::ActivateTypeError, R>> for Error
199where
200 R: Send + Sync + std::fmt::Debug + 'static,
201{
202 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::activate_type::ActivateTypeError, R>) -> Self {
203 match err {
204 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
205 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
206 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
207 source: err.into(),
208 }),
209 }
210 }
211}
212impl From<crate::operation::activate_type::ActivateTypeError> for Error {
213 fn from(err: crate::operation::activate_type::ActivateTypeError) -> Self {
214 match err {
215 crate::operation::activate_type::ActivateTypeError::CfnRegistryException(inner) => Error::CfnRegistryException(inner),
216 crate::operation::activate_type::ActivateTypeError::TypeNotFoundException(inner) => Error::TypeNotFoundException(inner),
217 crate::operation::activate_type::ActivateTypeError::Unhandled(inner) => Error::Unhandled(inner),
218 }
219 }
220}
221impl<R>
222 From<
223 ::aws_smithy_runtime_api::client::result::SdkError<
224 crate::operation::batch_describe_type_configurations::BatchDescribeTypeConfigurationsError,
225 R,
226 >,
227 > for Error
228where
229 R: Send + Sync + std::fmt::Debug + 'static,
230{
231 fn from(
232 err: ::aws_smithy_runtime_api::client::result::SdkError<
233 crate::operation::batch_describe_type_configurations::BatchDescribeTypeConfigurationsError,
234 R,
235 >,
236 ) -> Self {
237 match err {
238 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
239 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
240 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
241 source: err.into(),
242 }),
243 }
244 }
245}
246impl From<crate::operation::batch_describe_type_configurations::BatchDescribeTypeConfigurationsError> for Error {
247 fn from(err: crate::operation::batch_describe_type_configurations::BatchDescribeTypeConfigurationsError) -> Self {
248 match err {
249 crate::operation::batch_describe_type_configurations::BatchDescribeTypeConfigurationsError::CfnRegistryException(inner) => {
250 Error::CfnRegistryException(inner)
251 }
252 crate::operation::batch_describe_type_configurations::BatchDescribeTypeConfigurationsError::TypeConfigurationNotFoundException(inner) => {
253 Error::TypeConfigurationNotFoundException(inner)
254 }
255 crate::operation::batch_describe_type_configurations::BatchDescribeTypeConfigurationsError::Unhandled(inner) => Error::Unhandled(inner),
256 }
257 }
258}
259impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_update_stack::CancelUpdateStackError, R>> for Error
260where
261 R: Send + Sync + std::fmt::Debug + 'static,
262{
263 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_update_stack::CancelUpdateStackError, R>) -> Self {
264 match err {
265 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
266 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
267 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
268 source: err.into(),
269 }),
270 }
271 }
272}
273impl From<crate::operation::cancel_update_stack::CancelUpdateStackError> for Error {
274 fn from(err: crate::operation::cancel_update_stack::CancelUpdateStackError) -> Self {
275 match err {
276 crate::operation::cancel_update_stack::CancelUpdateStackError::TokenAlreadyExistsException(inner) => {
277 Error::TokenAlreadyExistsException(inner)
278 }
279 crate::operation::cancel_update_stack::CancelUpdateStackError::Unhandled(inner) => Error::Unhandled(inner),
280 }
281 }
282}
283impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::continue_update_rollback::ContinueUpdateRollbackError, R>> for Error
284where
285 R: Send + Sync + std::fmt::Debug + 'static,
286{
287 fn from(
288 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::continue_update_rollback::ContinueUpdateRollbackError, R>,
289 ) -> Self {
290 match err {
291 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
292 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
293 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
294 source: err.into(),
295 }),
296 }
297 }
298}
299impl From<crate::operation::continue_update_rollback::ContinueUpdateRollbackError> for Error {
300 fn from(err: crate::operation::continue_update_rollback::ContinueUpdateRollbackError) -> Self {
301 match err {
302 crate::operation::continue_update_rollback::ContinueUpdateRollbackError::TokenAlreadyExistsException(inner) => {
303 Error::TokenAlreadyExistsException(inner)
304 }
305 crate::operation::continue_update_rollback::ContinueUpdateRollbackError::Unhandled(inner) => Error::Unhandled(inner),
306 }
307 }
308}
309impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_change_set::CreateChangeSetError, R>> for Error
310where
311 R: Send + Sync + std::fmt::Debug + 'static,
312{
313 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_change_set::CreateChangeSetError, R>) -> Self {
314 match err {
315 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
316 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
317 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
318 source: err.into(),
319 }),
320 }
321 }
322}
323impl From<crate::operation::create_change_set::CreateChangeSetError> for Error {
324 fn from(err: crate::operation::create_change_set::CreateChangeSetError) -> Self {
325 match err {
326 crate::operation::create_change_set::CreateChangeSetError::AlreadyExistsException(inner) => Error::AlreadyExistsException(inner),
327 crate::operation::create_change_set::CreateChangeSetError::InsufficientCapabilitiesException(inner) => {
328 Error::InsufficientCapabilitiesException(inner)
329 }
330 crate::operation::create_change_set::CreateChangeSetError::LimitExceededException(inner) => Error::LimitExceededException(inner),
331 crate::operation::create_change_set::CreateChangeSetError::Unhandled(inner) => Error::Unhandled(inner),
332 }
333 }
334}
335impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_generated_template::CreateGeneratedTemplateError, R>>
336 for Error
337where
338 R: Send + Sync + std::fmt::Debug + 'static,
339{
340 fn from(
341 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_generated_template::CreateGeneratedTemplateError, R>,
342 ) -> Self {
343 match err {
344 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
345 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
346 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
347 source: err.into(),
348 }),
349 }
350 }
351}
352impl From<crate::operation::create_generated_template::CreateGeneratedTemplateError> for Error {
353 fn from(err: crate::operation::create_generated_template::CreateGeneratedTemplateError) -> Self {
354 match err {
355 crate::operation::create_generated_template::CreateGeneratedTemplateError::AlreadyExistsException(inner) => {
356 Error::AlreadyExistsException(inner)
357 }
358 crate::operation::create_generated_template::CreateGeneratedTemplateError::ConcurrentResourcesLimitExceededException(inner) => {
359 Error::ConcurrentResourcesLimitExceededException(inner)
360 }
361 crate::operation::create_generated_template::CreateGeneratedTemplateError::LimitExceededException(inner) => {
362 Error::LimitExceededException(inner)
363 }
364 crate::operation::create_generated_template::CreateGeneratedTemplateError::Unhandled(inner) => Error::Unhandled(inner),
365 }
366 }
367}
368impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_stack::CreateStackError, R>> for Error
369where
370 R: Send + Sync + std::fmt::Debug + 'static,
371{
372 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_stack::CreateStackError, R>) -> Self {
373 match err {
374 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
375 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
376 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
377 source: err.into(),
378 }),
379 }
380 }
381}
382impl From<crate::operation::create_stack::CreateStackError> for Error {
383 fn from(err: crate::operation::create_stack::CreateStackError) -> Self {
384 match err {
385 crate::operation::create_stack::CreateStackError::AlreadyExistsException(inner) => Error::AlreadyExistsException(inner),
386 crate::operation::create_stack::CreateStackError::InsufficientCapabilitiesException(inner) => {
387 Error::InsufficientCapabilitiesException(inner)
388 }
389 crate::operation::create_stack::CreateStackError::LimitExceededException(inner) => Error::LimitExceededException(inner),
390 crate::operation::create_stack::CreateStackError::TokenAlreadyExistsException(inner) => Error::TokenAlreadyExistsException(inner),
391 crate::operation::create_stack::CreateStackError::Unhandled(inner) => Error::Unhandled(inner),
392 }
393 }
394}
395impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_stack_instances::CreateStackInstancesError, R>> for Error
396where
397 R: Send + Sync + std::fmt::Debug + 'static,
398{
399 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_stack_instances::CreateStackInstancesError, R>) -> Self {
400 match err {
401 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
402 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
403 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
404 source: err.into(),
405 }),
406 }
407 }
408}
409impl From<crate::operation::create_stack_instances::CreateStackInstancesError> for Error {
410 fn from(err: crate::operation::create_stack_instances::CreateStackInstancesError) -> Self {
411 match err {
412 crate::operation::create_stack_instances::CreateStackInstancesError::InvalidOperationException(inner) => {
413 Error::InvalidOperationException(inner)
414 }
415 crate::operation::create_stack_instances::CreateStackInstancesError::LimitExceededException(inner) => {
416 Error::LimitExceededException(inner)
417 }
418 crate::operation::create_stack_instances::CreateStackInstancesError::OperationIdAlreadyExistsException(inner) => {
419 Error::OperationIdAlreadyExistsException(inner)
420 }
421 crate::operation::create_stack_instances::CreateStackInstancesError::OperationInProgressException(inner) => {
422 Error::OperationInProgressException(inner)
423 }
424 crate::operation::create_stack_instances::CreateStackInstancesError::StackSetNotFoundException(inner) => {
425 Error::StackSetNotFoundException(inner)
426 }
427 crate::operation::create_stack_instances::CreateStackInstancesError::StaleRequestException(inner) => Error::StaleRequestException(inner),
428 crate::operation::create_stack_instances::CreateStackInstancesError::Unhandled(inner) => Error::Unhandled(inner),
429 }
430 }
431}
432impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_stack_refactor::CreateStackRefactorError, R>> for Error
433where
434 R: Send + Sync + std::fmt::Debug + 'static,
435{
436 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_stack_refactor::CreateStackRefactorError, R>) -> Self {
437 match err {
438 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
439 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
440 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
441 source: err.into(),
442 }),
443 }
444 }
445}
446impl From<crate::operation::create_stack_refactor::CreateStackRefactorError> for Error {
447 fn from(err: crate::operation::create_stack_refactor::CreateStackRefactorError) -> Self {
448 match err {
449 crate::operation::create_stack_refactor::CreateStackRefactorError::Unhandled(inner) => Error::Unhandled(inner),
450 }
451 }
452}
453impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_stack_set::CreateStackSetError, R>> for Error
454where
455 R: Send + Sync + std::fmt::Debug + 'static,
456{
457 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_stack_set::CreateStackSetError, R>) -> Self {
458 match err {
459 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
460 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
461 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
462 source: err.into(),
463 }),
464 }
465 }
466}
467impl From<crate::operation::create_stack_set::CreateStackSetError> for Error {
468 fn from(err: crate::operation::create_stack_set::CreateStackSetError) -> Self {
469 match err {
470 crate::operation::create_stack_set::CreateStackSetError::CreatedButModifiedException(inner) => Error::CreatedButModifiedException(inner),
471 crate::operation::create_stack_set::CreateStackSetError::LimitExceededException(inner) => Error::LimitExceededException(inner),
472 crate::operation::create_stack_set::CreateStackSetError::NameAlreadyExistsException(inner) => Error::NameAlreadyExistsException(inner),
473 crate::operation::create_stack_set::CreateStackSetError::Unhandled(inner) => Error::Unhandled(inner),
474 }
475 }
476}
477impl<R>
478 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deactivate_organizations_access::DeactivateOrganizationsAccessError, R>>
479 for Error
480where
481 R: Send + Sync + std::fmt::Debug + 'static,
482{
483 fn from(
484 err: ::aws_smithy_runtime_api::client::result::SdkError<
485 crate::operation::deactivate_organizations_access::DeactivateOrganizationsAccessError,
486 R,
487 >,
488 ) -> Self {
489 match err {
490 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
491 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
492 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
493 source: err.into(),
494 }),
495 }
496 }
497}
498impl From<crate::operation::deactivate_organizations_access::DeactivateOrganizationsAccessError> for Error {
499 fn from(err: crate::operation::deactivate_organizations_access::DeactivateOrganizationsAccessError) -> Self {
500 match err {
501 crate::operation::deactivate_organizations_access::DeactivateOrganizationsAccessError::InvalidOperationException(inner) => {
502 Error::InvalidOperationException(inner)
503 }
504 crate::operation::deactivate_organizations_access::DeactivateOrganizationsAccessError::OperationNotFoundException(inner) => {
505 Error::OperationNotFoundException(inner)
506 }
507 crate::operation::deactivate_organizations_access::DeactivateOrganizationsAccessError::Unhandled(inner) => Error::Unhandled(inner),
508 }
509 }
510}
511impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deactivate_type::DeactivateTypeError, R>> for Error
512where
513 R: Send + Sync + std::fmt::Debug + 'static,
514{
515 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deactivate_type::DeactivateTypeError, R>) -> Self {
516 match err {
517 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
518 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
519 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
520 source: err.into(),
521 }),
522 }
523 }
524}
525impl From<crate::operation::deactivate_type::DeactivateTypeError> for Error {
526 fn from(err: crate::operation::deactivate_type::DeactivateTypeError) -> Self {
527 match err {
528 crate::operation::deactivate_type::DeactivateTypeError::CfnRegistryException(inner) => Error::CfnRegistryException(inner),
529 crate::operation::deactivate_type::DeactivateTypeError::TypeNotFoundException(inner) => Error::TypeNotFoundException(inner),
530 crate::operation::deactivate_type::DeactivateTypeError::Unhandled(inner) => Error::Unhandled(inner),
531 }
532 }
533}
534impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_change_set::DeleteChangeSetError, R>> for Error
535where
536 R: Send + Sync + std::fmt::Debug + 'static,
537{
538 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_change_set::DeleteChangeSetError, R>) -> Self {
539 match err {
540 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
541 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
542 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
543 source: err.into(),
544 }),
545 }
546 }
547}
548impl From<crate::operation::delete_change_set::DeleteChangeSetError> for Error {
549 fn from(err: crate::operation::delete_change_set::DeleteChangeSetError) -> Self {
550 match err {
551 crate::operation::delete_change_set::DeleteChangeSetError::InvalidChangeSetStatusException(inner) => {
552 Error::InvalidChangeSetStatusException(inner)
553 }
554 crate::operation::delete_change_set::DeleteChangeSetError::Unhandled(inner) => Error::Unhandled(inner),
555 }
556 }
557}
558impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_generated_template::DeleteGeneratedTemplateError, R>>
559 for Error
560where
561 R: Send + Sync + std::fmt::Debug + 'static,
562{
563 fn from(
564 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_generated_template::DeleteGeneratedTemplateError, R>,
565 ) -> Self {
566 match err {
567 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
568 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
569 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
570 source: err.into(),
571 }),
572 }
573 }
574}
575impl From<crate::operation::delete_generated_template::DeleteGeneratedTemplateError> for Error {
576 fn from(err: crate::operation::delete_generated_template::DeleteGeneratedTemplateError) -> Self {
577 match err {
578 crate::operation::delete_generated_template::DeleteGeneratedTemplateError::ConcurrentResourcesLimitExceededException(inner) => {
579 Error::ConcurrentResourcesLimitExceededException(inner)
580 }
581 crate::operation::delete_generated_template::DeleteGeneratedTemplateError::GeneratedTemplateNotFoundException(inner) => {
582 Error::GeneratedTemplateNotFoundException(inner)
583 }
584 crate::operation::delete_generated_template::DeleteGeneratedTemplateError::Unhandled(inner) => Error::Unhandled(inner),
585 }
586 }
587}
588impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_stack::DeleteStackError, R>> for Error
589where
590 R: Send + Sync + std::fmt::Debug + 'static,
591{
592 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_stack::DeleteStackError, R>) -> Self {
593 match err {
594 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
595 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
596 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
597 source: err.into(),
598 }),
599 }
600 }
601}
602impl From<crate::operation::delete_stack::DeleteStackError> for Error {
603 fn from(err: crate::operation::delete_stack::DeleteStackError) -> Self {
604 match err {
605 crate::operation::delete_stack::DeleteStackError::TokenAlreadyExistsException(inner) => Error::TokenAlreadyExistsException(inner),
606 crate::operation::delete_stack::DeleteStackError::Unhandled(inner) => Error::Unhandled(inner),
607 }
608 }
609}
610impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_stack_instances::DeleteStackInstancesError, R>> for Error
611where
612 R: Send + Sync + std::fmt::Debug + 'static,
613{
614 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_stack_instances::DeleteStackInstancesError, R>) -> Self {
615 match err {
616 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
617 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
618 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
619 source: err.into(),
620 }),
621 }
622 }
623}
624impl From<crate::operation::delete_stack_instances::DeleteStackInstancesError> for Error {
625 fn from(err: crate::operation::delete_stack_instances::DeleteStackInstancesError) -> Self {
626 match err {
627 crate::operation::delete_stack_instances::DeleteStackInstancesError::InvalidOperationException(inner) => {
628 Error::InvalidOperationException(inner)
629 }
630 crate::operation::delete_stack_instances::DeleteStackInstancesError::OperationIdAlreadyExistsException(inner) => {
631 Error::OperationIdAlreadyExistsException(inner)
632 }
633 crate::operation::delete_stack_instances::DeleteStackInstancesError::OperationInProgressException(inner) => {
634 Error::OperationInProgressException(inner)
635 }
636 crate::operation::delete_stack_instances::DeleteStackInstancesError::StackSetNotFoundException(inner) => {
637 Error::StackSetNotFoundException(inner)
638 }
639 crate::operation::delete_stack_instances::DeleteStackInstancesError::StaleRequestException(inner) => Error::StaleRequestException(inner),
640 crate::operation::delete_stack_instances::DeleteStackInstancesError::Unhandled(inner) => Error::Unhandled(inner),
641 }
642 }
643}
644impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_stack_set::DeleteStackSetError, R>> for Error
645where
646 R: Send + Sync + std::fmt::Debug + 'static,
647{
648 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_stack_set::DeleteStackSetError, R>) -> Self {
649 match err {
650 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
651 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
652 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
653 source: err.into(),
654 }),
655 }
656 }
657}
658impl From<crate::operation::delete_stack_set::DeleteStackSetError> for Error {
659 fn from(err: crate::operation::delete_stack_set::DeleteStackSetError) -> Self {
660 match err {
661 crate::operation::delete_stack_set::DeleteStackSetError::OperationInProgressException(inner) => {
662 Error::OperationInProgressException(inner)
663 }
664 crate::operation::delete_stack_set::DeleteStackSetError::StackSetNotEmptyException(inner) => Error::StackSetNotEmptyException(inner),
665 crate::operation::delete_stack_set::DeleteStackSetError::Unhandled(inner) => Error::Unhandled(inner),
666 }
667 }
668}
669impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deregister_type::DeregisterTypeError, R>> for Error
670where
671 R: Send + Sync + std::fmt::Debug + 'static,
672{
673 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deregister_type::DeregisterTypeError, R>) -> Self {
674 match err {
675 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
676 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
677 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
678 source: err.into(),
679 }),
680 }
681 }
682}
683impl From<crate::operation::deregister_type::DeregisterTypeError> for Error {
684 fn from(err: crate::operation::deregister_type::DeregisterTypeError) -> Self {
685 match err {
686 crate::operation::deregister_type::DeregisterTypeError::CfnRegistryException(inner) => Error::CfnRegistryException(inner),
687 crate::operation::deregister_type::DeregisterTypeError::TypeNotFoundException(inner) => Error::TypeNotFoundException(inner),
688 crate::operation::deregister_type::DeregisterTypeError::Unhandled(inner) => Error::Unhandled(inner),
689 }
690 }
691}
692impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_account_limits::DescribeAccountLimitsError, R>> for Error
693where
694 R: Send + Sync + std::fmt::Debug + 'static,
695{
696 fn from(
697 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_account_limits::DescribeAccountLimitsError, R>,
698 ) -> Self {
699 match err {
700 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
701 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
702 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
703 source: err.into(),
704 }),
705 }
706 }
707}
708impl From<crate::operation::describe_account_limits::DescribeAccountLimitsError> for Error {
709 fn from(err: crate::operation::describe_account_limits::DescribeAccountLimitsError) -> Self {
710 match err {
711 crate::operation::describe_account_limits::DescribeAccountLimitsError::Unhandled(inner) => Error::Unhandled(inner),
712 }
713 }
714}
715impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_change_set::DescribeChangeSetError, R>> for Error
716where
717 R: Send + Sync + std::fmt::Debug + 'static,
718{
719 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_change_set::DescribeChangeSetError, R>) -> Self {
720 match err {
721 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
722 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
723 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
724 source: err.into(),
725 }),
726 }
727 }
728}
729impl From<crate::operation::describe_change_set::DescribeChangeSetError> for Error {
730 fn from(err: crate::operation::describe_change_set::DescribeChangeSetError) -> Self {
731 match err {
732 crate::operation::describe_change_set::DescribeChangeSetError::ChangeSetNotFoundException(inner) => {
733 Error::ChangeSetNotFoundException(inner)
734 }
735 crate::operation::describe_change_set::DescribeChangeSetError::Unhandled(inner) => Error::Unhandled(inner),
736 }
737 }
738}
739impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_change_set_hooks::DescribeChangeSetHooksError, R>>
740 for Error
741where
742 R: Send + Sync + std::fmt::Debug + 'static,
743{
744 fn from(
745 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_change_set_hooks::DescribeChangeSetHooksError, R>,
746 ) -> Self {
747 match err {
748 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
749 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
750 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
751 source: err.into(),
752 }),
753 }
754 }
755}
756impl From<crate::operation::describe_change_set_hooks::DescribeChangeSetHooksError> for Error {
757 fn from(err: crate::operation::describe_change_set_hooks::DescribeChangeSetHooksError) -> Self {
758 match err {
759 crate::operation::describe_change_set_hooks::DescribeChangeSetHooksError::ChangeSetNotFoundException(inner) => {
760 Error::ChangeSetNotFoundException(inner)
761 }
762 crate::operation::describe_change_set_hooks::DescribeChangeSetHooksError::Unhandled(inner) => Error::Unhandled(inner),
763 }
764 }
765}
766impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_generated_template::DescribeGeneratedTemplateError, R>>
767 for Error
768where
769 R: Send + Sync + std::fmt::Debug + 'static,
770{
771 fn from(
772 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_generated_template::DescribeGeneratedTemplateError, R>,
773 ) -> Self {
774 match err {
775 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
776 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
777 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
778 source: err.into(),
779 }),
780 }
781 }
782}
783impl From<crate::operation::describe_generated_template::DescribeGeneratedTemplateError> for Error {
784 fn from(err: crate::operation::describe_generated_template::DescribeGeneratedTemplateError) -> Self {
785 match err {
786 crate::operation::describe_generated_template::DescribeGeneratedTemplateError::GeneratedTemplateNotFoundException(inner) => {
787 Error::GeneratedTemplateNotFoundException(inner)
788 }
789 crate::operation::describe_generated_template::DescribeGeneratedTemplateError::Unhandled(inner) => Error::Unhandled(inner),
790 }
791 }
792}
793impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_organizations_access::DescribeOrganizationsAccessError, R>>
794 for Error
795where
796 R: Send + Sync + std::fmt::Debug + 'static,
797{
798 fn from(
799 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_organizations_access::DescribeOrganizationsAccessError, R>,
800 ) -> Self {
801 match err {
802 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
803 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
804 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
805 source: err.into(),
806 }),
807 }
808 }
809}
810impl From<crate::operation::describe_organizations_access::DescribeOrganizationsAccessError> for Error {
811 fn from(err: crate::operation::describe_organizations_access::DescribeOrganizationsAccessError) -> Self {
812 match err {
813 crate::operation::describe_organizations_access::DescribeOrganizationsAccessError::InvalidOperationException(inner) => {
814 Error::InvalidOperationException(inner)
815 }
816 crate::operation::describe_organizations_access::DescribeOrganizationsAccessError::OperationNotFoundException(inner) => {
817 Error::OperationNotFoundException(inner)
818 }
819 crate::operation::describe_organizations_access::DescribeOrganizationsAccessError::Unhandled(inner) => Error::Unhandled(inner),
820 }
821 }
822}
823impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_publisher::DescribePublisherError, R>> for Error
824where
825 R: Send + Sync + std::fmt::Debug + 'static,
826{
827 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_publisher::DescribePublisherError, R>) -> Self {
828 match err {
829 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
830 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
831 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
832 source: err.into(),
833 }),
834 }
835 }
836}
837impl From<crate::operation::describe_publisher::DescribePublisherError> for Error {
838 fn from(err: crate::operation::describe_publisher::DescribePublisherError) -> Self {
839 match err {
840 crate::operation::describe_publisher::DescribePublisherError::CfnRegistryException(inner) => Error::CfnRegistryException(inner),
841 crate::operation::describe_publisher::DescribePublisherError::Unhandled(inner) => Error::Unhandled(inner),
842 }
843 }
844}
845impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_resource_scan::DescribeResourceScanError, R>> for Error
846where
847 R: Send + Sync + std::fmt::Debug + 'static,
848{
849 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_resource_scan::DescribeResourceScanError, R>) -> Self {
850 match err {
851 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
852 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
853 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
854 source: err.into(),
855 }),
856 }
857 }
858}
859impl From<crate::operation::describe_resource_scan::DescribeResourceScanError> for Error {
860 fn from(err: crate::operation::describe_resource_scan::DescribeResourceScanError) -> Self {
861 match err {
862 crate::operation::describe_resource_scan::DescribeResourceScanError::ResourceScanNotFoundException(inner) => {
863 Error::ResourceScanNotFoundException(inner)
864 }
865 crate::operation::describe_resource_scan::DescribeResourceScanError::Unhandled(inner) => Error::Unhandled(inner),
866 }
867 }
868}
869impl<R>
870 From<
871 ::aws_smithy_runtime_api::client::result::SdkError<
872 crate::operation::describe_stack_drift_detection_status::DescribeStackDriftDetectionStatusError,
873 R,
874 >,
875 > for Error
876where
877 R: Send + Sync + std::fmt::Debug + 'static,
878{
879 fn from(
880 err: ::aws_smithy_runtime_api::client::result::SdkError<
881 crate::operation::describe_stack_drift_detection_status::DescribeStackDriftDetectionStatusError,
882 R,
883 >,
884 ) -> Self {
885 match err {
886 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
887 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
888 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
889 source: err.into(),
890 }),
891 }
892 }
893}
894impl From<crate::operation::describe_stack_drift_detection_status::DescribeStackDriftDetectionStatusError> for Error {
895 fn from(err: crate::operation::describe_stack_drift_detection_status::DescribeStackDriftDetectionStatusError) -> Self {
896 match err {
897 crate::operation::describe_stack_drift_detection_status::DescribeStackDriftDetectionStatusError::Unhandled(inner) => {
898 Error::Unhandled(inner)
899 }
900 }
901 }
902}
903impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_stack_events::DescribeStackEventsError, R>> for Error
904where
905 R: Send + Sync + std::fmt::Debug + 'static,
906{
907 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_stack_events::DescribeStackEventsError, R>) -> Self {
908 match err {
909 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
910 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
911 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
912 source: err.into(),
913 }),
914 }
915 }
916}
917impl From<crate::operation::describe_stack_events::DescribeStackEventsError> for Error {
918 fn from(err: crate::operation::describe_stack_events::DescribeStackEventsError) -> Self {
919 match err {
920 crate::operation::describe_stack_events::DescribeStackEventsError::Unhandled(inner) => Error::Unhandled(inner),
921 }
922 }
923}
924impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_stack_instance::DescribeStackInstanceError, R>> for Error
925where
926 R: Send + Sync + std::fmt::Debug + 'static,
927{
928 fn from(
929 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_stack_instance::DescribeStackInstanceError, R>,
930 ) -> Self {
931 match err {
932 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
933 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
934 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
935 source: err.into(),
936 }),
937 }
938 }
939}
940impl From<crate::operation::describe_stack_instance::DescribeStackInstanceError> for Error {
941 fn from(err: crate::operation::describe_stack_instance::DescribeStackInstanceError) -> Self {
942 match err {
943 crate::operation::describe_stack_instance::DescribeStackInstanceError::StackInstanceNotFoundException(inner) => {
944 Error::StackInstanceNotFoundException(inner)
945 }
946 crate::operation::describe_stack_instance::DescribeStackInstanceError::StackSetNotFoundException(inner) => {
947 Error::StackSetNotFoundException(inner)
948 }
949 crate::operation::describe_stack_instance::DescribeStackInstanceError::Unhandled(inner) => Error::Unhandled(inner),
950 }
951 }
952}
953impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_stack_refactor::DescribeStackRefactorError, R>> for Error
954where
955 R: Send + Sync + std::fmt::Debug + 'static,
956{
957 fn from(
958 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_stack_refactor::DescribeStackRefactorError, R>,
959 ) -> Self {
960 match err {
961 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
962 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
963 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
964 source: err.into(),
965 }),
966 }
967 }
968}
969impl From<crate::operation::describe_stack_refactor::DescribeStackRefactorError> for Error {
970 fn from(err: crate::operation::describe_stack_refactor::DescribeStackRefactorError) -> Self {
971 match err {
972 crate::operation::describe_stack_refactor::DescribeStackRefactorError::StackRefactorNotFoundException(inner) => {
973 Error::StackRefactorNotFoundException(inner)
974 }
975 crate::operation::describe_stack_refactor::DescribeStackRefactorError::Unhandled(inner) => Error::Unhandled(inner),
976 }
977 }
978}
979impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_stack_resource::DescribeStackResourceError, R>> for Error
980where
981 R: Send + Sync + std::fmt::Debug + 'static,
982{
983 fn from(
984 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_stack_resource::DescribeStackResourceError, R>,
985 ) -> Self {
986 match err {
987 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
988 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
989 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
990 source: err.into(),
991 }),
992 }
993 }
994}
995impl From<crate::operation::describe_stack_resource::DescribeStackResourceError> for Error {
996 fn from(err: crate::operation::describe_stack_resource::DescribeStackResourceError) -> Self {
997 match err {
998 crate::operation::describe_stack_resource::DescribeStackResourceError::Unhandled(inner) => Error::Unhandled(inner),
999 }
1000 }
1001}
1002impl<R>
1003 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_stack_resource_drifts::DescribeStackResourceDriftsError, R>>
1004 for Error
1005where
1006 R: Send + Sync + std::fmt::Debug + 'static,
1007{
1008 fn from(
1009 err: ::aws_smithy_runtime_api::client::result::SdkError<
1010 crate::operation::describe_stack_resource_drifts::DescribeStackResourceDriftsError,
1011 R,
1012 >,
1013 ) -> Self {
1014 match err {
1015 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1016 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1017 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1018 source: err.into(),
1019 }),
1020 }
1021 }
1022}
1023impl From<crate::operation::describe_stack_resource_drifts::DescribeStackResourceDriftsError> for Error {
1024 fn from(err: crate::operation::describe_stack_resource_drifts::DescribeStackResourceDriftsError) -> Self {
1025 match err {
1026 crate::operation::describe_stack_resource_drifts::DescribeStackResourceDriftsError::Unhandled(inner) => Error::Unhandled(inner),
1027 }
1028 }
1029}
1030impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_stack_resources::DescribeStackResourcesError, R>> for Error
1031where
1032 R: Send + Sync + std::fmt::Debug + 'static,
1033{
1034 fn from(
1035 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_stack_resources::DescribeStackResourcesError, R>,
1036 ) -> Self {
1037 match err {
1038 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1039 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1040 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1041 source: err.into(),
1042 }),
1043 }
1044 }
1045}
1046impl From<crate::operation::describe_stack_resources::DescribeStackResourcesError> for Error {
1047 fn from(err: crate::operation::describe_stack_resources::DescribeStackResourcesError) -> Self {
1048 match err {
1049 crate::operation::describe_stack_resources::DescribeStackResourcesError::Unhandled(inner) => Error::Unhandled(inner),
1050 }
1051 }
1052}
1053impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_stacks::DescribeStacksError, R>> for Error
1054where
1055 R: Send + Sync + std::fmt::Debug + 'static,
1056{
1057 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_stacks::DescribeStacksError, R>) -> Self {
1058 match err {
1059 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1060 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1061 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1062 source: err.into(),
1063 }),
1064 }
1065 }
1066}
1067impl From<crate::operation::describe_stacks::DescribeStacksError> for Error {
1068 fn from(err: crate::operation::describe_stacks::DescribeStacksError) -> Self {
1069 match err {
1070 crate::operation::describe_stacks::DescribeStacksError::Unhandled(inner) => Error::Unhandled(inner),
1071 }
1072 }
1073}
1074impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_stack_set::DescribeStackSetError, R>> for Error
1075where
1076 R: Send + Sync + std::fmt::Debug + 'static,
1077{
1078 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_stack_set::DescribeStackSetError, R>) -> Self {
1079 match err {
1080 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1081 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1082 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1083 source: err.into(),
1084 }),
1085 }
1086 }
1087}
1088impl From<crate::operation::describe_stack_set::DescribeStackSetError> for Error {
1089 fn from(err: crate::operation::describe_stack_set::DescribeStackSetError) -> Self {
1090 match err {
1091 crate::operation::describe_stack_set::DescribeStackSetError::StackSetNotFoundException(inner) => Error::StackSetNotFoundException(inner),
1092 crate::operation::describe_stack_set::DescribeStackSetError::Unhandled(inner) => Error::Unhandled(inner),
1093 }
1094 }
1095}
1096impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_stack_set_operation::DescribeStackSetOperationError, R>>
1097 for Error
1098where
1099 R: Send + Sync + std::fmt::Debug + 'static,
1100{
1101 fn from(
1102 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_stack_set_operation::DescribeStackSetOperationError, R>,
1103 ) -> Self {
1104 match err {
1105 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1106 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1107 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1108 source: err.into(),
1109 }),
1110 }
1111 }
1112}
1113impl From<crate::operation::describe_stack_set_operation::DescribeStackSetOperationError> for Error {
1114 fn from(err: crate::operation::describe_stack_set_operation::DescribeStackSetOperationError) -> Self {
1115 match err {
1116 crate::operation::describe_stack_set_operation::DescribeStackSetOperationError::OperationNotFoundException(inner) => {
1117 Error::OperationNotFoundException(inner)
1118 }
1119 crate::operation::describe_stack_set_operation::DescribeStackSetOperationError::StackSetNotFoundException(inner) => {
1120 Error::StackSetNotFoundException(inner)
1121 }
1122 crate::operation::describe_stack_set_operation::DescribeStackSetOperationError::Unhandled(inner) => Error::Unhandled(inner),
1123 }
1124 }
1125}
1126impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_type::DescribeTypeError, R>> for Error
1127where
1128 R: Send + Sync + std::fmt::Debug + 'static,
1129{
1130 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_type::DescribeTypeError, R>) -> Self {
1131 match err {
1132 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1133 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1134 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1135 source: err.into(),
1136 }),
1137 }
1138 }
1139}
1140impl From<crate::operation::describe_type::DescribeTypeError> for Error {
1141 fn from(err: crate::operation::describe_type::DescribeTypeError) -> Self {
1142 match err {
1143 crate::operation::describe_type::DescribeTypeError::CfnRegistryException(inner) => Error::CfnRegistryException(inner),
1144 crate::operation::describe_type::DescribeTypeError::TypeNotFoundException(inner) => Error::TypeNotFoundException(inner),
1145 crate::operation::describe_type::DescribeTypeError::Unhandled(inner) => Error::Unhandled(inner),
1146 }
1147 }
1148}
1149impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_type_registration::DescribeTypeRegistrationError, R>>
1150 for Error
1151where
1152 R: Send + Sync + std::fmt::Debug + 'static,
1153{
1154 fn from(
1155 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_type_registration::DescribeTypeRegistrationError, R>,
1156 ) -> Self {
1157 match err {
1158 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1159 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1160 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1161 source: err.into(),
1162 }),
1163 }
1164 }
1165}
1166impl From<crate::operation::describe_type_registration::DescribeTypeRegistrationError> for Error {
1167 fn from(err: crate::operation::describe_type_registration::DescribeTypeRegistrationError) -> Self {
1168 match err {
1169 crate::operation::describe_type_registration::DescribeTypeRegistrationError::CfnRegistryException(inner) => {
1170 Error::CfnRegistryException(inner)
1171 }
1172 crate::operation::describe_type_registration::DescribeTypeRegistrationError::Unhandled(inner) => Error::Unhandled(inner),
1173 }
1174 }
1175}
1176impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detect_stack_drift::DetectStackDriftError, R>> for Error
1177where
1178 R: Send + Sync + std::fmt::Debug + 'static,
1179{
1180 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detect_stack_drift::DetectStackDriftError, R>) -> Self {
1181 match err {
1182 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1183 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1184 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1185 source: err.into(),
1186 }),
1187 }
1188 }
1189}
1190impl From<crate::operation::detect_stack_drift::DetectStackDriftError> for Error {
1191 fn from(err: crate::operation::detect_stack_drift::DetectStackDriftError) -> Self {
1192 match err {
1193 crate::operation::detect_stack_drift::DetectStackDriftError::Unhandled(inner) => Error::Unhandled(inner),
1194 }
1195 }
1196}
1197impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detect_stack_resource_drift::DetectStackResourceDriftError, R>>
1198 for Error
1199where
1200 R: Send + Sync + std::fmt::Debug + 'static,
1201{
1202 fn from(
1203 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detect_stack_resource_drift::DetectStackResourceDriftError, R>,
1204 ) -> Self {
1205 match err {
1206 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1207 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1208 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1209 source: err.into(),
1210 }),
1211 }
1212 }
1213}
1214impl From<crate::operation::detect_stack_resource_drift::DetectStackResourceDriftError> for Error {
1215 fn from(err: crate::operation::detect_stack_resource_drift::DetectStackResourceDriftError) -> Self {
1216 match err {
1217 crate::operation::detect_stack_resource_drift::DetectStackResourceDriftError::Unhandled(inner) => Error::Unhandled(inner),
1218 }
1219 }
1220}
1221impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detect_stack_set_drift::DetectStackSetDriftError, R>> for Error
1222where
1223 R: Send + Sync + std::fmt::Debug + 'static,
1224{
1225 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detect_stack_set_drift::DetectStackSetDriftError, R>) -> Self {
1226 match err {
1227 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1228 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1229 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1230 source: err.into(),
1231 }),
1232 }
1233 }
1234}
1235impl From<crate::operation::detect_stack_set_drift::DetectStackSetDriftError> for Error {
1236 fn from(err: crate::operation::detect_stack_set_drift::DetectStackSetDriftError) -> Self {
1237 match err {
1238 crate::operation::detect_stack_set_drift::DetectStackSetDriftError::InvalidOperationException(inner) => {
1239 Error::InvalidOperationException(inner)
1240 }
1241 crate::operation::detect_stack_set_drift::DetectStackSetDriftError::OperationInProgressException(inner) => {
1242 Error::OperationInProgressException(inner)
1243 }
1244 crate::operation::detect_stack_set_drift::DetectStackSetDriftError::StackSetNotFoundException(inner) => {
1245 Error::StackSetNotFoundException(inner)
1246 }
1247 crate::operation::detect_stack_set_drift::DetectStackSetDriftError::Unhandled(inner) => Error::Unhandled(inner),
1248 }
1249 }
1250}
1251impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::estimate_template_cost::EstimateTemplateCostError, R>> for Error
1252where
1253 R: Send + Sync + std::fmt::Debug + 'static,
1254{
1255 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::estimate_template_cost::EstimateTemplateCostError, R>) -> Self {
1256 match err {
1257 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1258 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1259 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1260 source: err.into(),
1261 }),
1262 }
1263 }
1264}
1265impl From<crate::operation::estimate_template_cost::EstimateTemplateCostError> for Error {
1266 fn from(err: crate::operation::estimate_template_cost::EstimateTemplateCostError) -> Self {
1267 match err {
1268 crate::operation::estimate_template_cost::EstimateTemplateCostError::Unhandled(inner) => Error::Unhandled(inner),
1269 }
1270 }
1271}
1272impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::execute_change_set::ExecuteChangeSetError, R>> for Error
1273where
1274 R: Send + Sync + std::fmt::Debug + 'static,
1275{
1276 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::execute_change_set::ExecuteChangeSetError, R>) -> Self {
1277 match err {
1278 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1279 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1280 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1281 source: err.into(),
1282 }),
1283 }
1284 }
1285}
1286impl From<crate::operation::execute_change_set::ExecuteChangeSetError> for Error {
1287 fn from(err: crate::operation::execute_change_set::ExecuteChangeSetError) -> Self {
1288 match err {
1289 crate::operation::execute_change_set::ExecuteChangeSetError::ChangeSetNotFoundException(inner) => {
1290 Error::ChangeSetNotFoundException(inner)
1291 }
1292 crate::operation::execute_change_set::ExecuteChangeSetError::InsufficientCapabilitiesException(inner) => {
1293 Error::InsufficientCapabilitiesException(inner)
1294 }
1295 crate::operation::execute_change_set::ExecuteChangeSetError::InvalidChangeSetStatusException(inner) => {
1296 Error::InvalidChangeSetStatusException(inner)
1297 }
1298 crate::operation::execute_change_set::ExecuteChangeSetError::TokenAlreadyExistsException(inner) => {
1299 Error::TokenAlreadyExistsException(inner)
1300 }
1301 crate::operation::execute_change_set::ExecuteChangeSetError::Unhandled(inner) => Error::Unhandled(inner),
1302 }
1303 }
1304}
1305impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::execute_stack_refactor::ExecuteStackRefactorError, R>> for Error
1306where
1307 R: Send + Sync + std::fmt::Debug + 'static,
1308{
1309 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::execute_stack_refactor::ExecuteStackRefactorError, R>) -> Self {
1310 match err {
1311 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1312 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1313 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1314 source: err.into(),
1315 }),
1316 }
1317 }
1318}
1319impl From<crate::operation::execute_stack_refactor::ExecuteStackRefactorError> for Error {
1320 fn from(err: crate::operation::execute_stack_refactor::ExecuteStackRefactorError) -> Self {
1321 match err {
1322 crate::operation::execute_stack_refactor::ExecuteStackRefactorError::Unhandled(inner) => Error::Unhandled(inner),
1323 }
1324 }
1325}
1326impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_generated_template::GetGeneratedTemplateError, R>> for Error
1327where
1328 R: Send + Sync + std::fmt::Debug + 'static,
1329{
1330 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_generated_template::GetGeneratedTemplateError, R>) -> Self {
1331 match err {
1332 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1333 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1334 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1335 source: err.into(),
1336 }),
1337 }
1338 }
1339}
1340impl From<crate::operation::get_generated_template::GetGeneratedTemplateError> for Error {
1341 fn from(err: crate::operation::get_generated_template::GetGeneratedTemplateError) -> Self {
1342 match err {
1343 crate::operation::get_generated_template::GetGeneratedTemplateError::GeneratedTemplateNotFoundException(inner) => {
1344 Error::GeneratedTemplateNotFoundException(inner)
1345 }
1346 crate::operation::get_generated_template::GetGeneratedTemplateError::Unhandled(inner) => Error::Unhandled(inner),
1347 }
1348 }
1349}
1350impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_stack_policy::GetStackPolicyError, R>> for Error
1351where
1352 R: Send + Sync + std::fmt::Debug + 'static,
1353{
1354 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_stack_policy::GetStackPolicyError, R>) -> Self {
1355 match err {
1356 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1357 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1358 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1359 source: err.into(),
1360 }),
1361 }
1362 }
1363}
1364impl From<crate::operation::get_stack_policy::GetStackPolicyError> for Error {
1365 fn from(err: crate::operation::get_stack_policy::GetStackPolicyError) -> Self {
1366 match err {
1367 crate::operation::get_stack_policy::GetStackPolicyError::Unhandled(inner) => Error::Unhandled(inner),
1368 }
1369 }
1370}
1371impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_template::GetTemplateError, R>> for Error
1372where
1373 R: Send + Sync + std::fmt::Debug + 'static,
1374{
1375 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_template::GetTemplateError, R>) -> Self {
1376 match err {
1377 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1378 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1379 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1380 source: err.into(),
1381 }),
1382 }
1383 }
1384}
1385impl From<crate::operation::get_template::GetTemplateError> for Error {
1386 fn from(err: crate::operation::get_template::GetTemplateError) -> Self {
1387 match err {
1388 crate::operation::get_template::GetTemplateError::ChangeSetNotFoundException(inner) => Error::ChangeSetNotFoundException(inner),
1389 crate::operation::get_template::GetTemplateError::Unhandled(inner) => Error::Unhandled(inner),
1390 }
1391 }
1392}
1393impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_template_summary::GetTemplateSummaryError, R>> for Error
1394where
1395 R: Send + Sync + std::fmt::Debug + 'static,
1396{
1397 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_template_summary::GetTemplateSummaryError, R>) -> Self {
1398 match err {
1399 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1400 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1401 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1402 source: err.into(),
1403 }),
1404 }
1405 }
1406}
1407impl From<crate::operation::get_template_summary::GetTemplateSummaryError> for Error {
1408 fn from(err: crate::operation::get_template_summary::GetTemplateSummaryError) -> Self {
1409 match err {
1410 crate::operation::get_template_summary::GetTemplateSummaryError::StackSetNotFoundException(inner) => {
1411 Error::StackSetNotFoundException(inner)
1412 }
1413 crate::operation::get_template_summary::GetTemplateSummaryError::Unhandled(inner) => Error::Unhandled(inner),
1414 }
1415 }
1416}
1417impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_stacks_to_stack_set::ImportStacksToStackSetError, R>>
1418 for Error
1419where
1420 R: Send + Sync + std::fmt::Debug + 'static,
1421{
1422 fn from(
1423 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_stacks_to_stack_set::ImportStacksToStackSetError, R>,
1424 ) -> Self {
1425 match err {
1426 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1427 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1428 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1429 source: err.into(),
1430 }),
1431 }
1432 }
1433}
1434impl From<crate::operation::import_stacks_to_stack_set::ImportStacksToStackSetError> for Error {
1435 fn from(err: crate::operation::import_stacks_to_stack_set::ImportStacksToStackSetError) -> Self {
1436 match err {
1437 crate::operation::import_stacks_to_stack_set::ImportStacksToStackSetError::InvalidOperationException(inner) => {
1438 Error::InvalidOperationException(inner)
1439 }
1440 crate::operation::import_stacks_to_stack_set::ImportStacksToStackSetError::LimitExceededException(inner) => {
1441 Error::LimitExceededException(inner)
1442 }
1443 crate::operation::import_stacks_to_stack_set::ImportStacksToStackSetError::OperationIdAlreadyExistsException(inner) => {
1444 Error::OperationIdAlreadyExistsException(inner)
1445 }
1446 crate::operation::import_stacks_to_stack_set::ImportStacksToStackSetError::OperationInProgressException(inner) => {
1447 Error::OperationInProgressException(inner)
1448 }
1449 crate::operation::import_stacks_to_stack_set::ImportStacksToStackSetError::StackNotFoundException(inner) => {
1450 Error::StackNotFoundException(inner)
1451 }
1452 crate::operation::import_stacks_to_stack_set::ImportStacksToStackSetError::StackSetNotFoundException(inner) => {
1453 Error::StackSetNotFoundException(inner)
1454 }
1455 crate::operation::import_stacks_to_stack_set::ImportStacksToStackSetError::StaleRequestException(inner) => {
1456 Error::StaleRequestException(inner)
1457 }
1458 crate::operation::import_stacks_to_stack_set::ImportStacksToStackSetError::Unhandled(inner) => Error::Unhandled(inner),
1459 }
1460 }
1461}
1462impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_change_sets::ListChangeSetsError, R>> for Error
1463where
1464 R: Send + Sync + std::fmt::Debug + 'static,
1465{
1466 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_change_sets::ListChangeSetsError, R>) -> Self {
1467 match err {
1468 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1469 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1470 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1471 source: err.into(),
1472 }),
1473 }
1474 }
1475}
1476impl From<crate::operation::list_change_sets::ListChangeSetsError> for Error {
1477 fn from(err: crate::operation::list_change_sets::ListChangeSetsError) -> Self {
1478 match err {
1479 crate::operation::list_change_sets::ListChangeSetsError::Unhandled(inner) => Error::Unhandled(inner),
1480 }
1481 }
1482}
1483impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_exports::ListExportsError, R>> for Error
1484where
1485 R: Send + Sync + std::fmt::Debug + 'static,
1486{
1487 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_exports::ListExportsError, R>) -> Self {
1488 match err {
1489 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1490 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1491 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1492 source: err.into(),
1493 }),
1494 }
1495 }
1496}
1497impl From<crate::operation::list_exports::ListExportsError> for Error {
1498 fn from(err: crate::operation::list_exports::ListExportsError) -> Self {
1499 match err {
1500 crate::operation::list_exports::ListExportsError::Unhandled(inner) => Error::Unhandled(inner),
1501 }
1502 }
1503}
1504impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_generated_templates::ListGeneratedTemplatesError, R>> for Error
1505where
1506 R: Send + Sync + std::fmt::Debug + 'static,
1507{
1508 fn from(
1509 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_generated_templates::ListGeneratedTemplatesError, R>,
1510 ) -> Self {
1511 match err {
1512 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1513 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1514 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1515 source: err.into(),
1516 }),
1517 }
1518 }
1519}
1520impl From<crate::operation::list_generated_templates::ListGeneratedTemplatesError> for Error {
1521 fn from(err: crate::operation::list_generated_templates::ListGeneratedTemplatesError) -> Self {
1522 match err {
1523 crate::operation::list_generated_templates::ListGeneratedTemplatesError::Unhandled(inner) => Error::Unhandled(inner),
1524 }
1525 }
1526}
1527impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_hook_results::ListHookResultsError, R>> for Error
1528where
1529 R: Send + Sync + std::fmt::Debug + 'static,
1530{
1531 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_hook_results::ListHookResultsError, R>) -> Self {
1532 match err {
1533 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1534 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1535 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1536 source: err.into(),
1537 }),
1538 }
1539 }
1540}
1541impl From<crate::operation::list_hook_results::ListHookResultsError> for Error {
1542 fn from(err: crate::operation::list_hook_results::ListHookResultsError) -> Self {
1543 match err {
1544 crate::operation::list_hook_results::ListHookResultsError::HookResultNotFoundException(inner) => {
1545 Error::HookResultNotFoundException(inner)
1546 }
1547 crate::operation::list_hook_results::ListHookResultsError::Unhandled(inner) => Error::Unhandled(inner),
1548 }
1549 }
1550}
1551impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_imports::ListImportsError, R>> for Error
1552where
1553 R: Send + Sync + std::fmt::Debug + 'static,
1554{
1555 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_imports::ListImportsError, R>) -> Self {
1556 match err {
1557 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1558 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1559 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1560 source: err.into(),
1561 }),
1562 }
1563 }
1564}
1565impl From<crate::operation::list_imports::ListImportsError> for Error {
1566 fn from(err: crate::operation::list_imports::ListImportsError) -> Self {
1567 match err {
1568 crate::operation::list_imports::ListImportsError::Unhandled(inner) => Error::Unhandled(inner),
1569 }
1570 }
1571}
1572impl<R>
1573 From<
1574 ::aws_smithy_runtime_api::client::result::SdkError<
1575 crate::operation::list_resource_scan_related_resources::ListResourceScanRelatedResourcesError,
1576 R,
1577 >,
1578 > for Error
1579where
1580 R: Send + Sync + std::fmt::Debug + 'static,
1581{
1582 fn from(
1583 err: ::aws_smithy_runtime_api::client::result::SdkError<
1584 crate::operation::list_resource_scan_related_resources::ListResourceScanRelatedResourcesError,
1585 R,
1586 >,
1587 ) -> Self {
1588 match err {
1589 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1590 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1591 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1592 source: err.into(),
1593 }),
1594 }
1595 }
1596}
1597impl From<crate::operation::list_resource_scan_related_resources::ListResourceScanRelatedResourcesError> for Error {
1598 fn from(err: crate::operation::list_resource_scan_related_resources::ListResourceScanRelatedResourcesError) -> Self {
1599 match err {
1600 crate::operation::list_resource_scan_related_resources::ListResourceScanRelatedResourcesError::ResourceScanInProgressException(inner) => {
1601 Error::ResourceScanInProgressException(inner)
1602 }
1603 crate::operation::list_resource_scan_related_resources::ListResourceScanRelatedResourcesError::ResourceScanNotFoundException(inner) => {
1604 Error::ResourceScanNotFoundException(inner)
1605 }
1606 crate::operation::list_resource_scan_related_resources::ListResourceScanRelatedResourcesError::Unhandled(inner) => {
1607 Error::Unhandled(inner)
1608 }
1609 }
1610 }
1611}
1612impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_resource_scan_resources::ListResourceScanResourcesError, R>>
1613 for Error
1614where
1615 R: Send + Sync + std::fmt::Debug + 'static,
1616{
1617 fn from(
1618 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_resource_scan_resources::ListResourceScanResourcesError, R>,
1619 ) -> Self {
1620 match err {
1621 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1622 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1623 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1624 source: err.into(),
1625 }),
1626 }
1627 }
1628}
1629impl From<crate::operation::list_resource_scan_resources::ListResourceScanResourcesError> for Error {
1630 fn from(err: crate::operation::list_resource_scan_resources::ListResourceScanResourcesError) -> Self {
1631 match err {
1632 crate::operation::list_resource_scan_resources::ListResourceScanResourcesError::ResourceScanInProgressException(inner) => {
1633 Error::ResourceScanInProgressException(inner)
1634 }
1635 crate::operation::list_resource_scan_resources::ListResourceScanResourcesError::ResourceScanNotFoundException(inner) => {
1636 Error::ResourceScanNotFoundException(inner)
1637 }
1638 crate::operation::list_resource_scan_resources::ListResourceScanResourcesError::Unhandled(inner) => Error::Unhandled(inner),
1639 }
1640 }
1641}
1642impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_resource_scans::ListResourceScansError, R>> for Error
1643where
1644 R: Send + Sync + std::fmt::Debug + 'static,
1645{
1646 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_resource_scans::ListResourceScansError, R>) -> Self {
1647 match err {
1648 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1649 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1650 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1651 source: err.into(),
1652 }),
1653 }
1654 }
1655}
1656impl From<crate::operation::list_resource_scans::ListResourceScansError> for Error {
1657 fn from(err: crate::operation::list_resource_scans::ListResourceScansError) -> Self {
1658 match err {
1659 crate::operation::list_resource_scans::ListResourceScansError::Unhandled(inner) => Error::Unhandled(inner),
1660 }
1661 }
1662}
1663impl<R>
1664 From<
1665 ::aws_smithy_runtime_api::client::result::SdkError<
1666 crate::operation::list_stack_instance_resource_drifts::ListStackInstanceResourceDriftsError,
1667 R,
1668 >,
1669 > for Error
1670where
1671 R: Send + Sync + std::fmt::Debug + 'static,
1672{
1673 fn from(
1674 err: ::aws_smithy_runtime_api::client::result::SdkError<
1675 crate::operation::list_stack_instance_resource_drifts::ListStackInstanceResourceDriftsError,
1676 R,
1677 >,
1678 ) -> Self {
1679 match err {
1680 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1681 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1682 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1683 source: err.into(),
1684 }),
1685 }
1686 }
1687}
1688impl From<crate::operation::list_stack_instance_resource_drifts::ListStackInstanceResourceDriftsError> for Error {
1689 fn from(err: crate::operation::list_stack_instance_resource_drifts::ListStackInstanceResourceDriftsError) -> Self {
1690 match err {
1691 crate::operation::list_stack_instance_resource_drifts::ListStackInstanceResourceDriftsError::OperationNotFoundException(inner) => {
1692 Error::OperationNotFoundException(inner)
1693 }
1694 crate::operation::list_stack_instance_resource_drifts::ListStackInstanceResourceDriftsError::StackInstanceNotFoundException(inner) => {
1695 Error::StackInstanceNotFoundException(inner)
1696 }
1697 crate::operation::list_stack_instance_resource_drifts::ListStackInstanceResourceDriftsError::StackSetNotFoundException(inner) => {
1698 Error::StackSetNotFoundException(inner)
1699 }
1700 crate::operation::list_stack_instance_resource_drifts::ListStackInstanceResourceDriftsError::Unhandled(inner) => Error::Unhandled(inner),
1701 }
1702 }
1703}
1704impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_stack_instances::ListStackInstancesError, R>> for Error
1705where
1706 R: Send + Sync + std::fmt::Debug + 'static,
1707{
1708 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_stack_instances::ListStackInstancesError, R>) -> Self {
1709 match err {
1710 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1711 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1712 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1713 source: err.into(),
1714 }),
1715 }
1716 }
1717}
1718impl From<crate::operation::list_stack_instances::ListStackInstancesError> for Error {
1719 fn from(err: crate::operation::list_stack_instances::ListStackInstancesError) -> Self {
1720 match err {
1721 crate::operation::list_stack_instances::ListStackInstancesError::StackSetNotFoundException(inner) => {
1722 Error::StackSetNotFoundException(inner)
1723 }
1724 crate::operation::list_stack_instances::ListStackInstancesError::Unhandled(inner) => Error::Unhandled(inner),
1725 }
1726 }
1727}
1728impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_stack_refactor_actions::ListStackRefactorActionsError, R>>
1729 for Error
1730where
1731 R: Send + Sync + std::fmt::Debug + 'static,
1732{
1733 fn from(
1734 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_stack_refactor_actions::ListStackRefactorActionsError, R>,
1735 ) -> Self {
1736 match err {
1737 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1738 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1739 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1740 source: err.into(),
1741 }),
1742 }
1743 }
1744}
1745impl From<crate::operation::list_stack_refactor_actions::ListStackRefactorActionsError> for Error {
1746 fn from(err: crate::operation::list_stack_refactor_actions::ListStackRefactorActionsError) -> Self {
1747 match err {
1748 crate::operation::list_stack_refactor_actions::ListStackRefactorActionsError::Unhandled(inner) => Error::Unhandled(inner),
1749 }
1750 }
1751}
1752impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_stack_refactors::ListStackRefactorsError, R>> for Error
1753where
1754 R: Send + Sync + std::fmt::Debug + 'static,
1755{
1756 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_stack_refactors::ListStackRefactorsError, R>) -> Self {
1757 match err {
1758 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1759 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1760 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1761 source: err.into(),
1762 }),
1763 }
1764 }
1765}
1766impl From<crate::operation::list_stack_refactors::ListStackRefactorsError> for Error {
1767 fn from(err: crate::operation::list_stack_refactors::ListStackRefactorsError) -> Self {
1768 match err {
1769 crate::operation::list_stack_refactors::ListStackRefactorsError::Unhandled(inner) => Error::Unhandled(inner),
1770 }
1771 }
1772}
1773impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_stack_resources::ListStackResourcesError, R>> for Error
1774where
1775 R: Send + Sync + std::fmt::Debug + 'static,
1776{
1777 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_stack_resources::ListStackResourcesError, R>) -> Self {
1778 match err {
1779 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1780 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1781 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1782 source: err.into(),
1783 }),
1784 }
1785 }
1786}
1787impl From<crate::operation::list_stack_resources::ListStackResourcesError> for Error {
1788 fn from(err: crate::operation::list_stack_resources::ListStackResourcesError) -> Self {
1789 match err {
1790 crate::operation::list_stack_resources::ListStackResourcesError::Unhandled(inner) => Error::Unhandled(inner),
1791 }
1792 }
1793}
1794impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_stacks::ListStacksError, R>> for Error
1795where
1796 R: Send + Sync + std::fmt::Debug + 'static,
1797{
1798 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_stacks::ListStacksError, R>) -> Self {
1799 match err {
1800 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1801 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1802 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1803 source: err.into(),
1804 }),
1805 }
1806 }
1807}
1808impl From<crate::operation::list_stacks::ListStacksError> for Error {
1809 fn from(err: crate::operation::list_stacks::ListStacksError) -> Self {
1810 match err {
1811 crate::operation::list_stacks::ListStacksError::Unhandled(inner) => Error::Unhandled(inner),
1812 }
1813 }
1814}
1815impl<R>
1816 From<
1817 ::aws_smithy_runtime_api::client::result::SdkError<
1818 crate::operation::list_stack_set_auto_deployment_targets::ListStackSetAutoDeploymentTargetsError,
1819 R,
1820 >,
1821 > for Error
1822where
1823 R: Send + Sync + std::fmt::Debug + 'static,
1824{
1825 fn from(
1826 err: ::aws_smithy_runtime_api::client::result::SdkError<
1827 crate::operation::list_stack_set_auto_deployment_targets::ListStackSetAutoDeploymentTargetsError,
1828 R,
1829 >,
1830 ) -> Self {
1831 match err {
1832 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1833 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1834 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1835 source: err.into(),
1836 }),
1837 }
1838 }
1839}
1840impl From<crate::operation::list_stack_set_auto_deployment_targets::ListStackSetAutoDeploymentTargetsError> for Error {
1841 fn from(err: crate::operation::list_stack_set_auto_deployment_targets::ListStackSetAutoDeploymentTargetsError) -> Self {
1842 match err {
1843 crate::operation::list_stack_set_auto_deployment_targets::ListStackSetAutoDeploymentTargetsError::StackSetNotFoundException(inner) => {
1844 Error::StackSetNotFoundException(inner)
1845 }
1846 crate::operation::list_stack_set_auto_deployment_targets::ListStackSetAutoDeploymentTargetsError::Unhandled(inner) => {
1847 Error::Unhandled(inner)
1848 }
1849 }
1850 }
1851}
1852impl<R>
1853 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_stack_set_operation_results::ListStackSetOperationResultsError, R>>
1854 for Error
1855where
1856 R: Send + Sync + std::fmt::Debug + 'static,
1857{
1858 fn from(
1859 err: ::aws_smithy_runtime_api::client::result::SdkError<
1860 crate::operation::list_stack_set_operation_results::ListStackSetOperationResultsError,
1861 R,
1862 >,
1863 ) -> Self {
1864 match err {
1865 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1866 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1867 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1868 source: err.into(),
1869 }),
1870 }
1871 }
1872}
1873impl From<crate::operation::list_stack_set_operation_results::ListStackSetOperationResultsError> for Error {
1874 fn from(err: crate::operation::list_stack_set_operation_results::ListStackSetOperationResultsError) -> Self {
1875 match err {
1876 crate::operation::list_stack_set_operation_results::ListStackSetOperationResultsError::OperationNotFoundException(inner) => {
1877 Error::OperationNotFoundException(inner)
1878 }
1879 crate::operation::list_stack_set_operation_results::ListStackSetOperationResultsError::StackSetNotFoundException(inner) => {
1880 Error::StackSetNotFoundException(inner)
1881 }
1882 crate::operation::list_stack_set_operation_results::ListStackSetOperationResultsError::Unhandled(inner) => Error::Unhandled(inner),
1883 }
1884 }
1885}
1886impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_stack_set_operations::ListStackSetOperationsError, R>>
1887 for Error
1888where
1889 R: Send + Sync + std::fmt::Debug + 'static,
1890{
1891 fn from(
1892 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_stack_set_operations::ListStackSetOperationsError, R>,
1893 ) -> Self {
1894 match err {
1895 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1896 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1897 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1898 source: err.into(),
1899 }),
1900 }
1901 }
1902}
1903impl From<crate::operation::list_stack_set_operations::ListStackSetOperationsError> for Error {
1904 fn from(err: crate::operation::list_stack_set_operations::ListStackSetOperationsError) -> Self {
1905 match err {
1906 crate::operation::list_stack_set_operations::ListStackSetOperationsError::StackSetNotFoundException(inner) => {
1907 Error::StackSetNotFoundException(inner)
1908 }
1909 crate::operation::list_stack_set_operations::ListStackSetOperationsError::Unhandled(inner) => Error::Unhandled(inner),
1910 }
1911 }
1912}
1913impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_stack_sets::ListStackSetsError, R>> for Error
1914where
1915 R: Send + Sync + std::fmt::Debug + 'static,
1916{
1917 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_stack_sets::ListStackSetsError, R>) -> Self {
1918 match err {
1919 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1920 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1921 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1922 source: err.into(),
1923 }),
1924 }
1925 }
1926}
1927impl From<crate::operation::list_stack_sets::ListStackSetsError> for Error {
1928 fn from(err: crate::operation::list_stack_sets::ListStackSetsError) -> Self {
1929 match err {
1930 crate::operation::list_stack_sets::ListStackSetsError::Unhandled(inner) => Error::Unhandled(inner),
1931 }
1932 }
1933}
1934impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_type_registrations::ListTypeRegistrationsError, R>> for Error
1935where
1936 R: Send + Sync + std::fmt::Debug + 'static,
1937{
1938 fn from(
1939 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_type_registrations::ListTypeRegistrationsError, R>,
1940 ) -> Self {
1941 match err {
1942 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1943 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1944 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1945 source: err.into(),
1946 }),
1947 }
1948 }
1949}
1950impl From<crate::operation::list_type_registrations::ListTypeRegistrationsError> for Error {
1951 fn from(err: crate::operation::list_type_registrations::ListTypeRegistrationsError) -> Self {
1952 match err {
1953 crate::operation::list_type_registrations::ListTypeRegistrationsError::CfnRegistryException(inner) => Error::CfnRegistryException(inner),
1954 crate::operation::list_type_registrations::ListTypeRegistrationsError::Unhandled(inner) => Error::Unhandled(inner),
1955 }
1956 }
1957}
1958impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_types::ListTypesError, R>> for Error
1959where
1960 R: Send + Sync + std::fmt::Debug + 'static,
1961{
1962 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_types::ListTypesError, R>) -> Self {
1963 match err {
1964 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1965 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1966 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1967 source: err.into(),
1968 }),
1969 }
1970 }
1971}
1972impl From<crate::operation::list_types::ListTypesError> for Error {
1973 fn from(err: crate::operation::list_types::ListTypesError) -> Self {
1974 match err {
1975 crate::operation::list_types::ListTypesError::CfnRegistryException(inner) => Error::CfnRegistryException(inner),
1976 crate::operation::list_types::ListTypesError::Unhandled(inner) => Error::Unhandled(inner),
1977 }
1978 }
1979}
1980impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_type_versions::ListTypeVersionsError, R>> for Error
1981where
1982 R: Send + Sync + std::fmt::Debug + 'static,
1983{
1984 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_type_versions::ListTypeVersionsError, R>) -> Self {
1985 match err {
1986 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1987 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1988 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1989 source: err.into(),
1990 }),
1991 }
1992 }
1993}
1994impl From<crate::operation::list_type_versions::ListTypeVersionsError> for Error {
1995 fn from(err: crate::operation::list_type_versions::ListTypeVersionsError) -> Self {
1996 match err {
1997 crate::operation::list_type_versions::ListTypeVersionsError::CfnRegistryException(inner) => Error::CfnRegistryException(inner),
1998 crate::operation::list_type_versions::ListTypeVersionsError::Unhandled(inner) => Error::Unhandled(inner),
1999 }
2000 }
2001}
2002impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::publish_type::PublishTypeError, R>> for Error
2003where
2004 R: Send + Sync + std::fmt::Debug + 'static,
2005{
2006 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::publish_type::PublishTypeError, R>) -> Self {
2007 match err {
2008 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2009 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2010 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2011 source: err.into(),
2012 }),
2013 }
2014 }
2015}
2016impl From<crate::operation::publish_type::PublishTypeError> for Error {
2017 fn from(err: crate::operation::publish_type::PublishTypeError) -> Self {
2018 match err {
2019 crate::operation::publish_type::PublishTypeError::CfnRegistryException(inner) => Error::CfnRegistryException(inner),
2020 crate::operation::publish_type::PublishTypeError::TypeNotFoundException(inner) => Error::TypeNotFoundException(inner),
2021 crate::operation::publish_type::PublishTypeError::Unhandled(inner) => Error::Unhandled(inner),
2022 }
2023 }
2024}
2025impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::record_handler_progress::RecordHandlerProgressError, R>> for Error
2026where
2027 R: Send + Sync + std::fmt::Debug + 'static,
2028{
2029 fn from(
2030 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::record_handler_progress::RecordHandlerProgressError, R>,
2031 ) -> Self {
2032 match err {
2033 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2034 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2035 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2036 source: err.into(),
2037 }),
2038 }
2039 }
2040}
2041impl From<crate::operation::record_handler_progress::RecordHandlerProgressError> for Error {
2042 fn from(err: crate::operation::record_handler_progress::RecordHandlerProgressError) -> Self {
2043 match err {
2044 crate::operation::record_handler_progress::RecordHandlerProgressError::InvalidStateTransitionException(inner) => {
2045 Error::InvalidStateTransitionException(inner)
2046 }
2047 crate::operation::record_handler_progress::RecordHandlerProgressError::OperationStatusCheckFailedException(inner) => {
2048 Error::OperationStatusCheckFailedException(inner)
2049 }
2050 crate::operation::record_handler_progress::RecordHandlerProgressError::Unhandled(inner) => Error::Unhandled(inner),
2051 }
2052 }
2053}
2054impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_publisher::RegisterPublisherError, R>> for Error
2055where
2056 R: Send + Sync + std::fmt::Debug + 'static,
2057{
2058 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_publisher::RegisterPublisherError, R>) -> Self {
2059 match err {
2060 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2061 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2062 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2063 source: err.into(),
2064 }),
2065 }
2066 }
2067}
2068impl From<crate::operation::register_publisher::RegisterPublisherError> for Error {
2069 fn from(err: crate::operation::register_publisher::RegisterPublisherError) -> Self {
2070 match err {
2071 crate::operation::register_publisher::RegisterPublisherError::CfnRegistryException(inner) => Error::CfnRegistryException(inner),
2072 crate::operation::register_publisher::RegisterPublisherError::Unhandled(inner) => Error::Unhandled(inner),
2073 }
2074 }
2075}
2076impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_type::RegisterTypeError, R>> for Error
2077where
2078 R: Send + Sync + std::fmt::Debug + 'static,
2079{
2080 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_type::RegisterTypeError, R>) -> Self {
2081 match err {
2082 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2083 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2084 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2085 source: err.into(),
2086 }),
2087 }
2088 }
2089}
2090impl From<crate::operation::register_type::RegisterTypeError> for Error {
2091 fn from(err: crate::operation::register_type::RegisterTypeError) -> Self {
2092 match err {
2093 crate::operation::register_type::RegisterTypeError::CfnRegistryException(inner) => Error::CfnRegistryException(inner),
2094 crate::operation::register_type::RegisterTypeError::Unhandled(inner) => Error::Unhandled(inner),
2095 }
2096 }
2097}
2098impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::rollback_stack::RollbackStackError, R>> for Error
2099where
2100 R: Send + Sync + std::fmt::Debug + 'static,
2101{
2102 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::rollback_stack::RollbackStackError, R>) -> Self {
2103 match err {
2104 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2105 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2106 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2107 source: err.into(),
2108 }),
2109 }
2110 }
2111}
2112impl From<crate::operation::rollback_stack::RollbackStackError> for Error {
2113 fn from(err: crate::operation::rollback_stack::RollbackStackError) -> Self {
2114 match err {
2115 crate::operation::rollback_stack::RollbackStackError::TokenAlreadyExistsException(inner) => Error::TokenAlreadyExistsException(inner),
2116 crate::operation::rollback_stack::RollbackStackError::Unhandled(inner) => Error::Unhandled(inner),
2117 }
2118 }
2119}
2120impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_stack_policy::SetStackPolicyError, R>> for Error
2121where
2122 R: Send + Sync + std::fmt::Debug + 'static,
2123{
2124 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_stack_policy::SetStackPolicyError, R>) -> Self {
2125 match err {
2126 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2127 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2128 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2129 source: err.into(),
2130 }),
2131 }
2132 }
2133}
2134impl From<crate::operation::set_stack_policy::SetStackPolicyError> for Error {
2135 fn from(err: crate::operation::set_stack_policy::SetStackPolicyError) -> Self {
2136 match err {
2137 crate::operation::set_stack_policy::SetStackPolicyError::Unhandled(inner) => Error::Unhandled(inner),
2138 }
2139 }
2140}
2141impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_type_configuration::SetTypeConfigurationError, R>> for Error
2142where
2143 R: Send + Sync + std::fmt::Debug + 'static,
2144{
2145 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_type_configuration::SetTypeConfigurationError, R>) -> Self {
2146 match err {
2147 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2148 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2149 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2150 source: err.into(),
2151 }),
2152 }
2153 }
2154}
2155impl From<crate::operation::set_type_configuration::SetTypeConfigurationError> for Error {
2156 fn from(err: crate::operation::set_type_configuration::SetTypeConfigurationError) -> Self {
2157 match err {
2158 crate::operation::set_type_configuration::SetTypeConfigurationError::CfnRegistryException(inner) => Error::CfnRegistryException(inner),
2159 crate::operation::set_type_configuration::SetTypeConfigurationError::TypeNotFoundException(inner) => Error::TypeNotFoundException(inner),
2160 crate::operation::set_type_configuration::SetTypeConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
2161 }
2162 }
2163}
2164impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_type_default_version::SetTypeDefaultVersionError, R>> for Error
2165where
2166 R: Send + Sync + std::fmt::Debug + 'static,
2167{
2168 fn from(
2169 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_type_default_version::SetTypeDefaultVersionError, R>,
2170 ) -> Self {
2171 match err {
2172 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2173 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2174 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2175 source: err.into(),
2176 }),
2177 }
2178 }
2179}
2180impl From<crate::operation::set_type_default_version::SetTypeDefaultVersionError> for Error {
2181 fn from(err: crate::operation::set_type_default_version::SetTypeDefaultVersionError) -> Self {
2182 match err {
2183 crate::operation::set_type_default_version::SetTypeDefaultVersionError::CfnRegistryException(inner) => Error::CfnRegistryException(inner),
2184 crate::operation::set_type_default_version::SetTypeDefaultVersionError::TypeNotFoundException(inner) => {
2185 Error::TypeNotFoundException(inner)
2186 }
2187 crate::operation::set_type_default_version::SetTypeDefaultVersionError::Unhandled(inner) => Error::Unhandled(inner),
2188 }
2189 }
2190}
2191impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::signal_resource::SignalResourceError, R>> for Error
2192where
2193 R: Send + Sync + std::fmt::Debug + 'static,
2194{
2195 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::signal_resource::SignalResourceError, R>) -> Self {
2196 match err {
2197 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2198 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2199 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2200 source: err.into(),
2201 }),
2202 }
2203 }
2204}
2205impl From<crate::operation::signal_resource::SignalResourceError> for Error {
2206 fn from(err: crate::operation::signal_resource::SignalResourceError) -> Self {
2207 match err {
2208 crate::operation::signal_resource::SignalResourceError::Unhandled(inner) => Error::Unhandled(inner),
2209 }
2210 }
2211}
2212impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_resource_scan::StartResourceScanError, R>> for Error
2213where
2214 R: Send + Sync + std::fmt::Debug + 'static,
2215{
2216 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_resource_scan::StartResourceScanError, R>) -> Self {
2217 match err {
2218 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2219 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2220 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2221 source: err.into(),
2222 }),
2223 }
2224 }
2225}
2226impl From<crate::operation::start_resource_scan::StartResourceScanError> for Error {
2227 fn from(err: crate::operation::start_resource_scan::StartResourceScanError) -> Self {
2228 match err {
2229 crate::operation::start_resource_scan::StartResourceScanError::ResourceScanInProgressException(inner) => {
2230 Error::ResourceScanInProgressException(inner)
2231 }
2232 crate::operation::start_resource_scan::StartResourceScanError::ResourceScanLimitExceededException(inner) => {
2233 Error::ResourceScanLimitExceededException(inner)
2234 }
2235 crate::operation::start_resource_scan::StartResourceScanError::Unhandled(inner) => Error::Unhandled(inner),
2236 }
2237 }
2238}
2239impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_stack_set_operation::StopStackSetOperationError, R>> for Error
2240where
2241 R: Send + Sync + std::fmt::Debug + 'static,
2242{
2243 fn from(
2244 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_stack_set_operation::StopStackSetOperationError, R>,
2245 ) -> Self {
2246 match err {
2247 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2248 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2249 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2250 source: err.into(),
2251 }),
2252 }
2253 }
2254}
2255impl From<crate::operation::stop_stack_set_operation::StopStackSetOperationError> for Error {
2256 fn from(err: crate::operation::stop_stack_set_operation::StopStackSetOperationError) -> Self {
2257 match err {
2258 crate::operation::stop_stack_set_operation::StopStackSetOperationError::InvalidOperationException(inner) => {
2259 Error::InvalidOperationException(inner)
2260 }
2261 crate::operation::stop_stack_set_operation::StopStackSetOperationError::OperationNotFoundException(inner) => {
2262 Error::OperationNotFoundException(inner)
2263 }
2264 crate::operation::stop_stack_set_operation::StopStackSetOperationError::StackSetNotFoundException(inner) => {
2265 Error::StackSetNotFoundException(inner)
2266 }
2267 crate::operation::stop_stack_set_operation::StopStackSetOperationError::Unhandled(inner) => Error::Unhandled(inner),
2268 }
2269 }
2270}
2271impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::test_type::TestTypeError, R>> for Error
2272where
2273 R: Send + Sync + std::fmt::Debug + 'static,
2274{
2275 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::test_type::TestTypeError, R>) -> Self {
2276 match err {
2277 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2278 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2279 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2280 source: err.into(),
2281 }),
2282 }
2283 }
2284}
2285impl From<crate::operation::test_type::TestTypeError> for Error {
2286 fn from(err: crate::operation::test_type::TestTypeError) -> Self {
2287 match err {
2288 crate::operation::test_type::TestTypeError::CfnRegistryException(inner) => Error::CfnRegistryException(inner),
2289 crate::operation::test_type::TestTypeError::TypeNotFoundException(inner) => Error::TypeNotFoundException(inner),
2290 crate::operation::test_type::TestTypeError::Unhandled(inner) => Error::Unhandled(inner),
2291 }
2292 }
2293}
2294impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_generated_template::UpdateGeneratedTemplateError, R>>
2295 for Error
2296where
2297 R: Send + Sync + std::fmt::Debug + 'static,
2298{
2299 fn from(
2300 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_generated_template::UpdateGeneratedTemplateError, R>,
2301 ) -> Self {
2302 match err {
2303 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2304 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2305 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2306 source: err.into(),
2307 }),
2308 }
2309 }
2310}
2311impl From<crate::operation::update_generated_template::UpdateGeneratedTemplateError> for Error {
2312 fn from(err: crate::operation::update_generated_template::UpdateGeneratedTemplateError) -> Self {
2313 match err {
2314 crate::operation::update_generated_template::UpdateGeneratedTemplateError::AlreadyExistsException(inner) => {
2315 Error::AlreadyExistsException(inner)
2316 }
2317 crate::operation::update_generated_template::UpdateGeneratedTemplateError::GeneratedTemplateNotFoundException(inner) => {
2318 Error::GeneratedTemplateNotFoundException(inner)
2319 }
2320 crate::operation::update_generated_template::UpdateGeneratedTemplateError::LimitExceededException(inner) => {
2321 Error::LimitExceededException(inner)
2322 }
2323 crate::operation::update_generated_template::UpdateGeneratedTemplateError::Unhandled(inner) => Error::Unhandled(inner),
2324 }
2325 }
2326}
2327impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_stack::UpdateStackError, R>> for Error
2328where
2329 R: Send + Sync + std::fmt::Debug + 'static,
2330{
2331 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_stack::UpdateStackError, R>) -> Self {
2332 match err {
2333 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2334 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2335 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2336 source: err.into(),
2337 }),
2338 }
2339 }
2340}
2341impl From<crate::operation::update_stack::UpdateStackError> for Error {
2342 fn from(err: crate::operation::update_stack::UpdateStackError) -> Self {
2343 match err {
2344 crate::operation::update_stack::UpdateStackError::InsufficientCapabilitiesException(inner) => {
2345 Error::InsufficientCapabilitiesException(inner)
2346 }
2347 crate::operation::update_stack::UpdateStackError::TokenAlreadyExistsException(inner) => Error::TokenAlreadyExistsException(inner),
2348 crate::operation::update_stack::UpdateStackError::Unhandled(inner) => Error::Unhandled(inner),
2349 }
2350 }
2351}
2352impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_stack_instances::UpdateStackInstancesError, R>> for Error
2353where
2354 R: Send + Sync + std::fmt::Debug + 'static,
2355{
2356 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_stack_instances::UpdateStackInstancesError, R>) -> Self {
2357 match err {
2358 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2359 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2360 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2361 source: err.into(),
2362 }),
2363 }
2364 }
2365}
2366impl From<crate::operation::update_stack_instances::UpdateStackInstancesError> for Error {
2367 fn from(err: crate::operation::update_stack_instances::UpdateStackInstancesError) -> Self {
2368 match err {
2369 crate::operation::update_stack_instances::UpdateStackInstancesError::InvalidOperationException(inner) => {
2370 Error::InvalidOperationException(inner)
2371 }
2372 crate::operation::update_stack_instances::UpdateStackInstancesError::OperationIdAlreadyExistsException(inner) => {
2373 Error::OperationIdAlreadyExistsException(inner)
2374 }
2375 crate::operation::update_stack_instances::UpdateStackInstancesError::OperationInProgressException(inner) => {
2376 Error::OperationInProgressException(inner)
2377 }
2378 crate::operation::update_stack_instances::UpdateStackInstancesError::StackInstanceNotFoundException(inner) => {
2379 Error::StackInstanceNotFoundException(inner)
2380 }
2381 crate::operation::update_stack_instances::UpdateStackInstancesError::StackSetNotFoundException(inner) => {
2382 Error::StackSetNotFoundException(inner)
2383 }
2384 crate::operation::update_stack_instances::UpdateStackInstancesError::StaleRequestException(inner) => Error::StaleRequestException(inner),
2385 crate::operation::update_stack_instances::UpdateStackInstancesError::Unhandled(inner) => Error::Unhandled(inner),
2386 }
2387 }
2388}
2389impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_stack_set::UpdateStackSetError, R>> for Error
2390where
2391 R: Send + Sync + std::fmt::Debug + 'static,
2392{
2393 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_stack_set::UpdateStackSetError, R>) -> Self {
2394 match err {
2395 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2396 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2397 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2398 source: err.into(),
2399 }),
2400 }
2401 }
2402}
2403impl From<crate::operation::update_stack_set::UpdateStackSetError> for Error {
2404 fn from(err: crate::operation::update_stack_set::UpdateStackSetError) -> Self {
2405 match err {
2406 crate::operation::update_stack_set::UpdateStackSetError::InvalidOperationException(inner) => Error::InvalidOperationException(inner),
2407 crate::operation::update_stack_set::UpdateStackSetError::OperationIdAlreadyExistsException(inner) => {
2408 Error::OperationIdAlreadyExistsException(inner)
2409 }
2410 crate::operation::update_stack_set::UpdateStackSetError::OperationInProgressException(inner) => {
2411 Error::OperationInProgressException(inner)
2412 }
2413 crate::operation::update_stack_set::UpdateStackSetError::StackInstanceNotFoundException(inner) => {
2414 Error::StackInstanceNotFoundException(inner)
2415 }
2416 crate::operation::update_stack_set::UpdateStackSetError::StackSetNotFoundException(inner) => Error::StackSetNotFoundException(inner),
2417 crate::operation::update_stack_set::UpdateStackSetError::StaleRequestException(inner) => Error::StaleRequestException(inner),
2418 crate::operation::update_stack_set::UpdateStackSetError::Unhandled(inner) => Error::Unhandled(inner),
2419 }
2420 }
2421}
2422impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_termination_protection::UpdateTerminationProtectionError, R>>
2423 for Error
2424where
2425 R: Send + Sync + std::fmt::Debug + 'static,
2426{
2427 fn from(
2428 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_termination_protection::UpdateTerminationProtectionError, R>,
2429 ) -> Self {
2430 match err {
2431 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2432 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2433 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2434 source: err.into(),
2435 }),
2436 }
2437 }
2438}
2439impl From<crate::operation::update_termination_protection::UpdateTerminationProtectionError> for Error {
2440 fn from(err: crate::operation::update_termination_protection::UpdateTerminationProtectionError) -> Self {
2441 match err {
2442 crate::operation::update_termination_protection::UpdateTerminationProtectionError::Unhandled(inner) => Error::Unhandled(inner),
2443 }
2444 }
2445}
2446impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::validate_template::ValidateTemplateError, R>> for Error
2447where
2448 R: Send + Sync + std::fmt::Debug + 'static,
2449{
2450 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::validate_template::ValidateTemplateError, R>) -> Self {
2451 match err {
2452 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2453 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2454 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2455 source: err.into(),
2456 }),
2457 }
2458 }
2459}
2460impl From<crate::operation::validate_template::ValidateTemplateError> for Error {
2461 fn from(err: crate::operation::validate_template::ValidateTemplateError) -> Self {
2462 match err {
2463 crate::operation::validate_template::ValidateTemplateError::Unhandled(inner) => Error::Unhandled(inner),
2464 }
2465 }
2466}
2467impl<O, E> ::std::convert::From<::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>> for Error
2468where
2469 O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
2470 E: ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static,
2471{
2472 fn from(err: ::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>) -> Self {
2473 Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2474 meta: ::std::default::Default::default(),
2475 source: err.into(),
2476 })
2477 }
2478}
2479impl ::std::error::Error for Error {
2480 fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
2481 match self {
2482 Error::AlreadyExistsException(inner) => inner.source(),
2483 Error::CfnRegistryException(inner) => inner.source(),
2484 Error::ChangeSetNotFoundException(inner) => inner.source(),
2485 Error::ConcurrentResourcesLimitExceededException(inner) => inner.source(),
2486 Error::CreatedButModifiedException(inner) => inner.source(),
2487 Error::GeneratedTemplateNotFoundException(inner) => inner.source(),
2488 Error::HookResultNotFoundException(inner) => inner.source(),
2489 Error::InsufficientCapabilitiesException(inner) => inner.source(),
2490 Error::InvalidChangeSetStatusException(inner) => inner.source(),
2491 Error::InvalidOperationException(inner) => inner.source(),
2492 Error::InvalidStateTransitionException(inner) => inner.source(),
2493 Error::LimitExceededException(inner) => inner.source(),
2494 Error::NameAlreadyExistsException(inner) => inner.source(),
2495 Error::OperationIdAlreadyExistsException(inner) => inner.source(),
2496 Error::OperationInProgressException(inner) => inner.source(),
2497 Error::OperationNotFoundException(inner) => inner.source(),
2498 Error::OperationStatusCheckFailedException(inner) => inner.source(),
2499 Error::ResourceScanInProgressException(inner) => inner.source(),
2500 Error::ResourceScanLimitExceededException(inner) => inner.source(),
2501 Error::ResourceScanNotFoundException(inner) => inner.source(),
2502 Error::StackInstanceNotFoundException(inner) => inner.source(),
2503 Error::StackNotFoundException(inner) => inner.source(),
2504 Error::StackRefactorNotFoundException(inner) => inner.source(),
2505 Error::StackSetNotEmptyException(inner) => inner.source(),
2506 Error::StackSetNotFoundException(inner) => inner.source(),
2507 Error::StaleRequestException(inner) => inner.source(),
2508 Error::TokenAlreadyExistsException(inner) => inner.source(),
2509 Error::TypeConfigurationNotFoundException(inner) => inner.source(),
2510 Error::TypeNotFoundException(inner) => inner.source(),
2511 Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
2512 }
2513 }
2514}
2515impl ::aws_types::request_id::RequestId for Error {
2516 fn request_id(&self) -> Option<&str> {
2517 match self {
2518 Self::AlreadyExistsException(e) => e.request_id(),
2519 Self::CfnRegistryException(e) => e.request_id(),
2520 Self::ChangeSetNotFoundException(e) => e.request_id(),
2521 Self::ConcurrentResourcesLimitExceededException(e) => e.request_id(),
2522 Self::CreatedButModifiedException(e) => e.request_id(),
2523 Self::GeneratedTemplateNotFoundException(e) => e.request_id(),
2524 Self::HookResultNotFoundException(e) => e.request_id(),
2525 Self::InsufficientCapabilitiesException(e) => e.request_id(),
2526 Self::InvalidChangeSetStatusException(e) => e.request_id(),
2527 Self::InvalidOperationException(e) => e.request_id(),
2528 Self::InvalidStateTransitionException(e) => e.request_id(),
2529 Self::LimitExceededException(e) => e.request_id(),
2530 Self::NameAlreadyExistsException(e) => e.request_id(),
2531 Self::OperationIdAlreadyExistsException(e) => e.request_id(),
2532 Self::OperationInProgressException(e) => e.request_id(),
2533 Self::OperationNotFoundException(e) => e.request_id(),
2534 Self::OperationStatusCheckFailedException(e) => e.request_id(),
2535 Self::ResourceScanInProgressException(e) => e.request_id(),
2536 Self::ResourceScanLimitExceededException(e) => e.request_id(),
2537 Self::ResourceScanNotFoundException(e) => e.request_id(),
2538 Self::StackInstanceNotFoundException(e) => e.request_id(),
2539 Self::StackNotFoundException(e) => e.request_id(),
2540 Self::StackRefactorNotFoundException(e) => e.request_id(),
2541 Self::StackSetNotEmptyException(e) => e.request_id(),
2542 Self::StackSetNotFoundException(e) => e.request_id(),
2543 Self::StaleRequestException(e) => e.request_id(),
2544 Self::TokenAlreadyExistsException(e) => e.request_id(),
2545 Self::TypeConfigurationNotFoundException(e) => e.request_id(),
2546 Self::TypeNotFoundException(e) => e.request_id(),
2547 Self::Unhandled(e) => e.meta.request_id(),
2548 }
2549 }
2550}