aws_sdk_codepipeline/
error_meta.rs

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