Skip to main content

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