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