1#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6 ActionExecutionNotFoundException(crate::types::error::ActionExecutionNotFoundException),
8 ActionNotFoundException(crate::types::error::ActionNotFoundException),
10 ActionTypeNotFoundException(crate::types::error::ActionTypeNotFoundException),
12 ApprovalAlreadyCompletedException(crate::types::error::ApprovalAlreadyCompletedException),
14 ConcurrentModificationException(crate::types::error::ConcurrentModificationException),
16 ConcurrentPipelineExecutionsLimitExceededException(crate::types::error::ConcurrentPipelineExecutionsLimitExceededException),
18 ConditionNotOverridableException(crate::types::error::ConditionNotOverridableException),
20 ConflictException(crate::types::error::ConflictException),
22 DuplicatedStopRequestException(crate::types::error::DuplicatedStopRequestException),
24 InvalidActionDeclarationException(crate::types::error::InvalidActionDeclarationException),
26 InvalidApprovalTokenException(crate::types::error::InvalidApprovalTokenException),
28 InvalidArnException(crate::types::error::InvalidArnException),
30 InvalidBlockerDeclarationException(crate::types::error::InvalidBlockerDeclarationException),
32 InvalidClientTokenException(crate::types::error::InvalidClientTokenException),
34 InvalidJobException(crate::types::error::InvalidJobException),
36 InvalidJobStateException(crate::types::error::InvalidJobStateException),
38 InvalidNextTokenException(crate::types::error::InvalidNextTokenException),
40 InvalidNonceException(crate::types::error::InvalidNonceException),
42 InvalidStageDeclarationException(crate::types::error::InvalidStageDeclarationException),
44 InvalidStructureException(crate::types::error::InvalidStructureException),
46 InvalidTagsException(crate::types::error::InvalidTagsException),
48 InvalidWebhookAuthenticationParametersException(crate::types::error::InvalidWebhookAuthenticationParametersException),
50 InvalidWebhookFilterPatternException(crate::types::error::InvalidWebhookFilterPatternException),
52 JobNotFoundException(crate::types::error::JobNotFoundException),
54 LimitExceededException(crate::types::error::LimitExceededException),
56 NotLatestPipelineExecutionException(crate::types::error::NotLatestPipelineExecutionException),
58 OutputVariablesSizeExceededException(crate::types::error::OutputVariablesSizeExceededException),
60 PipelineExecutionNotFoundException(crate::types::error::PipelineExecutionNotFoundException),
62 PipelineExecutionNotStoppableException(crate::types::error::PipelineExecutionNotStoppableException),
64 PipelineExecutionOutdatedException(crate::types::error::PipelineExecutionOutdatedException),
66 PipelineNameInUseException(crate::types::error::PipelineNameInUseException),
68 PipelineNotFoundException(crate::types::error::PipelineNotFoundException),
70 PipelineVersionNotFoundException(crate::types::error::PipelineVersionNotFoundException),
72 RequestFailedException(crate::types::error::RequestFailedException),
74 ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
76 StageNotFoundException(crate::types::error::StageNotFoundException),
78 StageNotRetryableException(crate::types::error::StageNotRetryableException),
80 TooManyTagsException(crate::types::error::TooManyTagsException),
82 UnableToRollbackStageException(crate::types::error::UnableToRollbackStageException),
84 ValidationException(crate::types::error::ValidationException),
86 WebhookNotFoundException(crate::types::error::WebhookNotFoundException),
88 #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
90 variable wildcard pattern and check `.code()`:
91 \
92 `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
93 \
94 See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
95 Unhandled(crate::error::sealed_unhandled::Unhandled),
96}
97impl ::std::fmt::Display for Error {
98 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
99 match self {
100 Error::ActionExecutionNotFoundException(inner) => inner.fmt(f),
101 Error::ActionNotFoundException(inner) => inner.fmt(f),
102 Error::ActionTypeNotFoundException(inner) => inner.fmt(f),
103 Error::ApprovalAlreadyCompletedException(inner) => inner.fmt(f),
104 Error::ConcurrentModificationException(inner) => inner.fmt(f),
105 Error::ConcurrentPipelineExecutionsLimitExceededException(inner) => inner.fmt(f),
106 Error::ConditionNotOverridableException(inner) => inner.fmt(f),
107 Error::ConflictException(inner) => inner.fmt(f),
108 Error::DuplicatedStopRequestException(inner) => inner.fmt(f),
109 Error::InvalidActionDeclarationException(inner) => inner.fmt(f),
110 Error::InvalidApprovalTokenException(inner) => inner.fmt(f),
111 Error::InvalidArnException(inner) => inner.fmt(f),
112 Error::InvalidBlockerDeclarationException(inner) => inner.fmt(f),
113 Error::InvalidClientTokenException(inner) => inner.fmt(f),
114 Error::InvalidJobException(inner) => inner.fmt(f),
115 Error::InvalidJobStateException(inner) => inner.fmt(f),
116 Error::InvalidNextTokenException(inner) => inner.fmt(f),
117 Error::InvalidNonceException(inner) => inner.fmt(f),
118 Error::InvalidStageDeclarationException(inner) => inner.fmt(f),
119 Error::InvalidStructureException(inner) => inner.fmt(f),
120 Error::InvalidTagsException(inner) => inner.fmt(f),
121 Error::InvalidWebhookAuthenticationParametersException(inner) => inner.fmt(f),
122 Error::InvalidWebhookFilterPatternException(inner) => inner.fmt(f),
123 Error::JobNotFoundException(inner) => inner.fmt(f),
124 Error::LimitExceededException(inner) => inner.fmt(f),
125 Error::NotLatestPipelineExecutionException(inner) => inner.fmt(f),
126 Error::OutputVariablesSizeExceededException(inner) => inner.fmt(f),
127 Error::PipelineExecutionNotFoundException(inner) => inner.fmt(f),
128 Error::PipelineExecutionNotStoppableException(inner) => inner.fmt(f),
129 Error::PipelineExecutionOutdatedException(inner) => inner.fmt(f),
130 Error::PipelineNameInUseException(inner) => inner.fmt(f),
131 Error::PipelineNotFoundException(inner) => inner.fmt(f),
132 Error::PipelineVersionNotFoundException(inner) => inner.fmt(f),
133 Error::RequestFailedException(inner) => inner.fmt(f),
134 Error::ResourceNotFoundException(inner) => inner.fmt(f),
135 Error::StageNotFoundException(inner) => inner.fmt(f),
136 Error::StageNotRetryableException(inner) => inner.fmt(f),
137 Error::TooManyTagsException(inner) => inner.fmt(f),
138 Error::UnableToRollbackStageException(inner) => inner.fmt(f),
139 Error::ValidationException(inner) => inner.fmt(f),
140 Error::WebhookNotFoundException(inner) => inner.fmt(f),
141 Error::Unhandled(_) => {
142 if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
143 write!(f, "unhandled error ({code})")
144 } else {
145 f.write_str("unhandled error")
146 }
147 }
148 }
149 }
150}
151impl From<::aws_smithy_types::error::operation::BuildError> for Error {
152 fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
153 Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
154 source: value.into(),
155 meta: ::std::default::Default::default(),
156 })
157 }
158}
159impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
160 fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
161 match self {
162 Self::ActionExecutionNotFoundException(inner) => inner.meta(),
163 Self::ActionNotFoundException(inner) => inner.meta(),
164 Self::ActionTypeNotFoundException(inner) => inner.meta(),
165 Self::ApprovalAlreadyCompletedException(inner) => inner.meta(),
166 Self::ConcurrentModificationException(inner) => inner.meta(),
167 Self::ConcurrentPipelineExecutionsLimitExceededException(inner) => inner.meta(),
168 Self::ConditionNotOverridableException(inner) => inner.meta(),
169 Self::ConflictException(inner) => inner.meta(),
170 Self::DuplicatedStopRequestException(inner) => inner.meta(),
171 Self::InvalidActionDeclarationException(inner) => inner.meta(),
172 Self::InvalidApprovalTokenException(inner) => inner.meta(),
173 Self::InvalidArnException(inner) => inner.meta(),
174 Self::InvalidBlockerDeclarationException(inner) => inner.meta(),
175 Self::InvalidClientTokenException(inner) => inner.meta(),
176 Self::InvalidJobException(inner) => inner.meta(),
177 Self::InvalidJobStateException(inner) => inner.meta(),
178 Self::InvalidNextTokenException(inner) => inner.meta(),
179 Self::InvalidNonceException(inner) => inner.meta(),
180 Self::InvalidStageDeclarationException(inner) => inner.meta(),
181 Self::InvalidStructureException(inner) => inner.meta(),
182 Self::InvalidTagsException(inner) => inner.meta(),
183 Self::InvalidWebhookAuthenticationParametersException(inner) => inner.meta(),
184 Self::InvalidWebhookFilterPatternException(inner) => inner.meta(),
185 Self::JobNotFoundException(inner) => inner.meta(),
186 Self::LimitExceededException(inner) => inner.meta(),
187 Self::NotLatestPipelineExecutionException(inner) => inner.meta(),
188 Self::OutputVariablesSizeExceededException(inner) => inner.meta(),
189 Self::PipelineExecutionNotFoundException(inner) => inner.meta(),
190 Self::PipelineExecutionNotStoppableException(inner) => inner.meta(),
191 Self::PipelineExecutionOutdatedException(inner) => inner.meta(),
192 Self::PipelineNameInUseException(inner) => inner.meta(),
193 Self::PipelineNotFoundException(inner) => inner.meta(),
194 Self::PipelineVersionNotFoundException(inner) => inner.meta(),
195 Self::RequestFailedException(inner) => inner.meta(),
196 Self::ResourceNotFoundException(inner) => inner.meta(),
197 Self::StageNotFoundException(inner) => inner.meta(),
198 Self::StageNotRetryableException(inner) => inner.meta(),
199 Self::TooManyTagsException(inner) => inner.meta(),
200 Self::UnableToRollbackStageException(inner) => inner.meta(),
201 Self::ValidationException(inner) => inner.meta(),
202 Self::WebhookNotFoundException(inner) => inner.meta(),
203 Self::Unhandled(inner) => &inner.meta,
204 }
205 }
206}
207impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::acknowledge_job::AcknowledgeJobError, R>> for Error
208where
209 R: Send + Sync + std::fmt::Debug + 'static,
210{
211 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::acknowledge_job::AcknowledgeJobError, R>) -> Self {
212 match err {
213 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
214 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
215 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
216 source: err.into(),
217 }),
218 }
219 }
220}
221impl From<crate::operation::acknowledge_job::AcknowledgeJobError> for Error {
222 fn from(err: crate::operation::acknowledge_job::AcknowledgeJobError) -> Self {
223 match err {
224 crate::operation::acknowledge_job::AcknowledgeJobError::InvalidNonceException(inner) => Error::InvalidNonceException(inner),
225 crate::operation::acknowledge_job::AcknowledgeJobError::JobNotFoundException(inner) => Error::JobNotFoundException(inner),
226 crate::operation::acknowledge_job::AcknowledgeJobError::ValidationException(inner) => Error::ValidationException(inner),
227 crate::operation::acknowledge_job::AcknowledgeJobError::Unhandled(inner) => Error::Unhandled(inner),
228 }
229 }
230}
231impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::acknowledge_third_party_job::AcknowledgeThirdPartyJobError, R>>
232 for Error
233where
234 R: Send + Sync + std::fmt::Debug + 'static,
235{
236 fn from(
237 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::acknowledge_third_party_job::AcknowledgeThirdPartyJobError, R>,
238 ) -> Self {
239 match err {
240 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
241 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
242 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
243 source: err.into(),
244 }),
245 }
246 }
247}
248impl From<crate::operation::acknowledge_third_party_job::AcknowledgeThirdPartyJobError> for Error {
249 fn from(err: crate::operation::acknowledge_third_party_job::AcknowledgeThirdPartyJobError) -> Self {
250 match err {
251 crate::operation::acknowledge_third_party_job::AcknowledgeThirdPartyJobError::InvalidClientTokenException(inner) => {
252 Error::InvalidClientTokenException(inner)
253 }
254 crate::operation::acknowledge_third_party_job::AcknowledgeThirdPartyJobError::InvalidNonceException(inner) => {
255 Error::InvalidNonceException(inner)
256 }
257 crate::operation::acknowledge_third_party_job::AcknowledgeThirdPartyJobError::JobNotFoundException(inner) => {
258 Error::JobNotFoundException(inner)
259 }
260 crate::operation::acknowledge_third_party_job::AcknowledgeThirdPartyJobError::ValidationException(inner) => {
261 Error::ValidationException(inner)
262 }
263 crate::operation::acknowledge_third_party_job::AcknowledgeThirdPartyJobError::Unhandled(inner) => Error::Unhandled(inner),
264 }
265 }
266}
267impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_custom_action_type::CreateCustomActionTypeError, R>>
268 for Error
269where
270 R: Send + Sync + std::fmt::Debug + 'static,
271{
272 fn from(
273 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_custom_action_type::CreateCustomActionTypeError, R>,
274 ) -> Self {
275 match err {
276 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
277 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
278 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
279 source: err.into(),
280 }),
281 }
282 }
283}
284impl From<crate::operation::create_custom_action_type::CreateCustomActionTypeError> for Error {
285 fn from(err: crate::operation::create_custom_action_type::CreateCustomActionTypeError) -> Self {
286 match err {
287 crate::operation::create_custom_action_type::CreateCustomActionTypeError::ConcurrentModificationException(inner) => {
288 Error::ConcurrentModificationException(inner)
289 }
290 crate::operation::create_custom_action_type::CreateCustomActionTypeError::InvalidTagsException(inner) => {
291 Error::InvalidTagsException(inner)
292 }
293 crate::operation::create_custom_action_type::CreateCustomActionTypeError::LimitExceededException(inner) => {
294 Error::LimitExceededException(inner)
295 }
296 crate::operation::create_custom_action_type::CreateCustomActionTypeError::TooManyTagsException(inner) => {
297 Error::TooManyTagsException(inner)
298 }
299 crate::operation::create_custom_action_type::CreateCustomActionTypeError::ValidationException(inner) => Error::ValidationException(inner),
300 crate::operation::create_custom_action_type::CreateCustomActionTypeError::Unhandled(inner) => Error::Unhandled(inner),
301 }
302 }
303}
304impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_pipeline::CreatePipelineError, R>> for Error
305where
306 R: Send + Sync + std::fmt::Debug + 'static,
307{
308 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_pipeline::CreatePipelineError, R>) -> Self {
309 match err {
310 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
311 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
312 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
313 source: err.into(),
314 }),
315 }
316 }
317}
318impl From<crate::operation::create_pipeline::CreatePipelineError> for Error {
319 fn from(err: crate::operation::create_pipeline::CreatePipelineError) -> Self {
320 match err {
321 crate::operation::create_pipeline::CreatePipelineError::ConcurrentModificationException(inner) => {
322 Error::ConcurrentModificationException(inner)
323 }
324 crate::operation::create_pipeline::CreatePipelineError::InvalidActionDeclarationException(inner) => {
325 Error::InvalidActionDeclarationException(inner)
326 }
327 crate::operation::create_pipeline::CreatePipelineError::InvalidBlockerDeclarationException(inner) => {
328 Error::InvalidBlockerDeclarationException(inner)
329 }
330 crate::operation::create_pipeline::CreatePipelineError::InvalidStageDeclarationException(inner) => {
331 Error::InvalidStageDeclarationException(inner)
332 }
333 crate::operation::create_pipeline::CreatePipelineError::InvalidStructureException(inner) => Error::InvalidStructureException(inner),
334 crate::operation::create_pipeline::CreatePipelineError::InvalidTagsException(inner) => Error::InvalidTagsException(inner),
335 crate::operation::create_pipeline::CreatePipelineError::LimitExceededException(inner) => Error::LimitExceededException(inner),
336 crate::operation::create_pipeline::CreatePipelineError::PipelineNameInUseException(inner) => Error::PipelineNameInUseException(inner),
337 crate::operation::create_pipeline::CreatePipelineError::TooManyTagsException(inner) => Error::TooManyTagsException(inner),
338 crate::operation::create_pipeline::CreatePipelineError::ValidationException(inner) => Error::ValidationException(inner),
339 crate::operation::create_pipeline::CreatePipelineError::Unhandled(inner) => Error::Unhandled(inner),
340 }
341 }
342}
343impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_custom_action_type::DeleteCustomActionTypeError, R>>
344 for Error
345where
346 R: Send + Sync + std::fmt::Debug + 'static,
347{
348 fn from(
349 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_custom_action_type::DeleteCustomActionTypeError, R>,
350 ) -> Self {
351 match err {
352 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
353 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
354 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
355 source: err.into(),
356 }),
357 }
358 }
359}
360impl From<crate::operation::delete_custom_action_type::DeleteCustomActionTypeError> for Error {
361 fn from(err: crate::operation::delete_custom_action_type::DeleteCustomActionTypeError) -> Self {
362 match err {
363 crate::operation::delete_custom_action_type::DeleteCustomActionTypeError::ConcurrentModificationException(inner) => {
364 Error::ConcurrentModificationException(inner)
365 }
366 crate::operation::delete_custom_action_type::DeleteCustomActionTypeError::ValidationException(inner) => Error::ValidationException(inner),
367 crate::operation::delete_custom_action_type::DeleteCustomActionTypeError::Unhandled(inner) => Error::Unhandled(inner),
368 }
369 }
370}
371impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_pipeline::DeletePipelineError, R>> for Error
372where
373 R: Send + Sync + std::fmt::Debug + 'static,
374{
375 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_pipeline::DeletePipelineError, R>) -> Self {
376 match err {
377 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
378 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
379 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
380 source: err.into(),
381 }),
382 }
383 }
384}
385impl From<crate::operation::delete_pipeline::DeletePipelineError> for Error {
386 fn from(err: crate::operation::delete_pipeline::DeletePipelineError) -> Self {
387 match err {
388 crate::operation::delete_pipeline::DeletePipelineError::ConcurrentModificationException(inner) => {
389 Error::ConcurrentModificationException(inner)
390 }
391 crate::operation::delete_pipeline::DeletePipelineError::ValidationException(inner) => Error::ValidationException(inner),
392 crate::operation::delete_pipeline::DeletePipelineError::Unhandled(inner) => Error::Unhandled(inner),
393 }
394 }
395}
396impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_webhook::DeleteWebhookError, R>> for Error
397where
398 R: Send + Sync + std::fmt::Debug + 'static,
399{
400 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_webhook::DeleteWebhookError, R>) -> Self {
401 match err {
402 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
403 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
404 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
405 source: err.into(),
406 }),
407 }
408 }
409}
410impl From<crate::operation::delete_webhook::DeleteWebhookError> for Error {
411 fn from(err: crate::operation::delete_webhook::DeleteWebhookError) -> Self {
412 match err {
413 crate::operation::delete_webhook::DeleteWebhookError::ConcurrentModificationException(inner) => {
414 Error::ConcurrentModificationException(inner)
415 }
416 crate::operation::delete_webhook::DeleteWebhookError::ValidationException(inner) => Error::ValidationException(inner),
417 crate::operation::delete_webhook::DeleteWebhookError::Unhandled(inner) => Error::Unhandled(inner),
418 }
419 }
420}
421impl<R>
422 From<
423 ::aws_smithy_runtime_api::client::result::SdkError<
424 crate::operation::deregister_webhook_with_third_party::DeregisterWebhookWithThirdPartyError,
425 R,
426 >,
427 > for Error
428where
429 R: Send + Sync + std::fmt::Debug + 'static,
430{
431 fn from(
432 err: ::aws_smithy_runtime_api::client::result::SdkError<
433 crate::operation::deregister_webhook_with_third_party::DeregisterWebhookWithThirdPartyError,
434 R,
435 >,
436 ) -> 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::deregister_webhook_with_third_party::DeregisterWebhookWithThirdPartyError> for Error {
447 fn from(err: crate::operation::deregister_webhook_with_third_party::DeregisterWebhookWithThirdPartyError) -> Self {
448 match err {
449 crate::operation::deregister_webhook_with_third_party::DeregisterWebhookWithThirdPartyError::ValidationException(inner) => {
450 Error::ValidationException(inner)
451 }
452 crate::operation::deregister_webhook_with_third_party::DeregisterWebhookWithThirdPartyError::WebhookNotFoundException(inner) => {
453 Error::WebhookNotFoundException(inner)
454 }
455 crate::operation::deregister_webhook_with_third_party::DeregisterWebhookWithThirdPartyError::Unhandled(inner) => Error::Unhandled(inner),
456 }
457 }
458}
459impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_stage_transition::DisableStageTransitionError, R>> for Error
460where
461 R: Send + Sync + std::fmt::Debug + 'static,
462{
463 fn from(
464 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_stage_transition::DisableStageTransitionError, R>,
465 ) -> Self {
466 match err {
467 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
468 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
469 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
470 source: err.into(),
471 }),
472 }
473 }
474}
475impl From<crate::operation::disable_stage_transition::DisableStageTransitionError> for Error {
476 fn from(err: crate::operation::disable_stage_transition::DisableStageTransitionError) -> Self {
477 match err {
478 crate::operation::disable_stage_transition::DisableStageTransitionError::PipelineNotFoundException(inner) => {
479 Error::PipelineNotFoundException(inner)
480 }
481 crate::operation::disable_stage_transition::DisableStageTransitionError::StageNotFoundException(inner) => {
482 Error::StageNotFoundException(inner)
483 }
484 crate::operation::disable_stage_transition::DisableStageTransitionError::ValidationException(inner) => Error::ValidationException(inner),
485 crate::operation::disable_stage_transition::DisableStageTransitionError::Unhandled(inner) => Error::Unhandled(inner),
486 }
487 }
488}
489impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_stage_transition::EnableStageTransitionError, R>> for Error
490where
491 R: Send + Sync + std::fmt::Debug + 'static,
492{
493 fn from(
494 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_stage_transition::EnableStageTransitionError, R>,
495 ) -> Self {
496 match err {
497 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
498 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
499 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
500 source: err.into(),
501 }),
502 }
503 }
504}
505impl From<crate::operation::enable_stage_transition::EnableStageTransitionError> for Error {
506 fn from(err: crate::operation::enable_stage_transition::EnableStageTransitionError) -> Self {
507 match err {
508 crate::operation::enable_stage_transition::EnableStageTransitionError::PipelineNotFoundException(inner) => {
509 Error::PipelineNotFoundException(inner)
510 }
511 crate::operation::enable_stage_transition::EnableStageTransitionError::StageNotFoundException(inner) => {
512 Error::StageNotFoundException(inner)
513 }
514 crate::operation::enable_stage_transition::EnableStageTransitionError::ValidationException(inner) => Error::ValidationException(inner),
515 crate::operation::enable_stage_transition::EnableStageTransitionError::Unhandled(inner) => Error::Unhandled(inner),
516 }
517 }
518}
519impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_action_type::GetActionTypeError, R>> for Error
520where
521 R: Send + Sync + std::fmt::Debug + 'static,
522{
523 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_action_type::GetActionTypeError, R>) -> Self {
524 match err {
525 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
526 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
527 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
528 source: err.into(),
529 }),
530 }
531 }
532}
533impl From<crate::operation::get_action_type::GetActionTypeError> for Error {
534 fn from(err: crate::operation::get_action_type::GetActionTypeError) -> Self {
535 match err {
536 crate::operation::get_action_type::GetActionTypeError::ActionTypeNotFoundException(inner) => Error::ActionTypeNotFoundException(inner),
537 crate::operation::get_action_type::GetActionTypeError::ValidationException(inner) => Error::ValidationException(inner),
538 crate::operation::get_action_type::GetActionTypeError::Unhandled(inner) => Error::Unhandled(inner),
539 }
540 }
541}
542impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_job_details::GetJobDetailsError, R>> for Error
543where
544 R: Send + Sync + std::fmt::Debug + 'static,
545{
546 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_job_details::GetJobDetailsError, R>) -> Self {
547 match err {
548 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
549 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
550 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
551 source: err.into(),
552 }),
553 }
554 }
555}
556impl From<crate::operation::get_job_details::GetJobDetailsError> for Error {
557 fn from(err: crate::operation::get_job_details::GetJobDetailsError) -> Self {
558 match err {
559 crate::operation::get_job_details::GetJobDetailsError::JobNotFoundException(inner) => Error::JobNotFoundException(inner),
560 crate::operation::get_job_details::GetJobDetailsError::ValidationException(inner) => Error::ValidationException(inner),
561 crate::operation::get_job_details::GetJobDetailsError::Unhandled(inner) => Error::Unhandled(inner),
562 }
563 }
564}
565impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_pipeline::GetPipelineError, R>> for Error
566where
567 R: Send + Sync + std::fmt::Debug + 'static,
568{
569 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_pipeline::GetPipelineError, R>) -> Self {
570 match err {
571 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
572 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
573 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
574 source: err.into(),
575 }),
576 }
577 }
578}
579impl From<crate::operation::get_pipeline::GetPipelineError> for Error {
580 fn from(err: crate::operation::get_pipeline::GetPipelineError) -> Self {
581 match err {
582 crate::operation::get_pipeline::GetPipelineError::PipelineNotFoundException(inner) => Error::PipelineNotFoundException(inner),
583 crate::operation::get_pipeline::GetPipelineError::PipelineVersionNotFoundException(inner) => {
584 Error::PipelineVersionNotFoundException(inner)
585 }
586 crate::operation::get_pipeline::GetPipelineError::ValidationException(inner) => Error::ValidationException(inner),
587 crate::operation::get_pipeline::GetPipelineError::Unhandled(inner) => Error::Unhandled(inner),
588 }
589 }
590}
591impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_pipeline_execution::GetPipelineExecutionError, R>> for Error
592where
593 R: Send + Sync + std::fmt::Debug + 'static,
594{
595 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_pipeline_execution::GetPipelineExecutionError, R>) -> Self {
596 match err {
597 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
598 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
599 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
600 source: err.into(),
601 }),
602 }
603 }
604}
605impl From<crate::operation::get_pipeline_execution::GetPipelineExecutionError> for Error {
606 fn from(err: crate::operation::get_pipeline_execution::GetPipelineExecutionError) -> Self {
607 match err {
608 crate::operation::get_pipeline_execution::GetPipelineExecutionError::PipelineExecutionNotFoundException(inner) => {
609 Error::PipelineExecutionNotFoundException(inner)
610 }
611 crate::operation::get_pipeline_execution::GetPipelineExecutionError::PipelineNotFoundException(inner) => {
612 Error::PipelineNotFoundException(inner)
613 }
614 crate::operation::get_pipeline_execution::GetPipelineExecutionError::ValidationException(inner) => Error::ValidationException(inner),
615 crate::operation::get_pipeline_execution::GetPipelineExecutionError::Unhandled(inner) => Error::Unhandled(inner),
616 }
617 }
618}
619impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_pipeline_state::GetPipelineStateError, R>> for Error
620where
621 R: Send + Sync + std::fmt::Debug + 'static,
622{
623 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_pipeline_state::GetPipelineStateError, R>) -> Self {
624 match err {
625 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
626 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
627 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
628 source: err.into(),
629 }),
630 }
631 }
632}
633impl From<crate::operation::get_pipeline_state::GetPipelineStateError> for Error {
634 fn from(err: crate::operation::get_pipeline_state::GetPipelineStateError) -> Self {
635 match err {
636 crate::operation::get_pipeline_state::GetPipelineStateError::PipelineNotFoundException(inner) => Error::PipelineNotFoundException(inner),
637 crate::operation::get_pipeline_state::GetPipelineStateError::ValidationException(inner) => Error::ValidationException(inner),
638 crate::operation::get_pipeline_state::GetPipelineStateError::Unhandled(inner) => Error::Unhandled(inner),
639 }
640 }
641}
642impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_third_party_job_details::GetThirdPartyJobDetailsError, R>>
643 for Error
644where
645 R: Send + Sync + std::fmt::Debug + 'static,
646{
647 fn from(
648 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_third_party_job_details::GetThirdPartyJobDetailsError, R>,
649 ) -> Self {
650 match err {
651 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
652 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
653 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
654 source: err.into(),
655 }),
656 }
657 }
658}
659impl From<crate::operation::get_third_party_job_details::GetThirdPartyJobDetailsError> for Error {
660 fn from(err: crate::operation::get_third_party_job_details::GetThirdPartyJobDetailsError) -> Self {
661 match err {
662 crate::operation::get_third_party_job_details::GetThirdPartyJobDetailsError::InvalidClientTokenException(inner) => {
663 Error::InvalidClientTokenException(inner)
664 }
665 crate::operation::get_third_party_job_details::GetThirdPartyJobDetailsError::InvalidJobException(inner) => {
666 Error::InvalidJobException(inner)
667 }
668 crate::operation::get_third_party_job_details::GetThirdPartyJobDetailsError::JobNotFoundException(inner) => {
669 Error::JobNotFoundException(inner)
670 }
671 crate::operation::get_third_party_job_details::GetThirdPartyJobDetailsError::ValidationException(inner) => {
672 Error::ValidationException(inner)
673 }
674 crate::operation::get_third_party_job_details::GetThirdPartyJobDetailsError::Unhandled(inner) => Error::Unhandled(inner),
675 }
676 }
677}
678impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_action_executions::ListActionExecutionsError, R>> for Error
679where
680 R: Send + Sync + std::fmt::Debug + 'static,
681{
682 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_action_executions::ListActionExecutionsError, R>) -> Self {
683 match err {
684 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
685 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
686 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
687 source: err.into(),
688 }),
689 }
690 }
691}
692impl From<crate::operation::list_action_executions::ListActionExecutionsError> for Error {
693 fn from(err: crate::operation::list_action_executions::ListActionExecutionsError) -> Self {
694 match err {
695 crate::operation::list_action_executions::ListActionExecutionsError::InvalidNextTokenException(inner) => {
696 Error::InvalidNextTokenException(inner)
697 }
698 crate::operation::list_action_executions::ListActionExecutionsError::PipelineExecutionNotFoundException(inner) => {
699 Error::PipelineExecutionNotFoundException(inner)
700 }
701 crate::operation::list_action_executions::ListActionExecutionsError::PipelineNotFoundException(inner) => {
702 Error::PipelineNotFoundException(inner)
703 }
704 crate::operation::list_action_executions::ListActionExecutionsError::ValidationException(inner) => Error::ValidationException(inner),
705 crate::operation::list_action_executions::ListActionExecutionsError::Unhandled(inner) => Error::Unhandled(inner),
706 }
707 }
708}
709impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_action_types::ListActionTypesError, R>> for Error
710where
711 R: Send + Sync + std::fmt::Debug + 'static,
712{
713 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_action_types::ListActionTypesError, R>) -> Self {
714 match err {
715 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
716 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
717 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
718 source: err.into(),
719 }),
720 }
721 }
722}
723impl From<crate::operation::list_action_types::ListActionTypesError> for Error {
724 fn from(err: crate::operation::list_action_types::ListActionTypesError) -> Self {
725 match err {
726 crate::operation::list_action_types::ListActionTypesError::InvalidNextTokenException(inner) => Error::InvalidNextTokenException(inner),
727 crate::operation::list_action_types::ListActionTypesError::ValidationException(inner) => Error::ValidationException(inner),
728 crate::operation::list_action_types::ListActionTypesError::Unhandled(inner) => Error::Unhandled(inner),
729 }
730 }
731}
732impl<R>
733 From<
734 ::aws_smithy_runtime_api::client::result::SdkError<
735 crate::operation::list_deploy_action_execution_targets::ListDeployActionExecutionTargetsError,
736 R,
737 >,
738 > for Error
739where
740 R: Send + Sync + std::fmt::Debug + 'static,
741{
742 fn from(
743 err: ::aws_smithy_runtime_api::client::result::SdkError<
744 crate::operation::list_deploy_action_execution_targets::ListDeployActionExecutionTargetsError,
745 R,
746 >,
747 ) -> Self {
748 match err {
749 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
750 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
751 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
752 source: err.into(),
753 }),
754 }
755 }
756}
757impl From<crate::operation::list_deploy_action_execution_targets::ListDeployActionExecutionTargetsError> for Error {
758 fn from(err: crate::operation::list_deploy_action_execution_targets::ListDeployActionExecutionTargetsError) -> Self {
759 match err {
760 crate::operation::list_deploy_action_execution_targets::ListDeployActionExecutionTargetsError::ActionExecutionNotFoundException(
761 inner,
762 ) => Error::ActionExecutionNotFoundException(inner),
763 crate::operation::list_deploy_action_execution_targets::ListDeployActionExecutionTargetsError::InvalidNextTokenException(inner) => {
764 Error::InvalidNextTokenException(inner)
765 }
766 crate::operation::list_deploy_action_execution_targets::ListDeployActionExecutionTargetsError::PipelineNotFoundException(inner) => {
767 Error::PipelineNotFoundException(inner)
768 }
769 crate::operation::list_deploy_action_execution_targets::ListDeployActionExecutionTargetsError::ValidationException(inner) => {
770 Error::ValidationException(inner)
771 }
772 crate::operation::list_deploy_action_execution_targets::ListDeployActionExecutionTargetsError::Unhandled(inner) => {
773 Error::Unhandled(inner)
774 }
775 }
776 }
777}
778impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pipeline_executions::ListPipelineExecutionsError, R>> for Error
779where
780 R: Send + Sync + std::fmt::Debug + 'static,
781{
782 fn from(
783 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pipeline_executions::ListPipelineExecutionsError, R>,
784 ) -> Self {
785 match err {
786 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
787 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
788 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
789 source: err.into(),
790 }),
791 }
792 }
793}
794impl From<crate::operation::list_pipeline_executions::ListPipelineExecutionsError> for Error {
795 fn from(err: crate::operation::list_pipeline_executions::ListPipelineExecutionsError) -> Self {
796 match err {
797 crate::operation::list_pipeline_executions::ListPipelineExecutionsError::InvalidNextTokenException(inner) => {
798 Error::InvalidNextTokenException(inner)
799 }
800 crate::operation::list_pipeline_executions::ListPipelineExecutionsError::PipelineNotFoundException(inner) => {
801 Error::PipelineNotFoundException(inner)
802 }
803 crate::operation::list_pipeline_executions::ListPipelineExecutionsError::ValidationException(inner) => Error::ValidationException(inner),
804 crate::operation::list_pipeline_executions::ListPipelineExecutionsError::Unhandled(inner) => Error::Unhandled(inner),
805 }
806 }
807}
808impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pipelines::ListPipelinesError, R>> for Error
809where
810 R: Send + Sync + std::fmt::Debug + 'static,
811{
812 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pipelines::ListPipelinesError, R>) -> Self {
813 match err {
814 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
815 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
816 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
817 source: err.into(),
818 }),
819 }
820 }
821}
822impl From<crate::operation::list_pipelines::ListPipelinesError> for Error {
823 fn from(err: crate::operation::list_pipelines::ListPipelinesError) -> Self {
824 match err {
825 crate::operation::list_pipelines::ListPipelinesError::InvalidNextTokenException(inner) => Error::InvalidNextTokenException(inner),
826 crate::operation::list_pipelines::ListPipelinesError::ValidationException(inner) => Error::ValidationException(inner),
827 crate::operation::list_pipelines::ListPipelinesError::Unhandled(inner) => Error::Unhandled(inner),
828 }
829 }
830}
831impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_rule_executions::ListRuleExecutionsError, R>> for Error
832where
833 R: Send + Sync + std::fmt::Debug + 'static,
834{
835 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_rule_executions::ListRuleExecutionsError, R>) -> Self {
836 match err {
837 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
838 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
839 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
840 source: err.into(),
841 }),
842 }
843 }
844}
845impl From<crate::operation::list_rule_executions::ListRuleExecutionsError> for Error {
846 fn from(err: crate::operation::list_rule_executions::ListRuleExecutionsError) -> Self {
847 match err {
848 crate::operation::list_rule_executions::ListRuleExecutionsError::InvalidNextTokenException(inner) => {
849 Error::InvalidNextTokenException(inner)
850 }
851 crate::operation::list_rule_executions::ListRuleExecutionsError::PipelineExecutionNotFoundException(inner) => {
852 Error::PipelineExecutionNotFoundException(inner)
853 }
854 crate::operation::list_rule_executions::ListRuleExecutionsError::PipelineNotFoundException(inner) => {
855 Error::PipelineNotFoundException(inner)
856 }
857 crate::operation::list_rule_executions::ListRuleExecutionsError::ValidationException(inner) => Error::ValidationException(inner),
858 crate::operation::list_rule_executions::ListRuleExecutionsError::Unhandled(inner) => Error::Unhandled(inner),
859 }
860 }
861}
862impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_rule_types::ListRuleTypesError, R>> for Error
863where
864 R: Send + Sync + std::fmt::Debug + 'static,
865{
866 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_rule_types::ListRuleTypesError, R>) -> Self {
867 match err {
868 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
869 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
870 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
871 source: err.into(),
872 }),
873 }
874 }
875}
876impl From<crate::operation::list_rule_types::ListRuleTypesError> for Error {
877 fn from(err: crate::operation::list_rule_types::ListRuleTypesError) -> Self {
878 match err {
879 crate::operation::list_rule_types::ListRuleTypesError::InvalidNextTokenException(inner) => Error::InvalidNextTokenException(inner),
880 crate::operation::list_rule_types::ListRuleTypesError::ValidationException(inner) => Error::ValidationException(inner),
881 crate::operation::list_rule_types::ListRuleTypesError::Unhandled(inner) => Error::Unhandled(inner),
882 }
883 }
884}
885impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
886where
887 R: Send + Sync + std::fmt::Debug + 'static,
888{
889 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
890 match err {
891 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
892 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
893 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
894 source: err.into(),
895 }),
896 }
897 }
898}
899impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
900 fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
901 match err {
902 crate::operation::list_tags_for_resource::ListTagsForResourceError::InvalidArnException(inner) => Error::InvalidArnException(inner),
903 crate::operation::list_tags_for_resource::ListTagsForResourceError::InvalidNextTokenException(inner) => {
904 Error::InvalidNextTokenException(inner)
905 }
906 crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
907 Error::ResourceNotFoundException(inner)
908 }
909 crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
910 crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
911 }
912 }
913}
914impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_webhooks::ListWebhooksError, R>> for Error
915where
916 R: Send + Sync + std::fmt::Debug + 'static,
917{
918 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_webhooks::ListWebhooksError, R>) -> Self {
919 match err {
920 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
921 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
922 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
923 source: err.into(),
924 }),
925 }
926 }
927}
928impl From<crate::operation::list_webhooks::ListWebhooksError> for Error {
929 fn from(err: crate::operation::list_webhooks::ListWebhooksError) -> Self {
930 match err {
931 crate::operation::list_webhooks::ListWebhooksError::InvalidNextTokenException(inner) => Error::InvalidNextTokenException(inner),
932 crate::operation::list_webhooks::ListWebhooksError::ValidationException(inner) => Error::ValidationException(inner),
933 crate::operation::list_webhooks::ListWebhooksError::Unhandled(inner) => Error::Unhandled(inner),
934 }
935 }
936}
937impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::override_stage_condition::OverrideStageConditionError, R>> for Error
938where
939 R: Send + Sync + std::fmt::Debug + 'static,
940{
941 fn from(
942 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::override_stage_condition::OverrideStageConditionError, R>,
943 ) -> Self {
944 match err {
945 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
946 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
947 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
948 source: err.into(),
949 }),
950 }
951 }
952}
953impl From<crate::operation::override_stage_condition::OverrideStageConditionError> for Error {
954 fn from(err: crate::operation::override_stage_condition::OverrideStageConditionError) -> Self {
955 match err {
956 crate::operation::override_stage_condition::OverrideStageConditionError::ConcurrentPipelineExecutionsLimitExceededException(inner) => {
957 Error::ConcurrentPipelineExecutionsLimitExceededException(inner)
958 }
959 crate::operation::override_stage_condition::OverrideStageConditionError::ConditionNotOverridableException(inner) => {
960 Error::ConditionNotOverridableException(inner)
961 }
962 crate::operation::override_stage_condition::OverrideStageConditionError::ConflictException(inner) => Error::ConflictException(inner),
963 crate::operation::override_stage_condition::OverrideStageConditionError::NotLatestPipelineExecutionException(inner) => {
964 Error::NotLatestPipelineExecutionException(inner)
965 }
966 crate::operation::override_stage_condition::OverrideStageConditionError::PipelineNotFoundException(inner) => {
967 Error::PipelineNotFoundException(inner)
968 }
969 crate::operation::override_stage_condition::OverrideStageConditionError::StageNotFoundException(inner) => {
970 Error::StageNotFoundException(inner)
971 }
972 crate::operation::override_stage_condition::OverrideStageConditionError::ValidationException(inner) => Error::ValidationException(inner),
973 crate::operation::override_stage_condition::OverrideStageConditionError::Unhandled(inner) => Error::Unhandled(inner),
974 }
975 }
976}
977impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::poll_for_jobs::PollForJobsError, R>> for Error
978where
979 R: Send + Sync + std::fmt::Debug + 'static,
980{
981 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::poll_for_jobs::PollForJobsError, R>) -> Self {
982 match err {
983 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
984 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
985 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
986 source: err.into(),
987 }),
988 }
989 }
990}
991impl From<crate::operation::poll_for_jobs::PollForJobsError> for Error {
992 fn from(err: crate::operation::poll_for_jobs::PollForJobsError) -> Self {
993 match err {
994 crate::operation::poll_for_jobs::PollForJobsError::ActionTypeNotFoundException(inner) => Error::ActionTypeNotFoundException(inner),
995 crate::operation::poll_for_jobs::PollForJobsError::ValidationException(inner) => Error::ValidationException(inner),
996 crate::operation::poll_for_jobs::PollForJobsError::Unhandled(inner) => Error::Unhandled(inner),
997 }
998 }
999}
1000impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::poll_for_third_party_jobs::PollForThirdPartyJobsError, R>> for Error
1001where
1002 R: Send + Sync + std::fmt::Debug + 'static,
1003{
1004 fn from(
1005 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::poll_for_third_party_jobs::PollForThirdPartyJobsError, R>,
1006 ) -> Self {
1007 match err {
1008 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1009 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1010 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1011 source: err.into(),
1012 }),
1013 }
1014 }
1015}
1016impl From<crate::operation::poll_for_third_party_jobs::PollForThirdPartyJobsError> for Error {
1017 fn from(err: crate::operation::poll_for_third_party_jobs::PollForThirdPartyJobsError) -> Self {
1018 match err {
1019 crate::operation::poll_for_third_party_jobs::PollForThirdPartyJobsError::ActionTypeNotFoundException(inner) => {
1020 Error::ActionTypeNotFoundException(inner)
1021 }
1022 crate::operation::poll_for_third_party_jobs::PollForThirdPartyJobsError::ValidationException(inner) => Error::ValidationException(inner),
1023 crate::operation::poll_for_third_party_jobs::PollForThirdPartyJobsError::Unhandled(inner) => Error::Unhandled(inner),
1024 }
1025 }
1026}
1027impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_action_revision::PutActionRevisionError, R>> for Error
1028where
1029 R: Send + Sync + std::fmt::Debug + 'static,
1030{
1031 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_action_revision::PutActionRevisionError, R>) -> Self {
1032 match err {
1033 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1034 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1035 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1036 source: err.into(),
1037 }),
1038 }
1039 }
1040}
1041impl From<crate::operation::put_action_revision::PutActionRevisionError> for Error {
1042 fn from(err: crate::operation::put_action_revision::PutActionRevisionError) -> Self {
1043 match err {
1044 crate::operation::put_action_revision::PutActionRevisionError::ActionNotFoundException(inner) => Error::ActionNotFoundException(inner),
1045 crate::operation::put_action_revision::PutActionRevisionError::ConcurrentPipelineExecutionsLimitExceededException(inner) => {
1046 Error::ConcurrentPipelineExecutionsLimitExceededException(inner)
1047 }
1048 crate::operation::put_action_revision::PutActionRevisionError::PipelineNotFoundException(inner) => {
1049 Error::PipelineNotFoundException(inner)
1050 }
1051 crate::operation::put_action_revision::PutActionRevisionError::StageNotFoundException(inner) => Error::StageNotFoundException(inner),
1052 crate::operation::put_action_revision::PutActionRevisionError::ValidationException(inner) => Error::ValidationException(inner),
1053 crate::operation::put_action_revision::PutActionRevisionError::Unhandled(inner) => Error::Unhandled(inner),
1054 }
1055 }
1056}
1057impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_approval_result::PutApprovalResultError, R>> for Error
1058where
1059 R: Send + Sync + std::fmt::Debug + 'static,
1060{
1061 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_approval_result::PutApprovalResultError, R>) -> Self {
1062 match err {
1063 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1064 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1065 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1066 source: err.into(),
1067 }),
1068 }
1069 }
1070}
1071impl From<crate::operation::put_approval_result::PutApprovalResultError> for Error {
1072 fn from(err: crate::operation::put_approval_result::PutApprovalResultError) -> Self {
1073 match err {
1074 crate::operation::put_approval_result::PutApprovalResultError::ActionNotFoundException(inner) => Error::ActionNotFoundException(inner),
1075 crate::operation::put_approval_result::PutApprovalResultError::ApprovalAlreadyCompletedException(inner) => {
1076 Error::ApprovalAlreadyCompletedException(inner)
1077 }
1078 crate::operation::put_approval_result::PutApprovalResultError::InvalidApprovalTokenException(inner) => {
1079 Error::InvalidApprovalTokenException(inner)
1080 }
1081 crate::operation::put_approval_result::PutApprovalResultError::PipelineNotFoundException(inner) => {
1082 Error::PipelineNotFoundException(inner)
1083 }
1084 crate::operation::put_approval_result::PutApprovalResultError::StageNotFoundException(inner) => Error::StageNotFoundException(inner),
1085 crate::operation::put_approval_result::PutApprovalResultError::ValidationException(inner) => Error::ValidationException(inner),
1086 crate::operation::put_approval_result::PutApprovalResultError::Unhandled(inner) => Error::Unhandled(inner),
1087 }
1088 }
1089}
1090impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_job_failure_result::PutJobFailureResultError, R>> for Error
1091where
1092 R: Send + Sync + std::fmt::Debug + 'static,
1093{
1094 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_job_failure_result::PutJobFailureResultError, R>) -> Self {
1095 match err {
1096 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1097 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1098 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1099 source: err.into(),
1100 }),
1101 }
1102 }
1103}
1104impl From<crate::operation::put_job_failure_result::PutJobFailureResultError> for Error {
1105 fn from(err: crate::operation::put_job_failure_result::PutJobFailureResultError) -> Self {
1106 match err {
1107 crate::operation::put_job_failure_result::PutJobFailureResultError::InvalidJobStateException(inner) => {
1108 Error::InvalidJobStateException(inner)
1109 }
1110 crate::operation::put_job_failure_result::PutJobFailureResultError::JobNotFoundException(inner) => Error::JobNotFoundException(inner),
1111 crate::operation::put_job_failure_result::PutJobFailureResultError::ValidationException(inner) => Error::ValidationException(inner),
1112 crate::operation::put_job_failure_result::PutJobFailureResultError::Unhandled(inner) => Error::Unhandled(inner),
1113 }
1114 }
1115}
1116impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_job_success_result::PutJobSuccessResultError, R>> for Error
1117where
1118 R: Send + Sync + std::fmt::Debug + 'static,
1119{
1120 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_job_success_result::PutJobSuccessResultError, R>) -> Self {
1121 match err {
1122 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1123 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1124 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1125 source: err.into(),
1126 }),
1127 }
1128 }
1129}
1130impl From<crate::operation::put_job_success_result::PutJobSuccessResultError> for Error {
1131 fn from(err: crate::operation::put_job_success_result::PutJobSuccessResultError) -> Self {
1132 match err {
1133 crate::operation::put_job_success_result::PutJobSuccessResultError::InvalidJobStateException(inner) => {
1134 Error::InvalidJobStateException(inner)
1135 }
1136 crate::operation::put_job_success_result::PutJobSuccessResultError::JobNotFoundException(inner) => Error::JobNotFoundException(inner),
1137 crate::operation::put_job_success_result::PutJobSuccessResultError::OutputVariablesSizeExceededException(inner) => {
1138 Error::OutputVariablesSizeExceededException(inner)
1139 }
1140 crate::operation::put_job_success_result::PutJobSuccessResultError::ValidationException(inner) => Error::ValidationException(inner),
1141 crate::operation::put_job_success_result::PutJobSuccessResultError::Unhandled(inner) => Error::Unhandled(inner),
1142 }
1143 }
1144}
1145impl<R>
1146 From<
1147 ::aws_smithy_runtime_api::client::result::SdkError<
1148 crate::operation::put_third_party_job_failure_result::PutThirdPartyJobFailureResultError,
1149 R,
1150 >,
1151 > for Error
1152where
1153 R: Send + Sync + std::fmt::Debug + 'static,
1154{
1155 fn from(
1156 err: ::aws_smithy_runtime_api::client::result::SdkError<
1157 crate::operation::put_third_party_job_failure_result::PutThirdPartyJobFailureResultError,
1158 R,
1159 >,
1160 ) -> Self {
1161 match err {
1162 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1163 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1164 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1165 source: err.into(),
1166 }),
1167 }
1168 }
1169}
1170impl From<crate::operation::put_third_party_job_failure_result::PutThirdPartyJobFailureResultError> for Error {
1171 fn from(err: crate::operation::put_third_party_job_failure_result::PutThirdPartyJobFailureResultError) -> Self {
1172 match err {
1173 crate::operation::put_third_party_job_failure_result::PutThirdPartyJobFailureResultError::InvalidClientTokenException(inner) => {
1174 Error::InvalidClientTokenException(inner)
1175 }
1176 crate::operation::put_third_party_job_failure_result::PutThirdPartyJobFailureResultError::InvalidJobStateException(inner) => {
1177 Error::InvalidJobStateException(inner)
1178 }
1179 crate::operation::put_third_party_job_failure_result::PutThirdPartyJobFailureResultError::JobNotFoundException(inner) => {
1180 Error::JobNotFoundException(inner)
1181 }
1182 crate::operation::put_third_party_job_failure_result::PutThirdPartyJobFailureResultError::ValidationException(inner) => {
1183 Error::ValidationException(inner)
1184 }
1185 crate::operation::put_third_party_job_failure_result::PutThirdPartyJobFailureResultError::Unhandled(inner) => Error::Unhandled(inner),
1186 }
1187 }
1188}
1189impl<R>
1190 From<
1191 ::aws_smithy_runtime_api::client::result::SdkError<
1192 crate::operation::put_third_party_job_success_result::PutThirdPartyJobSuccessResultError,
1193 R,
1194 >,
1195 > for Error
1196where
1197 R: Send + Sync + std::fmt::Debug + 'static,
1198{
1199 fn from(
1200 err: ::aws_smithy_runtime_api::client::result::SdkError<
1201 crate::operation::put_third_party_job_success_result::PutThirdPartyJobSuccessResultError,
1202 R,
1203 >,
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::put_third_party_job_success_result::PutThirdPartyJobSuccessResultError> for Error {
1215 fn from(err: crate::operation::put_third_party_job_success_result::PutThirdPartyJobSuccessResultError) -> Self {
1216 match err {
1217 crate::operation::put_third_party_job_success_result::PutThirdPartyJobSuccessResultError::InvalidClientTokenException(inner) => {
1218 Error::InvalidClientTokenException(inner)
1219 }
1220 crate::operation::put_third_party_job_success_result::PutThirdPartyJobSuccessResultError::InvalidJobStateException(inner) => {
1221 Error::InvalidJobStateException(inner)
1222 }
1223 crate::operation::put_third_party_job_success_result::PutThirdPartyJobSuccessResultError::JobNotFoundException(inner) => {
1224 Error::JobNotFoundException(inner)
1225 }
1226 crate::operation::put_third_party_job_success_result::PutThirdPartyJobSuccessResultError::ValidationException(inner) => {
1227 Error::ValidationException(inner)
1228 }
1229 crate::operation::put_third_party_job_success_result::PutThirdPartyJobSuccessResultError::Unhandled(inner) => Error::Unhandled(inner),
1230 }
1231 }
1232}
1233impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_webhook::PutWebhookError, R>> for Error
1234where
1235 R: Send + Sync + std::fmt::Debug + 'static,
1236{
1237 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_webhook::PutWebhookError, R>) -> Self {
1238 match err {
1239 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1240 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1241 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1242 source: err.into(),
1243 }),
1244 }
1245 }
1246}
1247impl From<crate::operation::put_webhook::PutWebhookError> for Error {
1248 fn from(err: crate::operation::put_webhook::PutWebhookError) -> Self {
1249 match err {
1250 crate::operation::put_webhook::PutWebhookError::ConcurrentModificationException(inner) => Error::ConcurrentModificationException(inner),
1251 crate::operation::put_webhook::PutWebhookError::InvalidTagsException(inner) => Error::InvalidTagsException(inner),
1252 crate::operation::put_webhook::PutWebhookError::InvalidWebhookAuthenticationParametersException(inner) => {
1253 Error::InvalidWebhookAuthenticationParametersException(inner)
1254 }
1255 crate::operation::put_webhook::PutWebhookError::InvalidWebhookFilterPatternException(inner) => {
1256 Error::InvalidWebhookFilterPatternException(inner)
1257 }
1258 crate::operation::put_webhook::PutWebhookError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1259 crate::operation::put_webhook::PutWebhookError::PipelineNotFoundException(inner) => Error::PipelineNotFoundException(inner),
1260 crate::operation::put_webhook::PutWebhookError::TooManyTagsException(inner) => Error::TooManyTagsException(inner),
1261 crate::operation::put_webhook::PutWebhookError::ValidationException(inner) => Error::ValidationException(inner),
1262 crate::operation::put_webhook::PutWebhookError::Unhandled(inner) => Error::Unhandled(inner),
1263 }
1264 }
1265}
1266impl<R>
1267 From<
1268 ::aws_smithy_runtime_api::client::result::SdkError<
1269 crate::operation::register_webhook_with_third_party::RegisterWebhookWithThirdPartyError,
1270 R,
1271 >,
1272 > for Error
1273where
1274 R: Send + Sync + std::fmt::Debug + 'static,
1275{
1276 fn from(
1277 err: ::aws_smithy_runtime_api::client::result::SdkError<
1278 crate::operation::register_webhook_with_third_party::RegisterWebhookWithThirdPartyError,
1279 R,
1280 >,
1281 ) -> Self {
1282 match err {
1283 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1284 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1285 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1286 source: err.into(),
1287 }),
1288 }
1289 }
1290}
1291impl From<crate::operation::register_webhook_with_third_party::RegisterWebhookWithThirdPartyError> for Error {
1292 fn from(err: crate::operation::register_webhook_with_third_party::RegisterWebhookWithThirdPartyError) -> Self {
1293 match err {
1294 crate::operation::register_webhook_with_third_party::RegisterWebhookWithThirdPartyError::ValidationException(inner) => {
1295 Error::ValidationException(inner)
1296 }
1297 crate::operation::register_webhook_with_third_party::RegisterWebhookWithThirdPartyError::WebhookNotFoundException(inner) => {
1298 Error::WebhookNotFoundException(inner)
1299 }
1300 crate::operation::register_webhook_with_third_party::RegisterWebhookWithThirdPartyError::Unhandled(inner) => Error::Unhandled(inner),
1301 }
1302 }
1303}
1304impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::retry_stage_execution::RetryStageExecutionError, R>> for Error
1305where
1306 R: Send + Sync + std::fmt::Debug + 'static,
1307{
1308 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::retry_stage_execution::RetryStageExecutionError, R>) -> Self {
1309 match err {
1310 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1311 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1312 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1313 source: err.into(),
1314 }),
1315 }
1316 }
1317}
1318impl From<crate::operation::retry_stage_execution::RetryStageExecutionError> for Error {
1319 fn from(err: crate::operation::retry_stage_execution::RetryStageExecutionError) -> Self {
1320 match err {
1321 crate::operation::retry_stage_execution::RetryStageExecutionError::ConcurrentPipelineExecutionsLimitExceededException(inner) => {
1322 Error::ConcurrentPipelineExecutionsLimitExceededException(inner)
1323 }
1324 crate::operation::retry_stage_execution::RetryStageExecutionError::ConflictException(inner) => Error::ConflictException(inner),
1325 crate::operation::retry_stage_execution::RetryStageExecutionError::NotLatestPipelineExecutionException(inner) => {
1326 Error::NotLatestPipelineExecutionException(inner)
1327 }
1328 crate::operation::retry_stage_execution::RetryStageExecutionError::PipelineNotFoundException(inner) => {
1329 Error::PipelineNotFoundException(inner)
1330 }
1331 crate::operation::retry_stage_execution::RetryStageExecutionError::StageNotFoundException(inner) => Error::StageNotFoundException(inner),
1332 crate::operation::retry_stage_execution::RetryStageExecutionError::StageNotRetryableException(inner) => {
1333 Error::StageNotRetryableException(inner)
1334 }
1335 crate::operation::retry_stage_execution::RetryStageExecutionError::ValidationException(inner) => Error::ValidationException(inner),
1336 crate::operation::retry_stage_execution::RetryStageExecutionError::Unhandled(inner) => Error::Unhandled(inner),
1337 }
1338 }
1339}
1340impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::rollback_stage::RollbackStageError, R>> for Error
1341where
1342 R: Send + Sync + std::fmt::Debug + 'static,
1343{
1344 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::rollback_stage::RollbackStageError, R>) -> Self {
1345 match err {
1346 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1347 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1348 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1349 source: err.into(),
1350 }),
1351 }
1352 }
1353}
1354impl From<crate::operation::rollback_stage::RollbackStageError> for Error {
1355 fn from(err: crate::operation::rollback_stage::RollbackStageError) -> Self {
1356 match err {
1357 crate::operation::rollback_stage::RollbackStageError::ConflictException(inner) => Error::ConflictException(inner),
1358 crate::operation::rollback_stage::RollbackStageError::PipelineExecutionNotFoundException(inner) => {
1359 Error::PipelineExecutionNotFoundException(inner)
1360 }
1361 crate::operation::rollback_stage::RollbackStageError::PipelineExecutionOutdatedException(inner) => {
1362 Error::PipelineExecutionOutdatedException(inner)
1363 }
1364 crate::operation::rollback_stage::RollbackStageError::PipelineNotFoundException(inner) => Error::PipelineNotFoundException(inner),
1365 crate::operation::rollback_stage::RollbackStageError::StageNotFoundException(inner) => Error::StageNotFoundException(inner),
1366 crate::operation::rollback_stage::RollbackStageError::UnableToRollbackStageException(inner) => {
1367 Error::UnableToRollbackStageException(inner)
1368 }
1369 crate::operation::rollback_stage::RollbackStageError::ValidationException(inner) => Error::ValidationException(inner),
1370 crate::operation::rollback_stage::RollbackStageError::Unhandled(inner) => Error::Unhandled(inner),
1371 }
1372 }
1373}
1374impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_pipeline_execution::StartPipelineExecutionError, R>> for Error
1375where
1376 R: Send + Sync + std::fmt::Debug + 'static,
1377{
1378 fn from(
1379 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_pipeline_execution::StartPipelineExecutionError, R>,
1380 ) -> Self {
1381 match err {
1382 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1383 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1384 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1385 source: err.into(),
1386 }),
1387 }
1388 }
1389}
1390impl From<crate::operation::start_pipeline_execution::StartPipelineExecutionError> for Error {
1391 fn from(err: crate::operation::start_pipeline_execution::StartPipelineExecutionError) -> Self {
1392 match err {
1393 crate::operation::start_pipeline_execution::StartPipelineExecutionError::ConcurrentPipelineExecutionsLimitExceededException(inner) => {
1394 Error::ConcurrentPipelineExecutionsLimitExceededException(inner)
1395 }
1396 crate::operation::start_pipeline_execution::StartPipelineExecutionError::ConflictException(inner) => Error::ConflictException(inner),
1397 crate::operation::start_pipeline_execution::StartPipelineExecutionError::PipelineNotFoundException(inner) => {
1398 Error::PipelineNotFoundException(inner)
1399 }
1400 crate::operation::start_pipeline_execution::StartPipelineExecutionError::ValidationException(inner) => Error::ValidationException(inner),
1401 crate::operation::start_pipeline_execution::StartPipelineExecutionError::Unhandled(inner) => Error::Unhandled(inner),
1402 }
1403 }
1404}
1405impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_pipeline_execution::StopPipelineExecutionError, R>> for Error
1406where
1407 R: Send + Sync + std::fmt::Debug + 'static,
1408{
1409 fn from(
1410 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_pipeline_execution::StopPipelineExecutionError, R>,
1411 ) -> Self {
1412 match err {
1413 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1414 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1415 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1416 source: err.into(),
1417 }),
1418 }
1419 }
1420}
1421impl From<crate::operation::stop_pipeline_execution::StopPipelineExecutionError> for Error {
1422 fn from(err: crate::operation::stop_pipeline_execution::StopPipelineExecutionError) -> Self {
1423 match err {
1424 crate::operation::stop_pipeline_execution::StopPipelineExecutionError::ConflictException(inner) => Error::ConflictException(inner),
1425 crate::operation::stop_pipeline_execution::StopPipelineExecutionError::DuplicatedStopRequestException(inner) => {
1426 Error::DuplicatedStopRequestException(inner)
1427 }
1428 crate::operation::stop_pipeline_execution::StopPipelineExecutionError::PipelineExecutionNotStoppableException(inner) => {
1429 Error::PipelineExecutionNotStoppableException(inner)
1430 }
1431 crate::operation::stop_pipeline_execution::StopPipelineExecutionError::PipelineNotFoundException(inner) => {
1432 Error::PipelineNotFoundException(inner)
1433 }
1434 crate::operation::stop_pipeline_execution::StopPipelineExecutionError::ValidationException(inner) => Error::ValidationException(inner),
1435 crate::operation::stop_pipeline_execution::StopPipelineExecutionError::Unhandled(inner) => Error::Unhandled(inner),
1436 }
1437 }
1438}
1439impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
1440where
1441 R: Send + Sync + std::fmt::Debug + 'static,
1442{
1443 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
1444 match err {
1445 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1446 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1447 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1448 source: err.into(),
1449 }),
1450 }
1451 }
1452}
1453impl From<crate::operation::tag_resource::TagResourceError> for Error {
1454 fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
1455 match err {
1456 crate::operation::tag_resource::TagResourceError::ConcurrentModificationException(inner) => Error::ConcurrentModificationException(inner),
1457 crate::operation::tag_resource::TagResourceError::InvalidArnException(inner) => Error::InvalidArnException(inner),
1458 crate::operation::tag_resource::TagResourceError::InvalidTagsException(inner) => Error::InvalidTagsException(inner),
1459 crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1460 crate::operation::tag_resource::TagResourceError::TooManyTagsException(inner) => Error::TooManyTagsException(inner),
1461 crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
1462 crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1463 }
1464 }
1465}
1466impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
1467where
1468 R: Send + Sync + std::fmt::Debug + 'static,
1469{
1470 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
1471 match err {
1472 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1473 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1474 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1475 source: err.into(),
1476 }),
1477 }
1478 }
1479}
1480impl From<crate::operation::untag_resource::UntagResourceError> for Error {
1481 fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
1482 match err {
1483 crate::operation::untag_resource::UntagResourceError::ConcurrentModificationException(inner) => {
1484 Error::ConcurrentModificationException(inner)
1485 }
1486 crate::operation::untag_resource::UntagResourceError::InvalidArnException(inner) => Error::InvalidArnException(inner),
1487 crate::operation::untag_resource::UntagResourceError::InvalidTagsException(inner) => Error::InvalidTagsException(inner),
1488 crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1489 crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
1490 crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1491 }
1492 }
1493}
1494impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_action_type::UpdateActionTypeError, R>> for Error
1495where
1496 R: Send + Sync + std::fmt::Debug + 'static,
1497{
1498 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_action_type::UpdateActionTypeError, R>) -> Self {
1499 match err {
1500 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1501 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1502 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1503 source: err.into(),
1504 }),
1505 }
1506 }
1507}
1508impl From<crate::operation::update_action_type::UpdateActionTypeError> for Error {
1509 fn from(err: crate::operation::update_action_type::UpdateActionTypeError) -> Self {
1510 match err {
1511 crate::operation::update_action_type::UpdateActionTypeError::ActionTypeNotFoundException(inner) => {
1512 Error::ActionTypeNotFoundException(inner)
1513 }
1514 crate::operation::update_action_type::UpdateActionTypeError::RequestFailedException(inner) => Error::RequestFailedException(inner),
1515 crate::operation::update_action_type::UpdateActionTypeError::ValidationException(inner) => Error::ValidationException(inner),
1516 crate::operation::update_action_type::UpdateActionTypeError::Unhandled(inner) => Error::Unhandled(inner),
1517 }
1518 }
1519}
1520impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_pipeline::UpdatePipelineError, R>> for Error
1521where
1522 R: Send + Sync + std::fmt::Debug + 'static,
1523{
1524 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_pipeline::UpdatePipelineError, R>) -> Self {
1525 match err {
1526 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1527 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1528 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1529 source: err.into(),
1530 }),
1531 }
1532 }
1533}
1534impl From<crate::operation::update_pipeline::UpdatePipelineError> for Error {
1535 fn from(err: crate::operation::update_pipeline::UpdatePipelineError) -> Self {
1536 match err {
1537 crate::operation::update_pipeline::UpdatePipelineError::InvalidActionDeclarationException(inner) => {
1538 Error::InvalidActionDeclarationException(inner)
1539 }
1540 crate::operation::update_pipeline::UpdatePipelineError::InvalidBlockerDeclarationException(inner) => {
1541 Error::InvalidBlockerDeclarationException(inner)
1542 }
1543 crate::operation::update_pipeline::UpdatePipelineError::InvalidStageDeclarationException(inner) => {
1544 Error::InvalidStageDeclarationException(inner)
1545 }
1546 crate::operation::update_pipeline::UpdatePipelineError::InvalidStructureException(inner) => Error::InvalidStructureException(inner),
1547 crate::operation::update_pipeline::UpdatePipelineError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1548 crate::operation::update_pipeline::UpdatePipelineError::ValidationException(inner) => Error::ValidationException(inner),
1549 crate::operation::update_pipeline::UpdatePipelineError::Unhandled(inner) => Error::Unhandled(inner),
1550 }
1551 }
1552}
1553impl ::std::error::Error for Error {
1554 fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
1555 match self {
1556 Error::ActionExecutionNotFoundException(inner) => inner.source(),
1557 Error::ActionNotFoundException(inner) => inner.source(),
1558 Error::ActionTypeNotFoundException(inner) => inner.source(),
1559 Error::ApprovalAlreadyCompletedException(inner) => inner.source(),
1560 Error::ConcurrentModificationException(inner) => inner.source(),
1561 Error::ConcurrentPipelineExecutionsLimitExceededException(inner) => inner.source(),
1562 Error::ConditionNotOverridableException(inner) => inner.source(),
1563 Error::ConflictException(inner) => inner.source(),
1564 Error::DuplicatedStopRequestException(inner) => inner.source(),
1565 Error::InvalidActionDeclarationException(inner) => inner.source(),
1566 Error::InvalidApprovalTokenException(inner) => inner.source(),
1567 Error::InvalidArnException(inner) => inner.source(),
1568 Error::InvalidBlockerDeclarationException(inner) => inner.source(),
1569 Error::InvalidClientTokenException(inner) => inner.source(),
1570 Error::InvalidJobException(inner) => inner.source(),
1571 Error::InvalidJobStateException(inner) => inner.source(),
1572 Error::InvalidNextTokenException(inner) => inner.source(),
1573 Error::InvalidNonceException(inner) => inner.source(),
1574 Error::InvalidStageDeclarationException(inner) => inner.source(),
1575 Error::InvalidStructureException(inner) => inner.source(),
1576 Error::InvalidTagsException(inner) => inner.source(),
1577 Error::InvalidWebhookAuthenticationParametersException(inner) => inner.source(),
1578 Error::InvalidWebhookFilterPatternException(inner) => inner.source(),
1579 Error::JobNotFoundException(inner) => inner.source(),
1580 Error::LimitExceededException(inner) => inner.source(),
1581 Error::NotLatestPipelineExecutionException(inner) => inner.source(),
1582 Error::OutputVariablesSizeExceededException(inner) => inner.source(),
1583 Error::PipelineExecutionNotFoundException(inner) => inner.source(),
1584 Error::PipelineExecutionNotStoppableException(inner) => inner.source(),
1585 Error::PipelineExecutionOutdatedException(inner) => inner.source(),
1586 Error::PipelineNameInUseException(inner) => inner.source(),
1587 Error::PipelineNotFoundException(inner) => inner.source(),
1588 Error::PipelineVersionNotFoundException(inner) => inner.source(),
1589 Error::RequestFailedException(inner) => inner.source(),
1590 Error::ResourceNotFoundException(inner) => inner.source(),
1591 Error::StageNotFoundException(inner) => inner.source(),
1592 Error::StageNotRetryableException(inner) => inner.source(),
1593 Error::TooManyTagsException(inner) => inner.source(),
1594 Error::UnableToRollbackStageException(inner) => inner.source(),
1595 Error::ValidationException(inner) => inner.source(),
1596 Error::WebhookNotFoundException(inner) => inner.source(),
1597 Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
1598 }
1599 }
1600}
1601impl ::aws_types::request_id::RequestId for Error {
1602 fn request_id(&self) -> Option<&str> {
1603 match self {
1604 Self::ActionExecutionNotFoundException(e) => e.request_id(),
1605 Self::ActionNotFoundException(e) => e.request_id(),
1606 Self::ActionTypeNotFoundException(e) => e.request_id(),
1607 Self::ApprovalAlreadyCompletedException(e) => e.request_id(),
1608 Self::ConcurrentModificationException(e) => e.request_id(),
1609 Self::ConcurrentPipelineExecutionsLimitExceededException(e) => e.request_id(),
1610 Self::ConditionNotOverridableException(e) => e.request_id(),
1611 Self::ConflictException(e) => e.request_id(),
1612 Self::DuplicatedStopRequestException(e) => e.request_id(),
1613 Self::InvalidActionDeclarationException(e) => e.request_id(),
1614 Self::InvalidApprovalTokenException(e) => e.request_id(),
1615 Self::InvalidArnException(e) => e.request_id(),
1616 Self::InvalidBlockerDeclarationException(e) => e.request_id(),
1617 Self::InvalidClientTokenException(e) => e.request_id(),
1618 Self::InvalidJobException(e) => e.request_id(),
1619 Self::InvalidJobStateException(e) => e.request_id(),
1620 Self::InvalidNextTokenException(e) => e.request_id(),
1621 Self::InvalidNonceException(e) => e.request_id(),
1622 Self::InvalidStageDeclarationException(e) => e.request_id(),
1623 Self::InvalidStructureException(e) => e.request_id(),
1624 Self::InvalidTagsException(e) => e.request_id(),
1625 Self::InvalidWebhookAuthenticationParametersException(e) => e.request_id(),
1626 Self::InvalidWebhookFilterPatternException(e) => e.request_id(),
1627 Self::JobNotFoundException(e) => e.request_id(),
1628 Self::LimitExceededException(e) => e.request_id(),
1629 Self::NotLatestPipelineExecutionException(e) => e.request_id(),
1630 Self::OutputVariablesSizeExceededException(e) => e.request_id(),
1631 Self::PipelineExecutionNotFoundException(e) => e.request_id(),
1632 Self::PipelineExecutionNotStoppableException(e) => e.request_id(),
1633 Self::PipelineExecutionOutdatedException(e) => e.request_id(),
1634 Self::PipelineNameInUseException(e) => e.request_id(),
1635 Self::PipelineNotFoundException(e) => e.request_id(),
1636 Self::PipelineVersionNotFoundException(e) => e.request_id(),
1637 Self::RequestFailedException(e) => e.request_id(),
1638 Self::ResourceNotFoundException(e) => e.request_id(),
1639 Self::StageNotFoundException(e) => e.request_id(),
1640 Self::StageNotRetryableException(e) => e.request_id(),
1641 Self::TooManyTagsException(e) => e.request_id(),
1642 Self::UnableToRollbackStageException(e) => e.request_id(),
1643 Self::ValidationException(e) => e.request_id(),
1644 Self::WebhookNotFoundException(e) => e.request_id(),
1645 Self::Unhandled(e) => e.meta.request_id(),
1646 }
1647 }
1648}