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