Skip to main content

aws_sdk_kms/
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 request was rejected because it attempted to create a resource that already exists.</p>
7    AlreadyExistsException(crate::types::error::AlreadyExistsException),
8    /// <p>The request was rejected because the specified CloudHSM cluster is already associated with an CloudHSM key store in the account, or it shares a backup history with an CloudHSM key store in the account. Each CloudHSM key store in the account must be associated with a different CloudHSM cluster.</p>
9    /// <p>CloudHSM clusters that share a backup history have the same cluster certificate. To view the cluster certificate of an CloudHSM cluster, use the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html">DescribeClusters</a> operation.</p>
10    CloudHsmClusterInUseException(crate::types::error::CloudHsmClusterInUseException),
11    /// <p>The request was rejected because the associated CloudHSM cluster did not meet the configuration requirements for an CloudHSM key store.</p>
12    /// <ul>
13    /// <li>
14    /// <p>The CloudHSM cluster must be configured with private subnets in at least two different Availability Zones in the Region.</p></li>
15    /// <li>
16    /// <p>The <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html">security group for the cluster</a> (cloudhsm-cluster-<i><cluster-id></cluster-id></i>-sg) must include inbound rules and outbound rules that allow TCP traffic on ports 2223-2225. The <b>Source</b> in the inbound rules and the <b>Destination</b> in the outbound rules must match the security group ID. These rules are set by default when you create the CloudHSM cluster. Do not delete or change them. To get information about a particular security group, use the <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSecurityGroups.html">DescribeSecurityGroups</a> operation.</p></li>
17    /// <li>
18    /// <p>The CloudHSM cluster must contain at least as many HSMs as the operation requires. To add HSMs, use the CloudHSM <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_CreateHsm.html">CreateHsm</a> operation.</p>
19    /// <p>For the <code>CreateCustomKeyStore</code>, <code>UpdateCustomKeyStore</code>, and <code>CreateKey</code> operations, the CloudHSM cluster must have at least two active HSMs, each in a different Availability Zone. For the <code>ConnectCustomKeyStore</code> operation, the CloudHSM must contain at least one active HSM.</p></li>
20    /// </ul>
21    /// <p>For information about the requirements for an CloudHSM cluster that is associated with an CloudHSM key store, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/create-keystore.html#before-keystore">Assemble the Prerequisites</a> in the <i>Key Management Service Developer Guide</i>. For information about creating a private subnet for an CloudHSM cluster, see <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/create-subnets.html">Create a Private Subnet</a> in the <i>CloudHSM User Guide</i>. For information about cluster security groups, see <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html">Configure a Default Security Group</a> in the <i> <i>CloudHSM User Guide</i> </i>.</p>
22    CloudHsmClusterInvalidConfigurationException(crate::types::error::CloudHsmClusterInvalidConfigurationException),
23    /// <p>The request was rejected because the CloudHSM cluster associated with the CloudHSM key store is not active. Initialize and activate the cluster and try the command again. For detailed instructions, see <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/getting-started.html">Getting Started</a> in the <i>CloudHSM User Guide</i>.</p>
24    CloudHsmClusterNotActiveException(crate::types::error::CloudHsmClusterNotActiveException),
25    /// <p>The request was rejected because KMS cannot find the CloudHSM cluster with the specified cluster ID. Retry the request with a different cluster ID.</p>
26    CloudHsmClusterNotFoundException(crate::types::error::CloudHsmClusterNotFoundException),
27    /// <p>The request was rejected because the specified CloudHSM cluster has a different cluster certificate than the original cluster. You cannot use the operation to specify an unrelated cluster for an CloudHSM key store.</p>
28    /// <p>Specify an CloudHSM cluster that shares a backup history with the original cluster. This includes clusters that were created from a backup of the current cluster, and clusters that were created from the same backup that produced the current cluster.</p>
29    /// <p>CloudHSM clusters that share a backup history have the same cluster certificate. To view the cluster certificate of an CloudHSM cluster, use the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html">DescribeClusters</a> operation.</p>
30    CloudHsmClusterNotRelatedException(crate::types::error::CloudHsmClusterNotRelatedException),
31    /// <p>The request was rejected because an automatic rotation of this key is currently in progress or scheduled to begin within the next 20 minutes.</p>
32    ConflictException(crate::types::error::ConflictException),
33    /// <p>The request was rejected because the custom key store contains KMS keys. After verifying that you do not need to use the KMS keys, use the <code>ScheduleKeyDeletion</code> operation to delete the KMS keys. After they are deleted, you can delete the custom key store.</p>
34    CustomKeyStoreHasCmKsException(crate::types::error::CustomKeyStoreHasCmKsException),
35    /// <p>The request was rejected because of the <code>ConnectionState</code> of the custom key store. To get the <code>ConnectionState</code> of a custom key store, use the <code>DescribeCustomKeyStores</code> operation.</p>
36    /// <p>This exception is thrown under the following conditions:</p>
37    /// <ul>
38    /// <li>
39    /// <p>You requested the <code>ConnectCustomKeyStore</code> operation on a custom key store with a <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>FAILED</code>. This operation is valid for all other <code>ConnectionState</code> values. To reconnect a custom key store in a <code>FAILED</code> state, disconnect it (<code>DisconnectCustomKeyStore</code>), then connect it (<code>ConnectCustomKeyStore</code>).</p></li>
40    /// <li>
41    /// <p>You requested the <code>CreateKey</code> operation in a custom key store that is not connected. This operations is valid only when the custom key store <code>ConnectionState</code> is <code>CONNECTED</code>.</p></li>
42    /// <li>
43    /// <p>You requested the <code>DisconnectCustomKeyStore</code> operation on a custom key store with a <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>DISCONNECTED</code>. This operation is valid for all other <code>ConnectionState</code> values.</p></li>
44    /// <li>
45    /// <p>You requested the <code>UpdateCustomKeyStore</code> or <code>DeleteCustomKeyStore</code> operation on a custom key store that is not disconnected. <code>UpdateCustomKeyStore</code> can be called on a custom key store in the <code>CONNECTED</code> state only to update <code>NewCustomKeyStoreName</code>. For all other properties, the custom key store <code>ConnectionState</code> must be <code>DISCONNECTED</code>.</p></li>
46    /// <li>
47    /// <p>You requested the <code>GenerateRandom</code> operation in an CloudHSM key store that is not connected. This operation is valid only when the CloudHSM key store <code>ConnectionState</code> is <code>CONNECTED</code>.</p></li>
48    /// </ul>
49    CustomKeyStoreInvalidStateException(crate::types::error::CustomKeyStoreInvalidStateException),
50    /// <p>The request was rejected because the specified custom key store name is already assigned to another custom key store in the account. Try again with a custom key store name that is unique in the account.</p>
51    CustomKeyStoreNameInUseException(crate::types::error::CustomKeyStoreNameInUseException),
52    /// <p>The request was rejected because KMS cannot find a custom key store with the specified key store name or ID.</p>
53    CustomKeyStoreNotFoundException(crate::types::error::CustomKeyStoreNotFoundException),
54    /// <p>The system timed out while trying to fulfill the request. You can retry the request.</p>
55    DependencyTimeoutException(crate::types::error::DependencyTimeoutException),
56    /// <p>The request was rejected because the specified KMS key is not enabled.</p>
57    DisabledException(crate::types::error::DisabledException),
58    /// <p>The request was rejected because the DryRun parameter was specified.</p>
59    DryRunOperationException(crate::types::error::DryRunOperationException),
60    /// <p>The request was rejected because the specified import token is expired. Use <code>GetParametersForImport</code> to get a new import token and public key, use the new public key to encrypt the key material, and then try the request again.</p>
61    ExpiredImportTokenException(crate::types::error::ExpiredImportTokenException),
62    /// <p>The request was rejected because the specified KMS key cannot decrypt the data. The <code>KeyId</code> in a <code>Decrypt</code> request and the <code>SourceKeyId</code> in a <code>ReEncrypt</code> request must identify the same KMS key that was used to encrypt the ciphertext.</p>
63    IncorrectKeyException(crate::types::error::IncorrectKeyException),
64    /// <p>The request was rejected because the key material in the request is, expired, invalid, or does not meet expectations. For example, it is not the same key material that was previously imported or KMS expected new key material but the key material being imported is already associated with the KMS key.</p>
65    IncorrectKeyMaterialException(crate::types::error::IncorrectKeyMaterialException),
66    /// <p>The request was rejected because the trust anchor certificate in the request to create an CloudHSM key store is not the trust anchor certificate for the specified CloudHSM cluster.</p>
67    /// <p>When you <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/initialize-cluster.html#sign-csr">initialize the CloudHSM cluster</a>, you create the trust anchor certificate and save it in the <code>customerCA.crt</code> file.</p>
68    IncorrectTrustAnchorException(crate::types::error::IncorrectTrustAnchorException),
69    /// <p>The request was rejected because the specified alias name is not valid.</p>
70    InvalidAliasNameException(crate::types::error::InvalidAliasNameException),
71    /// <p>The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.</p>
72    InvalidArnException(crate::types::error::InvalidArnException),
73    /// <p>From the <code>Decrypt</code> or <code>ReEncrypt</code> operation, the request was rejected because the specified ciphertext, or additional authenticated data incorporated into the ciphertext, such as the encryption context, is corrupted, missing, or otherwise invalid.</p>
74    /// <p>From the <code>ImportKeyMaterial</code> operation, the request was rejected because KMS could not decrypt the encrypted (wrapped) key material.</p>
75    /// <p>From the <code>Decapsulate</code> operation, the request was rejected because the length of the <code>SharedSecretCiphertextBlob</code> is inconsistent with the specified ML-KEM key spec.</p>
76    InvalidCiphertextException(crate::types::error::InvalidCiphertextException),
77    /// <p>The request was rejected because the specified <code>GrantId</code> is not valid.</p>
78    InvalidGrantIdException(crate::types::error::InvalidGrantIdException),
79    /// <p>The request was rejected because the specified grant token is not valid.</p>
80    InvalidGrantTokenException(crate::types::error::InvalidGrantTokenException),
81    /// <p>The request was rejected because the provided import token is invalid or is associated with a different KMS key.</p>
82    InvalidImportTokenException(crate::types::error::InvalidImportTokenException),
83    /// <p>The request was rejected for one of the following reasons:</p>
84    /// <ul>
85    /// <li>
86    /// <p>The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.</p></li>
87    /// <li>
88    /// <p>The encryption algorithm or signing algorithm specified for the operation is incompatible with the type of key material in the KMS key <code>(KeySpec</code>).</p></li>
89    /// </ul>
90    /// <p>For encrypting, decrypting, re-encrypting, and generating data keys, the <code>KeyUsage</code> must be <code>ENCRYPT_DECRYPT</code>. For signing and verifying messages, the <code>KeyUsage</code> must be <code>SIGN_VERIFY</code>. For generating and verifying message authentication codes (MACs), the <code>KeyUsage</code> must be <code>GENERATE_VERIFY_MAC</code>. For deriving key agreement secrets, the <code>KeyUsage</code> must be <code>KEY_AGREEMENT</code>. For encapsulating and decapsulating shared secrets, the <code>KeyUsage</code> must be <code>ENCAPSULATE_DECAPSULATE</code>. To find the <code>KeyUsage</code> of a KMS key, use the <code>DescribeKey</code> operation.</p>
91    /// <p>To find the encryption or signing algorithms supported for a particular KMS key, use the <code>DescribeKey</code> operation.</p>
92    InvalidKeyUsageException(crate::types::error::InvalidKeyUsageException),
93    /// <p>The request was rejected because the marker that specifies where pagination should next begin is not valid.</p>
94    InvalidMarkerException(crate::types::error::InvalidMarkerException),
95    /// <p>The request was rejected because an internal exception occurred. The request can be retried.</p>
96    KmsInternalException(crate::types::error::KmsInternalException),
97    /// <p>The request was rejected because the HMAC verification failed. HMAC verification fails when the HMAC computed by using the specified message, HMAC KMS key, and MAC algorithm does not match the HMAC specified in the request.</p>
98    KmsInvalidMacException(crate::types::error::KmsInvalidMacException),
99    /// <p>The request was rejected because the signature verification failed. Signature verification fails when it cannot confirm that signature was produced by signing the specified message with the specified KMS key and signing algorithm.</p>
100    KmsInvalidSignatureException(crate::types::error::KmsInvalidSignatureException),
101    /// <p>The request was rejected because the state of the specified resource is not valid for this request.</p>
102    /// <p>This exceptions means one of the following:</p>
103    /// <ul>
104    /// <li>
105    /// <p>The key state of the KMS key is not compatible with the operation.</p>
106    /// <p>To find the key state, use the <code>DescribeKey</code> operation. For more information about which key states are compatible with each KMS operation, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the <i> <i>Key Management Service Developer Guide</i> </i>.</p></li>
107    /// <li>
108    /// <p>For cryptographic operations on KMS keys in custom key stores, this exception represents a general failure with many possible causes. To identify the cause, see the error message that accompanies the exception.</p></li>
109    /// </ul>
110    KmsInvalidStateException(crate::types::error::KmsInvalidStateException),
111    /// <p>The request was rejected because the specified KMS key was not available. You can retry the request.</p>
112    KeyUnavailableException(crate::types::error::KeyUnavailableException),
113    /// <p>The request was rejected because a length constraint or quota was exceeded. For more information, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html">Quotas</a> in the <i>Key Management Service Developer Guide</i>.</p>
114    LimitExceededException(crate::types::error::LimitExceededException),
115    /// <p>The request was rejected because the specified policy is not syntactically or semantically correct.</p>
116    MalformedPolicyDocumentException(crate::types::error::MalformedPolicyDocumentException),
117    /// <p>The request was rejected because the specified entity or resource could not be found.</p>
118    NotFoundException(crate::types::error::NotFoundException),
119    /// <p>The request was rejected because one or more tags are not valid.</p>
120    TagException(crate::types::error::TagException),
121    /// <p>The request was rejected because a specified parameter is not supported or a specified resource is not valid for this operation.</p>
122    UnsupportedOperationException(crate::types::error::UnsupportedOperationException),
123    /// <p>The request was rejected because the (<code>XksKeyId</code>) is already associated with another KMS key in this external key store. Each KMS key in an external key store must be associated with a different external key.</p>
124    XksKeyAlreadyInUseException(crate::types::error::XksKeyAlreadyInUseException),
125    /// <p>The request was rejected because the external key specified by the <code>XksKeyId</code> parameter did not meet the configuration requirements for an external key store.</p>
126    /// <p>The external key must be an AES-256 symmetric key that is enabled and performs encryption and decryption.</p>
127    XksKeyInvalidConfigurationException(crate::types::error::XksKeyInvalidConfigurationException),
128    /// <p>The request was rejected because the external key store proxy could not find the external key. This exception is thrown when the value of the <code>XksKeyId</code> parameter doesn't identify a key in the external key manager associated with the external key proxy.</p>
129    /// <p>Verify that the <code>XksKeyId</code> represents an existing key in the external key manager. Use the key identifier that the external key store proxy uses to identify the key. For details, see the documentation provided with your external key store proxy or key manager.</p>
130    XksKeyNotFoundException(crate::types::error::XksKeyNotFoundException),
131    /// <p>The request was rejected because the proxy credentials failed to authenticate to the specified external key store proxy. The specified external key store proxy rejected a status request from KMS due to invalid credentials. This can indicate an error in the credentials or in the identification of the external key store proxy.</p>
132    XksProxyIncorrectAuthenticationCredentialException(crate::types::error::XksProxyIncorrectAuthenticationCredentialException),
133    /// <p>The request was rejected because the external key store proxy is not configured correctly. To identify the cause, see the error message that accompanies the exception.</p>
134    XksProxyInvalidConfigurationException(crate::types::error::XksProxyInvalidConfigurationException),
135    /// <p></p>
136    /// <p>KMS cannot interpret the response it received from the external key store proxy. The problem might be a poorly constructed response, but it could also be a transient network issue. If you see this error repeatedly, report it to the proxy vendor.</p>
137    XksProxyInvalidResponseException(crate::types::error::XksProxyInvalidResponseException),
138    /// <p>The request was rejected because the <code>XksProxyUriEndpoint</code> is already associated with another external key store in this Amazon Web Services Region. To identify the cause, see the error message that accompanies the exception.</p>
139    XksProxyUriEndpointInUseException(crate::types::error::XksProxyUriEndpointInUseException),
140    /// <p>The request was rejected because the concatenation of the <code>XksProxyUriEndpoint</code> and <code>XksProxyUriPath</code> is already associated with another external key store in this Amazon Web Services Region. Each external key store in a Region must use a unique external key store proxy API address.</p>
141    XksProxyUriInUseException(crate::types::error::XksProxyUriInUseException),
142    /// <p>KMS was unable to reach the specified <code>XksProxyUriPath</code>. The path must be reachable before you create the external key store or update its settings.</p>
143    /// <p>This exception is also thrown when the external key store proxy response to a <code>GetHealthStatus</code> request indicates that all external key manager instances are unavailable.</p>
144    XksProxyUriUnreachableException(crate::types::error::XksProxyUriUnreachableException),
145    /// <p>The request was rejected because the specified Amazon VPC endpoint service is already associated with another external key store in this Amazon Web Services Region. Each external key store in a Region must use a different Amazon VPC endpoint service.</p>
146    XksProxyVpcEndpointServiceInUseException(crate::types::error::XksProxyVpcEndpointServiceInUseException),
147    /// <p>The request was rejected because the Amazon VPC endpoint service configuration does not fulfill the requirements for an external key store. To identify the cause, see the error message that accompanies the exception and <a href="https://docs.aws.amazon.com/kms/latest/developerguide/vpc-connectivity.html#xks-vpc-requirements">review the requirements</a> for Amazon VPC endpoint service connectivity for an external key store.</p>
148    XksProxyVpcEndpointServiceInvalidConfigurationException(crate::types::error::XksProxyVpcEndpointServiceInvalidConfigurationException),
149    /// <p>The request was rejected because KMS could not find the specified VPC endpoint service. Use <code>DescribeCustomKeyStores</code> to verify the VPC endpoint service name for the external key store. Also, confirm that the <code>Allow principals</code> list for the VPC endpoint service includes the KMS service principal for the Region, such as <code>cks.kms.us-east-1.amazonaws.com</code>.</p>
150    XksProxyVpcEndpointServiceNotFoundException(crate::types::error::XksProxyVpcEndpointServiceNotFoundException),
151    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
152    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
153    variable wildcard pattern and check `.code()`:
154     \
155    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
156     \
157    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
158    Unhandled(crate::error::sealed_unhandled::Unhandled),
159}
160impl ::std::fmt::Display for Error {
161    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
162        match self {
163            Error::AlreadyExistsException(inner) => inner.fmt(f),
164            Error::CloudHsmClusterInUseException(inner) => inner.fmt(f),
165            Error::CloudHsmClusterInvalidConfigurationException(inner) => inner.fmt(f),
166            Error::CloudHsmClusterNotActiveException(inner) => inner.fmt(f),
167            Error::CloudHsmClusterNotFoundException(inner) => inner.fmt(f),
168            Error::CloudHsmClusterNotRelatedException(inner) => inner.fmt(f),
169            Error::ConflictException(inner) => inner.fmt(f),
170            Error::CustomKeyStoreHasCmKsException(inner) => inner.fmt(f),
171            Error::CustomKeyStoreInvalidStateException(inner) => inner.fmt(f),
172            Error::CustomKeyStoreNameInUseException(inner) => inner.fmt(f),
173            Error::CustomKeyStoreNotFoundException(inner) => inner.fmt(f),
174            Error::DependencyTimeoutException(inner) => inner.fmt(f),
175            Error::DisabledException(inner) => inner.fmt(f),
176            Error::DryRunOperationException(inner) => inner.fmt(f),
177            Error::ExpiredImportTokenException(inner) => inner.fmt(f),
178            Error::IncorrectKeyException(inner) => inner.fmt(f),
179            Error::IncorrectKeyMaterialException(inner) => inner.fmt(f),
180            Error::IncorrectTrustAnchorException(inner) => inner.fmt(f),
181            Error::InvalidAliasNameException(inner) => inner.fmt(f),
182            Error::InvalidArnException(inner) => inner.fmt(f),
183            Error::InvalidCiphertextException(inner) => inner.fmt(f),
184            Error::InvalidGrantIdException(inner) => inner.fmt(f),
185            Error::InvalidGrantTokenException(inner) => inner.fmt(f),
186            Error::InvalidImportTokenException(inner) => inner.fmt(f),
187            Error::InvalidKeyUsageException(inner) => inner.fmt(f),
188            Error::InvalidMarkerException(inner) => inner.fmt(f),
189            Error::KmsInternalException(inner) => inner.fmt(f),
190            Error::KmsInvalidMacException(inner) => inner.fmt(f),
191            Error::KmsInvalidSignatureException(inner) => inner.fmt(f),
192            Error::KmsInvalidStateException(inner) => inner.fmt(f),
193            Error::KeyUnavailableException(inner) => inner.fmt(f),
194            Error::LimitExceededException(inner) => inner.fmt(f),
195            Error::MalformedPolicyDocumentException(inner) => inner.fmt(f),
196            Error::NotFoundException(inner) => inner.fmt(f),
197            Error::TagException(inner) => inner.fmt(f),
198            Error::UnsupportedOperationException(inner) => inner.fmt(f),
199            Error::XksKeyAlreadyInUseException(inner) => inner.fmt(f),
200            Error::XksKeyInvalidConfigurationException(inner) => inner.fmt(f),
201            Error::XksKeyNotFoundException(inner) => inner.fmt(f),
202            Error::XksProxyIncorrectAuthenticationCredentialException(inner) => inner.fmt(f),
203            Error::XksProxyInvalidConfigurationException(inner) => inner.fmt(f),
204            Error::XksProxyInvalidResponseException(inner) => inner.fmt(f),
205            Error::XksProxyUriEndpointInUseException(inner) => inner.fmt(f),
206            Error::XksProxyUriInUseException(inner) => inner.fmt(f),
207            Error::XksProxyUriUnreachableException(inner) => inner.fmt(f),
208            Error::XksProxyVpcEndpointServiceInUseException(inner) => inner.fmt(f),
209            Error::XksProxyVpcEndpointServiceInvalidConfigurationException(inner) => inner.fmt(f),
210            Error::XksProxyVpcEndpointServiceNotFoundException(inner) => inner.fmt(f),
211            Error::Unhandled(_) => {
212                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
213                    write!(f, "unhandled error ({code})")
214                } else {
215                    f.write_str("unhandled error")
216                }
217            }
218        }
219    }
220}
221impl From<::aws_smithy_types::error::operation::BuildError> for Error {
222    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
223        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
224            source: value.into(),
225            meta: ::std::default::Default::default(),
226        })
227    }
228}
229impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
230    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
231        match self {
232            Self::AlreadyExistsException(inner) => inner.meta(),
233            Self::CloudHsmClusterInUseException(inner) => inner.meta(),
234            Self::CloudHsmClusterInvalidConfigurationException(inner) => inner.meta(),
235            Self::CloudHsmClusterNotActiveException(inner) => inner.meta(),
236            Self::CloudHsmClusterNotFoundException(inner) => inner.meta(),
237            Self::CloudHsmClusterNotRelatedException(inner) => inner.meta(),
238            Self::ConflictException(inner) => inner.meta(),
239            Self::CustomKeyStoreHasCmKsException(inner) => inner.meta(),
240            Self::CustomKeyStoreInvalidStateException(inner) => inner.meta(),
241            Self::CustomKeyStoreNameInUseException(inner) => inner.meta(),
242            Self::CustomKeyStoreNotFoundException(inner) => inner.meta(),
243            Self::DependencyTimeoutException(inner) => inner.meta(),
244            Self::DisabledException(inner) => inner.meta(),
245            Self::DryRunOperationException(inner) => inner.meta(),
246            Self::ExpiredImportTokenException(inner) => inner.meta(),
247            Self::IncorrectKeyException(inner) => inner.meta(),
248            Self::IncorrectKeyMaterialException(inner) => inner.meta(),
249            Self::IncorrectTrustAnchorException(inner) => inner.meta(),
250            Self::InvalidAliasNameException(inner) => inner.meta(),
251            Self::InvalidArnException(inner) => inner.meta(),
252            Self::InvalidCiphertextException(inner) => inner.meta(),
253            Self::InvalidGrantIdException(inner) => inner.meta(),
254            Self::InvalidGrantTokenException(inner) => inner.meta(),
255            Self::InvalidImportTokenException(inner) => inner.meta(),
256            Self::InvalidKeyUsageException(inner) => inner.meta(),
257            Self::InvalidMarkerException(inner) => inner.meta(),
258            Self::KmsInternalException(inner) => inner.meta(),
259            Self::KmsInvalidMacException(inner) => inner.meta(),
260            Self::KmsInvalidSignatureException(inner) => inner.meta(),
261            Self::KmsInvalidStateException(inner) => inner.meta(),
262            Self::KeyUnavailableException(inner) => inner.meta(),
263            Self::LimitExceededException(inner) => inner.meta(),
264            Self::MalformedPolicyDocumentException(inner) => inner.meta(),
265            Self::NotFoundException(inner) => inner.meta(),
266            Self::TagException(inner) => inner.meta(),
267            Self::UnsupportedOperationException(inner) => inner.meta(),
268            Self::XksKeyAlreadyInUseException(inner) => inner.meta(),
269            Self::XksKeyInvalidConfigurationException(inner) => inner.meta(),
270            Self::XksKeyNotFoundException(inner) => inner.meta(),
271            Self::XksProxyIncorrectAuthenticationCredentialException(inner) => inner.meta(),
272            Self::XksProxyInvalidConfigurationException(inner) => inner.meta(),
273            Self::XksProxyInvalidResponseException(inner) => inner.meta(),
274            Self::XksProxyUriEndpointInUseException(inner) => inner.meta(),
275            Self::XksProxyUriInUseException(inner) => inner.meta(),
276            Self::XksProxyUriUnreachableException(inner) => inner.meta(),
277            Self::XksProxyVpcEndpointServiceInUseException(inner) => inner.meta(),
278            Self::XksProxyVpcEndpointServiceInvalidConfigurationException(inner) => inner.meta(),
279            Self::XksProxyVpcEndpointServiceNotFoundException(inner) => inner.meta(),
280            Self::Unhandled(inner) => &inner.meta,
281        }
282    }
283}
284impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_key_deletion::CancelKeyDeletionError, R>> for Error
285where
286    R: Send + Sync + std::fmt::Debug + 'static,
287{
288    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_key_deletion::CancelKeyDeletionError, R>) -> Self {
289        match err {
290            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
291            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
292                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
293                source: err.into(),
294            }),
295        }
296    }
297}
298impl From<crate::operation::cancel_key_deletion::CancelKeyDeletionError> for Error {
299    fn from(err: crate::operation::cancel_key_deletion::CancelKeyDeletionError) -> Self {
300        match err {
301            crate::operation::cancel_key_deletion::CancelKeyDeletionError::DependencyTimeoutException(inner) => {
302                Error::DependencyTimeoutException(inner)
303            }
304            crate::operation::cancel_key_deletion::CancelKeyDeletionError::InvalidArnException(inner) => Error::InvalidArnException(inner),
305            crate::operation::cancel_key_deletion::CancelKeyDeletionError::KmsInternalException(inner) => Error::KmsInternalException(inner),
306            crate::operation::cancel_key_deletion::CancelKeyDeletionError::KmsInvalidStateException(inner) => Error::KmsInvalidStateException(inner),
307            crate::operation::cancel_key_deletion::CancelKeyDeletionError::NotFoundException(inner) => Error::NotFoundException(inner),
308            crate::operation::cancel_key_deletion::CancelKeyDeletionError::Unhandled(inner) => Error::Unhandled(inner),
309        }
310    }
311}
312impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::connect_custom_key_store::ConnectCustomKeyStoreError, R>> for Error
313where
314    R: Send + Sync + std::fmt::Debug + 'static,
315{
316    fn from(
317        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::connect_custom_key_store::ConnectCustomKeyStoreError, R>,
318    ) -> Self {
319        match err {
320            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
321            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
322                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
323                source: err.into(),
324            }),
325        }
326    }
327}
328impl From<crate::operation::connect_custom_key_store::ConnectCustomKeyStoreError> for Error {
329    fn from(err: crate::operation::connect_custom_key_store::ConnectCustomKeyStoreError) -> Self {
330        match err {
331            crate::operation::connect_custom_key_store::ConnectCustomKeyStoreError::CloudHsmClusterInvalidConfigurationException(inner) => {
332                Error::CloudHsmClusterInvalidConfigurationException(inner)
333            }
334            crate::operation::connect_custom_key_store::ConnectCustomKeyStoreError::CloudHsmClusterNotActiveException(inner) => {
335                Error::CloudHsmClusterNotActiveException(inner)
336            }
337            crate::operation::connect_custom_key_store::ConnectCustomKeyStoreError::CustomKeyStoreInvalidStateException(inner) => {
338                Error::CustomKeyStoreInvalidStateException(inner)
339            }
340            crate::operation::connect_custom_key_store::ConnectCustomKeyStoreError::CustomKeyStoreNotFoundException(inner) => {
341                Error::CustomKeyStoreNotFoundException(inner)
342            }
343            crate::operation::connect_custom_key_store::ConnectCustomKeyStoreError::KmsInternalException(inner) => Error::KmsInternalException(inner),
344            crate::operation::connect_custom_key_store::ConnectCustomKeyStoreError::Unhandled(inner) => Error::Unhandled(inner),
345        }
346    }
347}
348impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_alias::CreateAliasError, R>> for Error
349where
350    R: Send + Sync + std::fmt::Debug + 'static,
351{
352    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_alias::CreateAliasError, R>) -> Self {
353        match err {
354            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
355            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
356                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
357                source: err.into(),
358            }),
359        }
360    }
361}
362impl From<crate::operation::create_alias::CreateAliasError> for Error {
363    fn from(err: crate::operation::create_alias::CreateAliasError) -> Self {
364        match err {
365            crate::operation::create_alias::CreateAliasError::AlreadyExistsException(inner) => Error::AlreadyExistsException(inner),
366            crate::operation::create_alias::CreateAliasError::DependencyTimeoutException(inner) => Error::DependencyTimeoutException(inner),
367            crate::operation::create_alias::CreateAliasError::InvalidAliasNameException(inner) => Error::InvalidAliasNameException(inner),
368            crate::operation::create_alias::CreateAliasError::KmsInternalException(inner) => Error::KmsInternalException(inner),
369            crate::operation::create_alias::CreateAliasError::KmsInvalidStateException(inner) => Error::KmsInvalidStateException(inner),
370            crate::operation::create_alias::CreateAliasError::LimitExceededException(inner) => Error::LimitExceededException(inner),
371            crate::operation::create_alias::CreateAliasError::NotFoundException(inner) => Error::NotFoundException(inner),
372            crate::operation::create_alias::CreateAliasError::Unhandled(inner) => Error::Unhandled(inner),
373        }
374    }
375}
376impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_custom_key_store::CreateCustomKeyStoreError, R>> for Error
377where
378    R: Send + Sync + std::fmt::Debug + 'static,
379{
380    fn from(
381        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_custom_key_store::CreateCustomKeyStoreError, R>,
382    ) -> Self {
383        match err {
384            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
385            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
386                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
387                source: err.into(),
388            }),
389        }
390    }
391}
392impl From<crate::operation::create_custom_key_store::CreateCustomKeyStoreError> for Error {
393    fn from(err: crate::operation::create_custom_key_store::CreateCustomKeyStoreError) -> Self {
394        match err {
395            crate::operation::create_custom_key_store::CreateCustomKeyStoreError::CloudHsmClusterInUseException(inner) => {
396                Error::CloudHsmClusterInUseException(inner)
397            }
398            crate::operation::create_custom_key_store::CreateCustomKeyStoreError::CloudHsmClusterInvalidConfigurationException(inner) => {
399                Error::CloudHsmClusterInvalidConfigurationException(inner)
400            }
401            crate::operation::create_custom_key_store::CreateCustomKeyStoreError::CloudHsmClusterNotActiveException(inner) => {
402                Error::CloudHsmClusterNotActiveException(inner)
403            }
404            crate::operation::create_custom_key_store::CreateCustomKeyStoreError::CloudHsmClusterNotFoundException(inner) => {
405                Error::CloudHsmClusterNotFoundException(inner)
406            }
407            crate::operation::create_custom_key_store::CreateCustomKeyStoreError::CustomKeyStoreNameInUseException(inner) => {
408                Error::CustomKeyStoreNameInUseException(inner)
409            }
410            crate::operation::create_custom_key_store::CreateCustomKeyStoreError::IncorrectTrustAnchorException(inner) => {
411                Error::IncorrectTrustAnchorException(inner)
412            }
413            crate::operation::create_custom_key_store::CreateCustomKeyStoreError::KmsInternalException(inner) => Error::KmsInternalException(inner),
414            crate::operation::create_custom_key_store::CreateCustomKeyStoreError::LimitExceededException(inner) => {
415                Error::LimitExceededException(inner)
416            }
417            crate::operation::create_custom_key_store::CreateCustomKeyStoreError::XksProxyIncorrectAuthenticationCredentialException(inner) => {
418                Error::XksProxyIncorrectAuthenticationCredentialException(inner)
419            }
420            crate::operation::create_custom_key_store::CreateCustomKeyStoreError::XksProxyInvalidConfigurationException(inner) => {
421                Error::XksProxyInvalidConfigurationException(inner)
422            }
423            crate::operation::create_custom_key_store::CreateCustomKeyStoreError::XksProxyInvalidResponseException(inner) => {
424                Error::XksProxyInvalidResponseException(inner)
425            }
426            crate::operation::create_custom_key_store::CreateCustomKeyStoreError::XksProxyUriEndpointInUseException(inner) => {
427                Error::XksProxyUriEndpointInUseException(inner)
428            }
429            crate::operation::create_custom_key_store::CreateCustomKeyStoreError::XksProxyUriInUseException(inner) => {
430                Error::XksProxyUriInUseException(inner)
431            }
432            crate::operation::create_custom_key_store::CreateCustomKeyStoreError::XksProxyUriUnreachableException(inner) => {
433                Error::XksProxyUriUnreachableException(inner)
434            }
435            crate::operation::create_custom_key_store::CreateCustomKeyStoreError::XksProxyVpcEndpointServiceInUseException(inner) => {
436                Error::XksProxyVpcEndpointServiceInUseException(inner)
437            }
438            crate::operation::create_custom_key_store::CreateCustomKeyStoreError::XksProxyVpcEndpointServiceInvalidConfigurationException(inner) => {
439                Error::XksProxyVpcEndpointServiceInvalidConfigurationException(inner)
440            }
441            crate::operation::create_custom_key_store::CreateCustomKeyStoreError::XksProxyVpcEndpointServiceNotFoundException(inner) => {
442                Error::XksProxyVpcEndpointServiceNotFoundException(inner)
443            }
444            crate::operation::create_custom_key_store::CreateCustomKeyStoreError::Unhandled(inner) => Error::Unhandled(inner),
445        }
446    }
447}
448impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_grant::CreateGrantError, R>> for Error
449where
450    R: Send + Sync + std::fmt::Debug + 'static,
451{
452    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_grant::CreateGrantError, R>) -> Self {
453        match err {
454            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
455            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
456                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
457                source: err.into(),
458            }),
459        }
460    }
461}
462impl From<crate::operation::create_grant::CreateGrantError> for Error {
463    fn from(err: crate::operation::create_grant::CreateGrantError) -> Self {
464        match err {
465            crate::operation::create_grant::CreateGrantError::DependencyTimeoutException(inner) => Error::DependencyTimeoutException(inner),
466            crate::operation::create_grant::CreateGrantError::DisabledException(inner) => Error::DisabledException(inner),
467            crate::operation::create_grant::CreateGrantError::DryRunOperationException(inner) => Error::DryRunOperationException(inner),
468            crate::operation::create_grant::CreateGrantError::InvalidArnException(inner) => Error::InvalidArnException(inner),
469            crate::operation::create_grant::CreateGrantError::InvalidGrantTokenException(inner) => Error::InvalidGrantTokenException(inner),
470            crate::operation::create_grant::CreateGrantError::KmsInternalException(inner) => Error::KmsInternalException(inner),
471            crate::operation::create_grant::CreateGrantError::KmsInvalidStateException(inner) => Error::KmsInvalidStateException(inner),
472            crate::operation::create_grant::CreateGrantError::LimitExceededException(inner) => Error::LimitExceededException(inner),
473            crate::operation::create_grant::CreateGrantError::NotFoundException(inner) => Error::NotFoundException(inner),
474            crate::operation::create_grant::CreateGrantError::Unhandled(inner) => Error::Unhandled(inner),
475        }
476    }
477}
478impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_key::CreateKeyError, R>> for Error
479where
480    R: Send + Sync + std::fmt::Debug + 'static,
481{
482    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_key::CreateKeyError, R>) -> Self {
483        match err {
484            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
485            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
486                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
487                source: err.into(),
488            }),
489        }
490    }
491}
492impl From<crate::operation::create_key::CreateKeyError> for Error {
493    fn from(err: crate::operation::create_key::CreateKeyError) -> Self {
494        match err {
495            crate::operation::create_key::CreateKeyError::CloudHsmClusterInvalidConfigurationException(inner) => {
496                Error::CloudHsmClusterInvalidConfigurationException(inner)
497            }
498            crate::operation::create_key::CreateKeyError::CustomKeyStoreInvalidStateException(inner) => {
499                Error::CustomKeyStoreInvalidStateException(inner)
500            }
501            crate::operation::create_key::CreateKeyError::CustomKeyStoreNotFoundException(inner) => Error::CustomKeyStoreNotFoundException(inner),
502            crate::operation::create_key::CreateKeyError::DependencyTimeoutException(inner) => Error::DependencyTimeoutException(inner),
503            crate::operation::create_key::CreateKeyError::InvalidArnException(inner) => Error::InvalidArnException(inner),
504            crate::operation::create_key::CreateKeyError::KmsInternalException(inner) => Error::KmsInternalException(inner),
505            crate::operation::create_key::CreateKeyError::LimitExceededException(inner) => Error::LimitExceededException(inner),
506            crate::operation::create_key::CreateKeyError::MalformedPolicyDocumentException(inner) => Error::MalformedPolicyDocumentException(inner),
507            crate::operation::create_key::CreateKeyError::TagException(inner) => Error::TagException(inner),
508            crate::operation::create_key::CreateKeyError::UnsupportedOperationException(inner) => Error::UnsupportedOperationException(inner),
509            crate::operation::create_key::CreateKeyError::XksKeyAlreadyInUseException(inner) => Error::XksKeyAlreadyInUseException(inner),
510            crate::operation::create_key::CreateKeyError::XksKeyInvalidConfigurationException(inner) => {
511                Error::XksKeyInvalidConfigurationException(inner)
512            }
513            crate::operation::create_key::CreateKeyError::XksKeyNotFoundException(inner) => Error::XksKeyNotFoundException(inner),
514            crate::operation::create_key::CreateKeyError::Unhandled(inner) => Error::Unhandled(inner),
515        }
516    }
517}
518impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::decapsulate::DecapsulateError, R>> for Error
519where
520    R: Send + Sync + std::fmt::Debug + 'static,
521{
522    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::decapsulate::DecapsulateError, R>) -> Self {
523        match err {
524            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
525            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
526                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
527                source: err.into(),
528            }),
529        }
530    }
531}
532impl From<crate::operation::decapsulate::DecapsulateError> for Error {
533    fn from(err: crate::operation::decapsulate::DecapsulateError) -> Self {
534        match err {
535            crate::operation::decapsulate::DecapsulateError::DependencyTimeoutException(inner) => Error::DependencyTimeoutException(inner),
536            crate::operation::decapsulate::DecapsulateError::DisabledException(inner) => Error::DisabledException(inner),
537            crate::operation::decapsulate::DecapsulateError::DryRunOperationException(inner) => Error::DryRunOperationException(inner),
538            crate::operation::decapsulate::DecapsulateError::InvalidCiphertextException(inner) => Error::InvalidCiphertextException(inner),
539            crate::operation::decapsulate::DecapsulateError::InvalidGrantTokenException(inner) => Error::InvalidGrantTokenException(inner),
540            crate::operation::decapsulate::DecapsulateError::InvalidKeyUsageException(inner) => Error::InvalidKeyUsageException(inner),
541            crate::operation::decapsulate::DecapsulateError::KeyUnavailableException(inner) => Error::KeyUnavailableException(inner),
542            crate::operation::decapsulate::DecapsulateError::KmsInternalException(inner) => Error::KmsInternalException(inner),
543            crate::operation::decapsulate::DecapsulateError::KmsInvalidStateException(inner) => Error::KmsInvalidStateException(inner),
544            crate::operation::decapsulate::DecapsulateError::NotFoundException(inner) => Error::NotFoundException(inner),
545            crate::operation::decapsulate::DecapsulateError::Unhandled(inner) => Error::Unhandled(inner),
546        }
547    }
548}
549impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::decrypt::DecryptError, R>> for Error
550where
551    R: Send + Sync + std::fmt::Debug + 'static,
552{
553    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::decrypt::DecryptError, R>) -> Self {
554        match err {
555            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
556            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
557                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
558                source: err.into(),
559            }),
560        }
561    }
562}
563impl From<crate::operation::decrypt::DecryptError> for Error {
564    fn from(err: crate::operation::decrypt::DecryptError) -> Self {
565        match err {
566            crate::operation::decrypt::DecryptError::DependencyTimeoutException(inner) => Error::DependencyTimeoutException(inner),
567            crate::operation::decrypt::DecryptError::DisabledException(inner) => Error::DisabledException(inner),
568            crate::operation::decrypt::DecryptError::DryRunOperationException(inner) => Error::DryRunOperationException(inner),
569            crate::operation::decrypt::DecryptError::IncorrectKeyException(inner) => Error::IncorrectKeyException(inner),
570            crate::operation::decrypt::DecryptError::InvalidCiphertextException(inner) => Error::InvalidCiphertextException(inner),
571            crate::operation::decrypt::DecryptError::InvalidGrantTokenException(inner) => Error::InvalidGrantTokenException(inner),
572            crate::operation::decrypt::DecryptError::InvalidKeyUsageException(inner) => Error::InvalidKeyUsageException(inner),
573            crate::operation::decrypt::DecryptError::KeyUnavailableException(inner) => Error::KeyUnavailableException(inner),
574            crate::operation::decrypt::DecryptError::KmsInternalException(inner) => Error::KmsInternalException(inner),
575            crate::operation::decrypt::DecryptError::KmsInvalidStateException(inner) => Error::KmsInvalidStateException(inner),
576            crate::operation::decrypt::DecryptError::NotFoundException(inner) => Error::NotFoundException(inner),
577            crate::operation::decrypt::DecryptError::Unhandled(inner) => Error::Unhandled(inner),
578        }
579    }
580}
581impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_alias::DeleteAliasError, R>> for Error
582where
583    R: Send + Sync + std::fmt::Debug + 'static,
584{
585    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_alias::DeleteAliasError, R>) -> Self {
586        match err {
587            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
588            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
589                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
590                source: err.into(),
591            }),
592        }
593    }
594}
595impl From<crate::operation::delete_alias::DeleteAliasError> for Error {
596    fn from(err: crate::operation::delete_alias::DeleteAliasError) -> Self {
597        match err {
598            crate::operation::delete_alias::DeleteAliasError::DependencyTimeoutException(inner) => Error::DependencyTimeoutException(inner),
599            crate::operation::delete_alias::DeleteAliasError::KmsInternalException(inner) => Error::KmsInternalException(inner),
600            crate::operation::delete_alias::DeleteAliasError::KmsInvalidStateException(inner) => Error::KmsInvalidStateException(inner),
601            crate::operation::delete_alias::DeleteAliasError::NotFoundException(inner) => Error::NotFoundException(inner),
602            crate::operation::delete_alias::DeleteAliasError::Unhandled(inner) => Error::Unhandled(inner),
603        }
604    }
605}
606impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_custom_key_store::DeleteCustomKeyStoreError, R>> for Error
607where
608    R: Send + Sync + std::fmt::Debug + 'static,
609{
610    fn from(
611        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_custom_key_store::DeleteCustomKeyStoreError, R>,
612    ) -> Self {
613        match err {
614            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
615            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
616                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
617                source: err.into(),
618            }),
619        }
620    }
621}
622impl From<crate::operation::delete_custom_key_store::DeleteCustomKeyStoreError> for Error {
623    fn from(err: crate::operation::delete_custom_key_store::DeleteCustomKeyStoreError) -> Self {
624        match err {
625            crate::operation::delete_custom_key_store::DeleteCustomKeyStoreError::CustomKeyStoreHasCmKsException(inner) => {
626                Error::CustomKeyStoreHasCmKsException(inner)
627            }
628            crate::operation::delete_custom_key_store::DeleteCustomKeyStoreError::CustomKeyStoreInvalidStateException(inner) => {
629                Error::CustomKeyStoreInvalidStateException(inner)
630            }
631            crate::operation::delete_custom_key_store::DeleteCustomKeyStoreError::CustomKeyStoreNotFoundException(inner) => {
632                Error::CustomKeyStoreNotFoundException(inner)
633            }
634            crate::operation::delete_custom_key_store::DeleteCustomKeyStoreError::KmsInternalException(inner) => Error::KmsInternalException(inner),
635            crate::operation::delete_custom_key_store::DeleteCustomKeyStoreError::Unhandled(inner) => Error::Unhandled(inner),
636        }
637    }
638}
639impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_imported_key_material::DeleteImportedKeyMaterialError, R>>
640    for Error
641where
642    R: Send + Sync + std::fmt::Debug + 'static,
643{
644    fn from(
645        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_imported_key_material::DeleteImportedKeyMaterialError, R>,
646    ) -> Self {
647        match err {
648            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
649            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
650                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
651                source: err.into(),
652            }),
653        }
654    }
655}
656impl From<crate::operation::delete_imported_key_material::DeleteImportedKeyMaterialError> for Error {
657    fn from(err: crate::operation::delete_imported_key_material::DeleteImportedKeyMaterialError) -> Self {
658        match err {
659            crate::operation::delete_imported_key_material::DeleteImportedKeyMaterialError::DependencyTimeoutException(inner) => {
660                Error::DependencyTimeoutException(inner)
661            }
662            crate::operation::delete_imported_key_material::DeleteImportedKeyMaterialError::InvalidArnException(inner) => {
663                Error::InvalidArnException(inner)
664            }
665            crate::operation::delete_imported_key_material::DeleteImportedKeyMaterialError::KmsInternalException(inner) => {
666                Error::KmsInternalException(inner)
667            }
668            crate::operation::delete_imported_key_material::DeleteImportedKeyMaterialError::KmsInvalidStateException(inner) => {
669                Error::KmsInvalidStateException(inner)
670            }
671            crate::operation::delete_imported_key_material::DeleteImportedKeyMaterialError::NotFoundException(inner) => {
672                Error::NotFoundException(inner)
673            }
674            crate::operation::delete_imported_key_material::DeleteImportedKeyMaterialError::UnsupportedOperationException(inner) => {
675                Error::UnsupportedOperationException(inner)
676            }
677            crate::operation::delete_imported_key_material::DeleteImportedKeyMaterialError::Unhandled(inner) => Error::Unhandled(inner),
678        }
679    }
680}
681impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::derive_shared_secret::DeriveSharedSecretError, R>> for Error
682where
683    R: Send + Sync + std::fmt::Debug + 'static,
684{
685    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::derive_shared_secret::DeriveSharedSecretError, R>) -> Self {
686        match err {
687            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
688            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
689                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
690                source: err.into(),
691            }),
692        }
693    }
694}
695impl From<crate::operation::derive_shared_secret::DeriveSharedSecretError> for Error {
696    fn from(err: crate::operation::derive_shared_secret::DeriveSharedSecretError) -> Self {
697        match err {
698            crate::operation::derive_shared_secret::DeriveSharedSecretError::DependencyTimeoutException(inner) => {
699                Error::DependencyTimeoutException(inner)
700            }
701            crate::operation::derive_shared_secret::DeriveSharedSecretError::DisabledException(inner) => Error::DisabledException(inner),
702            crate::operation::derive_shared_secret::DeriveSharedSecretError::DryRunOperationException(inner) => {
703                Error::DryRunOperationException(inner)
704            }
705            crate::operation::derive_shared_secret::DeriveSharedSecretError::InvalidGrantTokenException(inner) => {
706                Error::InvalidGrantTokenException(inner)
707            }
708            crate::operation::derive_shared_secret::DeriveSharedSecretError::InvalidKeyUsageException(inner) => {
709                Error::InvalidKeyUsageException(inner)
710            }
711            crate::operation::derive_shared_secret::DeriveSharedSecretError::KeyUnavailableException(inner) => Error::KeyUnavailableException(inner),
712            crate::operation::derive_shared_secret::DeriveSharedSecretError::KmsInternalException(inner) => Error::KmsInternalException(inner),
713            crate::operation::derive_shared_secret::DeriveSharedSecretError::KmsInvalidStateException(inner) => {
714                Error::KmsInvalidStateException(inner)
715            }
716            crate::operation::derive_shared_secret::DeriveSharedSecretError::NotFoundException(inner) => Error::NotFoundException(inner),
717            crate::operation::derive_shared_secret::DeriveSharedSecretError::Unhandled(inner) => Error::Unhandled(inner),
718        }
719    }
720}
721impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_custom_key_stores::DescribeCustomKeyStoresError, R>>
722    for Error
723where
724    R: Send + Sync + std::fmt::Debug + 'static,
725{
726    fn from(
727        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_custom_key_stores::DescribeCustomKeyStoresError, R>,
728    ) -> Self {
729        match err {
730            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
731            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
732                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
733                source: err.into(),
734            }),
735        }
736    }
737}
738impl From<crate::operation::describe_custom_key_stores::DescribeCustomKeyStoresError> for Error {
739    fn from(err: crate::operation::describe_custom_key_stores::DescribeCustomKeyStoresError) -> Self {
740        match err {
741            crate::operation::describe_custom_key_stores::DescribeCustomKeyStoresError::CustomKeyStoreNotFoundException(inner) => {
742                Error::CustomKeyStoreNotFoundException(inner)
743            }
744            crate::operation::describe_custom_key_stores::DescribeCustomKeyStoresError::InvalidMarkerException(inner) => {
745                Error::InvalidMarkerException(inner)
746            }
747            crate::operation::describe_custom_key_stores::DescribeCustomKeyStoresError::KmsInternalException(inner) => {
748                Error::KmsInternalException(inner)
749            }
750            crate::operation::describe_custom_key_stores::DescribeCustomKeyStoresError::Unhandled(inner) => Error::Unhandled(inner),
751        }
752    }
753}
754impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_key::DescribeKeyError, R>> for Error
755where
756    R: Send + Sync + std::fmt::Debug + 'static,
757{
758    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_key::DescribeKeyError, R>) -> Self {
759        match err {
760            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
761            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
762                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
763                source: err.into(),
764            }),
765        }
766    }
767}
768impl From<crate::operation::describe_key::DescribeKeyError> for Error {
769    fn from(err: crate::operation::describe_key::DescribeKeyError) -> Self {
770        match err {
771            crate::operation::describe_key::DescribeKeyError::DependencyTimeoutException(inner) => Error::DependencyTimeoutException(inner),
772            crate::operation::describe_key::DescribeKeyError::InvalidArnException(inner) => Error::InvalidArnException(inner),
773            crate::operation::describe_key::DescribeKeyError::KmsInternalException(inner) => Error::KmsInternalException(inner),
774            crate::operation::describe_key::DescribeKeyError::NotFoundException(inner) => Error::NotFoundException(inner),
775            crate::operation::describe_key::DescribeKeyError::Unhandled(inner) => Error::Unhandled(inner),
776        }
777    }
778}
779impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_key::DisableKeyError, R>> for Error
780where
781    R: Send + Sync + std::fmt::Debug + 'static,
782{
783    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_key::DisableKeyError, R>) -> Self {
784        match err {
785            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
786            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
787                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
788                source: err.into(),
789            }),
790        }
791    }
792}
793impl From<crate::operation::disable_key::DisableKeyError> for Error {
794    fn from(err: crate::operation::disable_key::DisableKeyError) -> Self {
795        match err {
796            crate::operation::disable_key::DisableKeyError::DependencyTimeoutException(inner) => Error::DependencyTimeoutException(inner),
797            crate::operation::disable_key::DisableKeyError::InvalidArnException(inner) => Error::InvalidArnException(inner),
798            crate::operation::disable_key::DisableKeyError::KmsInternalException(inner) => Error::KmsInternalException(inner),
799            crate::operation::disable_key::DisableKeyError::KmsInvalidStateException(inner) => Error::KmsInvalidStateException(inner),
800            crate::operation::disable_key::DisableKeyError::NotFoundException(inner) => Error::NotFoundException(inner),
801            crate::operation::disable_key::DisableKeyError::Unhandled(inner) => Error::Unhandled(inner),
802        }
803    }
804}
805impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_key_rotation::DisableKeyRotationError, R>> for Error
806where
807    R: Send + Sync + std::fmt::Debug + 'static,
808{
809    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_key_rotation::DisableKeyRotationError, R>) -> Self {
810        match err {
811            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
812            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
813                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
814                source: err.into(),
815            }),
816        }
817    }
818}
819impl From<crate::operation::disable_key_rotation::DisableKeyRotationError> for Error {
820    fn from(err: crate::operation::disable_key_rotation::DisableKeyRotationError) -> Self {
821        match err {
822            crate::operation::disable_key_rotation::DisableKeyRotationError::DependencyTimeoutException(inner) => {
823                Error::DependencyTimeoutException(inner)
824            }
825            crate::operation::disable_key_rotation::DisableKeyRotationError::DisabledException(inner) => Error::DisabledException(inner),
826            crate::operation::disable_key_rotation::DisableKeyRotationError::InvalidArnException(inner) => Error::InvalidArnException(inner),
827            crate::operation::disable_key_rotation::DisableKeyRotationError::KmsInternalException(inner) => Error::KmsInternalException(inner),
828            crate::operation::disable_key_rotation::DisableKeyRotationError::KmsInvalidStateException(inner) => {
829                Error::KmsInvalidStateException(inner)
830            }
831            crate::operation::disable_key_rotation::DisableKeyRotationError::NotFoundException(inner) => Error::NotFoundException(inner),
832            crate::operation::disable_key_rotation::DisableKeyRotationError::UnsupportedOperationException(inner) => {
833                Error::UnsupportedOperationException(inner)
834            }
835            crate::operation::disable_key_rotation::DisableKeyRotationError::Unhandled(inner) => Error::Unhandled(inner),
836        }
837    }
838}
839impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disconnect_custom_key_store::DisconnectCustomKeyStoreError, R>>
840    for Error
841where
842    R: Send + Sync + std::fmt::Debug + 'static,
843{
844    fn from(
845        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disconnect_custom_key_store::DisconnectCustomKeyStoreError, R>,
846    ) -> Self {
847        match err {
848            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
849            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
850                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
851                source: err.into(),
852            }),
853        }
854    }
855}
856impl From<crate::operation::disconnect_custom_key_store::DisconnectCustomKeyStoreError> for Error {
857    fn from(err: crate::operation::disconnect_custom_key_store::DisconnectCustomKeyStoreError) -> Self {
858        match err {
859            crate::operation::disconnect_custom_key_store::DisconnectCustomKeyStoreError::CustomKeyStoreInvalidStateException(inner) => {
860                Error::CustomKeyStoreInvalidStateException(inner)
861            }
862            crate::operation::disconnect_custom_key_store::DisconnectCustomKeyStoreError::CustomKeyStoreNotFoundException(inner) => {
863                Error::CustomKeyStoreNotFoundException(inner)
864            }
865            crate::operation::disconnect_custom_key_store::DisconnectCustomKeyStoreError::KmsInternalException(inner) => {
866                Error::KmsInternalException(inner)
867            }
868            crate::operation::disconnect_custom_key_store::DisconnectCustomKeyStoreError::Unhandled(inner) => Error::Unhandled(inner),
869        }
870    }
871}
872impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_key::EnableKeyError, R>> for Error
873where
874    R: Send + Sync + std::fmt::Debug + 'static,
875{
876    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_key::EnableKeyError, R>) -> Self {
877        match err {
878            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
879            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
880                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
881                source: err.into(),
882            }),
883        }
884    }
885}
886impl From<crate::operation::enable_key::EnableKeyError> for Error {
887    fn from(err: crate::operation::enable_key::EnableKeyError) -> Self {
888        match err {
889            crate::operation::enable_key::EnableKeyError::DependencyTimeoutException(inner) => Error::DependencyTimeoutException(inner),
890            crate::operation::enable_key::EnableKeyError::InvalidArnException(inner) => Error::InvalidArnException(inner),
891            crate::operation::enable_key::EnableKeyError::KmsInternalException(inner) => Error::KmsInternalException(inner),
892            crate::operation::enable_key::EnableKeyError::KmsInvalidStateException(inner) => Error::KmsInvalidStateException(inner),
893            crate::operation::enable_key::EnableKeyError::LimitExceededException(inner) => Error::LimitExceededException(inner),
894            crate::operation::enable_key::EnableKeyError::NotFoundException(inner) => Error::NotFoundException(inner),
895            crate::operation::enable_key::EnableKeyError::Unhandled(inner) => Error::Unhandled(inner),
896        }
897    }
898}
899impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_key_rotation::EnableKeyRotationError, R>> for Error
900where
901    R: Send + Sync + std::fmt::Debug + 'static,
902{
903    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_key_rotation::EnableKeyRotationError, R>) -> Self {
904        match err {
905            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
906            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
907                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
908                source: err.into(),
909            }),
910        }
911    }
912}
913impl From<crate::operation::enable_key_rotation::EnableKeyRotationError> for Error {
914    fn from(err: crate::operation::enable_key_rotation::EnableKeyRotationError) -> Self {
915        match err {
916            crate::operation::enable_key_rotation::EnableKeyRotationError::DependencyTimeoutException(inner) => {
917                Error::DependencyTimeoutException(inner)
918            }
919            crate::operation::enable_key_rotation::EnableKeyRotationError::DisabledException(inner) => Error::DisabledException(inner),
920            crate::operation::enable_key_rotation::EnableKeyRotationError::InvalidArnException(inner) => Error::InvalidArnException(inner),
921            crate::operation::enable_key_rotation::EnableKeyRotationError::KmsInternalException(inner) => Error::KmsInternalException(inner),
922            crate::operation::enable_key_rotation::EnableKeyRotationError::KmsInvalidStateException(inner) => Error::KmsInvalidStateException(inner),
923            crate::operation::enable_key_rotation::EnableKeyRotationError::NotFoundException(inner) => Error::NotFoundException(inner),
924            crate::operation::enable_key_rotation::EnableKeyRotationError::UnsupportedOperationException(inner) => {
925                Error::UnsupportedOperationException(inner)
926            }
927            crate::operation::enable_key_rotation::EnableKeyRotationError::Unhandled(inner) => Error::Unhandled(inner),
928        }
929    }
930}
931impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::encapsulate::EncapsulateError, R>> for Error
932where
933    R: Send + Sync + std::fmt::Debug + 'static,
934{
935    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::encapsulate::EncapsulateError, R>) -> Self {
936        match err {
937            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
938            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
939                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
940                source: err.into(),
941            }),
942        }
943    }
944}
945impl From<crate::operation::encapsulate::EncapsulateError> for Error {
946    fn from(err: crate::operation::encapsulate::EncapsulateError) -> Self {
947        match err {
948            crate::operation::encapsulate::EncapsulateError::DependencyTimeoutException(inner) => Error::DependencyTimeoutException(inner),
949            crate::operation::encapsulate::EncapsulateError::DisabledException(inner) => Error::DisabledException(inner),
950            crate::operation::encapsulate::EncapsulateError::DryRunOperationException(inner) => Error::DryRunOperationException(inner),
951            crate::operation::encapsulate::EncapsulateError::InvalidGrantTokenException(inner) => Error::InvalidGrantTokenException(inner),
952            crate::operation::encapsulate::EncapsulateError::InvalidKeyUsageException(inner) => Error::InvalidKeyUsageException(inner),
953            crate::operation::encapsulate::EncapsulateError::KeyUnavailableException(inner) => Error::KeyUnavailableException(inner),
954            crate::operation::encapsulate::EncapsulateError::KmsInternalException(inner) => Error::KmsInternalException(inner),
955            crate::operation::encapsulate::EncapsulateError::KmsInvalidStateException(inner) => Error::KmsInvalidStateException(inner),
956            crate::operation::encapsulate::EncapsulateError::NotFoundException(inner) => Error::NotFoundException(inner),
957            crate::operation::encapsulate::EncapsulateError::Unhandled(inner) => Error::Unhandled(inner),
958        }
959    }
960}
961impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::encrypt::EncryptError, R>> for Error
962where
963    R: Send + Sync + std::fmt::Debug + 'static,
964{
965    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::encrypt::EncryptError, R>) -> Self {
966        match err {
967            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
968            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
969                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
970                source: err.into(),
971            }),
972        }
973    }
974}
975impl From<crate::operation::encrypt::EncryptError> for Error {
976    fn from(err: crate::operation::encrypt::EncryptError) -> Self {
977        match err {
978            crate::operation::encrypt::EncryptError::DependencyTimeoutException(inner) => Error::DependencyTimeoutException(inner),
979            crate::operation::encrypt::EncryptError::DisabledException(inner) => Error::DisabledException(inner),
980            crate::operation::encrypt::EncryptError::DryRunOperationException(inner) => Error::DryRunOperationException(inner),
981            crate::operation::encrypt::EncryptError::InvalidGrantTokenException(inner) => Error::InvalidGrantTokenException(inner),
982            crate::operation::encrypt::EncryptError::InvalidKeyUsageException(inner) => Error::InvalidKeyUsageException(inner),
983            crate::operation::encrypt::EncryptError::KeyUnavailableException(inner) => Error::KeyUnavailableException(inner),
984            crate::operation::encrypt::EncryptError::KmsInternalException(inner) => Error::KmsInternalException(inner),
985            crate::operation::encrypt::EncryptError::KmsInvalidStateException(inner) => Error::KmsInvalidStateException(inner),
986            crate::operation::encrypt::EncryptError::NotFoundException(inner) => Error::NotFoundException(inner),
987            crate::operation::encrypt::EncryptError::Unhandled(inner) => Error::Unhandled(inner),
988        }
989    }
990}
991impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::generate_data_key::GenerateDataKeyError, R>> for Error
992where
993    R: Send + Sync + std::fmt::Debug + 'static,
994{
995    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::generate_data_key::GenerateDataKeyError, R>) -> Self {
996        match err {
997            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
998            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
999                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1000                source: err.into(),
1001            }),
1002        }
1003    }
1004}
1005impl From<crate::operation::generate_data_key::GenerateDataKeyError> for Error {
1006    fn from(err: crate::operation::generate_data_key::GenerateDataKeyError) -> Self {
1007        match err {
1008            crate::operation::generate_data_key::GenerateDataKeyError::DependencyTimeoutException(inner) => Error::DependencyTimeoutException(inner),
1009            crate::operation::generate_data_key::GenerateDataKeyError::DisabledException(inner) => Error::DisabledException(inner),
1010            crate::operation::generate_data_key::GenerateDataKeyError::DryRunOperationException(inner) => Error::DryRunOperationException(inner),
1011            crate::operation::generate_data_key::GenerateDataKeyError::InvalidGrantTokenException(inner) => Error::InvalidGrantTokenException(inner),
1012            crate::operation::generate_data_key::GenerateDataKeyError::InvalidKeyUsageException(inner) => Error::InvalidKeyUsageException(inner),
1013            crate::operation::generate_data_key::GenerateDataKeyError::KeyUnavailableException(inner) => Error::KeyUnavailableException(inner),
1014            crate::operation::generate_data_key::GenerateDataKeyError::KmsInternalException(inner) => Error::KmsInternalException(inner),
1015            crate::operation::generate_data_key::GenerateDataKeyError::KmsInvalidStateException(inner) => Error::KmsInvalidStateException(inner),
1016            crate::operation::generate_data_key::GenerateDataKeyError::NotFoundException(inner) => Error::NotFoundException(inner),
1017            crate::operation::generate_data_key::GenerateDataKeyError::Unhandled(inner) => Error::Unhandled(inner),
1018        }
1019    }
1020}
1021impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::generate_data_key_pair::GenerateDataKeyPairError, R>> for Error
1022where
1023    R: Send + Sync + std::fmt::Debug + 'static,
1024{
1025    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::generate_data_key_pair::GenerateDataKeyPairError, R>) -> Self {
1026        match err {
1027            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1028            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1029                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1030                source: err.into(),
1031            }),
1032        }
1033    }
1034}
1035impl From<crate::operation::generate_data_key_pair::GenerateDataKeyPairError> for Error {
1036    fn from(err: crate::operation::generate_data_key_pair::GenerateDataKeyPairError) -> Self {
1037        match err {
1038            crate::operation::generate_data_key_pair::GenerateDataKeyPairError::DependencyTimeoutException(inner) => {
1039                Error::DependencyTimeoutException(inner)
1040            }
1041            crate::operation::generate_data_key_pair::GenerateDataKeyPairError::DisabledException(inner) => Error::DisabledException(inner),
1042            crate::operation::generate_data_key_pair::GenerateDataKeyPairError::DryRunOperationException(inner) => {
1043                Error::DryRunOperationException(inner)
1044            }
1045            crate::operation::generate_data_key_pair::GenerateDataKeyPairError::InvalidGrantTokenException(inner) => {
1046                Error::InvalidGrantTokenException(inner)
1047            }
1048            crate::operation::generate_data_key_pair::GenerateDataKeyPairError::InvalidKeyUsageException(inner) => {
1049                Error::InvalidKeyUsageException(inner)
1050            }
1051            crate::operation::generate_data_key_pair::GenerateDataKeyPairError::KeyUnavailableException(inner) => {
1052                Error::KeyUnavailableException(inner)
1053            }
1054            crate::operation::generate_data_key_pair::GenerateDataKeyPairError::KmsInternalException(inner) => Error::KmsInternalException(inner),
1055            crate::operation::generate_data_key_pair::GenerateDataKeyPairError::KmsInvalidStateException(inner) => {
1056                Error::KmsInvalidStateException(inner)
1057            }
1058            crate::operation::generate_data_key_pair::GenerateDataKeyPairError::NotFoundException(inner) => Error::NotFoundException(inner),
1059            crate::operation::generate_data_key_pair::GenerateDataKeyPairError::UnsupportedOperationException(inner) => {
1060                Error::UnsupportedOperationException(inner)
1061            }
1062            crate::operation::generate_data_key_pair::GenerateDataKeyPairError::Unhandled(inner) => Error::Unhandled(inner),
1063        }
1064    }
1065}
1066impl<R>
1067    From<
1068        ::aws_smithy_runtime_api::client::result::SdkError<
1069            crate::operation::generate_data_key_pair_without_plaintext::GenerateDataKeyPairWithoutPlaintextError,
1070            R,
1071        >,
1072    > for Error
1073where
1074    R: Send + Sync + std::fmt::Debug + 'static,
1075{
1076    fn from(
1077        err: ::aws_smithy_runtime_api::client::result::SdkError<
1078            crate::operation::generate_data_key_pair_without_plaintext::GenerateDataKeyPairWithoutPlaintextError,
1079            R,
1080        >,
1081    ) -> Self {
1082        match err {
1083            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1084            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1085                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1086                source: err.into(),
1087            }),
1088        }
1089    }
1090}
1091impl From<crate::operation::generate_data_key_pair_without_plaintext::GenerateDataKeyPairWithoutPlaintextError> for Error {
1092    fn from(err: crate::operation::generate_data_key_pair_without_plaintext::GenerateDataKeyPairWithoutPlaintextError) -> Self {
1093        match err {
1094            crate::operation::generate_data_key_pair_without_plaintext::GenerateDataKeyPairWithoutPlaintextError::DependencyTimeoutException(
1095                inner,
1096            ) => Error::DependencyTimeoutException(inner),
1097            crate::operation::generate_data_key_pair_without_plaintext::GenerateDataKeyPairWithoutPlaintextError::DisabledException(inner) => {
1098                Error::DisabledException(inner)
1099            }
1100            crate::operation::generate_data_key_pair_without_plaintext::GenerateDataKeyPairWithoutPlaintextError::DryRunOperationException(inner) => {
1101                Error::DryRunOperationException(inner)
1102            }
1103            crate::operation::generate_data_key_pair_without_plaintext::GenerateDataKeyPairWithoutPlaintextError::InvalidGrantTokenException(
1104                inner,
1105            ) => Error::InvalidGrantTokenException(inner),
1106            crate::operation::generate_data_key_pair_without_plaintext::GenerateDataKeyPairWithoutPlaintextError::InvalidKeyUsageException(inner) => {
1107                Error::InvalidKeyUsageException(inner)
1108            }
1109            crate::operation::generate_data_key_pair_without_plaintext::GenerateDataKeyPairWithoutPlaintextError::KeyUnavailableException(inner) => {
1110                Error::KeyUnavailableException(inner)
1111            }
1112            crate::operation::generate_data_key_pair_without_plaintext::GenerateDataKeyPairWithoutPlaintextError::KmsInternalException(inner) => {
1113                Error::KmsInternalException(inner)
1114            }
1115            crate::operation::generate_data_key_pair_without_plaintext::GenerateDataKeyPairWithoutPlaintextError::KmsInvalidStateException(inner) => {
1116                Error::KmsInvalidStateException(inner)
1117            }
1118            crate::operation::generate_data_key_pair_without_plaintext::GenerateDataKeyPairWithoutPlaintextError::NotFoundException(inner) => {
1119                Error::NotFoundException(inner)
1120            }
1121            crate::operation::generate_data_key_pair_without_plaintext::GenerateDataKeyPairWithoutPlaintextError::UnsupportedOperationException(
1122                inner,
1123            ) => Error::UnsupportedOperationException(inner),
1124            crate::operation::generate_data_key_pair_without_plaintext::GenerateDataKeyPairWithoutPlaintextError::Unhandled(inner) => {
1125                Error::Unhandled(inner)
1126            }
1127        }
1128    }
1129}
1130impl<R>
1131    From<
1132        ::aws_smithy_runtime_api::client::result::SdkError<
1133            crate::operation::generate_data_key_without_plaintext::GenerateDataKeyWithoutPlaintextError,
1134            R,
1135        >,
1136    > for Error
1137where
1138    R: Send + Sync + std::fmt::Debug + 'static,
1139{
1140    fn from(
1141        err: ::aws_smithy_runtime_api::client::result::SdkError<
1142            crate::operation::generate_data_key_without_plaintext::GenerateDataKeyWithoutPlaintextError,
1143            R,
1144        >,
1145    ) -> Self {
1146        match err {
1147            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1148            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1149                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1150                source: err.into(),
1151            }),
1152        }
1153    }
1154}
1155impl From<crate::operation::generate_data_key_without_plaintext::GenerateDataKeyWithoutPlaintextError> for Error {
1156    fn from(err: crate::operation::generate_data_key_without_plaintext::GenerateDataKeyWithoutPlaintextError) -> Self {
1157        match err {
1158            crate::operation::generate_data_key_without_plaintext::GenerateDataKeyWithoutPlaintextError::DependencyTimeoutException(inner) => {
1159                Error::DependencyTimeoutException(inner)
1160            }
1161            crate::operation::generate_data_key_without_plaintext::GenerateDataKeyWithoutPlaintextError::DisabledException(inner) => {
1162                Error::DisabledException(inner)
1163            }
1164            crate::operation::generate_data_key_without_plaintext::GenerateDataKeyWithoutPlaintextError::DryRunOperationException(inner) => {
1165                Error::DryRunOperationException(inner)
1166            }
1167            crate::operation::generate_data_key_without_plaintext::GenerateDataKeyWithoutPlaintextError::InvalidGrantTokenException(inner) => {
1168                Error::InvalidGrantTokenException(inner)
1169            }
1170            crate::operation::generate_data_key_without_plaintext::GenerateDataKeyWithoutPlaintextError::InvalidKeyUsageException(inner) => {
1171                Error::InvalidKeyUsageException(inner)
1172            }
1173            crate::operation::generate_data_key_without_plaintext::GenerateDataKeyWithoutPlaintextError::KeyUnavailableException(inner) => {
1174                Error::KeyUnavailableException(inner)
1175            }
1176            crate::operation::generate_data_key_without_plaintext::GenerateDataKeyWithoutPlaintextError::KmsInternalException(inner) => {
1177                Error::KmsInternalException(inner)
1178            }
1179            crate::operation::generate_data_key_without_plaintext::GenerateDataKeyWithoutPlaintextError::KmsInvalidStateException(inner) => {
1180                Error::KmsInvalidStateException(inner)
1181            }
1182            crate::operation::generate_data_key_without_plaintext::GenerateDataKeyWithoutPlaintextError::NotFoundException(inner) => {
1183                Error::NotFoundException(inner)
1184            }
1185            crate::operation::generate_data_key_without_plaintext::GenerateDataKeyWithoutPlaintextError::Unhandled(inner) => Error::Unhandled(inner),
1186        }
1187    }
1188}
1189impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::generate_mac::GenerateMacError, R>> for Error
1190where
1191    R: Send + Sync + std::fmt::Debug + 'static,
1192{
1193    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::generate_mac::GenerateMacError, R>) -> Self {
1194        match err {
1195            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1196            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1197                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1198                source: err.into(),
1199            }),
1200        }
1201    }
1202}
1203impl From<crate::operation::generate_mac::GenerateMacError> for Error {
1204    fn from(err: crate::operation::generate_mac::GenerateMacError) -> Self {
1205        match err {
1206            crate::operation::generate_mac::GenerateMacError::DisabledException(inner) => Error::DisabledException(inner),
1207            crate::operation::generate_mac::GenerateMacError::DryRunOperationException(inner) => Error::DryRunOperationException(inner),
1208            crate::operation::generate_mac::GenerateMacError::InvalidGrantTokenException(inner) => Error::InvalidGrantTokenException(inner),
1209            crate::operation::generate_mac::GenerateMacError::InvalidKeyUsageException(inner) => Error::InvalidKeyUsageException(inner),
1210            crate::operation::generate_mac::GenerateMacError::KeyUnavailableException(inner) => Error::KeyUnavailableException(inner),
1211            crate::operation::generate_mac::GenerateMacError::KmsInternalException(inner) => Error::KmsInternalException(inner),
1212            crate::operation::generate_mac::GenerateMacError::KmsInvalidStateException(inner) => Error::KmsInvalidStateException(inner),
1213            crate::operation::generate_mac::GenerateMacError::NotFoundException(inner) => Error::NotFoundException(inner),
1214            crate::operation::generate_mac::GenerateMacError::Unhandled(inner) => Error::Unhandled(inner),
1215        }
1216    }
1217}
1218impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::generate_random::GenerateRandomError, R>> for Error
1219where
1220    R: Send + Sync + std::fmt::Debug + 'static,
1221{
1222    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::generate_random::GenerateRandomError, R>) -> Self {
1223        match err {
1224            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1225            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1226                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1227                source: err.into(),
1228            }),
1229        }
1230    }
1231}
1232impl From<crate::operation::generate_random::GenerateRandomError> for Error {
1233    fn from(err: crate::operation::generate_random::GenerateRandomError) -> Self {
1234        match err {
1235            crate::operation::generate_random::GenerateRandomError::CustomKeyStoreInvalidStateException(inner) => {
1236                Error::CustomKeyStoreInvalidStateException(inner)
1237            }
1238            crate::operation::generate_random::GenerateRandomError::CustomKeyStoreNotFoundException(inner) => {
1239                Error::CustomKeyStoreNotFoundException(inner)
1240            }
1241            crate::operation::generate_random::GenerateRandomError::DependencyTimeoutException(inner) => Error::DependencyTimeoutException(inner),
1242            crate::operation::generate_random::GenerateRandomError::KmsInternalException(inner) => Error::KmsInternalException(inner),
1243            crate::operation::generate_random::GenerateRandomError::UnsupportedOperationException(inner) => {
1244                Error::UnsupportedOperationException(inner)
1245            }
1246            crate::operation::generate_random::GenerateRandomError::Unhandled(inner) => Error::Unhandled(inner),
1247        }
1248    }
1249}
1250impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_key_last_usage::GetKeyLastUsageError, R>> for Error
1251where
1252    R: Send + Sync + std::fmt::Debug + 'static,
1253{
1254    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_key_last_usage::GetKeyLastUsageError, R>) -> Self {
1255        match err {
1256            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1257            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1258                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1259                source: err.into(),
1260            }),
1261        }
1262    }
1263}
1264impl From<crate::operation::get_key_last_usage::GetKeyLastUsageError> for Error {
1265    fn from(err: crate::operation::get_key_last_usage::GetKeyLastUsageError) -> Self {
1266        match err {
1267            crate::operation::get_key_last_usage::GetKeyLastUsageError::DependencyTimeoutException(inner) => Error::DependencyTimeoutException(inner),
1268            crate::operation::get_key_last_usage::GetKeyLastUsageError::InvalidArnException(inner) => Error::InvalidArnException(inner),
1269            crate::operation::get_key_last_usage::GetKeyLastUsageError::KmsInternalException(inner) => Error::KmsInternalException(inner),
1270            crate::operation::get_key_last_usage::GetKeyLastUsageError::NotFoundException(inner) => Error::NotFoundException(inner),
1271            crate::operation::get_key_last_usage::GetKeyLastUsageError::Unhandled(inner) => Error::Unhandled(inner),
1272        }
1273    }
1274}
1275impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_key_policy::GetKeyPolicyError, R>> for Error
1276where
1277    R: Send + Sync + std::fmt::Debug + 'static,
1278{
1279    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_key_policy::GetKeyPolicyError, R>) -> Self {
1280        match err {
1281            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1282            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1283                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1284                source: err.into(),
1285            }),
1286        }
1287    }
1288}
1289impl From<crate::operation::get_key_policy::GetKeyPolicyError> for Error {
1290    fn from(err: crate::operation::get_key_policy::GetKeyPolicyError) -> Self {
1291        match err {
1292            crate::operation::get_key_policy::GetKeyPolicyError::DependencyTimeoutException(inner) => Error::DependencyTimeoutException(inner),
1293            crate::operation::get_key_policy::GetKeyPolicyError::InvalidArnException(inner) => Error::InvalidArnException(inner),
1294            crate::operation::get_key_policy::GetKeyPolicyError::KmsInternalException(inner) => Error::KmsInternalException(inner),
1295            crate::operation::get_key_policy::GetKeyPolicyError::KmsInvalidStateException(inner) => Error::KmsInvalidStateException(inner),
1296            crate::operation::get_key_policy::GetKeyPolicyError::NotFoundException(inner) => Error::NotFoundException(inner),
1297            crate::operation::get_key_policy::GetKeyPolicyError::Unhandled(inner) => Error::Unhandled(inner),
1298        }
1299    }
1300}
1301impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_key_rotation_status::GetKeyRotationStatusError, R>> for Error
1302where
1303    R: Send + Sync + std::fmt::Debug + 'static,
1304{
1305    fn from(
1306        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_key_rotation_status::GetKeyRotationStatusError, R>,
1307    ) -> Self {
1308        match err {
1309            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1310            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1311                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1312                source: err.into(),
1313            }),
1314        }
1315    }
1316}
1317impl From<crate::operation::get_key_rotation_status::GetKeyRotationStatusError> for Error {
1318    fn from(err: crate::operation::get_key_rotation_status::GetKeyRotationStatusError) -> Self {
1319        match err {
1320            crate::operation::get_key_rotation_status::GetKeyRotationStatusError::DependencyTimeoutException(inner) => {
1321                Error::DependencyTimeoutException(inner)
1322            }
1323            crate::operation::get_key_rotation_status::GetKeyRotationStatusError::InvalidArnException(inner) => Error::InvalidArnException(inner),
1324            crate::operation::get_key_rotation_status::GetKeyRotationStatusError::KmsInternalException(inner) => Error::KmsInternalException(inner),
1325            crate::operation::get_key_rotation_status::GetKeyRotationStatusError::KmsInvalidStateException(inner) => {
1326                Error::KmsInvalidStateException(inner)
1327            }
1328            crate::operation::get_key_rotation_status::GetKeyRotationStatusError::NotFoundException(inner) => Error::NotFoundException(inner),
1329            crate::operation::get_key_rotation_status::GetKeyRotationStatusError::UnsupportedOperationException(inner) => {
1330                Error::UnsupportedOperationException(inner)
1331            }
1332            crate::operation::get_key_rotation_status::GetKeyRotationStatusError::Unhandled(inner) => Error::Unhandled(inner),
1333        }
1334    }
1335}
1336impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_parameters_for_import::GetParametersForImportError, R>>
1337    for Error
1338where
1339    R: Send + Sync + std::fmt::Debug + 'static,
1340{
1341    fn from(
1342        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_parameters_for_import::GetParametersForImportError, R>,
1343    ) -> Self {
1344        match err {
1345            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1346            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1347                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1348                source: err.into(),
1349            }),
1350        }
1351    }
1352}
1353impl From<crate::operation::get_parameters_for_import::GetParametersForImportError> for Error {
1354    fn from(err: crate::operation::get_parameters_for_import::GetParametersForImportError) -> Self {
1355        match err {
1356            crate::operation::get_parameters_for_import::GetParametersForImportError::DependencyTimeoutException(inner) => {
1357                Error::DependencyTimeoutException(inner)
1358            }
1359            crate::operation::get_parameters_for_import::GetParametersForImportError::InvalidArnException(inner) => Error::InvalidArnException(inner),
1360            crate::operation::get_parameters_for_import::GetParametersForImportError::KmsInternalException(inner) => {
1361                Error::KmsInternalException(inner)
1362            }
1363            crate::operation::get_parameters_for_import::GetParametersForImportError::KmsInvalidStateException(inner) => {
1364                Error::KmsInvalidStateException(inner)
1365            }
1366            crate::operation::get_parameters_for_import::GetParametersForImportError::NotFoundException(inner) => Error::NotFoundException(inner),
1367            crate::operation::get_parameters_for_import::GetParametersForImportError::UnsupportedOperationException(inner) => {
1368                Error::UnsupportedOperationException(inner)
1369            }
1370            crate::operation::get_parameters_for_import::GetParametersForImportError::Unhandled(inner) => Error::Unhandled(inner),
1371        }
1372    }
1373}
1374impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_public_key::GetPublicKeyError, R>> for Error
1375where
1376    R: Send + Sync + std::fmt::Debug + 'static,
1377{
1378    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_public_key::GetPublicKeyError, R>) -> Self {
1379        match err {
1380            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1381            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1382                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1383                source: err.into(),
1384            }),
1385        }
1386    }
1387}
1388impl From<crate::operation::get_public_key::GetPublicKeyError> for Error {
1389    fn from(err: crate::operation::get_public_key::GetPublicKeyError) -> Self {
1390        match err {
1391            crate::operation::get_public_key::GetPublicKeyError::DependencyTimeoutException(inner) => Error::DependencyTimeoutException(inner),
1392            crate::operation::get_public_key::GetPublicKeyError::DisabledException(inner) => Error::DisabledException(inner),
1393            crate::operation::get_public_key::GetPublicKeyError::InvalidArnException(inner) => Error::InvalidArnException(inner),
1394            crate::operation::get_public_key::GetPublicKeyError::InvalidGrantTokenException(inner) => Error::InvalidGrantTokenException(inner),
1395            crate::operation::get_public_key::GetPublicKeyError::InvalidKeyUsageException(inner) => Error::InvalidKeyUsageException(inner),
1396            crate::operation::get_public_key::GetPublicKeyError::KeyUnavailableException(inner) => Error::KeyUnavailableException(inner),
1397            crate::operation::get_public_key::GetPublicKeyError::KmsInternalException(inner) => Error::KmsInternalException(inner),
1398            crate::operation::get_public_key::GetPublicKeyError::KmsInvalidStateException(inner) => Error::KmsInvalidStateException(inner),
1399            crate::operation::get_public_key::GetPublicKeyError::NotFoundException(inner) => Error::NotFoundException(inner),
1400            crate::operation::get_public_key::GetPublicKeyError::UnsupportedOperationException(inner) => Error::UnsupportedOperationException(inner),
1401            crate::operation::get_public_key::GetPublicKeyError::Unhandled(inner) => Error::Unhandled(inner),
1402        }
1403    }
1404}
1405impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_key_material::ImportKeyMaterialError, R>> for Error
1406where
1407    R: Send + Sync + std::fmt::Debug + 'static,
1408{
1409    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_key_material::ImportKeyMaterialError, R>) -> Self {
1410        match err {
1411            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1412            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1413                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1414                source: err.into(),
1415            }),
1416        }
1417    }
1418}
1419impl From<crate::operation::import_key_material::ImportKeyMaterialError> for Error {
1420    fn from(err: crate::operation::import_key_material::ImportKeyMaterialError) -> Self {
1421        match err {
1422            crate::operation::import_key_material::ImportKeyMaterialError::DependencyTimeoutException(inner) => {
1423                Error::DependencyTimeoutException(inner)
1424            }
1425            crate::operation::import_key_material::ImportKeyMaterialError::ExpiredImportTokenException(inner) => {
1426                Error::ExpiredImportTokenException(inner)
1427            }
1428            crate::operation::import_key_material::ImportKeyMaterialError::IncorrectKeyMaterialException(inner) => {
1429                Error::IncorrectKeyMaterialException(inner)
1430            }
1431            crate::operation::import_key_material::ImportKeyMaterialError::InvalidArnException(inner) => Error::InvalidArnException(inner),
1432            crate::operation::import_key_material::ImportKeyMaterialError::InvalidCiphertextException(inner) => {
1433                Error::InvalidCiphertextException(inner)
1434            }
1435            crate::operation::import_key_material::ImportKeyMaterialError::InvalidImportTokenException(inner) => {
1436                Error::InvalidImportTokenException(inner)
1437            }
1438            crate::operation::import_key_material::ImportKeyMaterialError::KmsInternalException(inner) => Error::KmsInternalException(inner),
1439            crate::operation::import_key_material::ImportKeyMaterialError::KmsInvalidStateException(inner) => Error::KmsInvalidStateException(inner),
1440            crate::operation::import_key_material::ImportKeyMaterialError::NotFoundException(inner) => Error::NotFoundException(inner),
1441            crate::operation::import_key_material::ImportKeyMaterialError::UnsupportedOperationException(inner) => {
1442                Error::UnsupportedOperationException(inner)
1443            }
1444            crate::operation::import_key_material::ImportKeyMaterialError::Unhandled(inner) => Error::Unhandled(inner),
1445        }
1446    }
1447}
1448impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_aliases::ListAliasesError, R>> for Error
1449where
1450    R: Send + Sync + std::fmt::Debug + 'static,
1451{
1452    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_aliases::ListAliasesError, R>) -> Self {
1453        match err {
1454            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1455            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1456                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1457                source: err.into(),
1458            }),
1459        }
1460    }
1461}
1462impl From<crate::operation::list_aliases::ListAliasesError> for Error {
1463    fn from(err: crate::operation::list_aliases::ListAliasesError) -> Self {
1464        match err {
1465            crate::operation::list_aliases::ListAliasesError::DependencyTimeoutException(inner) => Error::DependencyTimeoutException(inner),
1466            crate::operation::list_aliases::ListAliasesError::InvalidArnException(inner) => Error::InvalidArnException(inner),
1467            crate::operation::list_aliases::ListAliasesError::InvalidMarkerException(inner) => Error::InvalidMarkerException(inner),
1468            crate::operation::list_aliases::ListAliasesError::KmsInternalException(inner) => Error::KmsInternalException(inner),
1469            crate::operation::list_aliases::ListAliasesError::NotFoundException(inner) => Error::NotFoundException(inner),
1470            crate::operation::list_aliases::ListAliasesError::Unhandled(inner) => Error::Unhandled(inner),
1471        }
1472    }
1473}
1474impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_grants::ListGrantsError, R>> for Error
1475where
1476    R: Send + Sync + std::fmt::Debug + 'static,
1477{
1478    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_grants::ListGrantsError, R>) -> Self {
1479        match err {
1480            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1481            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1482                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1483                source: err.into(),
1484            }),
1485        }
1486    }
1487}
1488impl From<crate::operation::list_grants::ListGrantsError> for Error {
1489    fn from(err: crate::operation::list_grants::ListGrantsError) -> Self {
1490        match err {
1491            crate::operation::list_grants::ListGrantsError::DependencyTimeoutException(inner) => Error::DependencyTimeoutException(inner),
1492            crate::operation::list_grants::ListGrantsError::InvalidArnException(inner) => Error::InvalidArnException(inner),
1493            crate::operation::list_grants::ListGrantsError::InvalidGrantIdException(inner) => Error::InvalidGrantIdException(inner),
1494            crate::operation::list_grants::ListGrantsError::InvalidMarkerException(inner) => Error::InvalidMarkerException(inner),
1495            crate::operation::list_grants::ListGrantsError::KmsInternalException(inner) => Error::KmsInternalException(inner),
1496            crate::operation::list_grants::ListGrantsError::KmsInvalidStateException(inner) => Error::KmsInvalidStateException(inner),
1497            crate::operation::list_grants::ListGrantsError::NotFoundException(inner) => Error::NotFoundException(inner),
1498            crate::operation::list_grants::ListGrantsError::Unhandled(inner) => Error::Unhandled(inner),
1499        }
1500    }
1501}
1502impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_key_policies::ListKeyPoliciesError, R>> for Error
1503where
1504    R: Send + Sync + std::fmt::Debug + 'static,
1505{
1506    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_key_policies::ListKeyPoliciesError, R>) -> Self {
1507        match err {
1508            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1509            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1510                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1511                source: err.into(),
1512            }),
1513        }
1514    }
1515}
1516impl From<crate::operation::list_key_policies::ListKeyPoliciesError> for Error {
1517    fn from(err: crate::operation::list_key_policies::ListKeyPoliciesError) -> Self {
1518        match err {
1519            crate::operation::list_key_policies::ListKeyPoliciesError::DependencyTimeoutException(inner) => Error::DependencyTimeoutException(inner),
1520            crate::operation::list_key_policies::ListKeyPoliciesError::InvalidArnException(inner) => Error::InvalidArnException(inner),
1521            crate::operation::list_key_policies::ListKeyPoliciesError::KmsInternalException(inner) => Error::KmsInternalException(inner),
1522            crate::operation::list_key_policies::ListKeyPoliciesError::KmsInvalidStateException(inner) => Error::KmsInvalidStateException(inner),
1523            crate::operation::list_key_policies::ListKeyPoliciesError::NotFoundException(inner) => Error::NotFoundException(inner),
1524            crate::operation::list_key_policies::ListKeyPoliciesError::Unhandled(inner) => Error::Unhandled(inner),
1525        }
1526    }
1527}
1528impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_key_rotations::ListKeyRotationsError, R>> for Error
1529where
1530    R: Send + Sync + std::fmt::Debug + 'static,
1531{
1532    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_key_rotations::ListKeyRotationsError, R>) -> Self {
1533        match err {
1534            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1535            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1536                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1537                source: err.into(),
1538            }),
1539        }
1540    }
1541}
1542impl From<crate::operation::list_key_rotations::ListKeyRotationsError> for Error {
1543    fn from(err: crate::operation::list_key_rotations::ListKeyRotationsError) -> Self {
1544        match err {
1545            crate::operation::list_key_rotations::ListKeyRotationsError::InvalidArnException(inner) => Error::InvalidArnException(inner),
1546            crate::operation::list_key_rotations::ListKeyRotationsError::InvalidMarkerException(inner) => Error::InvalidMarkerException(inner),
1547            crate::operation::list_key_rotations::ListKeyRotationsError::KmsInternalException(inner) => Error::KmsInternalException(inner),
1548            crate::operation::list_key_rotations::ListKeyRotationsError::KmsInvalidStateException(inner) => Error::KmsInvalidStateException(inner),
1549            crate::operation::list_key_rotations::ListKeyRotationsError::NotFoundException(inner) => Error::NotFoundException(inner),
1550            crate::operation::list_key_rotations::ListKeyRotationsError::UnsupportedOperationException(inner) => {
1551                Error::UnsupportedOperationException(inner)
1552            }
1553            crate::operation::list_key_rotations::ListKeyRotationsError::Unhandled(inner) => Error::Unhandled(inner),
1554        }
1555    }
1556}
1557impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_keys::ListKeysError, R>> for Error
1558where
1559    R: Send + Sync + std::fmt::Debug + 'static,
1560{
1561    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_keys::ListKeysError, R>) -> Self {
1562        match err {
1563            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1564            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1565                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1566                source: err.into(),
1567            }),
1568        }
1569    }
1570}
1571impl From<crate::operation::list_keys::ListKeysError> for Error {
1572    fn from(err: crate::operation::list_keys::ListKeysError) -> Self {
1573        match err {
1574            crate::operation::list_keys::ListKeysError::DependencyTimeoutException(inner) => Error::DependencyTimeoutException(inner),
1575            crate::operation::list_keys::ListKeysError::InvalidMarkerException(inner) => Error::InvalidMarkerException(inner),
1576            crate::operation::list_keys::ListKeysError::KmsInternalException(inner) => Error::KmsInternalException(inner),
1577            crate::operation::list_keys::ListKeysError::Unhandled(inner) => Error::Unhandled(inner),
1578        }
1579    }
1580}
1581impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_resource_tags::ListResourceTagsError, R>> for Error
1582where
1583    R: Send + Sync + std::fmt::Debug + 'static,
1584{
1585    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_resource_tags::ListResourceTagsError, R>) -> Self {
1586        match err {
1587            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1588            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1589                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1590                source: err.into(),
1591            }),
1592        }
1593    }
1594}
1595impl From<crate::operation::list_resource_tags::ListResourceTagsError> for Error {
1596    fn from(err: crate::operation::list_resource_tags::ListResourceTagsError) -> Self {
1597        match err {
1598            crate::operation::list_resource_tags::ListResourceTagsError::InvalidArnException(inner) => Error::InvalidArnException(inner),
1599            crate::operation::list_resource_tags::ListResourceTagsError::InvalidMarkerException(inner) => Error::InvalidMarkerException(inner),
1600            crate::operation::list_resource_tags::ListResourceTagsError::KmsInternalException(inner) => Error::KmsInternalException(inner),
1601            crate::operation::list_resource_tags::ListResourceTagsError::NotFoundException(inner) => Error::NotFoundException(inner),
1602            crate::operation::list_resource_tags::ListResourceTagsError::Unhandled(inner) => Error::Unhandled(inner),
1603        }
1604    }
1605}
1606impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_retirable_grants::ListRetirableGrantsError, R>> for Error
1607where
1608    R: Send + Sync + std::fmt::Debug + 'static,
1609{
1610    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_retirable_grants::ListRetirableGrantsError, R>) -> Self {
1611        match err {
1612            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1613            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1614                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1615                source: err.into(),
1616            }),
1617        }
1618    }
1619}
1620impl From<crate::operation::list_retirable_grants::ListRetirableGrantsError> for Error {
1621    fn from(err: crate::operation::list_retirable_grants::ListRetirableGrantsError) -> Self {
1622        match err {
1623            crate::operation::list_retirable_grants::ListRetirableGrantsError::DependencyTimeoutException(inner) => {
1624                Error::DependencyTimeoutException(inner)
1625            }
1626            crate::operation::list_retirable_grants::ListRetirableGrantsError::InvalidArnException(inner) => Error::InvalidArnException(inner),
1627            crate::operation::list_retirable_grants::ListRetirableGrantsError::InvalidMarkerException(inner) => Error::InvalidMarkerException(inner),
1628            crate::operation::list_retirable_grants::ListRetirableGrantsError::KmsInternalException(inner) => Error::KmsInternalException(inner),
1629            crate::operation::list_retirable_grants::ListRetirableGrantsError::NotFoundException(inner) => Error::NotFoundException(inner),
1630            crate::operation::list_retirable_grants::ListRetirableGrantsError::Unhandled(inner) => Error::Unhandled(inner),
1631        }
1632    }
1633}
1634impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_key_policy::PutKeyPolicyError, R>> for Error
1635where
1636    R: Send + Sync + std::fmt::Debug + 'static,
1637{
1638    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_key_policy::PutKeyPolicyError, R>) -> Self {
1639        match err {
1640            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1641            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1642                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1643                source: err.into(),
1644            }),
1645        }
1646    }
1647}
1648impl From<crate::operation::put_key_policy::PutKeyPolicyError> for Error {
1649    fn from(err: crate::operation::put_key_policy::PutKeyPolicyError) -> Self {
1650        match err {
1651            crate::operation::put_key_policy::PutKeyPolicyError::DependencyTimeoutException(inner) => Error::DependencyTimeoutException(inner),
1652            crate::operation::put_key_policy::PutKeyPolicyError::InvalidArnException(inner) => Error::InvalidArnException(inner),
1653            crate::operation::put_key_policy::PutKeyPolicyError::KmsInternalException(inner) => Error::KmsInternalException(inner),
1654            crate::operation::put_key_policy::PutKeyPolicyError::KmsInvalidStateException(inner) => Error::KmsInvalidStateException(inner),
1655            crate::operation::put_key_policy::PutKeyPolicyError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1656            crate::operation::put_key_policy::PutKeyPolicyError::MalformedPolicyDocumentException(inner) => {
1657                Error::MalformedPolicyDocumentException(inner)
1658            }
1659            crate::operation::put_key_policy::PutKeyPolicyError::NotFoundException(inner) => Error::NotFoundException(inner),
1660            crate::operation::put_key_policy::PutKeyPolicyError::UnsupportedOperationException(inner) => Error::UnsupportedOperationException(inner),
1661            crate::operation::put_key_policy::PutKeyPolicyError::Unhandled(inner) => Error::Unhandled(inner),
1662        }
1663    }
1664}
1665impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::re_encrypt::ReEncryptError, R>> for Error
1666where
1667    R: Send + Sync + std::fmt::Debug + 'static,
1668{
1669    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::re_encrypt::ReEncryptError, R>) -> Self {
1670        match err {
1671            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1672            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1673                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1674                source: err.into(),
1675            }),
1676        }
1677    }
1678}
1679impl From<crate::operation::re_encrypt::ReEncryptError> for Error {
1680    fn from(err: crate::operation::re_encrypt::ReEncryptError) -> Self {
1681        match err {
1682            crate::operation::re_encrypt::ReEncryptError::DependencyTimeoutException(inner) => Error::DependencyTimeoutException(inner),
1683            crate::operation::re_encrypt::ReEncryptError::DisabledException(inner) => Error::DisabledException(inner),
1684            crate::operation::re_encrypt::ReEncryptError::DryRunOperationException(inner) => Error::DryRunOperationException(inner),
1685            crate::operation::re_encrypt::ReEncryptError::IncorrectKeyException(inner) => Error::IncorrectKeyException(inner),
1686            crate::operation::re_encrypt::ReEncryptError::InvalidCiphertextException(inner) => Error::InvalidCiphertextException(inner),
1687            crate::operation::re_encrypt::ReEncryptError::InvalidGrantTokenException(inner) => Error::InvalidGrantTokenException(inner),
1688            crate::operation::re_encrypt::ReEncryptError::InvalidKeyUsageException(inner) => Error::InvalidKeyUsageException(inner),
1689            crate::operation::re_encrypt::ReEncryptError::KeyUnavailableException(inner) => Error::KeyUnavailableException(inner),
1690            crate::operation::re_encrypt::ReEncryptError::KmsInternalException(inner) => Error::KmsInternalException(inner),
1691            crate::operation::re_encrypt::ReEncryptError::KmsInvalidStateException(inner) => Error::KmsInvalidStateException(inner),
1692            crate::operation::re_encrypt::ReEncryptError::NotFoundException(inner) => Error::NotFoundException(inner),
1693            crate::operation::re_encrypt::ReEncryptError::Unhandled(inner) => Error::Unhandled(inner),
1694        }
1695    }
1696}
1697impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replicate_key::ReplicateKeyError, R>> for Error
1698where
1699    R: Send + Sync + std::fmt::Debug + 'static,
1700{
1701    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replicate_key::ReplicateKeyError, R>) -> Self {
1702        match err {
1703            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1704            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1705                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1706                source: err.into(),
1707            }),
1708        }
1709    }
1710}
1711impl From<crate::operation::replicate_key::ReplicateKeyError> for Error {
1712    fn from(err: crate::operation::replicate_key::ReplicateKeyError) -> Self {
1713        match err {
1714            crate::operation::replicate_key::ReplicateKeyError::AlreadyExistsException(inner) => Error::AlreadyExistsException(inner),
1715            crate::operation::replicate_key::ReplicateKeyError::DisabledException(inner) => Error::DisabledException(inner),
1716            crate::operation::replicate_key::ReplicateKeyError::InvalidArnException(inner) => Error::InvalidArnException(inner),
1717            crate::operation::replicate_key::ReplicateKeyError::KmsInternalException(inner) => Error::KmsInternalException(inner),
1718            crate::operation::replicate_key::ReplicateKeyError::KmsInvalidStateException(inner) => Error::KmsInvalidStateException(inner),
1719            crate::operation::replicate_key::ReplicateKeyError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1720            crate::operation::replicate_key::ReplicateKeyError::MalformedPolicyDocumentException(inner) => {
1721                Error::MalformedPolicyDocumentException(inner)
1722            }
1723            crate::operation::replicate_key::ReplicateKeyError::NotFoundException(inner) => Error::NotFoundException(inner),
1724            crate::operation::replicate_key::ReplicateKeyError::TagException(inner) => Error::TagException(inner),
1725            crate::operation::replicate_key::ReplicateKeyError::UnsupportedOperationException(inner) => Error::UnsupportedOperationException(inner),
1726            crate::operation::replicate_key::ReplicateKeyError::Unhandled(inner) => Error::Unhandled(inner),
1727        }
1728    }
1729}
1730impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::retire_grant::RetireGrantError, R>> for Error
1731where
1732    R: Send + Sync + std::fmt::Debug + 'static,
1733{
1734    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::retire_grant::RetireGrantError, R>) -> Self {
1735        match err {
1736            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1737            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1738                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1739                source: err.into(),
1740            }),
1741        }
1742    }
1743}
1744impl From<crate::operation::retire_grant::RetireGrantError> for Error {
1745    fn from(err: crate::operation::retire_grant::RetireGrantError) -> Self {
1746        match err {
1747            crate::operation::retire_grant::RetireGrantError::DependencyTimeoutException(inner) => Error::DependencyTimeoutException(inner),
1748            crate::operation::retire_grant::RetireGrantError::DryRunOperationException(inner) => Error::DryRunOperationException(inner),
1749            crate::operation::retire_grant::RetireGrantError::InvalidArnException(inner) => Error::InvalidArnException(inner),
1750            crate::operation::retire_grant::RetireGrantError::InvalidGrantIdException(inner) => Error::InvalidGrantIdException(inner),
1751            crate::operation::retire_grant::RetireGrantError::InvalidGrantTokenException(inner) => Error::InvalidGrantTokenException(inner),
1752            crate::operation::retire_grant::RetireGrantError::KmsInternalException(inner) => Error::KmsInternalException(inner),
1753            crate::operation::retire_grant::RetireGrantError::KmsInvalidStateException(inner) => Error::KmsInvalidStateException(inner),
1754            crate::operation::retire_grant::RetireGrantError::NotFoundException(inner) => Error::NotFoundException(inner),
1755            crate::operation::retire_grant::RetireGrantError::Unhandled(inner) => Error::Unhandled(inner),
1756        }
1757    }
1758}
1759impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::revoke_grant::RevokeGrantError, R>> for Error
1760where
1761    R: Send + Sync + std::fmt::Debug + 'static,
1762{
1763    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::revoke_grant::RevokeGrantError, R>) -> Self {
1764        match err {
1765            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1766            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1767                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1768                source: err.into(),
1769            }),
1770        }
1771    }
1772}
1773impl From<crate::operation::revoke_grant::RevokeGrantError> for Error {
1774    fn from(err: crate::operation::revoke_grant::RevokeGrantError) -> Self {
1775        match err {
1776            crate::operation::revoke_grant::RevokeGrantError::DependencyTimeoutException(inner) => Error::DependencyTimeoutException(inner),
1777            crate::operation::revoke_grant::RevokeGrantError::DryRunOperationException(inner) => Error::DryRunOperationException(inner),
1778            crate::operation::revoke_grant::RevokeGrantError::InvalidArnException(inner) => Error::InvalidArnException(inner),
1779            crate::operation::revoke_grant::RevokeGrantError::InvalidGrantIdException(inner) => Error::InvalidGrantIdException(inner),
1780            crate::operation::revoke_grant::RevokeGrantError::KmsInternalException(inner) => Error::KmsInternalException(inner),
1781            crate::operation::revoke_grant::RevokeGrantError::KmsInvalidStateException(inner) => Error::KmsInvalidStateException(inner),
1782            crate::operation::revoke_grant::RevokeGrantError::NotFoundException(inner) => Error::NotFoundException(inner),
1783            crate::operation::revoke_grant::RevokeGrantError::Unhandled(inner) => Error::Unhandled(inner),
1784        }
1785    }
1786}
1787impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::rotate_key_on_demand::RotateKeyOnDemandError, R>> for Error
1788where
1789    R: Send + Sync + std::fmt::Debug + 'static,
1790{
1791    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::rotate_key_on_demand::RotateKeyOnDemandError, R>) -> Self {
1792        match err {
1793            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1794            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1795                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1796                source: err.into(),
1797            }),
1798        }
1799    }
1800}
1801impl From<crate::operation::rotate_key_on_demand::RotateKeyOnDemandError> for Error {
1802    fn from(err: crate::operation::rotate_key_on_demand::RotateKeyOnDemandError) -> Self {
1803        match err {
1804            crate::operation::rotate_key_on_demand::RotateKeyOnDemandError::ConflictException(inner) => Error::ConflictException(inner),
1805            crate::operation::rotate_key_on_demand::RotateKeyOnDemandError::DependencyTimeoutException(inner) => {
1806                Error::DependencyTimeoutException(inner)
1807            }
1808            crate::operation::rotate_key_on_demand::RotateKeyOnDemandError::DisabledException(inner) => Error::DisabledException(inner),
1809            crate::operation::rotate_key_on_demand::RotateKeyOnDemandError::InvalidArnException(inner) => Error::InvalidArnException(inner),
1810            crate::operation::rotate_key_on_demand::RotateKeyOnDemandError::KmsInternalException(inner) => Error::KmsInternalException(inner),
1811            crate::operation::rotate_key_on_demand::RotateKeyOnDemandError::KmsInvalidStateException(inner) => Error::KmsInvalidStateException(inner),
1812            crate::operation::rotate_key_on_demand::RotateKeyOnDemandError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1813            crate::operation::rotate_key_on_demand::RotateKeyOnDemandError::NotFoundException(inner) => Error::NotFoundException(inner),
1814            crate::operation::rotate_key_on_demand::RotateKeyOnDemandError::UnsupportedOperationException(inner) => {
1815                Error::UnsupportedOperationException(inner)
1816            }
1817            crate::operation::rotate_key_on_demand::RotateKeyOnDemandError::Unhandled(inner) => Error::Unhandled(inner),
1818        }
1819    }
1820}
1821impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::schedule_key_deletion::ScheduleKeyDeletionError, R>> for Error
1822where
1823    R: Send + Sync + std::fmt::Debug + 'static,
1824{
1825    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::schedule_key_deletion::ScheduleKeyDeletionError, R>) -> Self {
1826        match err {
1827            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1828            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1829                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1830                source: err.into(),
1831            }),
1832        }
1833    }
1834}
1835impl From<crate::operation::schedule_key_deletion::ScheduleKeyDeletionError> for Error {
1836    fn from(err: crate::operation::schedule_key_deletion::ScheduleKeyDeletionError) -> Self {
1837        match err {
1838            crate::operation::schedule_key_deletion::ScheduleKeyDeletionError::DependencyTimeoutException(inner) => {
1839                Error::DependencyTimeoutException(inner)
1840            }
1841            crate::operation::schedule_key_deletion::ScheduleKeyDeletionError::InvalidArnException(inner) => Error::InvalidArnException(inner),
1842            crate::operation::schedule_key_deletion::ScheduleKeyDeletionError::KmsInternalException(inner) => Error::KmsInternalException(inner),
1843            crate::operation::schedule_key_deletion::ScheduleKeyDeletionError::KmsInvalidStateException(inner) => {
1844                Error::KmsInvalidStateException(inner)
1845            }
1846            crate::operation::schedule_key_deletion::ScheduleKeyDeletionError::NotFoundException(inner) => Error::NotFoundException(inner),
1847            crate::operation::schedule_key_deletion::ScheduleKeyDeletionError::Unhandled(inner) => Error::Unhandled(inner),
1848        }
1849    }
1850}
1851impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::sign::SignError, R>> for Error
1852where
1853    R: Send + Sync + std::fmt::Debug + 'static,
1854{
1855    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::sign::SignError, R>) -> Self {
1856        match err {
1857            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1858            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1859                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1860                source: err.into(),
1861            }),
1862        }
1863    }
1864}
1865impl From<crate::operation::sign::SignError> for Error {
1866    fn from(err: crate::operation::sign::SignError) -> Self {
1867        match err {
1868            crate::operation::sign::SignError::DependencyTimeoutException(inner) => Error::DependencyTimeoutException(inner),
1869            crate::operation::sign::SignError::DisabledException(inner) => Error::DisabledException(inner),
1870            crate::operation::sign::SignError::DryRunOperationException(inner) => Error::DryRunOperationException(inner),
1871            crate::operation::sign::SignError::InvalidGrantTokenException(inner) => Error::InvalidGrantTokenException(inner),
1872            crate::operation::sign::SignError::InvalidKeyUsageException(inner) => Error::InvalidKeyUsageException(inner),
1873            crate::operation::sign::SignError::KeyUnavailableException(inner) => Error::KeyUnavailableException(inner),
1874            crate::operation::sign::SignError::KmsInternalException(inner) => Error::KmsInternalException(inner),
1875            crate::operation::sign::SignError::KmsInvalidStateException(inner) => Error::KmsInvalidStateException(inner),
1876            crate::operation::sign::SignError::NotFoundException(inner) => Error::NotFoundException(inner),
1877            crate::operation::sign::SignError::Unhandled(inner) => Error::Unhandled(inner),
1878        }
1879    }
1880}
1881impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
1882where
1883    R: Send + Sync + std::fmt::Debug + 'static,
1884{
1885    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
1886        match err {
1887            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1888            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1889                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1890                source: err.into(),
1891            }),
1892        }
1893    }
1894}
1895impl From<crate::operation::tag_resource::TagResourceError> for Error {
1896    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
1897        match err {
1898            crate::operation::tag_resource::TagResourceError::InvalidArnException(inner) => Error::InvalidArnException(inner),
1899            crate::operation::tag_resource::TagResourceError::KmsInternalException(inner) => Error::KmsInternalException(inner),
1900            crate::operation::tag_resource::TagResourceError::KmsInvalidStateException(inner) => Error::KmsInvalidStateException(inner),
1901            crate::operation::tag_resource::TagResourceError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1902            crate::operation::tag_resource::TagResourceError::NotFoundException(inner) => Error::NotFoundException(inner),
1903            crate::operation::tag_resource::TagResourceError::TagException(inner) => Error::TagException(inner),
1904            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1905        }
1906    }
1907}
1908impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
1909where
1910    R: Send + Sync + std::fmt::Debug + 'static,
1911{
1912    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
1913        match err {
1914            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1915            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1916                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1917                source: err.into(),
1918            }),
1919        }
1920    }
1921}
1922impl From<crate::operation::untag_resource::UntagResourceError> for Error {
1923    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
1924        match err {
1925            crate::operation::untag_resource::UntagResourceError::InvalidArnException(inner) => Error::InvalidArnException(inner),
1926            crate::operation::untag_resource::UntagResourceError::KmsInternalException(inner) => Error::KmsInternalException(inner),
1927            crate::operation::untag_resource::UntagResourceError::KmsInvalidStateException(inner) => Error::KmsInvalidStateException(inner),
1928            crate::operation::untag_resource::UntagResourceError::NotFoundException(inner) => Error::NotFoundException(inner),
1929            crate::operation::untag_resource::UntagResourceError::TagException(inner) => Error::TagException(inner),
1930            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1931        }
1932    }
1933}
1934impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_alias::UpdateAliasError, R>> for Error
1935where
1936    R: Send + Sync + std::fmt::Debug + 'static,
1937{
1938    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_alias::UpdateAliasError, R>) -> Self {
1939        match err {
1940            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1941            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1942                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1943                source: err.into(),
1944            }),
1945        }
1946    }
1947}
1948impl From<crate::operation::update_alias::UpdateAliasError> for Error {
1949    fn from(err: crate::operation::update_alias::UpdateAliasError) -> Self {
1950        match err {
1951            crate::operation::update_alias::UpdateAliasError::DependencyTimeoutException(inner) => Error::DependencyTimeoutException(inner),
1952            crate::operation::update_alias::UpdateAliasError::KmsInternalException(inner) => Error::KmsInternalException(inner),
1953            crate::operation::update_alias::UpdateAliasError::KmsInvalidStateException(inner) => Error::KmsInvalidStateException(inner),
1954            crate::operation::update_alias::UpdateAliasError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1955            crate::operation::update_alias::UpdateAliasError::NotFoundException(inner) => Error::NotFoundException(inner),
1956            crate::operation::update_alias::UpdateAliasError::Unhandled(inner) => Error::Unhandled(inner),
1957        }
1958    }
1959}
1960impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_custom_key_store::UpdateCustomKeyStoreError, R>> for Error
1961where
1962    R: Send + Sync + std::fmt::Debug + 'static,
1963{
1964    fn from(
1965        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_custom_key_store::UpdateCustomKeyStoreError, R>,
1966    ) -> Self {
1967        match err {
1968            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1969            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1970                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1971                source: err.into(),
1972            }),
1973        }
1974    }
1975}
1976impl From<crate::operation::update_custom_key_store::UpdateCustomKeyStoreError> for Error {
1977    fn from(err: crate::operation::update_custom_key_store::UpdateCustomKeyStoreError) -> Self {
1978        match err {
1979            crate::operation::update_custom_key_store::UpdateCustomKeyStoreError::CloudHsmClusterInvalidConfigurationException(inner) => {
1980                Error::CloudHsmClusterInvalidConfigurationException(inner)
1981            }
1982            crate::operation::update_custom_key_store::UpdateCustomKeyStoreError::CloudHsmClusterNotActiveException(inner) => {
1983                Error::CloudHsmClusterNotActiveException(inner)
1984            }
1985            crate::operation::update_custom_key_store::UpdateCustomKeyStoreError::CloudHsmClusterNotFoundException(inner) => {
1986                Error::CloudHsmClusterNotFoundException(inner)
1987            }
1988            crate::operation::update_custom_key_store::UpdateCustomKeyStoreError::CloudHsmClusterNotRelatedException(inner) => {
1989                Error::CloudHsmClusterNotRelatedException(inner)
1990            }
1991            crate::operation::update_custom_key_store::UpdateCustomKeyStoreError::CustomKeyStoreInvalidStateException(inner) => {
1992                Error::CustomKeyStoreInvalidStateException(inner)
1993            }
1994            crate::operation::update_custom_key_store::UpdateCustomKeyStoreError::CustomKeyStoreNameInUseException(inner) => {
1995                Error::CustomKeyStoreNameInUseException(inner)
1996            }
1997            crate::operation::update_custom_key_store::UpdateCustomKeyStoreError::CustomKeyStoreNotFoundException(inner) => {
1998                Error::CustomKeyStoreNotFoundException(inner)
1999            }
2000            crate::operation::update_custom_key_store::UpdateCustomKeyStoreError::KmsInternalException(inner) => Error::KmsInternalException(inner),
2001            crate::operation::update_custom_key_store::UpdateCustomKeyStoreError::XksProxyIncorrectAuthenticationCredentialException(inner) => {
2002                Error::XksProxyIncorrectAuthenticationCredentialException(inner)
2003            }
2004            crate::operation::update_custom_key_store::UpdateCustomKeyStoreError::XksProxyInvalidConfigurationException(inner) => {
2005                Error::XksProxyInvalidConfigurationException(inner)
2006            }
2007            crate::operation::update_custom_key_store::UpdateCustomKeyStoreError::XksProxyInvalidResponseException(inner) => {
2008                Error::XksProxyInvalidResponseException(inner)
2009            }
2010            crate::operation::update_custom_key_store::UpdateCustomKeyStoreError::XksProxyUriEndpointInUseException(inner) => {
2011                Error::XksProxyUriEndpointInUseException(inner)
2012            }
2013            crate::operation::update_custom_key_store::UpdateCustomKeyStoreError::XksProxyUriInUseException(inner) => {
2014                Error::XksProxyUriInUseException(inner)
2015            }
2016            crate::operation::update_custom_key_store::UpdateCustomKeyStoreError::XksProxyUriUnreachableException(inner) => {
2017                Error::XksProxyUriUnreachableException(inner)
2018            }
2019            crate::operation::update_custom_key_store::UpdateCustomKeyStoreError::XksProxyVpcEndpointServiceInUseException(inner) => {
2020                Error::XksProxyVpcEndpointServiceInUseException(inner)
2021            }
2022            crate::operation::update_custom_key_store::UpdateCustomKeyStoreError::XksProxyVpcEndpointServiceInvalidConfigurationException(inner) => {
2023                Error::XksProxyVpcEndpointServiceInvalidConfigurationException(inner)
2024            }
2025            crate::operation::update_custom_key_store::UpdateCustomKeyStoreError::XksProxyVpcEndpointServiceNotFoundException(inner) => {
2026                Error::XksProxyVpcEndpointServiceNotFoundException(inner)
2027            }
2028            crate::operation::update_custom_key_store::UpdateCustomKeyStoreError::Unhandled(inner) => Error::Unhandled(inner),
2029        }
2030    }
2031}
2032impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_key_description::UpdateKeyDescriptionError, R>> for Error
2033where
2034    R: Send + Sync + std::fmt::Debug + 'static,
2035{
2036    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_key_description::UpdateKeyDescriptionError, R>) -> Self {
2037        match err {
2038            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2039            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2040                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2041                source: err.into(),
2042            }),
2043        }
2044    }
2045}
2046impl From<crate::operation::update_key_description::UpdateKeyDescriptionError> for Error {
2047    fn from(err: crate::operation::update_key_description::UpdateKeyDescriptionError) -> Self {
2048        match err {
2049            crate::operation::update_key_description::UpdateKeyDescriptionError::DependencyTimeoutException(inner) => {
2050                Error::DependencyTimeoutException(inner)
2051            }
2052            crate::operation::update_key_description::UpdateKeyDescriptionError::InvalidArnException(inner) => Error::InvalidArnException(inner),
2053            crate::operation::update_key_description::UpdateKeyDescriptionError::KmsInternalException(inner) => Error::KmsInternalException(inner),
2054            crate::operation::update_key_description::UpdateKeyDescriptionError::KmsInvalidStateException(inner) => {
2055                Error::KmsInvalidStateException(inner)
2056            }
2057            crate::operation::update_key_description::UpdateKeyDescriptionError::NotFoundException(inner) => Error::NotFoundException(inner),
2058            crate::operation::update_key_description::UpdateKeyDescriptionError::Unhandled(inner) => Error::Unhandled(inner),
2059        }
2060    }
2061}
2062impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_primary_region::UpdatePrimaryRegionError, R>> for Error
2063where
2064    R: Send + Sync + std::fmt::Debug + 'static,
2065{
2066    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_primary_region::UpdatePrimaryRegionError, R>) -> Self {
2067        match err {
2068            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2069            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2070                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2071                source: err.into(),
2072            }),
2073        }
2074    }
2075}
2076impl From<crate::operation::update_primary_region::UpdatePrimaryRegionError> for Error {
2077    fn from(err: crate::operation::update_primary_region::UpdatePrimaryRegionError) -> Self {
2078        match err {
2079            crate::operation::update_primary_region::UpdatePrimaryRegionError::DisabledException(inner) => Error::DisabledException(inner),
2080            crate::operation::update_primary_region::UpdatePrimaryRegionError::InvalidArnException(inner) => Error::InvalidArnException(inner),
2081            crate::operation::update_primary_region::UpdatePrimaryRegionError::KmsInternalException(inner) => Error::KmsInternalException(inner),
2082            crate::operation::update_primary_region::UpdatePrimaryRegionError::KmsInvalidStateException(inner) => {
2083                Error::KmsInvalidStateException(inner)
2084            }
2085            crate::operation::update_primary_region::UpdatePrimaryRegionError::NotFoundException(inner) => Error::NotFoundException(inner),
2086            crate::operation::update_primary_region::UpdatePrimaryRegionError::UnsupportedOperationException(inner) => {
2087                Error::UnsupportedOperationException(inner)
2088            }
2089            crate::operation::update_primary_region::UpdatePrimaryRegionError::Unhandled(inner) => Error::Unhandled(inner),
2090        }
2091    }
2092}
2093impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::verify::VerifyError, R>> for Error
2094where
2095    R: Send + Sync + std::fmt::Debug + 'static,
2096{
2097    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::verify::VerifyError, R>) -> Self {
2098        match err {
2099            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2100            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2101                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2102                source: err.into(),
2103            }),
2104        }
2105    }
2106}
2107impl From<crate::operation::verify::VerifyError> for Error {
2108    fn from(err: crate::operation::verify::VerifyError) -> Self {
2109        match err {
2110            crate::operation::verify::VerifyError::DependencyTimeoutException(inner) => Error::DependencyTimeoutException(inner),
2111            crate::operation::verify::VerifyError::DisabledException(inner) => Error::DisabledException(inner),
2112            crate::operation::verify::VerifyError::DryRunOperationException(inner) => Error::DryRunOperationException(inner),
2113            crate::operation::verify::VerifyError::InvalidGrantTokenException(inner) => Error::InvalidGrantTokenException(inner),
2114            crate::operation::verify::VerifyError::InvalidKeyUsageException(inner) => Error::InvalidKeyUsageException(inner),
2115            crate::operation::verify::VerifyError::KeyUnavailableException(inner) => Error::KeyUnavailableException(inner),
2116            crate::operation::verify::VerifyError::KmsInternalException(inner) => Error::KmsInternalException(inner),
2117            crate::operation::verify::VerifyError::KmsInvalidSignatureException(inner) => Error::KmsInvalidSignatureException(inner),
2118            crate::operation::verify::VerifyError::KmsInvalidStateException(inner) => Error::KmsInvalidStateException(inner),
2119            crate::operation::verify::VerifyError::NotFoundException(inner) => Error::NotFoundException(inner),
2120            crate::operation::verify::VerifyError::Unhandled(inner) => Error::Unhandled(inner),
2121        }
2122    }
2123}
2124impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::verify_mac::VerifyMacError, R>> for Error
2125where
2126    R: Send + Sync + std::fmt::Debug + 'static,
2127{
2128    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::verify_mac::VerifyMacError, R>) -> Self {
2129        match err {
2130            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2131            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2132                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2133                source: err.into(),
2134            }),
2135        }
2136    }
2137}
2138impl From<crate::operation::verify_mac::VerifyMacError> for Error {
2139    fn from(err: crate::operation::verify_mac::VerifyMacError) -> Self {
2140        match err {
2141            crate::operation::verify_mac::VerifyMacError::DisabledException(inner) => Error::DisabledException(inner),
2142            crate::operation::verify_mac::VerifyMacError::DryRunOperationException(inner) => Error::DryRunOperationException(inner),
2143            crate::operation::verify_mac::VerifyMacError::InvalidGrantTokenException(inner) => Error::InvalidGrantTokenException(inner),
2144            crate::operation::verify_mac::VerifyMacError::InvalidKeyUsageException(inner) => Error::InvalidKeyUsageException(inner),
2145            crate::operation::verify_mac::VerifyMacError::KeyUnavailableException(inner) => Error::KeyUnavailableException(inner),
2146            crate::operation::verify_mac::VerifyMacError::KmsInternalException(inner) => Error::KmsInternalException(inner),
2147            crate::operation::verify_mac::VerifyMacError::KmsInvalidMacException(inner) => Error::KmsInvalidMacException(inner),
2148            crate::operation::verify_mac::VerifyMacError::KmsInvalidStateException(inner) => Error::KmsInvalidStateException(inner),
2149            crate::operation::verify_mac::VerifyMacError::NotFoundException(inner) => Error::NotFoundException(inner),
2150            crate::operation::verify_mac::VerifyMacError::Unhandled(inner) => Error::Unhandled(inner),
2151        }
2152    }
2153}
2154impl ::std::error::Error for Error {
2155    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
2156        match self {
2157            Error::AlreadyExistsException(inner) => inner.source(),
2158            Error::CloudHsmClusterInUseException(inner) => inner.source(),
2159            Error::CloudHsmClusterInvalidConfigurationException(inner) => inner.source(),
2160            Error::CloudHsmClusterNotActiveException(inner) => inner.source(),
2161            Error::CloudHsmClusterNotFoundException(inner) => inner.source(),
2162            Error::CloudHsmClusterNotRelatedException(inner) => inner.source(),
2163            Error::ConflictException(inner) => inner.source(),
2164            Error::CustomKeyStoreHasCmKsException(inner) => inner.source(),
2165            Error::CustomKeyStoreInvalidStateException(inner) => inner.source(),
2166            Error::CustomKeyStoreNameInUseException(inner) => inner.source(),
2167            Error::CustomKeyStoreNotFoundException(inner) => inner.source(),
2168            Error::DependencyTimeoutException(inner) => inner.source(),
2169            Error::DisabledException(inner) => inner.source(),
2170            Error::DryRunOperationException(inner) => inner.source(),
2171            Error::ExpiredImportTokenException(inner) => inner.source(),
2172            Error::IncorrectKeyException(inner) => inner.source(),
2173            Error::IncorrectKeyMaterialException(inner) => inner.source(),
2174            Error::IncorrectTrustAnchorException(inner) => inner.source(),
2175            Error::InvalidAliasNameException(inner) => inner.source(),
2176            Error::InvalidArnException(inner) => inner.source(),
2177            Error::InvalidCiphertextException(inner) => inner.source(),
2178            Error::InvalidGrantIdException(inner) => inner.source(),
2179            Error::InvalidGrantTokenException(inner) => inner.source(),
2180            Error::InvalidImportTokenException(inner) => inner.source(),
2181            Error::InvalidKeyUsageException(inner) => inner.source(),
2182            Error::InvalidMarkerException(inner) => inner.source(),
2183            Error::KmsInternalException(inner) => inner.source(),
2184            Error::KmsInvalidMacException(inner) => inner.source(),
2185            Error::KmsInvalidSignatureException(inner) => inner.source(),
2186            Error::KmsInvalidStateException(inner) => inner.source(),
2187            Error::KeyUnavailableException(inner) => inner.source(),
2188            Error::LimitExceededException(inner) => inner.source(),
2189            Error::MalformedPolicyDocumentException(inner) => inner.source(),
2190            Error::NotFoundException(inner) => inner.source(),
2191            Error::TagException(inner) => inner.source(),
2192            Error::UnsupportedOperationException(inner) => inner.source(),
2193            Error::XksKeyAlreadyInUseException(inner) => inner.source(),
2194            Error::XksKeyInvalidConfigurationException(inner) => inner.source(),
2195            Error::XksKeyNotFoundException(inner) => inner.source(),
2196            Error::XksProxyIncorrectAuthenticationCredentialException(inner) => inner.source(),
2197            Error::XksProxyInvalidConfigurationException(inner) => inner.source(),
2198            Error::XksProxyInvalidResponseException(inner) => inner.source(),
2199            Error::XksProxyUriEndpointInUseException(inner) => inner.source(),
2200            Error::XksProxyUriInUseException(inner) => inner.source(),
2201            Error::XksProxyUriUnreachableException(inner) => inner.source(),
2202            Error::XksProxyVpcEndpointServiceInUseException(inner) => inner.source(),
2203            Error::XksProxyVpcEndpointServiceInvalidConfigurationException(inner) => inner.source(),
2204            Error::XksProxyVpcEndpointServiceNotFoundException(inner) => inner.source(),
2205            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
2206        }
2207    }
2208}
2209impl ::aws_types::request_id::RequestId for Error {
2210    fn request_id(&self) -> Option<&str> {
2211        match self {
2212            Self::AlreadyExistsException(e) => e.request_id(),
2213            Self::CloudHsmClusterInUseException(e) => e.request_id(),
2214            Self::CloudHsmClusterInvalidConfigurationException(e) => e.request_id(),
2215            Self::CloudHsmClusterNotActiveException(e) => e.request_id(),
2216            Self::CloudHsmClusterNotFoundException(e) => e.request_id(),
2217            Self::CloudHsmClusterNotRelatedException(e) => e.request_id(),
2218            Self::ConflictException(e) => e.request_id(),
2219            Self::CustomKeyStoreHasCmKsException(e) => e.request_id(),
2220            Self::CustomKeyStoreInvalidStateException(e) => e.request_id(),
2221            Self::CustomKeyStoreNameInUseException(e) => e.request_id(),
2222            Self::CustomKeyStoreNotFoundException(e) => e.request_id(),
2223            Self::DependencyTimeoutException(e) => e.request_id(),
2224            Self::DisabledException(e) => e.request_id(),
2225            Self::DryRunOperationException(e) => e.request_id(),
2226            Self::ExpiredImportTokenException(e) => e.request_id(),
2227            Self::IncorrectKeyException(e) => e.request_id(),
2228            Self::IncorrectKeyMaterialException(e) => e.request_id(),
2229            Self::IncorrectTrustAnchorException(e) => e.request_id(),
2230            Self::InvalidAliasNameException(e) => e.request_id(),
2231            Self::InvalidArnException(e) => e.request_id(),
2232            Self::InvalidCiphertextException(e) => e.request_id(),
2233            Self::InvalidGrantIdException(e) => e.request_id(),
2234            Self::InvalidGrantTokenException(e) => e.request_id(),
2235            Self::InvalidImportTokenException(e) => e.request_id(),
2236            Self::InvalidKeyUsageException(e) => e.request_id(),
2237            Self::InvalidMarkerException(e) => e.request_id(),
2238            Self::KmsInternalException(e) => e.request_id(),
2239            Self::KmsInvalidMacException(e) => e.request_id(),
2240            Self::KmsInvalidSignatureException(e) => e.request_id(),
2241            Self::KmsInvalidStateException(e) => e.request_id(),
2242            Self::KeyUnavailableException(e) => e.request_id(),
2243            Self::LimitExceededException(e) => e.request_id(),
2244            Self::MalformedPolicyDocumentException(e) => e.request_id(),
2245            Self::NotFoundException(e) => e.request_id(),
2246            Self::TagException(e) => e.request_id(),
2247            Self::UnsupportedOperationException(e) => e.request_id(),
2248            Self::XksKeyAlreadyInUseException(e) => e.request_id(),
2249            Self::XksKeyInvalidConfigurationException(e) => e.request_id(),
2250            Self::XksKeyNotFoundException(e) => e.request_id(),
2251            Self::XksProxyIncorrectAuthenticationCredentialException(e) => e.request_id(),
2252            Self::XksProxyInvalidConfigurationException(e) => e.request_id(),
2253            Self::XksProxyInvalidResponseException(e) => e.request_id(),
2254            Self::XksProxyUriEndpointInUseException(e) => e.request_id(),
2255            Self::XksProxyUriInUseException(e) => e.request_id(),
2256            Self::XksProxyUriUnreachableException(e) => e.request_id(),
2257            Self::XksProxyVpcEndpointServiceInUseException(e) => e.request_id(),
2258            Self::XksProxyVpcEndpointServiceInvalidConfigurationException(e) => e.request_id(),
2259            Self::XksProxyVpcEndpointServiceNotFoundException(e) => e.request_id(),
2260            Self::Unhandled(e) => e.meta.request_id(),
2261        }
2262    }
2263}