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