aws_sdk_ecr/
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 layer upload does not contain any layer parts.</p>
7    EmptyUploadException(crate::types::error::EmptyUploadException),
8    /// <p>The specified image has already been pushed, and there were no changes to the manifest or image tag after the last push.</p>
9    ImageAlreadyExistsException(crate::types::error::ImageAlreadyExistsException),
10    /// <p>The specified image digest does not match the digest that Amazon ECR calculated for the image.</p>
11    ImageDigestDoesNotMatchException(crate::types::error::ImageDigestDoesNotMatchException),
12    /// <p>The image requested does not exist in the specified repository.</p>
13    ImageNotFoundException(crate::types::error::ImageNotFoundException),
14    /// <p>The specified image is tagged with a tag that already exists. The repository is configured for tag immutability.</p>
15    ImageTagAlreadyExistsException(crate::types::error::ImageTagAlreadyExistsException),
16    /// <p>The layer digest calculation performed by Amazon ECR upon receipt of the image layer does not match the digest specified.</p>
17    InvalidLayerException(crate::types::error::InvalidLayerException),
18    /// <p>The layer part size is not valid, or the first byte specified is not consecutive to the last byte of a previous layer part upload.</p>
19    InvalidLayerPartException(crate::types::error::InvalidLayerPartException),
20    /// <p>The specified parameter is invalid. Review the available parameters for the API request.</p>
21    InvalidParameterException(crate::types::error::InvalidParameterException),
22    /// <p>An invalid parameter has been specified. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.</p>
23    InvalidTagParameterException(crate::types::error::InvalidTagParameterException),
24    /// <p>The operation failed due to a KMS exception.</p>
25    KmsException(crate::types::error::KmsException),
26    /// <p>The image layer already exists in the associated repository.</p>
27    LayerAlreadyExistsException(crate::types::error::LayerAlreadyExistsException),
28    /// <p>The specified layer is not available because it is not associated with an image. Unassociated image layers may be cleaned up at any time.</p>
29    LayerInaccessibleException(crate::types::error::LayerInaccessibleException),
30    /// <p>Layer parts must be at least 5 MiB in size.</p>
31    LayerPartTooSmallException(crate::types::error::LayerPartTooSmallException),
32    /// <p>The specified layers could not be found, or the specified layer is not valid for this repository.</p>
33    LayersNotFoundException(crate::types::error::LayersNotFoundException),
34    /// <p>The lifecycle policy could not be found, and no policy is set to the repository.</p>
35    LifecyclePolicyNotFoundException(crate::types::error::LifecyclePolicyNotFoundException),
36    /// <p>The previous lifecycle policy preview request has not completed. Wait and try again.</p>
37    LifecyclePolicyPreviewInProgressException(crate::types::error::LifecyclePolicyPreviewInProgressException),
38    /// <p>There is no dry run for this repository.</p>
39    LifecyclePolicyPreviewNotFoundException(crate::types::error::LifecyclePolicyPreviewNotFoundException),
40    /// <p>The operation did not succeed because it would have exceeded a service limit for your account. For more information, see <a href="https://docs.aws.amazon.com/AmazonECR/latest/userguide/service-quotas.html">Amazon ECR service quotas</a> in the Amazon Elastic Container Registry User Guide.</p>
41    LimitExceededException(crate::types::error::LimitExceededException),
42    /// <p>A pull through cache rule with these settings already exists for the private registry.</p>
43    PullThroughCacheRuleAlreadyExistsException(crate::types::error::PullThroughCacheRuleAlreadyExistsException),
44    /// <p>The pull through cache rule was not found. Specify a valid pull through cache rule and try again.</p>
45    PullThroughCacheRuleNotFoundException(crate::types::error::PullThroughCacheRuleNotFoundException),
46    /// <p>The manifest list is referencing an image that does not exist.</p>
47    ReferencedImagesNotFoundException(crate::types::error::ReferencedImagesNotFoundException),
48    /// <p>The registry doesn't have an associated registry policy.</p>
49    RegistryPolicyNotFoundException(crate::types::error::RegistryPolicyNotFoundException),
50    /// <p>The specified repository already exists in the specified registry.</p>
51    RepositoryAlreadyExistsException(crate::types::error::RepositoryAlreadyExistsException),
52    /// <p>The specified repository contains images. To delete a repository that contains images, you must force the deletion with the <code>force</code> parameter.</p>
53    RepositoryNotEmptyException(crate::types::error::RepositoryNotEmptyException),
54    /// <p>The specified repository could not be found. Check the spelling of the specified repository and ensure that you are performing operations on the correct registry.</p>
55    RepositoryNotFoundException(crate::types::error::RepositoryNotFoundException),
56    /// <p>The specified repository and registry combination does not have an associated repository policy.</p>
57    RepositoryPolicyNotFoundException(crate::types::error::RepositoryPolicyNotFoundException),
58    /// <p>The specified image scan could not be found. Ensure that image scanning is enabled on the repository and try again.</p>
59    ScanNotFoundException(crate::types::error::ScanNotFoundException),
60    /// <p>The ARN of the secret specified in the pull through cache rule was not found. Update the pull through cache rule with a valid secret ARN and try again.</p>
61    SecretNotFoundException(crate::types::error::SecretNotFoundException),
62    /// <p>These errors are usually caused by a server-side issue.</p>
63    ServerException(crate::types::error::ServerException),
64    /// <p>The repository creation template already exists. Specify a unique prefix and try again.</p>
65    TemplateAlreadyExistsException(crate::types::error::TemplateAlreadyExistsException),
66    /// <p>The specified repository creation template can't be found. Verify the registry ID and prefix and try again.</p>
67    TemplateNotFoundException(crate::types::error::TemplateNotFoundException),
68    /// <p>The list of tags on the repository is over the limit. The maximum number of tags that can be applied to a repository is 50.</p>
69    TooManyTagsException(crate::types::error::TooManyTagsException),
70    /// <p>The secret is unable to be accessed. Verify the resource permissions for the secret and try again.</p>
71    UnableToAccessSecretException(crate::types::error::UnableToAccessSecretException),
72    /// <p>The secret is accessible but is unable to be decrypted. Verify the resource permisisons and try again.</p>
73    UnableToDecryptSecretValueException(crate::types::error::UnableToDecryptSecretValueException),
74    /// <p>The image or images were unable to be pulled using the pull through cache rule. This is usually caused because of an issue with the Secrets Manager secret containing the credentials for the upstream registry.</p>
75    UnableToGetUpstreamImageException(crate::types::error::UnableToGetUpstreamImageException),
76    /// <p>There was an issue getting the upstream layer matching the pull through cache rule.</p>
77    UnableToGetUpstreamLayerException(crate::types::error::UnableToGetUpstreamLayerException),
78    /// <p>The image is of a type that cannot be scanned.</p>
79    UnsupportedImageTypeException(crate::types::error::UnsupportedImageTypeException),
80    /// <p>The specified upstream registry isn't supported.</p>
81    UnsupportedUpstreamRegistryException(crate::types::error::UnsupportedUpstreamRegistryException),
82    /// <p>The upload could not be found, or the specified upload ID is not valid for this repository.</p>
83    UploadNotFoundException(crate::types::error::UploadNotFoundException),
84    /// <p>There was an exception validating this request.</p>
85    ValidationException(crate::types::error::ValidationException),
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::EmptyUploadException(inner) => inner.fmt(f),
99            Error::ImageAlreadyExistsException(inner) => inner.fmt(f),
100            Error::ImageDigestDoesNotMatchException(inner) => inner.fmt(f),
101            Error::ImageNotFoundException(inner) => inner.fmt(f),
102            Error::ImageTagAlreadyExistsException(inner) => inner.fmt(f),
103            Error::InvalidLayerException(inner) => inner.fmt(f),
104            Error::InvalidLayerPartException(inner) => inner.fmt(f),
105            Error::InvalidParameterException(inner) => inner.fmt(f),
106            Error::InvalidTagParameterException(inner) => inner.fmt(f),
107            Error::KmsException(inner) => inner.fmt(f),
108            Error::LayerAlreadyExistsException(inner) => inner.fmt(f),
109            Error::LayerInaccessibleException(inner) => inner.fmt(f),
110            Error::LayerPartTooSmallException(inner) => inner.fmt(f),
111            Error::LayersNotFoundException(inner) => inner.fmt(f),
112            Error::LifecyclePolicyNotFoundException(inner) => inner.fmt(f),
113            Error::LifecyclePolicyPreviewInProgressException(inner) => inner.fmt(f),
114            Error::LifecyclePolicyPreviewNotFoundException(inner) => inner.fmt(f),
115            Error::LimitExceededException(inner) => inner.fmt(f),
116            Error::PullThroughCacheRuleAlreadyExistsException(inner) => inner.fmt(f),
117            Error::PullThroughCacheRuleNotFoundException(inner) => inner.fmt(f),
118            Error::ReferencedImagesNotFoundException(inner) => inner.fmt(f),
119            Error::RegistryPolicyNotFoundException(inner) => inner.fmt(f),
120            Error::RepositoryAlreadyExistsException(inner) => inner.fmt(f),
121            Error::RepositoryNotEmptyException(inner) => inner.fmt(f),
122            Error::RepositoryNotFoundException(inner) => inner.fmt(f),
123            Error::RepositoryPolicyNotFoundException(inner) => inner.fmt(f),
124            Error::ScanNotFoundException(inner) => inner.fmt(f),
125            Error::SecretNotFoundException(inner) => inner.fmt(f),
126            Error::ServerException(inner) => inner.fmt(f),
127            Error::TemplateAlreadyExistsException(inner) => inner.fmt(f),
128            Error::TemplateNotFoundException(inner) => inner.fmt(f),
129            Error::TooManyTagsException(inner) => inner.fmt(f),
130            Error::UnableToAccessSecretException(inner) => inner.fmt(f),
131            Error::UnableToDecryptSecretValueException(inner) => inner.fmt(f),
132            Error::UnableToGetUpstreamImageException(inner) => inner.fmt(f),
133            Error::UnableToGetUpstreamLayerException(inner) => inner.fmt(f),
134            Error::UnsupportedImageTypeException(inner) => inner.fmt(f),
135            Error::UnsupportedUpstreamRegistryException(inner) => inner.fmt(f),
136            Error::UploadNotFoundException(inner) => inner.fmt(f),
137            Error::ValidationException(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::EmptyUploadException(inner) => inner.meta(),
160            Self::ImageAlreadyExistsException(inner) => inner.meta(),
161            Self::ImageDigestDoesNotMatchException(inner) => inner.meta(),
162            Self::ImageNotFoundException(inner) => inner.meta(),
163            Self::ImageTagAlreadyExistsException(inner) => inner.meta(),
164            Self::InvalidLayerException(inner) => inner.meta(),
165            Self::InvalidLayerPartException(inner) => inner.meta(),
166            Self::InvalidParameterException(inner) => inner.meta(),
167            Self::InvalidTagParameterException(inner) => inner.meta(),
168            Self::KmsException(inner) => inner.meta(),
169            Self::LayerAlreadyExistsException(inner) => inner.meta(),
170            Self::LayerInaccessibleException(inner) => inner.meta(),
171            Self::LayerPartTooSmallException(inner) => inner.meta(),
172            Self::LayersNotFoundException(inner) => inner.meta(),
173            Self::LifecyclePolicyNotFoundException(inner) => inner.meta(),
174            Self::LifecyclePolicyPreviewInProgressException(inner) => inner.meta(),
175            Self::LifecyclePolicyPreviewNotFoundException(inner) => inner.meta(),
176            Self::LimitExceededException(inner) => inner.meta(),
177            Self::PullThroughCacheRuleAlreadyExistsException(inner) => inner.meta(),
178            Self::PullThroughCacheRuleNotFoundException(inner) => inner.meta(),
179            Self::ReferencedImagesNotFoundException(inner) => inner.meta(),
180            Self::RegistryPolicyNotFoundException(inner) => inner.meta(),
181            Self::RepositoryAlreadyExistsException(inner) => inner.meta(),
182            Self::RepositoryNotEmptyException(inner) => inner.meta(),
183            Self::RepositoryNotFoundException(inner) => inner.meta(),
184            Self::RepositoryPolicyNotFoundException(inner) => inner.meta(),
185            Self::ScanNotFoundException(inner) => inner.meta(),
186            Self::SecretNotFoundException(inner) => inner.meta(),
187            Self::ServerException(inner) => inner.meta(),
188            Self::TemplateAlreadyExistsException(inner) => inner.meta(),
189            Self::TemplateNotFoundException(inner) => inner.meta(),
190            Self::TooManyTagsException(inner) => inner.meta(),
191            Self::UnableToAccessSecretException(inner) => inner.meta(),
192            Self::UnableToDecryptSecretValueException(inner) => inner.meta(),
193            Self::UnableToGetUpstreamImageException(inner) => inner.meta(),
194            Self::UnableToGetUpstreamLayerException(inner) => inner.meta(),
195            Self::UnsupportedImageTypeException(inner) => inner.meta(),
196            Self::UnsupportedUpstreamRegistryException(inner) => inner.meta(),
197            Self::UploadNotFoundException(inner) => inner.meta(),
198            Self::ValidationException(inner) => inner.meta(),
199            Self::Unhandled(inner) => &inner.meta,
200        }
201    }
202}
203impl<R>
204    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_check_layer_availability::BatchCheckLayerAvailabilityError, R>>
205    for Error
206where
207    R: Send + Sync + std::fmt::Debug + 'static,
208{
209    fn from(
210        err: ::aws_smithy_runtime_api::client::result::SdkError<
211            crate::operation::batch_check_layer_availability::BatchCheckLayerAvailabilityError,
212            R,
213        >,
214    ) -> Self {
215        match err {
216            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
217            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
218                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
219                source: err.into(),
220            }),
221        }
222    }
223}
224impl From<crate::operation::batch_check_layer_availability::BatchCheckLayerAvailabilityError> for Error {
225    fn from(err: crate::operation::batch_check_layer_availability::BatchCheckLayerAvailabilityError) -> Self {
226        match err {
227            crate::operation::batch_check_layer_availability::BatchCheckLayerAvailabilityError::InvalidParameterException(inner) => {
228                Error::InvalidParameterException(inner)
229            }
230            crate::operation::batch_check_layer_availability::BatchCheckLayerAvailabilityError::RepositoryNotFoundException(inner) => {
231                Error::RepositoryNotFoundException(inner)
232            }
233            crate::operation::batch_check_layer_availability::BatchCheckLayerAvailabilityError::ServerException(inner) => {
234                Error::ServerException(inner)
235            }
236            crate::operation::batch_check_layer_availability::BatchCheckLayerAvailabilityError::Unhandled(inner) => Error::Unhandled(inner),
237        }
238    }
239}
240impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_delete_image::BatchDeleteImageError, R>> for Error
241where
242    R: Send + Sync + std::fmt::Debug + 'static,
243{
244    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_delete_image::BatchDeleteImageError, R>) -> Self {
245        match err {
246            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
247            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
248                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
249                source: err.into(),
250            }),
251        }
252    }
253}
254impl From<crate::operation::batch_delete_image::BatchDeleteImageError> for Error {
255    fn from(err: crate::operation::batch_delete_image::BatchDeleteImageError) -> Self {
256        match err {
257            crate::operation::batch_delete_image::BatchDeleteImageError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
258            crate::operation::batch_delete_image::BatchDeleteImageError::RepositoryNotFoundException(inner) => {
259                Error::RepositoryNotFoundException(inner)
260            }
261            crate::operation::batch_delete_image::BatchDeleteImageError::ServerException(inner) => Error::ServerException(inner),
262            crate::operation::batch_delete_image::BatchDeleteImageError::Unhandled(inner) => Error::Unhandled(inner),
263        }
264    }
265}
266impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_image::BatchGetImageError, R>> for Error
267where
268    R: Send + Sync + std::fmt::Debug + 'static,
269{
270    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_image::BatchGetImageError, R>) -> 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::batch_get_image::BatchGetImageError> for Error {
281    fn from(err: crate::operation::batch_get_image::BatchGetImageError) -> Self {
282        match err {
283            crate::operation::batch_get_image::BatchGetImageError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
284            crate::operation::batch_get_image::BatchGetImageError::LimitExceededException(inner) => Error::LimitExceededException(inner),
285            crate::operation::batch_get_image::BatchGetImageError::RepositoryNotFoundException(inner) => Error::RepositoryNotFoundException(inner),
286            crate::operation::batch_get_image::BatchGetImageError::ServerException(inner) => Error::ServerException(inner),
287            crate::operation::batch_get_image::BatchGetImageError::UnableToGetUpstreamImageException(inner) => {
288                Error::UnableToGetUpstreamImageException(inner)
289            }
290            crate::operation::batch_get_image::BatchGetImageError::Unhandled(inner) => Error::Unhandled(inner),
291        }
292    }
293}
294impl<R>
295    From<
296        ::aws_smithy_runtime_api::client::result::SdkError<
297            crate::operation::batch_get_repository_scanning_configuration::BatchGetRepositoryScanningConfigurationError,
298            R,
299        >,
300    > for Error
301where
302    R: Send + Sync + std::fmt::Debug + 'static,
303{
304    fn from(
305        err: ::aws_smithy_runtime_api::client::result::SdkError<
306            crate::operation::batch_get_repository_scanning_configuration::BatchGetRepositoryScanningConfigurationError,
307            R,
308        >,
309    ) -> Self {
310        match err {
311            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
312            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
313                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
314                source: err.into(),
315            }),
316        }
317    }
318}
319impl From<crate::operation::batch_get_repository_scanning_configuration::BatchGetRepositoryScanningConfigurationError> for Error {
320    fn from(err: crate::operation::batch_get_repository_scanning_configuration::BatchGetRepositoryScanningConfigurationError) -> Self {
321        match err {
322            crate::operation::batch_get_repository_scanning_configuration::BatchGetRepositoryScanningConfigurationError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
323            crate::operation::batch_get_repository_scanning_configuration::BatchGetRepositoryScanningConfigurationError::RepositoryNotFoundException(inner) => Error::RepositoryNotFoundException(inner),
324            crate::operation::batch_get_repository_scanning_configuration::BatchGetRepositoryScanningConfigurationError::ServerException(inner) => Error::ServerException(inner),
325            crate::operation::batch_get_repository_scanning_configuration::BatchGetRepositoryScanningConfigurationError::ValidationException(inner) => Error::ValidationException(inner),
326            crate::operation::batch_get_repository_scanning_configuration::BatchGetRepositoryScanningConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
327        }
328    }
329}
330impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::complete_layer_upload::CompleteLayerUploadError, R>> for Error
331where
332    R: Send + Sync + std::fmt::Debug + 'static,
333{
334    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::complete_layer_upload::CompleteLayerUploadError, R>) -> Self {
335        match err {
336            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
337            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
338                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
339                source: err.into(),
340            }),
341        }
342    }
343}
344impl From<crate::operation::complete_layer_upload::CompleteLayerUploadError> for Error {
345    fn from(err: crate::operation::complete_layer_upload::CompleteLayerUploadError) -> Self {
346        match err {
347            crate::operation::complete_layer_upload::CompleteLayerUploadError::EmptyUploadException(inner) => Error::EmptyUploadException(inner),
348            crate::operation::complete_layer_upload::CompleteLayerUploadError::InvalidLayerException(inner) => Error::InvalidLayerException(inner),
349            crate::operation::complete_layer_upload::CompleteLayerUploadError::InvalidParameterException(inner) => {
350                Error::InvalidParameterException(inner)
351            }
352            crate::operation::complete_layer_upload::CompleteLayerUploadError::KmsException(inner) => Error::KmsException(inner),
353            crate::operation::complete_layer_upload::CompleteLayerUploadError::LayerAlreadyExistsException(inner) => {
354                Error::LayerAlreadyExistsException(inner)
355            }
356            crate::operation::complete_layer_upload::CompleteLayerUploadError::LayerPartTooSmallException(inner) => {
357                Error::LayerPartTooSmallException(inner)
358            }
359            crate::operation::complete_layer_upload::CompleteLayerUploadError::RepositoryNotFoundException(inner) => {
360                Error::RepositoryNotFoundException(inner)
361            }
362            crate::operation::complete_layer_upload::CompleteLayerUploadError::ServerException(inner) => Error::ServerException(inner),
363            crate::operation::complete_layer_upload::CompleteLayerUploadError::UploadNotFoundException(inner) => {
364                Error::UploadNotFoundException(inner)
365            }
366            crate::operation::complete_layer_upload::CompleteLayerUploadError::Unhandled(inner) => Error::Unhandled(inner),
367        }
368    }
369}
370impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_pull_through_cache_rule::CreatePullThroughCacheRuleError, R>>
371    for Error
372where
373    R: Send + Sync + std::fmt::Debug + 'static,
374{
375    fn from(
376        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_pull_through_cache_rule::CreatePullThroughCacheRuleError, R>,
377    ) -> 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::create_pull_through_cache_rule::CreatePullThroughCacheRuleError> for Error {
388    fn from(err: crate::operation::create_pull_through_cache_rule::CreatePullThroughCacheRuleError) -> Self {
389        match err {
390            crate::operation::create_pull_through_cache_rule::CreatePullThroughCacheRuleError::InvalidParameterException(inner) => {
391                Error::InvalidParameterException(inner)
392            }
393            crate::operation::create_pull_through_cache_rule::CreatePullThroughCacheRuleError::LimitExceededException(inner) => {
394                Error::LimitExceededException(inner)
395            }
396            crate::operation::create_pull_through_cache_rule::CreatePullThroughCacheRuleError::PullThroughCacheRuleAlreadyExistsException(inner) => {
397                Error::PullThroughCacheRuleAlreadyExistsException(inner)
398            }
399            crate::operation::create_pull_through_cache_rule::CreatePullThroughCacheRuleError::SecretNotFoundException(inner) => {
400                Error::SecretNotFoundException(inner)
401            }
402            crate::operation::create_pull_through_cache_rule::CreatePullThroughCacheRuleError::ServerException(inner) => {
403                Error::ServerException(inner)
404            }
405            crate::operation::create_pull_through_cache_rule::CreatePullThroughCacheRuleError::UnableToAccessSecretException(inner) => {
406                Error::UnableToAccessSecretException(inner)
407            }
408            crate::operation::create_pull_through_cache_rule::CreatePullThroughCacheRuleError::UnableToDecryptSecretValueException(inner) => {
409                Error::UnableToDecryptSecretValueException(inner)
410            }
411            crate::operation::create_pull_through_cache_rule::CreatePullThroughCacheRuleError::UnsupportedUpstreamRegistryException(inner) => {
412                Error::UnsupportedUpstreamRegistryException(inner)
413            }
414            crate::operation::create_pull_through_cache_rule::CreatePullThroughCacheRuleError::ValidationException(inner) => {
415                Error::ValidationException(inner)
416            }
417            crate::operation::create_pull_through_cache_rule::CreatePullThroughCacheRuleError::Unhandled(inner) => Error::Unhandled(inner),
418        }
419    }
420}
421impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_repository::CreateRepositoryError, R>> for Error
422where
423    R: Send + Sync + std::fmt::Debug + 'static,
424{
425    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_repository::CreateRepositoryError, R>) -> Self {
426        match err {
427            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
428            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
429                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
430                source: err.into(),
431            }),
432        }
433    }
434}
435impl From<crate::operation::create_repository::CreateRepositoryError> for Error {
436    fn from(err: crate::operation::create_repository::CreateRepositoryError) -> Self {
437        match err {
438            crate::operation::create_repository::CreateRepositoryError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
439            crate::operation::create_repository::CreateRepositoryError::InvalidTagParameterException(inner) => {
440                Error::InvalidTagParameterException(inner)
441            }
442            crate::operation::create_repository::CreateRepositoryError::KmsException(inner) => Error::KmsException(inner),
443            crate::operation::create_repository::CreateRepositoryError::LimitExceededException(inner) => Error::LimitExceededException(inner),
444            crate::operation::create_repository::CreateRepositoryError::RepositoryAlreadyExistsException(inner) => {
445                Error::RepositoryAlreadyExistsException(inner)
446            }
447            crate::operation::create_repository::CreateRepositoryError::ServerException(inner) => Error::ServerException(inner),
448            crate::operation::create_repository::CreateRepositoryError::TooManyTagsException(inner) => Error::TooManyTagsException(inner),
449            crate::operation::create_repository::CreateRepositoryError::Unhandled(inner) => Error::Unhandled(inner),
450        }
451    }
452}
453impl<R>
454    From<
455        ::aws_smithy_runtime_api::client::result::SdkError<
456            crate::operation::create_repository_creation_template::CreateRepositoryCreationTemplateError,
457            R,
458        >,
459    > for Error
460where
461    R: Send + Sync + std::fmt::Debug + 'static,
462{
463    fn from(
464        err: ::aws_smithy_runtime_api::client::result::SdkError<
465            crate::operation::create_repository_creation_template::CreateRepositoryCreationTemplateError,
466            R,
467        >,
468    ) -> Self {
469        match err {
470            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
471            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
472                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
473                source: err.into(),
474            }),
475        }
476    }
477}
478impl From<crate::operation::create_repository_creation_template::CreateRepositoryCreationTemplateError> for Error {
479    fn from(err: crate::operation::create_repository_creation_template::CreateRepositoryCreationTemplateError) -> Self {
480        match err {
481            crate::operation::create_repository_creation_template::CreateRepositoryCreationTemplateError::InvalidParameterException(inner) => {
482                Error::InvalidParameterException(inner)
483            }
484            crate::operation::create_repository_creation_template::CreateRepositoryCreationTemplateError::LimitExceededException(inner) => {
485                Error::LimitExceededException(inner)
486            }
487            crate::operation::create_repository_creation_template::CreateRepositoryCreationTemplateError::ServerException(inner) => {
488                Error::ServerException(inner)
489            }
490            crate::operation::create_repository_creation_template::CreateRepositoryCreationTemplateError::TemplateAlreadyExistsException(inner) => {
491                Error::TemplateAlreadyExistsException(inner)
492            }
493            crate::operation::create_repository_creation_template::CreateRepositoryCreationTemplateError::ValidationException(inner) => {
494                Error::ValidationException(inner)
495            }
496            crate::operation::create_repository_creation_template::CreateRepositoryCreationTemplateError::Unhandled(inner) => Error::Unhandled(inner),
497        }
498    }
499}
500impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_lifecycle_policy::DeleteLifecyclePolicyError, R>> for Error
501where
502    R: Send + Sync + std::fmt::Debug + 'static,
503{
504    fn from(
505        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_lifecycle_policy::DeleteLifecyclePolicyError, R>,
506    ) -> Self {
507        match err {
508            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
509            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
510                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
511                source: err.into(),
512            }),
513        }
514    }
515}
516impl From<crate::operation::delete_lifecycle_policy::DeleteLifecyclePolicyError> for Error {
517    fn from(err: crate::operation::delete_lifecycle_policy::DeleteLifecyclePolicyError) -> Self {
518        match err {
519            crate::operation::delete_lifecycle_policy::DeleteLifecyclePolicyError::InvalidParameterException(inner) => {
520                Error::InvalidParameterException(inner)
521            }
522            crate::operation::delete_lifecycle_policy::DeleteLifecyclePolicyError::LifecyclePolicyNotFoundException(inner) => {
523                Error::LifecyclePolicyNotFoundException(inner)
524            }
525            crate::operation::delete_lifecycle_policy::DeleteLifecyclePolicyError::RepositoryNotFoundException(inner) => {
526                Error::RepositoryNotFoundException(inner)
527            }
528            crate::operation::delete_lifecycle_policy::DeleteLifecyclePolicyError::ServerException(inner) => Error::ServerException(inner),
529            crate::operation::delete_lifecycle_policy::DeleteLifecyclePolicyError::ValidationException(inner) => Error::ValidationException(inner),
530            crate::operation::delete_lifecycle_policy::DeleteLifecyclePolicyError::Unhandled(inner) => Error::Unhandled(inner),
531        }
532    }
533}
534impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_pull_through_cache_rule::DeletePullThroughCacheRuleError, R>>
535    for Error
536where
537    R: Send + Sync + std::fmt::Debug + 'static,
538{
539    fn from(
540        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_pull_through_cache_rule::DeletePullThroughCacheRuleError, R>,
541    ) -> Self {
542        match err {
543            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
544            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
545                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
546                source: err.into(),
547            }),
548        }
549    }
550}
551impl From<crate::operation::delete_pull_through_cache_rule::DeletePullThroughCacheRuleError> for Error {
552    fn from(err: crate::operation::delete_pull_through_cache_rule::DeletePullThroughCacheRuleError) -> Self {
553        match err {
554            crate::operation::delete_pull_through_cache_rule::DeletePullThroughCacheRuleError::InvalidParameterException(inner) => {
555                Error::InvalidParameterException(inner)
556            }
557            crate::operation::delete_pull_through_cache_rule::DeletePullThroughCacheRuleError::PullThroughCacheRuleNotFoundException(inner) => {
558                Error::PullThroughCacheRuleNotFoundException(inner)
559            }
560            crate::operation::delete_pull_through_cache_rule::DeletePullThroughCacheRuleError::ServerException(inner) => {
561                Error::ServerException(inner)
562            }
563            crate::operation::delete_pull_through_cache_rule::DeletePullThroughCacheRuleError::ValidationException(inner) => {
564                Error::ValidationException(inner)
565            }
566            crate::operation::delete_pull_through_cache_rule::DeletePullThroughCacheRuleError::Unhandled(inner) => Error::Unhandled(inner),
567        }
568    }
569}
570impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_registry_policy::DeleteRegistryPolicyError, R>> for Error
571where
572    R: Send + Sync + std::fmt::Debug + 'static,
573{
574    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_registry_policy::DeleteRegistryPolicyError, R>) -> Self {
575        match err {
576            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
577            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
578                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
579                source: err.into(),
580            }),
581        }
582    }
583}
584impl From<crate::operation::delete_registry_policy::DeleteRegistryPolicyError> for Error {
585    fn from(err: crate::operation::delete_registry_policy::DeleteRegistryPolicyError) -> Self {
586        match err {
587            crate::operation::delete_registry_policy::DeleteRegistryPolicyError::InvalidParameterException(inner) => {
588                Error::InvalidParameterException(inner)
589            }
590            crate::operation::delete_registry_policy::DeleteRegistryPolicyError::RegistryPolicyNotFoundException(inner) => {
591                Error::RegistryPolicyNotFoundException(inner)
592            }
593            crate::operation::delete_registry_policy::DeleteRegistryPolicyError::ServerException(inner) => Error::ServerException(inner),
594            crate::operation::delete_registry_policy::DeleteRegistryPolicyError::ValidationException(inner) => Error::ValidationException(inner),
595            crate::operation::delete_registry_policy::DeleteRegistryPolicyError::Unhandled(inner) => Error::Unhandled(inner),
596        }
597    }
598}
599impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_repository::DeleteRepositoryError, R>> for Error
600where
601    R: Send + Sync + std::fmt::Debug + 'static,
602{
603    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_repository::DeleteRepositoryError, R>) -> Self {
604        match err {
605            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
606            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
607                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
608                source: err.into(),
609            }),
610        }
611    }
612}
613impl From<crate::operation::delete_repository::DeleteRepositoryError> for Error {
614    fn from(err: crate::operation::delete_repository::DeleteRepositoryError) -> Self {
615        match err {
616            crate::operation::delete_repository::DeleteRepositoryError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
617            crate::operation::delete_repository::DeleteRepositoryError::KmsException(inner) => Error::KmsException(inner),
618            crate::operation::delete_repository::DeleteRepositoryError::RepositoryNotEmptyException(inner) => {
619                Error::RepositoryNotEmptyException(inner)
620            }
621            crate::operation::delete_repository::DeleteRepositoryError::RepositoryNotFoundException(inner) => {
622                Error::RepositoryNotFoundException(inner)
623            }
624            crate::operation::delete_repository::DeleteRepositoryError::ServerException(inner) => Error::ServerException(inner),
625            crate::operation::delete_repository::DeleteRepositoryError::Unhandled(inner) => Error::Unhandled(inner),
626        }
627    }
628}
629impl<R>
630    From<
631        ::aws_smithy_runtime_api::client::result::SdkError<
632            crate::operation::delete_repository_creation_template::DeleteRepositoryCreationTemplateError,
633            R,
634        >,
635    > for Error
636where
637    R: Send + Sync + std::fmt::Debug + 'static,
638{
639    fn from(
640        err: ::aws_smithy_runtime_api::client::result::SdkError<
641            crate::operation::delete_repository_creation_template::DeleteRepositoryCreationTemplateError,
642            R,
643        >,
644    ) -> Self {
645        match err {
646            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
647            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
648                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
649                source: err.into(),
650            }),
651        }
652    }
653}
654impl From<crate::operation::delete_repository_creation_template::DeleteRepositoryCreationTemplateError> for Error {
655    fn from(err: crate::operation::delete_repository_creation_template::DeleteRepositoryCreationTemplateError) -> Self {
656        match err {
657            crate::operation::delete_repository_creation_template::DeleteRepositoryCreationTemplateError::InvalidParameterException(inner) => {
658                Error::InvalidParameterException(inner)
659            }
660            crate::operation::delete_repository_creation_template::DeleteRepositoryCreationTemplateError::ServerException(inner) => {
661                Error::ServerException(inner)
662            }
663            crate::operation::delete_repository_creation_template::DeleteRepositoryCreationTemplateError::TemplateNotFoundException(inner) => {
664                Error::TemplateNotFoundException(inner)
665            }
666            crate::operation::delete_repository_creation_template::DeleteRepositoryCreationTemplateError::ValidationException(inner) => {
667                Error::ValidationException(inner)
668            }
669            crate::operation::delete_repository_creation_template::DeleteRepositoryCreationTemplateError::Unhandled(inner) => Error::Unhandled(inner),
670        }
671    }
672}
673impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_repository_policy::DeleteRepositoryPolicyError, R>> for Error
674where
675    R: Send + Sync + std::fmt::Debug + 'static,
676{
677    fn from(
678        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_repository_policy::DeleteRepositoryPolicyError, R>,
679    ) -> Self {
680        match err {
681            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
682            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
683                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
684                source: err.into(),
685            }),
686        }
687    }
688}
689impl From<crate::operation::delete_repository_policy::DeleteRepositoryPolicyError> for Error {
690    fn from(err: crate::operation::delete_repository_policy::DeleteRepositoryPolicyError) -> Self {
691        match err {
692            crate::operation::delete_repository_policy::DeleteRepositoryPolicyError::InvalidParameterException(inner) => {
693                Error::InvalidParameterException(inner)
694            }
695            crate::operation::delete_repository_policy::DeleteRepositoryPolicyError::RepositoryNotFoundException(inner) => {
696                Error::RepositoryNotFoundException(inner)
697            }
698            crate::operation::delete_repository_policy::DeleteRepositoryPolicyError::RepositoryPolicyNotFoundException(inner) => {
699                Error::RepositoryPolicyNotFoundException(inner)
700            }
701            crate::operation::delete_repository_policy::DeleteRepositoryPolicyError::ServerException(inner) => Error::ServerException(inner),
702            crate::operation::delete_repository_policy::DeleteRepositoryPolicyError::Unhandled(inner) => Error::Unhandled(inner),
703        }
704    }
705}
706impl<R>
707    From<
708        ::aws_smithy_runtime_api::client::result::SdkError<
709            crate::operation::describe_image_replication_status::DescribeImageReplicationStatusError,
710            R,
711        >,
712    > for Error
713where
714    R: Send + Sync + std::fmt::Debug + 'static,
715{
716    fn from(
717        err: ::aws_smithy_runtime_api::client::result::SdkError<
718            crate::operation::describe_image_replication_status::DescribeImageReplicationStatusError,
719            R,
720        >,
721    ) -> Self {
722        match err {
723            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
724            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
725                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
726                source: err.into(),
727            }),
728        }
729    }
730}
731impl From<crate::operation::describe_image_replication_status::DescribeImageReplicationStatusError> for Error {
732    fn from(err: crate::operation::describe_image_replication_status::DescribeImageReplicationStatusError) -> Self {
733        match err {
734            crate::operation::describe_image_replication_status::DescribeImageReplicationStatusError::ImageNotFoundException(inner) => {
735                Error::ImageNotFoundException(inner)
736            }
737            crate::operation::describe_image_replication_status::DescribeImageReplicationStatusError::InvalidParameterException(inner) => {
738                Error::InvalidParameterException(inner)
739            }
740            crate::operation::describe_image_replication_status::DescribeImageReplicationStatusError::RepositoryNotFoundException(inner) => {
741                Error::RepositoryNotFoundException(inner)
742            }
743            crate::operation::describe_image_replication_status::DescribeImageReplicationStatusError::ServerException(inner) => {
744                Error::ServerException(inner)
745            }
746            crate::operation::describe_image_replication_status::DescribeImageReplicationStatusError::ValidationException(inner) => {
747                Error::ValidationException(inner)
748            }
749            crate::operation::describe_image_replication_status::DescribeImageReplicationStatusError::Unhandled(inner) => Error::Unhandled(inner),
750        }
751    }
752}
753impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_images::DescribeImagesError, R>> for Error
754where
755    R: Send + Sync + std::fmt::Debug + 'static,
756{
757    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_images::DescribeImagesError, R>) -> Self {
758        match err {
759            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
760            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
761                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
762                source: err.into(),
763            }),
764        }
765    }
766}
767impl From<crate::operation::describe_images::DescribeImagesError> for Error {
768    fn from(err: crate::operation::describe_images::DescribeImagesError) -> Self {
769        match err {
770            crate::operation::describe_images::DescribeImagesError::ImageNotFoundException(inner) => Error::ImageNotFoundException(inner),
771            crate::operation::describe_images::DescribeImagesError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
772            crate::operation::describe_images::DescribeImagesError::RepositoryNotFoundException(inner) => Error::RepositoryNotFoundException(inner),
773            crate::operation::describe_images::DescribeImagesError::ServerException(inner) => Error::ServerException(inner),
774            crate::operation::describe_images::DescribeImagesError::Unhandled(inner) => Error::Unhandled(inner),
775        }
776    }
777}
778impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image_scan_findings::DescribeImageScanFindingsError, R>>
779    for Error
780where
781    R: Send + Sync + std::fmt::Debug + 'static,
782{
783    fn from(
784        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image_scan_findings::DescribeImageScanFindingsError, R>,
785    ) -> 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::describe_image_scan_findings::DescribeImageScanFindingsError> for Error {
796    fn from(err: crate::operation::describe_image_scan_findings::DescribeImageScanFindingsError) -> Self {
797        match err {
798            crate::operation::describe_image_scan_findings::DescribeImageScanFindingsError::ImageNotFoundException(inner) => {
799                Error::ImageNotFoundException(inner)
800            }
801            crate::operation::describe_image_scan_findings::DescribeImageScanFindingsError::InvalidParameterException(inner) => {
802                Error::InvalidParameterException(inner)
803            }
804            crate::operation::describe_image_scan_findings::DescribeImageScanFindingsError::RepositoryNotFoundException(inner) => {
805                Error::RepositoryNotFoundException(inner)
806            }
807            crate::operation::describe_image_scan_findings::DescribeImageScanFindingsError::ScanNotFoundException(inner) => {
808                Error::ScanNotFoundException(inner)
809            }
810            crate::operation::describe_image_scan_findings::DescribeImageScanFindingsError::ServerException(inner) => Error::ServerException(inner),
811            crate::operation::describe_image_scan_findings::DescribeImageScanFindingsError::ValidationException(inner) => {
812                Error::ValidationException(inner)
813            }
814            crate::operation::describe_image_scan_findings::DescribeImageScanFindingsError::Unhandled(inner) => Error::Unhandled(inner),
815        }
816    }
817}
818impl<R>
819    From<
820        ::aws_smithy_runtime_api::client::result::SdkError<
821            crate::operation::describe_pull_through_cache_rules::DescribePullThroughCacheRulesError,
822            R,
823        >,
824    > for Error
825where
826    R: Send + Sync + std::fmt::Debug + 'static,
827{
828    fn from(
829        err: ::aws_smithy_runtime_api::client::result::SdkError<
830            crate::operation::describe_pull_through_cache_rules::DescribePullThroughCacheRulesError,
831            R,
832        >,
833    ) -> Self {
834        match err {
835            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
836            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
837                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
838                source: err.into(),
839            }),
840        }
841    }
842}
843impl From<crate::operation::describe_pull_through_cache_rules::DescribePullThroughCacheRulesError> for Error {
844    fn from(err: crate::operation::describe_pull_through_cache_rules::DescribePullThroughCacheRulesError) -> Self {
845        match err {
846            crate::operation::describe_pull_through_cache_rules::DescribePullThroughCacheRulesError::InvalidParameterException(inner) => {
847                Error::InvalidParameterException(inner)
848            }
849            crate::operation::describe_pull_through_cache_rules::DescribePullThroughCacheRulesError::PullThroughCacheRuleNotFoundException(inner) => {
850                Error::PullThroughCacheRuleNotFoundException(inner)
851            }
852            crate::operation::describe_pull_through_cache_rules::DescribePullThroughCacheRulesError::ServerException(inner) => {
853                Error::ServerException(inner)
854            }
855            crate::operation::describe_pull_through_cache_rules::DescribePullThroughCacheRulesError::ValidationException(inner) => {
856                Error::ValidationException(inner)
857            }
858            crate::operation::describe_pull_through_cache_rules::DescribePullThroughCacheRulesError::Unhandled(inner) => Error::Unhandled(inner),
859        }
860    }
861}
862impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_registry::DescribeRegistryError, R>> for Error
863where
864    R: Send + Sync + std::fmt::Debug + 'static,
865{
866    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_registry::DescribeRegistryError, R>) -> Self {
867        match err {
868            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
869            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
870                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
871                source: err.into(),
872            }),
873        }
874    }
875}
876impl From<crate::operation::describe_registry::DescribeRegistryError> for Error {
877    fn from(err: crate::operation::describe_registry::DescribeRegistryError) -> Self {
878        match err {
879            crate::operation::describe_registry::DescribeRegistryError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
880            crate::operation::describe_registry::DescribeRegistryError::ServerException(inner) => Error::ServerException(inner),
881            crate::operation::describe_registry::DescribeRegistryError::ValidationException(inner) => Error::ValidationException(inner),
882            crate::operation::describe_registry::DescribeRegistryError::Unhandled(inner) => Error::Unhandled(inner),
883        }
884    }
885}
886impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_repositories::DescribeRepositoriesError, R>> for Error
887where
888    R: Send + Sync + std::fmt::Debug + 'static,
889{
890    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_repositories::DescribeRepositoriesError, R>) -> Self {
891        match err {
892            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
893            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
894                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
895                source: err.into(),
896            }),
897        }
898    }
899}
900impl From<crate::operation::describe_repositories::DescribeRepositoriesError> for Error {
901    fn from(err: crate::operation::describe_repositories::DescribeRepositoriesError) -> Self {
902        match err {
903            crate::operation::describe_repositories::DescribeRepositoriesError::InvalidParameterException(inner) => {
904                Error::InvalidParameterException(inner)
905            }
906            crate::operation::describe_repositories::DescribeRepositoriesError::RepositoryNotFoundException(inner) => {
907                Error::RepositoryNotFoundException(inner)
908            }
909            crate::operation::describe_repositories::DescribeRepositoriesError::ServerException(inner) => Error::ServerException(inner),
910            crate::operation::describe_repositories::DescribeRepositoriesError::Unhandled(inner) => Error::Unhandled(inner),
911        }
912    }
913}
914impl<R>
915    From<
916        ::aws_smithy_runtime_api::client::result::SdkError<
917            crate::operation::describe_repository_creation_templates::DescribeRepositoryCreationTemplatesError,
918            R,
919        >,
920    > for Error
921where
922    R: Send + Sync + std::fmt::Debug + 'static,
923{
924    fn from(
925        err: ::aws_smithy_runtime_api::client::result::SdkError<
926            crate::operation::describe_repository_creation_templates::DescribeRepositoryCreationTemplatesError,
927            R,
928        >,
929    ) -> Self {
930        match err {
931            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
932            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
933                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
934                source: err.into(),
935            }),
936        }
937    }
938}
939impl From<crate::operation::describe_repository_creation_templates::DescribeRepositoryCreationTemplatesError> for Error {
940    fn from(err: crate::operation::describe_repository_creation_templates::DescribeRepositoryCreationTemplatesError) -> Self {
941        match err {
942            crate::operation::describe_repository_creation_templates::DescribeRepositoryCreationTemplatesError::InvalidParameterException(inner) => {
943                Error::InvalidParameterException(inner)
944            }
945            crate::operation::describe_repository_creation_templates::DescribeRepositoryCreationTemplatesError::ServerException(inner) => {
946                Error::ServerException(inner)
947            }
948            crate::operation::describe_repository_creation_templates::DescribeRepositoryCreationTemplatesError::ValidationException(inner) => {
949                Error::ValidationException(inner)
950            }
951            crate::operation::describe_repository_creation_templates::DescribeRepositoryCreationTemplatesError::Unhandled(inner) => {
952                Error::Unhandled(inner)
953            }
954        }
955    }
956}
957impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_account_setting::GetAccountSettingError, R>> for Error
958where
959    R: Send + Sync + std::fmt::Debug + 'static,
960{
961    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_account_setting::GetAccountSettingError, R>) -> Self {
962        match err {
963            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
964            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
965                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
966                source: err.into(),
967            }),
968        }
969    }
970}
971impl From<crate::operation::get_account_setting::GetAccountSettingError> for Error {
972    fn from(err: crate::operation::get_account_setting::GetAccountSettingError) -> Self {
973        match err {
974            crate::operation::get_account_setting::GetAccountSettingError::InvalidParameterException(inner) => {
975                Error::InvalidParameterException(inner)
976            }
977            crate::operation::get_account_setting::GetAccountSettingError::ServerException(inner) => Error::ServerException(inner),
978            crate::operation::get_account_setting::GetAccountSettingError::ValidationException(inner) => Error::ValidationException(inner),
979            crate::operation::get_account_setting::GetAccountSettingError::Unhandled(inner) => Error::Unhandled(inner),
980        }
981    }
982}
983impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_authorization_token::GetAuthorizationTokenError, R>> for Error
984where
985    R: Send + Sync + std::fmt::Debug + 'static,
986{
987    fn from(
988        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_authorization_token::GetAuthorizationTokenError, R>,
989    ) -> Self {
990        match err {
991            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
992            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
993                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
994                source: err.into(),
995            }),
996        }
997    }
998}
999impl From<crate::operation::get_authorization_token::GetAuthorizationTokenError> for Error {
1000    fn from(err: crate::operation::get_authorization_token::GetAuthorizationTokenError) -> Self {
1001        match err {
1002            crate::operation::get_authorization_token::GetAuthorizationTokenError::InvalidParameterException(inner) => {
1003                Error::InvalidParameterException(inner)
1004            }
1005            crate::operation::get_authorization_token::GetAuthorizationTokenError::ServerException(inner) => Error::ServerException(inner),
1006            crate::operation::get_authorization_token::GetAuthorizationTokenError::Unhandled(inner) => Error::Unhandled(inner),
1007        }
1008    }
1009}
1010impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_download_url_for_layer::GetDownloadUrlForLayerError, R>>
1011    for Error
1012where
1013    R: Send + Sync + std::fmt::Debug + 'static,
1014{
1015    fn from(
1016        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_download_url_for_layer::GetDownloadUrlForLayerError, R>,
1017    ) -> Self {
1018        match err {
1019            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1020            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1021                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1022                source: err.into(),
1023            }),
1024        }
1025    }
1026}
1027impl From<crate::operation::get_download_url_for_layer::GetDownloadUrlForLayerError> for Error {
1028    fn from(err: crate::operation::get_download_url_for_layer::GetDownloadUrlForLayerError) -> Self {
1029        match err {
1030            crate::operation::get_download_url_for_layer::GetDownloadUrlForLayerError::InvalidParameterException(inner) => {
1031                Error::InvalidParameterException(inner)
1032            }
1033            crate::operation::get_download_url_for_layer::GetDownloadUrlForLayerError::LayerInaccessibleException(inner) => {
1034                Error::LayerInaccessibleException(inner)
1035            }
1036            crate::operation::get_download_url_for_layer::GetDownloadUrlForLayerError::LayersNotFoundException(inner) => {
1037                Error::LayersNotFoundException(inner)
1038            }
1039            crate::operation::get_download_url_for_layer::GetDownloadUrlForLayerError::RepositoryNotFoundException(inner) => {
1040                Error::RepositoryNotFoundException(inner)
1041            }
1042            crate::operation::get_download_url_for_layer::GetDownloadUrlForLayerError::ServerException(inner) => Error::ServerException(inner),
1043            crate::operation::get_download_url_for_layer::GetDownloadUrlForLayerError::UnableToGetUpstreamLayerException(inner) => {
1044                Error::UnableToGetUpstreamLayerException(inner)
1045            }
1046            crate::operation::get_download_url_for_layer::GetDownloadUrlForLayerError::Unhandled(inner) => Error::Unhandled(inner),
1047        }
1048    }
1049}
1050impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_lifecycle_policy::GetLifecyclePolicyError, R>> for Error
1051where
1052    R: Send + Sync + std::fmt::Debug + 'static,
1053{
1054    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_lifecycle_policy::GetLifecyclePolicyError, R>) -> Self {
1055        match err {
1056            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1057            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1058                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1059                source: err.into(),
1060            }),
1061        }
1062    }
1063}
1064impl From<crate::operation::get_lifecycle_policy::GetLifecyclePolicyError> for Error {
1065    fn from(err: crate::operation::get_lifecycle_policy::GetLifecyclePolicyError) -> Self {
1066        match err {
1067            crate::operation::get_lifecycle_policy::GetLifecyclePolicyError::InvalidParameterException(inner) => {
1068                Error::InvalidParameterException(inner)
1069            }
1070            crate::operation::get_lifecycle_policy::GetLifecyclePolicyError::LifecyclePolicyNotFoundException(inner) => {
1071                Error::LifecyclePolicyNotFoundException(inner)
1072            }
1073            crate::operation::get_lifecycle_policy::GetLifecyclePolicyError::RepositoryNotFoundException(inner) => {
1074                Error::RepositoryNotFoundException(inner)
1075            }
1076            crate::operation::get_lifecycle_policy::GetLifecyclePolicyError::ServerException(inner) => Error::ServerException(inner),
1077            crate::operation::get_lifecycle_policy::GetLifecyclePolicyError::ValidationException(inner) => Error::ValidationException(inner),
1078            crate::operation::get_lifecycle_policy::GetLifecyclePolicyError::Unhandled(inner) => Error::Unhandled(inner),
1079        }
1080    }
1081}
1082impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_lifecycle_policy_preview::GetLifecyclePolicyPreviewError, R>>
1083    for Error
1084where
1085    R: Send + Sync + std::fmt::Debug + 'static,
1086{
1087    fn from(
1088        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_lifecycle_policy_preview::GetLifecyclePolicyPreviewError, R>,
1089    ) -> Self {
1090        match err {
1091            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1092            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1093                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1094                source: err.into(),
1095            }),
1096        }
1097    }
1098}
1099impl From<crate::operation::get_lifecycle_policy_preview::GetLifecyclePolicyPreviewError> for Error {
1100    fn from(err: crate::operation::get_lifecycle_policy_preview::GetLifecyclePolicyPreviewError) -> Self {
1101        match err {
1102            crate::operation::get_lifecycle_policy_preview::GetLifecyclePolicyPreviewError::InvalidParameterException(inner) => {
1103                Error::InvalidParameterException(inner)
1104            }
1105            crate::operation::get_lifecycle_policy_preview::GetLifecyclePolicyPreviewError::LifecyclePolicyPreviewNotFoundException(inner) => {
1106                Error::LifecyclePolicyPreviewNotFoundException(inner)
1107            }
1108            crate::operation::get_lifecycle_policy_preview::GetLifecyclePolicyPreviewError::RepositoryNotFoundException(inner) => {
1109                Error::RepositoryNotFoundException(inner)
1110            }
1111            crate::operation::get_lifecycle_policy_preview::GetLifecyclePolicyPreviewError::ServerException(inner) => Error::ServerException(inner),
1112            crate::operation::get_lifecycle_policy_preview::GetLifecyclePolicyPreviewError::ValidationException(inner) => {
1113                Error::ValidationException(inner)
1114            }
1115            crate::operation::get_lifecycle_policy_preview::GetLifecyclePolicyPreviewError::Unhandled(inner) => Error::Unhandled(inner),
1116        }
1117    }
1118}
1119impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_registry_policy::GetRegistryPolicyError, R>> for Error
1120where
1121    R: Send + Sync + std::fmt::Debug + 'static,
1122{
1123    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_registry_policy::GetRegistryPolicyError, R>) -> Self {
1124        match err {
1125            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1126            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1127                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1128                source: err.into(),
1129            }),
1130        }
1131    }
1132}
1133impl From<crate::operation::get_registry_policy::GetRegistryPolicyError> for Error {
1134    fn from(err: crate::operation::get_registry_policy::GetRegistryPolicyError) -> Self {
1135        match err {
1136            crate::operation::get_registry_policy::GetRegistryPolicyError::InvalidParameterException(inner) => {
1137                Error::InvalidParameterException(inner)
1138            }
1139            crate::operation::get_registry_policy::GetRegistryPolicyError::RegistryPolicyNotFoundException(inner) => {
1140                Error::RegistryPolicyNotFoundException(inner)
1141            }
1142            crate::operation::get_registry_policy::GetRegistryPolicyError::ServerException(inner) => Error::ServerException(inner),
1143            crate::operation::get_registry_policy::GetRegistryPolicyError::ValidationException(inner) => Error::ValidationException(inner),
1144            crate::operation::get_registry_policy::GetRegistryPolicyError::Unhandled(inner) => Error::Unhandled(inner),
1145        }
1146    }
1147}
1148impl<R>
1149    From<
1150        ::aws_smithy_runtime_api::client::result::SdkError<
1151            crate::operation::get_registry_scanning_configuration::GetRegistryScanningConfigurationError,
1152            R,
1153        >,
1154    > for Error
1155where
1156    R: Send + Sync + std::fmt::Debug + 'static,
1157{
1158    fn from(
1159        err: ::aws_smithy_runtime_api::client::result::SdkError<
1160            crate::operation::get_registry_scanning_configuration::GetRegistryScanningConfigurationError,
1161            R,
1162        >,
1163    ) -> Self {
1164        match err {
1165            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1166            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1167                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1168                source: err.into(),
1169            }),
1170        }
1171    }
1172}
1173impl From<crate::operation::get_registry_scanning_configuration::GetRegistryScanningConfigurationError> for Error {
1174    fn from(err: crate::operation::get_registry_scanning_configuration::GetRegistryScanningConfigurationError) -> Self {
1175        match err {
1176            crate::operation::get_registry_scanning_configuration::GetRegistryScanningConfigurationError::InvalidParameterException(inner) => {
1177                Error::InvalidParameterException(inner)
1178            }
1179            crate::operation::get_registry_scanning_configuration::GetRegistryScanningConfigurationError::ServerException(inner) => {
1180                Error::ServerException(inner)
1181            }
1182            crate::operation::get_registry_scanning_configuration::GetRegistryScanningConfigurationError::ValidationException(inner) => {
1183                Error::ValidationException(inner)
1184            }
1185            crate::operation::get_registry_scanning_configuration::GetRegistryScanningConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1186        }
1187    }
1188}
1189impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_repository_policy::GetRepositoryPolicyError, R>> for Error
1190where
1191    R: Send + Sync + std::fmt::Debug + 'static,
1192{
1193    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_repository_policy::GetRepositoryPolicyError, R>) -> Self {
1194        match err {
1195            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1196            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1197                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1198                source: err.into(),
1199            }),
1200        }
1201    }
1202}
1203impl From<crate::operation::get_repository_policy::GetRepositoryPolicyError> for Error {
1204    fn from(err: crate::operation::get_repository_policy::GetRepositoryPolicyError) -> Self {
1205        match err {
1206            crate::operation::get_repository_policy::GetRepositoryPolicyError::InvalidParameterException(inner) => {
1207                Error::InvalidParameterException(inner)
1208            }
1209            crate::operation::get_repository_policy::GetRepositoryPolicyError::RepositoryNotFoundException(inner) => {
1210                Error::RepositoryNotFoundException(inner)
1211            }
1212            crate::operation::get_repository_policy::GetRepositoryPolicyError::RepositoryPolicyNotFoundException(inner) => {
1213                Error::RepositoryPolicyNotFoundException(inner)
1214            }
1215            crate::operation::get_repository_policy::GetRepositoryPolicyError::ServerException(inner) => Error::ServerException(inner),
1216            crate::operation::get_repository_policy::GetRepositoryPolicyError::Unhandled(inner) => Error::Unhandled(inner),
1217        }
1218    }
1219}
1220impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::initiate_layer_upload::InitiateLayerUploadError, R>> for Error
1221where
1222    R: Send + Sync + std::fmt::Debug + 'static,
1223{
1224    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::initiate_layer_upload::InitiateLayerUploadError, R>) -> Self {
1225        match err {
1226            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1227            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1228                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1229                source: err.into(),
1230            }),
1231        }
1232    }
1233}
1234impl From<crate::operation::initiate_layer_upload::InitiateLayerUploadError> for Error {
1235    fn from(err: crate::operation::initiate_layer_upload::InitiateLayerUploadError) -> Self {
1236        match err {
1237            crate::operation::initiate_layer_upload::InitiateLayerUploadError::InvalidParameterException(inner) => {
1238                Error::InvalidParameterException(inner)
1239            }
1240            crate::operation::initiate_layer_upload::InitiateLayerUploadError::KmsException(inner) => Error::KmsException(inner),
1241            crate::operation::initiate_layer_upload::InitiateLayerUploadError::RepositoryNotFoundException(inner) => {
1242                Error::RepositoryNotFoundException(inner)
1243            }
1244            crate::operation::initiate_layer_upload::InitiateLayerUploadError::ServerException(inner) => Error::ServerException(inner),
1245            crate::operation::initiate_layer_upload::InitiateLayerUploadError::Unhandled(inner) => Error::Unhandled(inner),
1246        }
1247    }
1248}
1249impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_images::ListImagesError, R>> for Error
1250where
1251    R: Send + Sync + std::fmt::Debug + 'static,
1252{
1253    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_images::ListImagesError, R>) -> Self {
1254        match err {
1255            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1256            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1257                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1258                source: err.into(),
1259            }),
1260        }
1261    }
1262}
1263impl From<crate::operation::list_images::ListImagesError> for Error {
1264    fn from(err: crate::operation::list_images::ListImagesError) -> Self {
1265        match err {
1266            crate::operation::list_images::ListImagesError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
1267            crate::operation::list_images::ListImagesError::RepositoryNotFoundException(inner) => Error::RepositoryNotFoundException(inner),
1268            crate::operation::list_images::ListImagesError::ServerException(inner) => Error::ServerException(inner),
1269            crate::operation::list_images::ListImagesError::Unhandled(inner) => Error::Unhandled(inner),
1270        }
1271    }
1272}
1273impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
1274where
1275    R: Send + Sync + std::fmt::Debug + 'static,
1276{
1277    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
1278        match err {
1279            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1280            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1281                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1282                source: err.into(),
1283            }),
1284        }
1285    }
1286}
1287impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
1288    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
1289        match err {
1290            crate::operation::list_tags_for_resource::ListTagsForResourceError::InvalidParameterException(inner) => {
1291                Error::InvalidParameterException(inner)
1292            }
1293            crate::operation::list_tags_for_resource::ListTagsForResourceError::RepositoryNotFoundException(inner) => {
1294                Error::RepositoryNotFoundException(inner)
1295            }
1296            crate::operation::list_tags_for_resource::ListTagsForResourceError::ServerException(inner) => Error::ServerException(inner),
1297            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
1298        }
1299    }
1300}
1301impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_account_setting::PutAccountSettingError, R>> for Error
1302where
1303    R: Send + Sync + std::fmt::Debug + 'static,
1304{
1305    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_account_setting::PutAccountSettingError, R>) -> Self {
1306        match err {
1307            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1308            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1309                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1310                source: err.into(),
1311            }),
1312        }
1313    }
1314}
1315impl From<crate::operation::put_account_setting::PutAccountSettingError> for Error {
1316    fn from(err: crate::operation::put_account_setting::PutAccountSettingError) -> Self {
1317        match err {
1318            crate::operation::put_account_setting::PutAccountSettingError::InvalidParameterException(inner) => {
1319                Error::InvalidParameterException(inner)
1320            }
1321            crate::operation::put_account_setting::PutAccountSettingError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1322            crate::operation::put_account_setting::PutAccountSettingError::ServerException(inner) => Error::ServerException(inner),
1323            crate::operation::put_account_setting::PutAccountSettingError::ValidationException(inner) => Error::ValidationException(inner),
1324            crate::operation::put_account_setting::PutAccountSettingError::Unhandled(inner) => Error::Unhandled(inner),
1325        }
1326    }
1327}
1328impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_image::PutImageError, R>> for Error
1329where
1330    R: Send + Sync + std::fmt::Debug + 'static,
1331{
1332    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_image::PutImageError, R>) -> Self {
1333        match err {
1334            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1335            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1336                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1337                source: err.into(),
1338            }),
1339        }
1340    }
1341}
1342impl From<crate::operation::put_image::PutImageError> for Error {
1343    fn from(err: crate::operation::put_image::PutImageError) -> Self {
1344        match err {
1345            crate::operation::put_image::PutImageError::ImageAlreadyExistsException(inner) => Error::ImageAlreadyExistsException(inner),
1346            crate::operation::put_image::PutImageError::ImageDigestDoesNotMatchException(inner) => Error::ImageDigestDoesNotMatchException(inner),
1347            crate::operation::put_image::PutImageError::ImageTagAlreadyExistsException(inner) => Error::ImageTagAlreadyExistsException(inner),
1348            crate::operation::put_image::PutImageError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
1349            crate::operation::put_image::PutImageError::KmsException(inner) => Error::KmsException(inner),
1350            crate::operation::put_image::PutImageError::LayersNotFoundException(inner) => Error::LayersNotFoundException(inner),
1351            crate::operation::put_image::PutImageError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1352            crate::operation::put_image::PutImageError::ReferencedImagesNotFoundException(inner) => Error::ReferencedImagesNotFoundException(inner),
1353            crate::operation::put_image::PutImageError::RepositoryNotFoundException(inner) => Error::RepositoryNotFoundException(inner),
1354            crate::operation::put_image::PutImageError::ServerException(inner) => Error::ServerException(inner),
1355            crate::operation::put_image::PutImageError::Unhandled(inner) => Error::Unhandled(inner),
1356        }
1357    }
1358}
1359impl<R>
1360    From<
1361        ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_image_scanning_configuration::PutImageScanningConfigurationError, R>,
1362    > for Error
1363where
1364    R: Send + Sync + std::fmt::Debug + 'static,
1365{
1366    fn from(
1367        err: ::aws_smithy_runtime_api::client::result::SdkError<
1368            crate::operation::put_image_scanning_configuration::PutImageScanningConfigurationError,
1369            R,
1370        >,
1371    ) -> Self {
1372        match err {
1373            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1374            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1375                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1376                source: err.into(),
1377            }),
1378        }
1379    }
1380}
1381impl From<crate::operation::put_image_scanning_configuration::PutImageScanningConfigurationError> for Error {
1382    fn from(err: crate::operation::put_image_scanning_configuration::PutImageScanningConfigurationError) -> Self {
1383        match err {
1384            crate::operation::put_image_scanning_configuration::PutImageScanningConfigurationError::InvalidParameterException(inner) => {
1385                Error::InvalidParameterException(inner)
1386            }
1387            crate::operation::put_image_scanning_configuration::PutImageScanningConfigurationError::RepositoryNotFoundException(inner) => {
1388                Error::RepositoryNotFoundException(inner)
1389            }
1390            crate::operation::put_image_scanning_configuration::PutImageScanningConfigurationError::ServerException(inner) => {
1391                Error::ServerException(inner)
1392            }
1393            crate::operation::put_image_scanning_configuration::PutImageScanningConfigurationError::ValidationException(inner) => {
1394                Error::ValidationException(inner)
1395            }
1396            crate::operation::put_image_scanning_configuration::PutImageScanningConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1397        }
1398    }
1399}
1400impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_image_tag_mutability::PutImageTagMutabilityError, R>> for Error
1401where
1402    R: Send + Sync + std::fmt::Debug + 'static,
1403{
1404    fn from(
1405        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_image_tag_mutability::PutImageTagMutabilityError, R>,
1406    ) -> Self {
1407        match err {
1408            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1409            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1410                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1411                source: err.into(),
1412            }),
1413        }
1414    }
1415}
1416impl From<crate::operation::put_image_tag_mutability::PutImageTagMutabilityError> for Error {
1417    fn from(err: crate::operation::put_image_tag_mutability::PutImageTagMutabilityError) -> Self {
1418        match err {
1419            crate::operation::put_image_tag_mutability::PutImageTagMutabilityError::InvalidParameterException(inner) => {
1420                Error::InvalidParameterException(inner)
1421            }
1422            crate::operation::put_image_tag_mutability::PutImageTagMutabilityError::RepositoryNotFoundException(inner) => {
1423                Error::RepositoryNotFoundException(inner)
1424            }
1425            crate::operation::put_image_tag_mutability::PutImageTagMutabilityError::ServerException(inner) => Error::ServerException(inner),
1426            crate::operation::put_image_tag_mutability::PutImageTagMutabilityError::Unhandled(inner) => Error::Unhandled(inner),
1427        }
1428    }
1429}
1430impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_lifecycle_policy::PutLifecyclePolicyError, R>> for Error
1431where
1432    R: Send + Sync + std::fmt::Debug + 'static,
1433{
1434    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_lifecycle_policy::PutLifecyclePolicyError, R>) -> Self {
1435        match err {
1436            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1437            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1438                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1439                source: err.into(),
1440            }),
1441        }
1442    }
1443}
1444impl From<crate::operation::put_lifecycle_policy::PutLifecyclePolicyError> for Error {
1445    fn from(err: crate::operation::put_lifecycle_policy::PutLifecyclePolicyError) -> Self {
1446        match err {
1447            crate::operation::put_lifecycle_policy::PutLifecyclePolicyError::InvalidParameterException(inner) => {
1448                Error::InvalidParameterException(inner)
1449            }
1450            crate::operation::put_lifecycle_policy::PutLifecyclePolicyError::RepositoryNotFoundException(inner) => {
1451                Error::RepositoryNotFoundException(inner)
1452            }
1453            crate::operation::put_lifecycle_policy::PutLifecyclePolicyError::ServerException(inner) => Error::ServerException(inner),
1454            crate::operation::put_lifecycle_policy::PutLifecyclePolicyError::ValidationException(inner) => Error::ValidationException(inner),
1455            crate::operation::put_lifecycle_policy::PutLifecyclePolicyError::Unhandled(inner) => Error::Unhandled(inner),
1456        }
1457    }
1458}
1459impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_registry_policy::PutRegistryPolicyError, R>> for Error
1460where
1461    R: Send + Sync + std::fmt::Debug + 'static,
1462{
1463    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_registry_policy::PutRegistryPolicyError, R>) -> Self {
1464        match err {
1465            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1466            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1467                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1468                source: err.into(),
1469            }),
1470        }
1471    }
1472}
1473impl From<crate::operation::put_registry_policy::PutRegistryPolicyError> for Error {
1474    fn from(err: crate::operation::put_registry_policy::PutRegistryPolicyError) -> Self {
1475        match err {
1476            crate::operation::put_registry_policy::PutRegistryPolicyError::InvalidParameterException(inner) => {
1477                Error::InvalidParameterException(inner)
1478            }
1479            crate::operation::put_registry_policy::PutRegistryPolicyError::ServerException(inner) => Error::ServerException(inner),
1480            crate::operation::put_registry_policy::PutRegistryPolicyError::ValidationException(inner) => Error::ValidationException(inner),
1481            crate::operation::put_registry_policy::PutRegistryPolicyError::Unhandled(inner) => Error::Unhandled(inner),
1482        }
1483    }
1484}
1485impl<R>
1486    From<
1487        ::aws_smithy_runtime_api::client::result::SdkError<
1488            crate::operation::put_registry_scanning_configuration::PutRegistryScanningConfigurationError,
1489            R,
1490        >,
1491    > for Error
1492where
1493    R: Send + Sync + std::fmt::Debug + 'static,
1494{
1495    fn from(
1496        err: ::aws_smithy_runtime_api::client::result::SdkError<
1497            crate::operation::put_registry_scanning_configuration::PutRegistryScanningConfigurationError,
1498            R,
1499        >,
1500    ) -> Self {
1501        match err {
1502            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1503            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1504                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1505                source: err.into(),
1506            }),
1507        }
1508    }
1509}
1510impl From<crate::operation::put_registry_scanning_configuration::PutRegistryScanningConfigurationError> for Error {
1511    fn from(err: crate::operation::put_registry_scanning_configuration::PutRegistryScanningConfigurationError) -> Self {
1512        match err {
1513            crate::operation::put_registry_scanning_configuration::PutRegistryScanningConfigurationError::InvalidParameterException(inner) => {
1514                Error::InvalidParameterException(inner)
1515            }
1516            crate::operation::put_registry_scanning_configuration::PutRegistryScanningConfigurationError::ServerException(inner) => {
1517                Error::ServerException(inner)
1518            }
1519            crate::operation::put_registry_scanning_configuration::PutRegistryScanningConfigurationError::ValidationException(inner) => {
1520                Error::ValidationException(inner)
1521            }
1522            crate::operation::put_registry_scanning_configuration::PutRegistryScanningConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1523        }
1524    }
1525}
1526impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_replication_configuration::PutReplicationConfigurationError, R>>
1527    for Error
1528where
1529    R: Send + Sync + std::fmt::Debug + 'static,
1530{
1531    fn from(
1532        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_replication_configuration::PutReplicationConfigurationError, R>,
1533    ) -> Self {
1534        match err {
1535            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1536            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1537                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1538                source: err.into(),
1539            }),
1540        }
1541    }
1542}
1543impl From<crate::operation::put_replication_configuration::PutReplicationConfigurationError> for Error {
1544    fn from(err: crate::operation::put_replication_configuration::PutReplicationConfigurationError) -> Self {
1545        match err {
1546            crate::operation::put_replication_configuration::PutReplicationConfigurationError::InvalidParameterException(inner) => {
1547                Error::InvalidParameterException(inner)
1548            }
1549            crate::operation::put_replication_configuration::PutReplicationConfigurationError::ServerException(inner) => {
1550                Error::ServerException(inner)
1551            }
1552            crate::operation::put_replication_configuration::PutReplicationConfigurationError::ValidationException(inner) => {
1553                Error::ValidationException(inner)
1554            }
1555            crate::operation::put_replication_configuration::PutReplicationConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1556        }
1557    }
1558}
1559impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_repository_policy::SetRepositoryPolicyError, R>> for Error
1560where
1561    R: Send + Sync + std::fmt::Debug + 'static,
1562{
1563    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_repository_policy::SetRepositoryPolicyError, R>) -> Self {
1564        match err {
1565            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1566            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1567                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1568                source: err.into(),
1569            }),
1570        }
1571    }
1572}
1573impl From<crate::operation::set_repository_policy::SetRepositoryPolicyError> for Error {
1574    fn from(err: crate::operation::set_repository_policy::SetRepositoryPolicyError) -> Self {
1575        match err {
1576            crate::operation::set_repository_policy::SetRepositoryPolicyError::InvalidParameterException(inner) => {
1577                Error::InvalidParameterException(inner)
1578            }
1579            crate::operation::set_repository_policy::SetRepositoryPolicyError::RepositoryNotFoundException(inner) => {
1580                Error::RepositoryNotFoundException(inner)
1581            }
1582            crate::operation::set_repository_policy::SetRepositoryPolicyError::ServerException(inner) => Error::ServerException(inner),
1583            crate::operation::set_repository_policy::SetRepositoryPolicyError::Unhandled(inner) => Error::Unhandled(inner),
1584        }
1585    }
1586}
1587impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_image_scan::StartImageScanError, R>> for Error
1588where
1589    R: Send + Sync + std::fmt::Debug + 'static,
1590{
1591    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_image_scan::StartImageScanError, R>) -> Self {
1592        match err {
1593            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1594            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1595                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1596                source: err.into(),
1597            }),
1598        }
1599    }
1600}
1601impl From<crate::operation::start_image_scan::StartImageScanError> for Error {
1602    fn from(err: crate::operation::start_image_scan::StartImageScanError) -> Self {
1603        match err {
1604            crate::operation::start_image_scan::StartImageScanError::ImageNotFoundException(inner) => Error::ImageNotFoundException(inner),
1605            crate::operation::start_image_scan::StartImageScanError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
1606            crate::operation::start_image_scan::StartImageScanError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1607            crate::operation::start_image_scan::StartImageScanError::RepositoryNotFoundException(inner) => Error::RepositoryNotFoundException(inner),
1608            crate::operation::start_image_scan::StartImageScanError::ServerException(inner) => Error::ServerException(inner),
1609            crate::operation::start_image_scan::StartImageScanError::UnsupportedImageTypeException(inner) => {
1610                Error::UnsupportedImageTypeException(inner)
1611            }
1612            crate::operation::start_image_scan::StartImageScanError::ValidationException(inner) => Error::ValidationException(inner),
1613            crate::operation::start_image_scan::StartImageScanError::Unhandled(inner) => Error::Unhandled(inner),
1614        }
1615    }
1616}
1617impl<R>
1618    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_lifecycle_policy_preview::StartLifecyclePolicyPreviewError, R>>
1619    for Error
1620where
1621    R: Send + Sync + std::fmt::Debug + 'static,
1622{
1623    fn from(
1624        err: ::aws_smithy_runtime_api::client::result::SdkError<
1625            crate::operation::start_lifecycle_policy_preview::StartLifecyclePolicyPreviewError,
1626            R,
1627        >,
1628    ) -> Self {
1629        match err {
1630            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1631            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1632                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1633                source: err.into(),
1634            }),
1635        }
1636    }
1637}
1638impl From<crate::operation::start_lifecycle_policy_preview::StartLifecyclePolicyPreviewError> for Error {
1639    fn from(err: crate::operation::start_lifecycle_policy_preview::StartLifecyclePolicyPreviewError) -> Self {
1640        match err {
1641            crate::operation::start_lifecycle_policy_preview::StartLifecyclePolicyPreviewError::InvalidParameterException(inner) => {
1642                Error::InvalidParameterException(inner)
1643            }
1644            crate::operation::start_lifecycle_policy_preview::StartLifecyclePolicyPreviewError::LifecyclePolicyNotFoundException(inner) => {
1645                Error::LifecyclePolicyNotFoundException(inner)
1646            }
1647            crate::operation::start_lifecycle_policy_preview::StartLifecyclePolicyPreviewError::LifecyclePolicyPreviewInProgressException(inner) => {
1648                Error::LifecyclePolicyPreviewInProgressException(inner)
1649            }
1650            crate::operation::start_lifecycle_policy_preview::StartLifecyclePolicyPreviewError::RepositoryNotFoundException(inner) => {
1651                Error::RepositoryNotFoundException(inner)
1652            }
1653            crate::operation::start_lifecycle_policy_preview::StartLifecyclePolicyPreviewError::ServerException(inner) => {
1654                Error::ServerException(inner)
1655            }
1656            crate::operation::start_lifecycle_policy_preview::StartLifecyclePolicyPreviewError::ValidationException(inner) => {
1657                Error::ValidationException(inner)
1658            }
1659            crate::operation::start_lifecycle_policy_preview::StartLifecyclePolicyPreviewError::Unhandled(inner) => Error::Unhandled(inner),
1660        }
1661    }
1662}
1663impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
1664where
1665    R: Send + Sync + std::fmt::Debug + 'static,
1666{
1667    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
1668        match err {
1669            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1670            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1671                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1672                source: err.into(),
1673            }),
1674        }
1675    }
1676}
1677impl From<crate::operation::tag_resource::TagResourceError> for Error {
1678    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
1679        match err {
1680            crate::operation::tag_resource::TagResourceError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
1681            crate::operation::tag_resource::TagResourceError::InvalidTagParameterException(inner) => Error::InvalidTagParameterException(inner),
1682            crate::operation::tag_resource::TagResourceError::RepositoryNotFoundException(inner) => Error::RepositoryNotFoundException(inner),
1683            crate::operation::tag_resource::TagResourceError::ServerException(inner) => Error::ServerException(inner),
1684            crate::operation::tag_resource::TagResourceError::TooManyTagsException(inner) => Error::TooManyTagsException(inner),
1685            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1686        }
1687    }
1688}
1689impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
1690where
1691    R: Send + Sync + std::fmt::Debug + 'static,
1692{
1693    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
1694        match err {
1695            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1696            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1697                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1698                source: err.into(),
1699            }),
1700        }
1701    }
1702}
1703impl From<crate::operation::untag_resource::UntagResourceError> for Error {
1704    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
1705        match err {
1706            crate::operation::untag_resource::UntagResourceError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
1707            crate::operation::untag_resource::UntagResourceError::InvalidTagParameterException(inner) => Error::InvalidTagParameterException(inner),
1708            crate::operation::untag_resource::UntagResourceError::RepositoryNotFoundException(inner) => Error::RepositoryNotFoundException(inner),
1709            crate::operation::untag_resource::UntagResourceError::ServerException(inner) => Error::ServerException(inner),
1710            crate::operation::untag_resource::UntagResourceError::TooManyTagsException(inner) => Error::TooManyTagsException(inner),
1711            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1712        }
1713    }
1714}
1715impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_pull_through_cache_rule::UpdatePullThroughCacheRuleError, R>>
1716    for Error
1717where
1718    R: Send + Sync + std::fmt::Debug + 'static,
1719{
1720    fn from(
1721        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_pull_through_cache_rule::UpdatePullThroughCacheRuleError, R>,
1722    ) -> Self {
1723        match err {
1724            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1725            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1726                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1727                source: err.into(),
1728            }),
1729        }
1730    }
1731}
1732impl From<crate::operation::update_pull_through_cache_rule::UpdatePullThroughCacheRuleError> for Error {
1733    fn from(err: crate::operation::update_pull_through_cache_rule::UpdatePullThroughCacheRuleError) -> Self {
1734        match err {
1735            crate::operation::update_pull_through_cache_rule::UpdatePullThroughCacheRuleError::InvalidParameterException(inner) => {
1736                Error::InvalidParameterException(inner)
1737            }
1738            crate::operation::update_pull_through_cache_rule::UpdatePullThroughCacheRuleError::PullThroughCacheRuleNotFoundException(inner) => {
1739                Error::PullThroughCacheRuleNotFoundException(inner)
1740            }
1741            crate::operation::update_pull_through_cache_rule::UpdatePullThroughCacheRuleError::SecretNotFoundException(inner) => {
1742                Error::SecretNotFoundException(inner)
1743            }
1744            crate::operation::update_pull_through_cache_rule::UpdatePullThroughCacheRuleError::ServerException(inner) => {
1745                Error::ServerException(inner)
1746            }
1747            crate::operation::update_pull_through_cache_rule::UpdatePullThroughCacheRuleError::UnableToAccessSecretException(inner) => {
1748                Error::UnableToAccessSecretException(inner)
1749            }
1750            crate::operation::update_pull_through_cache_rule::UpdatePullThroughCacheRuleError::UnableToDecryptSecretValueException(inner) => {
1751                Error::UnableToDecryptSecretValueException(inner)
1752            }
1753            crate::operation::update_pull_through_cache_rule::UpdatePullThroughCacheRuleError::ValidationException(inner) => {
1754                Error::ValidationException(inner)
1755            }
1756            crate::operation::update_pull_through_cache_rule::UpdatePullThroughCacheRuleError::Unhandled(inner) => Error::Unhandled(inner),
1757        }
1758    }
1759}
1760impl<R>
1761    From<
1762        ::aws_smithy_runtime_api::client::result::SdkError<
1763            crate::operation::update_repository_creation_template::UpdateRepositoryCreationTemplateError,
1764            R,
1765        >,
1766    > for Error
1767where
1768    R: Send + Sync + std::fmt::Debug + 'static,
1769{
1770    fn from(
1771        err: ::aws_smithy_runtime_api::client::result::SdkError<
1772            crate::operation::update_repository_creation_template::UpdateRepositoryCreationTemplateError,
1773            R,
1774        >,
1775    ) -> Self {
1776        match err {
1777            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1778            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1779                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1780                source: err.into(),
1781            }),
1782        }
1783    }
1784}
1785impl From<crate::operation::update_repository_creation_template::UpdateRepositoryCreationTemplateError> for Error {
1786    fn from(err: crate::operation::update_repository_creation_template::UpdateRepositoryCreationTemplateError) -> Self {
1787        match err {
1788            crate::operation::update_repository_creation_template::UpdateRepositoryCreationTemplateError::InvalidParameterException(inner) => {
1789                Error::InvalidParameterException(inner)
1790            }
1791            crate::operation::update_repository_creation_template::UpdateRepositoryCreationTemplateError::ServerException(inner) => {
1792                Error::ServerException(inner)
1793            }
1794            crate::operation::update_repository_creation_template::UpdateRepositoryCreationTemplateError::TemplateNotFoundException(inner) => {
1795                Error::TemplateNotFoundException(inner)
1796            }
1797            crate::operation::update_repository_creation_template::UpdateRepositoryCreationTemplateError::ValidationException(inner) => {
1798                Error::ValidationException(inner)
1799            }
1800            crate::operation::update_repository_creation_template::UpdateRepositoryCreationTemplateError::Unhandled(inner) => Error::Unhandled(inner),
1801        }
1802    }
1803}
1804impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::upload_layer_part::UploadLayerPartError, R>> for Error
1805where
1806    R: Send + Sync + std::fmt::Debug + 'static,
1807{
1808    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::upload_layer_part::UploadLayerPartError, R>) -> Self {
1809        match err {
1810            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1811            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1812                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1813                source: err.into(),
1814            }),
1815        }
1816    }
1817}
1818impl From<crate::operation::upload_layer_part::UploadLayerPartError> for Error {
1819    fn from(err: crate::operation::upload_layer_part::UploadLayerPartError) -> Self {
1820        match err {
1821            crate::operation::upload_layer_part::UploadLayerPartError::InvalidLayerPartException(inner) => Error::InvalidLayerPartException(inner),
1822            crate::operation::upload_layer_part::UploadLayerPartError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
1823            crate::operation::upload_layer_part::UploadLayerPartError::KmsException(inner) => Error::KmsException(inner),
1824            crate::operation::upload_layer_part::UploadLayerPartError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1825            crate::operation::upload_layer_part::UploadLayerPartError::RepositoryNotFoundException(inner) => {
1826                Error::RepositoryNotFoundException(inner)
1827            }
1828            crate::operation::upload_layer_part::UploadLayerPartError::ServerException(inner) => Error::ServerException(inner),
1829            crate::operation::upload_layer_part::UploadLayerPartError::UploadNotFoundException(inner) => Error::UploadNotFoundException(inner),
1830            crate::operation::upload_layer_part::UploadLayerPartError::Unhandled(inner) => Error::Unhandled(inner),
1831        }
1832    }
1833}
1834impl<R>
1835    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::validate_pull_through_cache_rule::ValidatePullThroughCacheRuleError, R>>
1836    for Error
1837where
1838    R: Send + Sync + std::fmt::Debug + 'static,
1839{
1840    fn from(
1841        err: ::aws_smithy_runtime_api::client::result::SdkError<
1842            crate::operation::validate_pull_through_cache_rule::ValidatePullThroughCacheRuleError,
1843            R,
1844        >,
1845    ) -> Self {
1846        match err {
1847            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1848            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1849                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1850                source: err.into(),
1851            }),
1852        }
1853    }
1854}
1855impl From<crate::operation::validate_pull_through_cache_rule::ValidatePullThroughCacheRuleError> for Error {
1856    fn from(err: crate::operation::validate_pull_through_cache_rule::ValidatePullThroughCacheRuleError) -> Self {
1857        match err {
1858            crate::operation::validate_pull_through_cache_rule::ValidatePullThroughCacheRuleError::InvalidParameterException(inner) => {
1859                Error::InvalidParameterException(inner)
1860            }
1861            crate::operation::validate_pull_through_cache_rule::ValidatePullThroughCacheRuleError::PullThroughCacheRuleNotFoundException(inner) => {
1862                Error::PullThroughCacheRuleNotFoundException(inner)
1863            }
1864            crate::operation::validate_pull_through_cache_rule::ValidatePullThroughCacheRuleError::ServerException(inner) => {
1865                Error::ServerException(inner)
1866            }
1867            crate::operation::validate_pull_through_cache_rule::ValidatePullThroughCacheRuleError::ValidationException(inner) => {
1868                Error::ValidationException(inner)
1869            }
1870            crate::operation::validate_pull_through_cache_rule::ValidatePullThroughCacheRuleError::Unhandled(inner) => Error::Unhandled(inner),
1871        }
1872    }
1873}
1874impl<O, E> ::std::convert::From<::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>> for Error
1875where
1876    O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
1877    E: ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static,
1878{
1879    fn from(err: ::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>) -> Self {
1880        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1881            meta: ::std::default::Default::default(),
1882            source: err.into(),
1883        })
1884    }
1885}
1886impl ::std::error::Error for Error {
1887    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
1888        match self {
1889            Error::EmptyUploadException(inner) => inner.source(),
1890            Error::ImageAlreadyExistsException(inner) => inner.source(),
1891            Error::ImageDigestDoesNotMatchException(inner) => inner.source(),
1892            Error::ImageNotFoundException(inner) => inner.source(),
1893            Error::ImageTagAlreadyExistsException(inner) => inner.source(),
1894            Error::InvalidLayerException(inner) => inner.source(),
1895            Error::InvalidLayerPartException(inner) => inner.source(),
1896            Error::InvalidParameterException(inner) => inner.source(),
1897            Error::InvalidTagParameterException(inner) => inner.source(),
1898            Error::KmsException(inner) => inner.source(),
1899            Error::LayerAlreadyExistsException(inner) => inner.source(),
1900            Error::LayerInaccessibleException(inner) => inner.source(),
1901            Error::LayerPartTooSmallException(inner) => inner.source(),
1902            Error::LayersNotFoundException(inner) => inner.source(),
1903            Error::LifecyclePolicyNotFoundException(inner) => inner.source(),
1904            Error::LifecyclePolicyPreviewInProgressException(inner) => inner.source(),
1905            Error::LifecyclePolicyPreviewNotFoundException(inner) => inner.source(),
1906            Error::LimitExceededException(inner) => inner.source(),
1907            Error::PullThroughCacheRuleAlreadyExistsException(inner) => inner.source(),
1908            Error::PullThroughCacheRuleNotFoundException(inner) => inner.source(),
1909            Error::ReferencedImagesNotFoundException(inner) => inner.source(),
1910            Error::RegistryPolicyNotFoundException(inner) => inner.source(),
1911            Error::RepositoryAlreadyExistsException(inner) => inner.source(),
1912            Error::RepositoryNotEmptyException(inner) => inner.source(),
1913            Error::RepositoryNotFoundException(inner) => inner.source(),
1914            Error::RepositoryPolicyNotFoundException(inner) => inner.source(),
1915            Error::ScanNotFoundException(inner) => inner.source(),
1916            Error::SecretNotFoundException(inner) => inner.source(),
1917            Error::ServerException(inner) => inner.source(),
1918            Error::TemplateAlreadyExistsException(inner) => inner.source(),
1919            Error::TemplateNotFoundException(inner) => inner.source(),
1920            Error::TooManyTagsException(inner) => inner.source(),
1921            Error::UnableToAccessSecretException(inner) => inner.source(),
1922            Error::UnableToDecryptSecretValueException(inner) => inner.source(),
1923            Error::UnableToGetUpstreamImageException(inner) => inner.source(),
1924            Error::UnableToGetUpstreamLayerException(inner) => inner.source(),
1925            Error::UnsupportedImageTypeException(inner) => inner.source(),
1926            Error::UnsupportedUpstreamRegistryException(inner) => inner.source(),
1927            Error::UploadNotFoundException(inner) => inner.source(),
1928            Error::ValidationException(inner) => inner.source(),
1929            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
1930        }
1931    }
1932}
1933impl ::aws_types::request_id::RequestId for Error {
1934    fn request_id(&self) -> Option<&str> {
1935        match self {
1936            Self::EmptyUploadException(e) => e.request_id(),
1937            Self::ImageAlreadyExistsException(e) => e.request_id(),
1938            Self::ImageDigestDoesNotMatchException(e) => e.request_id(),
1939            Self::ImageNotFoundException(e) => e.request_id(),
1940            Self::ImageTagAlreadyExistsException(e) => e.request_id(),
1941            Self::InvalidLayerException(e) => e.request_id(),
1942            Self::InvalidLayerPartException(e) => e.request_id(),
1943            Self::InvalidParameterException(e) => e.request_id(),
1944            Self::InvalidTagParameterException(e) => e.request_id(),
1945            Self::KmsException(e) => e.request_id(),
1946            Self::LayerAlreadyExistsException(e) => e.request_id(),
1947            Self::LayerInaccessibleException(e) => e.request_id(),
1948            Self::LayerPartTooSmallException(e) => e.request_id(),
1949            Self::LayersNotFoundException(e) => e.request_id(),
1950            Self::LifecyclePolicyNotFoundException(e) => e.request_id(),
1951            Self::LifecyclePolicyPreviewInProgressException(e) => e.request_id(),
1952            Self::LifecyclePolicyPreviewNotFoundException(e) => e.request_id(),
1953            Self::LimitExceededException(e) => e.request_id(),
1954            Self::PullThroughCacheRuleAlreadyExistsException(e) => e.request_id(),
1955            Self::PullThroughCacheRuleNotFoundException(e) => e.request_id(),
1956            Self::ReferencedImagesNotFoundException(e) => e.request_id(),
1957            Self::RegistryPolicyNotFoundException(e) => e.request_id(),
1958            Self::RepositoryAlreadyExistsException(e) => e.request_id(),
1959            Self::RepositoryNotEmptyException(e) => e.request_id(),
1960            Self::RepositoryNotFoundException(e) => e.request_id(),
1961            Self::RepositoryPolicyNotFoundException(e) => e.request_id(),
1962            Self::ScanNotFoundException(e) => e.request_id(),
1963            Self::SecretNotFoundException(e) => e.request_id(),
1964            Self::ServerException(e) => e.request_id(),
1965            Self::TemplateAlreadyExistsException(e) => e.request_id(),
1966            Self::TemplateNotFoundException(e) => e.request_id(),
1967            Self::TooManyTagsException(e) => e.request_id(),
1968            Self::UnableToAccessSecretException(e) => e.request_id(),
1969            Self::UnableToDecryptSecretValueException(e) => e.request_id(),
1970            Self::UnableToGetUpstreamImageException(e) => e.request_id(),
1971            Self::UnableToGetUpstreamLayerException(e) => e.request_id(),
1972            Self::UnsupportedImageTypeException(e) => e.request_id(),
1973            Self::UnsupportedUpstreamRegistryException(e) => e.request_id(),
1974            Self::UploadNotFoundException(e) => e.request_id(),
1975            Self::ValidationException(e) => e.request_id(),
1976            Self::Unhandled(e) => e.meta.request_id(),
1977        }
1978    }
1979}