aws_sdk_codestar/
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>Another modification is being made. That modification must complete before you can make your change.</p>
7    ConcurrentModificationException(crate::types::error::ConcurrentModificationException),
8    /// <p>The next token is not valid.</p>
9    InvalidNextTokenException(crate::types::error::InvalidNextTokenException),
10    /// <p>The service role is not valid.</p>
11    InvalidServiceRoleException(crate::types::error::InvalidServiceRoleException),
12    /// <p>A resource limit has been exceeded.</p>
13    LimitExceededException(crate::types::error::LimitExceededException),
14    /// <p>An AWS CodeStar project with the same ID already exists in this region for the AWS account. AWS CodeStar project IDs must be unique within a region for the AWS account.</p>
15    ProjectAlreadyExistsException(crate::types::error::ProjectAlreadyExistsException),
16    /// <p>Project configuration information is required but not specified.</p>
17    ProjectConfigurationException(crate::types::error::ProjectConfigurationException),
18    /// <p>The project creation request was valid, but a nonspecific exception or error occurred during project creation. The project could not be created in AWS CodeStar.</p>
19    ProjectCreationFailedException(crate::types::error::ProjectCreationFailedException),
20    /// <p>The specified AWS CodeStar project was not found.</p>
21    ProjectNotFoundException(crate::types::error::ProjectNotFoundException),
22    /// <p>The team member is already associated with a role in this project.</p>
23    TeamMemberAlreadyAssociatedException(crate::types::error::TeamMemberAlreadyAssociatedException),
24    /// <p>The specified team member was not found.</p>
25    TeamMemberNotFoundException(crate::types::error::TeamMemberNotFoundException),
26    /// <p>A user profile with that name already exists in this region for the AWS account. AWS CodeStar user profile names must be unique within a region for the AWS account.</p>
27    UserProfileAlreadyExistsException(crate::types::error::UserProfileAlreadyExistsException),
28    /// <p>The user profile was not found.</p>
29    UserProfileNotFoundException(crate::types::error::UserProfileNotFoundException),
30    /// <p>The specified input is either not valid, or it could not be validated.</p>
31    ValidationException(crate::types::error::ValidationException),
32    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
33    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
34    variable wildcard pattern and check `.code()`:
35     \
36    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
37     \
38    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
39    Unhandled(crate::error::sealed_unhandled::Unhandled),
40}
41impl ::std::fmt::Display for Error {
42    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
43        match self {
44            Error::ConcurrentModificationException(inner) => inner.fmt(f),
45            Error::InvalidNextTokenException(inner) => inner.fmt(f),
46            Error::InvalidServiceRoleException(inner) => inner.fmt(f),
47            Error::LimitExceededException(inner) => inner.fmt(f),
48            Error::ProjectAlreadyExistsException(inner) => inner.fmt(f),
49            Error::ProjectConfigurationException(inner) => inner.fmt(f),
50            Error::ProjectCreationFailedException(inner) => inner.fmt(f),
51            Error::ProjectNotFoundException(inner) => inner.fmt(f),
52            Error::TeamMemberAlreadyAssociatedException(inner) => inner.fmt(f),
53            Error::TeamMemberNotFoundException(inner) => inner.fmt(f),
54            Error::UserProfileAlreadyExistsException(inner) => inner.fmt(f),
55            Error::UserProfileNotFoundException(inner) => inner.fmt(f),
56            Error::ValidationException(inner) => inner.fmt(f),
57            Error::Unhandled(_) => {
58                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
59                    write!(f, "unhandled error ({code})")
60                } else {
61                    f.write_str("unhandled error")
62                }
63            }
64        }
65    }
66}
67impl From<::aws_smithy_types::error::operation::BuildError> for Error {
68    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
69        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
70            source: value.into(),
71            meta: ::std::default::Default::default(),
72        })
73    }
74}
75impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
76    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
77        match self {
78            Self::ConcurrentModificationException(inner) => inner.meta(),
79            Self::InvalidNextTokenException(inner) => inner.meta(),
80            Self::InvalidServiceRoleException(inner) => inner.meta(),
81            Self::LimitExceededException(inner) => inner.meta(),
82            Self::ProjectAlreadyExistsException(inner) => inner.meta(),
83            Self::ProjectConfigurationException(inner) => inner.meta(),
84            Self::ProjectCreationFailedException(inner) => inner.meta(),
85            Self::ProjectNotFoundException(inner) => inner.meta(),
86            Self::TeamMemberAlreadyAssociatedException(inner) => inner.meta(),
87            Self::TeamMemberNotFoundException(inner) => inner.meta(),
88            Self::UserProfileAlreadyExistsException(inner) => inner.meta(),
89            Self::UserProfileNotFoundException(inner) => inner.meta(),
90            Self::ValidationException(inner) => inner.meta(),
91            Self::Unhandled(inner) => &inner.meta,
92        }
93    }
94}
95impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_team_member::AssociateTeamMemberError, R>> for Error
96where
97    R: Send + Sync + std::fmt::Debug + 'static,
98{
99    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_team_member::AssociateTeamMemberError, R>) -> Self {
100        match err {
101            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
102            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
103                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
104                source: err.into(),
105            }),
106        }
107    }
108}
109impl From<crate::operation::associate_team_member::AssociateTeamMemberError> for Error {
110    fn from(err: crate::operation::associate_team_member::AssociateTeamMemberError) -> Self {
111        match err {
112            crate::operation::associate_team_member::AssociateTeamMemberError::ConcurrentModificationException(inner) => {
113                Error::ConcurrentModificationException(inner)
114            }
115            crate::operation::associate_team_member::AssociateTeamMemberError::InvalidServiceRoleException(inner) => {
116                Error::InvalidServiceRoleException(inner)
117            }
118            crate::operation::associate_team_member::AssociateTeamMemberError::LimitExceededException(inner) => Error::LimitExceededException(inner),
119            crate::operation::associate_team_member::AssociateTeamMemberError::ProjectConfigurationException(inner) => {
120                Error::ProjectConfigurationException(inner)
121            }
122            crate::operation::associate_team_member::AssociateTeamMemberError::ProjectNotFoundException(inner) => {
123                Error::ProjectNotFoundException(inner)
124            }
125            crate::operation::associate_team_member::AssociateTeamMemberError::TeamMemberAlreadyAssociatedException(inner) => {
126                Error::TeamMemberAlreadyAssociatedException(inner)
127            }
128            crate::operation::associate_team_member::AssociateTeamMemberError::ValidationException(inner) => Error::ValidationException(inner),
129            crate::operation::associate_team_member::AssociateTeamMemberError::Unhandled(inner) => Error::Unhandled(inner),
130        }
131    }
132}
133impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_project::CreateProjectError, R>> for Error
134where
135    R: Send + Sync + std::fmt::Debug + 'static,
136{
137    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_project::CreateProjectError, R>) -> Self {
138        match err {
139            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
140            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
141                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
142                source: err.into(),
143            }),
144        }
145    }
146}
147impl From<crate::operation::create_project::CreateProjectError> for Error {
148    fn from(err: crate::operation::create_project::CreateProjectError) -> Self {
149        match err {
150            crate::operation::create_project::CreateProjectError::ConcurrentModificationException(inner) => {
151                Error::ConcurrentModificationException(inner)
152            }
153            crate::operation::create_project::CreateProjectError::InvalidServiceRoleException(inner) => Error::InvalidServiceRoleException(inner),
154            crate::operation::create_project::CreateProjectError::LimitExceededException(inner) => Error::LimitExceededException(inner),
155            crate::operation::create_project::CreateProjectError::ProjectAlreadyExistsException(inner) => Error::ProjectAlreadyExistsException(inner),
156            crate::operation::create_project::CreateProjectError::ProjectConfigurationException(inner) => Error::ProjectConfigurationException(inner),
157            crate::operation::create_project::CreateProjectError::ProjectCreationFailedException(inner) => {
158                Error::ProjectCreationFailedException(inner)
159            }
160            crate::operation::create_project::CreateProjectError::ValidationException(inner) => Error::ValidationException(inner),
161            crate::operation::create_project::CreateProjectError::Unhandled(inner) => Error::Unhandled(inner),
162        }
163    }
164}
165impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_user_profile::CreateUserProfileError, R>> for Error
166where
167    R: Send + Sync + std::fmt::Debug + 'static,
168{
169    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_user_profile::CreateUserProfileError, R>) -> Self {
170        match err {
171            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
172            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
173                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
174                source: err.into(),
175            }),
176        }
177    }
178}
179impl From<crate::operation::create_user_profile::CreateUserProfileError> for Error {
180    fn from(err: crate::operation::create_user_profile::CreateUserProfileError) -> Self {
181        match err {
182            crate::operation::create_user_profile::CreateUserProfileError::UserProfileAlreadyExistsException(inner) => {
183                Error::UserProfileAlreadyExistsException(inner)
184            }
185            crate::operation::create_user_profile::CreateUserProfileError::ValidationException(inner) => Error::ValidationException(inner),
186            crate::operation::create_user_profile::CreateUserProfileError::Unhandled(inner) => Error::Unhandled(inner),
187        }
188    }
189}
190impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_project::DeleteProjectError, R>> for Error
191where
192    R: Send + Sync + std::fmt::Debug + 'static,
193{
194    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_project::DeleteProjectError, R>) -> Self {
195        match err {
196            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
197            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
198                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
199                source: err.into(),
200            }),
201        }
202    }
203}
204impl From<crate::operation::delete_project::DeleteProjectError> for Error {
205    fn from(err: crate::operation::delete_project::DeleteProjectError) -> Self {
206        match err {
207            crate::operation::delete_project::DeleteProjectError::ConcurrentModificationException(inner) => {
208                Error::ConcurrentModificationException(inner)
209            }
210            crate::operation::delete_project::DeleteProjectError::InvalidServiceRoleException(inner) => Error::InvalidServiceRoleException(inner),
211            crate::operation::delete_project::DeleteProjectError::ValidationException(inner) => Error::ValidationException(inner),
212            crate::operation::delete_project::DeleteProjectError::Unhandled(inner) => Error::Unhandled(inner),
213        }
214    }
215}
216impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_user_profile::DeleteUserProfileError, R>> for Error
217where
218    R: Send + Sync + std::fmt::Debug + 'static,
219{
220    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_user_profile::DeleteUserProfileError, R>) -> Self {
221        match err {
222            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
223            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
224                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
225                source: err.into(),
226            }),
227        }
228    }
229}
230impl From<crate::operation::delete_user_profile::DeleteUserProfileError> for Error {
231    fn from(err: crate::operation::delete_user_profile::DeleteUserProfileError) -> Self {
232        match err {
233            crate::operation::delete_user_profile::DeleteUserProfileError::ValidationException(inner) => Error::ValidationException(inner),
234            crate::operation::delete_user_profile::DeleteUserProfileError::Unhandled(inner) => Error::Unhandled(inner),
235        }
236    }
237}
238impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_project::DescribeProjectError, R>> for Error
239where
240    R: Send + Sync + std::fmt::Debug + 'static,
241{
242    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_project::DescribeProjectError, R>) -> Self {
243        match err {
244            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
245            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
246                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
247                source: err.into(),
248            }),
249        }
250    }
251}
252impl From<crate::operation::describe_project::DescribeProjectError> for Error {
253    fn from(err: crate::operation::describe_project::DescribeProjectError) -> Self {
254        match err {
255            crate::operation::describe_project::DescribeProjectError::ConcurrentModificationException(inner) => {
256                Error::ConcurrentModificationException(inner)
257            }
258            crate::operation::describe_project::DescribeProjectError::InvalidServiceRoleException(inner) => Error::InvalidServiceRoleException(inner),
259            crate::operation::describe_project::DescribeProjectError::ProjectConfigurationException(inner) => {
260                Error::ProjectConfigurationException(inner)
261            }
262            crate::operation::describe_project::DescribeProjectError::ProjectNotFoundException(inner) => Error::ProjectNotFoundException(inner),
263            crate::operation::describe_project::DescribeProjectError::ValidationException(inner) => Error::ValidationException(inner),
264            crate::operation::describe_project::DescribeProjectError::Unhandled(inner) => Error::Unhandled(inner),
265        }
266    }
267}
268impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_user_profile::DescribeUserProfileError, R>> for Error
269where
270    R: Send + Sync + std::fmt::Debug + 'static,
271{
272    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_user_profile::DescribeUserProfileError, R>) -> Self {
273        match err {
274            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
275            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
276                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
277                source: err.into(),
278            }),
279        }
280    }
281}
282impl From<crate::operation::describe_user_profile::DescribeUserProfileError> for Error {
283    fn from(err: crate::operation::describe_user_profile::DescribeUserProfileError) -> Self {
284        match err {
285            crate::operation::describe_user_profile::DescribeUserProfileError::UserProfileNotFoundException(inner) => {
286                Error::UserProfileNotFoundException(inner)
287            }
288            crate::operation::describe_user_profile::DescribeUserProfileError::ValidationException(inner) => Error::ValidationException(inner),
289            crate::operation::describe_user_profile::DescribeUserProfileError::Unhandled(inner) => Error::Unhandled(inner),
290        }
291    }
292}
293impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_team_member::DisassociateTeamMemberError, R>> for Error
294where
295    R: Send + Sync + std::fmt::Debug + 'static,
296{
297    fn from(
298        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_team_member::DisassociateTeamMemberError, R>,
299    ) -> Self {
300        match err {
301            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
302            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
303                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
304                source: err.into(),
305            }),
306        }
307    }
308}
309impl From<crate::operation::disassociate_team_member::DisassociateTeamMemberError> for Error {
310    fn from(err: crate::operation::disassociate_team_member::DisassociateTeamMemberError) -> Self {
311        match err {
312            crate::operation::disassociate_team_member::DisassociateTeamMemberError::ConcurrentModificationException(inner) => {
313                Error::ConcurrentModificationException(inner)
314            }
315            crate::operation::disassociate_team_member::DisassociateTeamMemberError::InvalidServiceRoleException(inner) => {
316                Error::InvalidServiceRoleException(inner)
317            }
318            crate::operation::disassociate_team_member::DisassociateTeamMemberError::ProjectNotFoundException(inner) => {
319                Error::ProjectNotFoundException(inner)
320            }
321            crate::operation::disassociate_team_member::DisassociateTeamMemberError::ValidationException(inner) => Error::ValidationException(inner),
322            crate::operation::disassociate_team_member::DisassociateTeamMemberError::Unhandled(inner) => Error::Unhandled(inner),
323        }
324    }
325}
326impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_projects::ListProjectsError, R>> for Error
327where
328    R: Send + Sync + std::fmt::Debug + 'static,
329{
330    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_projects::ListProjectsError, R>) -> Self {
331        match err {
332            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
333            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
334                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
335                source: err.into(),
336            }),
337        }
338    }
339}
340impl From<crate::operation::list_projects::ListProjectsError> for Error {
341    fn from(err: crate::operation::list_projects::ListProjectsError) -> Self {
342        match err {
343            crate::operation::list_projects::ListProjectsError::InvalidNextTokenException(inner) => Error::InvalidNextTokenException(inner),
344            crate::operation::list_projects::ListProjectsError::ValidationException(inner) => Error::ValidationException(inner),
345            crate::operation::list_projects::ListProjectsError::Unhandled(inner) => Error::Unhandled(inner),
346        }
347    }
348}
349impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_resources::ListResourcesError, R>> for Error
350where
351    R: Send + Sync + std::fmt::Debug + 'static,
352{
353    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_resources::ListResourcesError, R>) -> Self {
354        match err {
355            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
356            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
357                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
358                source: err.into(),
359            }),
360        }
361    }
362}
363impl From<crate::operation::list_resources::ListResourcesError> for Error {
364    fn from(err: crate::operation::list_resources::ListResourcesError) -> Self {
365        match err {
366            crate::operation::list_resources::ListResourcesError::InvalidNextTokenException(inner) => Error::InvalidNextTokenException(inner),
367            crate::operation::list_resources::ListResourcesError::ProjectNotFoundException(inner) => Error::ProjectNotFoundException(inner),
368            crate::operation::list_resources::ListResourcesError::ValidationException(inner) => Error::ValidationException(inner),
369            crate::operation::list_resources::ListResourcesError::Unhandled(inner) => Error::Unhandled(inner),
370        }
371    }
372}
373impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_project::ListTagsForProjectError, R>> for Error
374where
375    R: Send + Sync + std::fmt::Debug + 'static,
376{
377    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_project::ListTagsForProjectError, R>) -> Self {
378        match err {
379            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
380            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
381                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
382                source: err.into(),
383            }),
384        }
385    }
386}
387impl From<crate::operation::list_tags_for_project::ListTagsForProjectError> for Error {
388    fn from(err: crate::operation::list_tags_for_project::ListTagsForProjectError) -> Self {
389        match err {
390            crate::operation::list_tags_for_project::ListTagsForProjectError::InvalidNextTokenException(inner) => {
391                Error::InvalidNextTokenException(inner)
392            }
393            crate::operation::list_tags_for_project::ListTagsForProjectError::ProjectNotFoundException(inner) => {
394                Error::ProjectNotFoundException(inner)
395            }
396            crate::operation::list_tags_for_project::ListTagsForProjectError::ValidationException(inner) => Error::ValidationException(inner),
397            crate::operation::list_tags_for_project::ListTagsForProjectError::Unhandled(inner) => Error::Unhandled(inner),
398        }
399    }
400}
401impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_team_members::ListTeamMembersError, R>> for Error
402where
403    R: Send + Sync + std::fmt::Debug + 'static,
404{
405    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_team_members::ListTeamMembersError, R>) -> Self {
406        match err {
407            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
408            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
409                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
410                source: err.into(),
411            }),
412        }
413    }
414}
415impl From<crate::operation::list_team_members::ListTeamMembersError> for Error {
416    fn from(err: crate::operation::list_team_members::ListTeamMembersError) -> Self {
417        match err {
418            crate::operation::list_team_members::ListTeamMembersError::InvalidNextTokenException(inner) => Error::InvalidNextTokenException(inner),
419            crate::operation::list_team_members::ListTeamMembersError::ProjectNotFoundException(inner) => Error::ProjectNotFoundException(inner),
420            crate::operation::list_team_members::ListTeamMembersError::ValidationException(inner) => Error::ValidationException(inner),
421            crate::operation::list_team_members::ListTeamMembersError::Unhandled(inner) => Error::Unhandled(inner),
422        }
423    }
424}
425impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_user_profiles::ListUserProfilesError, R>> for Error
426where
427    R: Send + Sync + std::fmt::Debug + 'static,
428{
429    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_user_profiles::ListUserProfilesError, R>) -> Self {
430        match err {
431            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
432            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
433                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
434                source: err.into(),
435            }),
436        }
437    }
438}
439impl From<crate::operation::list_user_profiles::ListUserProfilesError> for Error {
440    fn from(err: crate::operation::list_user_profiles::ListUserProfilesError) -> Self {
441        match err {
442            crate::operation::list_user_profiles::ListUserProfilesError::InvalidNextTokenException(inner) => Error::InvalidNextTokenException(inner),
443            crate::operation::list_user_profiles::ListUserProfilesError::ValidationException(inner) => Error::ValidationException(inner),
444            crate::operation::list_user_profiles::ListUserProfilesError::Unhandled(inner) => Error::Unhandled(inner),
445        }
446    }
447}
448impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_project::TagProjectError, R>> for Error
449where
450    R: Send + Sync + std::fmt::Debug + 'static,
451{
452    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_project::TagProjectError, R>) -> Self {
453        match err {
454            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
455            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
456                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
457                source: err.into(),
458            }),
459        }
460    }
461}
462impl From<crate::operation::tag_project::TagProjectError> for Error {
463    fn from(err: crate::operation::tag_project::TagProjectError) -> Self {
464        match err {
465            crate::operation::tag_project::TagProjectError::ConcurrentModificationException(inner) => Error::ConcurrentModificationException(inner),
466            crate::operation::tag_project::TagProjectError::LimitExceededException(inner) => Error::LimitExceededException(inner),
467            crate::operation::tag_project::TagProjectError::ProjectNotFoundException(inner) => Error::ProjectNotFoundException(inner),
468            crate::operation::tag_project::TagProjectError::ValidationException(inner) => Error::ValidationException(inner),
469            crate::operation::tag_project::TagProjectError::Unhandled(inner) => Error::Unhandled(inner),
470        }
471    }
472}
473impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_project::UntagProjectError, R>> for Error
474where
475    R: Send + Sync + std::fmt::Debug + 'static,
476{
477    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_project::UntagProjectError, R>) -> Self {
478        match err {
479            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
480            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
481                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
482                source: err.into(),
483            }),
484        }
485    }
486}
487impl From<crate::operation::untag_project::UntagProjectError> for Error {
488    fn from(err: crate::operation::untag_project::UntagProjectError) -> Self {
489        match err {
490            crate::operation::untag_project::UntagProjectError::ConcurrentModificationException(inner) => {
491                Error::ConcurrentModificationException(inner)
492            }
493            crate::operation::untag_project::UntagProjectError::LimitExceededException(inner) => Error::LimitExceededException(inner),
494            crate::operation::untag_project::UntagProjectError::ProjectNotFoundException(inner) => Error::ProjectNotFoundException(inner),
495            crate::operation::untag_project::UntagProjectError::ValidationException(inner) => Error::ValidationException(inner),
496            crate::operation::untag_project::UntagProjectError::Unhandled(inner) => Error::Unhandled(inner),
497        }
498    }
499}
500impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_project::UpdateProjectError, R>> for Error
501where
502    R: Send + Sync + std::fmt::Debug + 'static,
503{
504    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_project::UpdateProjectError, R>) -> Self {
505        match err {
506            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
507            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
508                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
509                source: err.into(),
510            }),
511        }
512    }
513}
514impl From<crate::operation::update_project::UpdateProjectError> for Error {
515    fn from(err: crate::operation::update_project::UpdateProjectError) -> Self {
516        match err {
517            crate::operation::update_project::UpdateProjectError::ProjectNotFoundException(inner) => Error::ProjectNotFoundException(inner),
518            crate::operation::update_project::UpdateProjectError::ValidationException(inner) => Error::ValidationException(inner),
519            crate::operation::update_project::UpdateProjectError::Unhandled(inner) => Error::Unhandled(inner),
520        }
521    }
522}
523impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_team_member::UpdateTeamMemberError, R>> for Error
524where
525    R: Send + Sync + std::fmt::Debug + 'static,
526{
527    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_team_member::UpdateTeamMemberError, R>) -> Self {
528        match err {
529            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
530            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
531                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
532                source: err.into(),
533            }),
534        }
535    }
536}
537impl From<crate::operation::update_team_member::UpdateTeamMemberError> for Error {
538    fn from(err: crate::operation::update_team_member::UpdateTeamMemberError) -> Self {
539        match err {
540            crate::operation::update_team_member::UpdateTeamMemberError::ConcurrentModificationException(inner) => {
541                Error::ConcurrentModificationException(inner)
542            }
543            crate::operation::update_team_member::UpdateTeamMemberError::InvalidServiceRoleException(inner) => {
544                Error::InvalidServiceRoleException(inner)
545            }
546            crate::operation::update_team_member::UpdateTeamMemberError::LimitExceededException(inner) => Error::LimitExceededException(inner),
547            crate::operation::update_team_member::UpdateTeamMemberError::ProjectConfigurationException(inner) => {
548                Error::ProjectConfigurationException(inner)
549            }
550            crate::operation::update_team_member::UpdateTeamMemberError::ProjectNotFoundException(inner) => Error::ProjectNotFoundException(inner),
551            crate::operation::update_team_member::UpdateTeamMemberError::TeamMemberNotFoundException(inner) => {
552                Error::TeamMemberNotFoundException(inner)
553            }
554            crate::operation::update_team_member::UpdateTeamMemberError::ValidationException(inner) => Error::ValidationException(inner),
555            crate::operation::update_team_member::UpdateTeamMemberError::Unhandled(inner) => Error::Unhandled(inner),
556        }
557    }
558}
559impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_user_profile::UpdateUserProfileError, R>> for Error
560where
561    R: Send + Sync + std::fmt::Debug + 'static,
562{
563    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_user_profile::UpdateUserProfileError, R>) -> Self {
564        match err {
565            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
566            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
567                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
568                source: err.into(),
569            }),
570        }
571    }
572}
573impl From<crate::operation::update_user_profile::UpdateUserProfileError> for Error {
574    fn from(err: crate::operation::update_user_profile::UpdateUserProfileError) -> Self {
575        match err {
576            crate::operation::update_user_profile::UpdateUserProfileError::UserProfileNotFoundException(inner) => {
577                Error::UserProfileNotFoundException(inner)
578            }
579            crate::operation::update_user_profile::UpdateUserProfileError::ValidationException(inner) => Error::ValidationException(inner),
580            crate::operation::update_user_profile::UpdateUserProfileError::Unhandled(inner) => Error::Unhandled(inner),
581        }
582    }
583}
584impl ::std::error::Error for Error {
585    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
586        match self {
587            Error::ConcurrentModificationException(inner) => inner.source(),
588            Error::InvalidNextTokenException(inner) => inner.source(),
589            Error::InvalidServiceRoleException(inner) => inner.source(),
590            Error::LimitExceededException(inner) => inner.source(),
591            Error::ProjectAlreadyExistsException(inner) => inner.source(),
592            Error::ProjectConfigurationException(inner) => inner.source(),
593            Error::ProjectCreationFailedException(inner) => inner.source(),
594            Error::ProjectNotFoundException(inner) => inner.source(),
595            Error::TeamMemberAlreadyAssociatedException(inner) => inner.source(),
596            Error::TeamMemberNotFoundException(inner) => inner.source(),
597            Error::UserProfileAlreadyExistsException(inner) => inner.source(),
598            Error::UserProfileNotFoundException(inner) => inner.source(),
599            Error::ValidationException(inner) => inner.source(),
600            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
601        }
602    }
603}
604impl ::aws_types::request_id::RequestId for Error {
605    fn request_id(&self) -> Option<&str> {
606        match self {
607            Self::ConcurrentModificationException(e) => e.request_id(),
608            Self::InvalidNextTokenException(e) => e.request_id(),
609            Self::InvalidServiceRoleException(e) => e.request_id(),
610            Self::LimitExceededException(e) => e.request_id(),
611            Self::ProjectAlreadyExistsException(e) => e.request_id(),
612            Self::ProjectConfigurationException(e) => e.request_id(),
613            Self::ProjectCreationFailedException(e) => e.request_id(),
614            Self::ProjectNotFoundException(e) => e.request_id(),
615            Self::TeamMemberAlreadyAssociatedException(e) => e.request_id(),
616            Self::TeamMemberNotFoundException(e) => e.request_id(),
617            Self::UserProfileAlreadyExistsException(e) => e.request_id(),
618            Self::UserProfileNotFoundException(e) => e.request_id(),
619            Self::ValidationException(e) => e.request_id(),
620            Self::Unhandled(e) => e.meta.request_id(),
621        }
622    }
623}