Skip to main content

aws_sdk_kms/
error_meta.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2/// All possible error types for this service.
3#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6    /// <p>The request was rejected because it attempted to create a resource that already exists.</p>
7    AlreadyExistsException(crate::types::error::AlreadyExistsException),
8    /// <p>The request was rejected because the specified CloudHSM cluster is already associated with an CloudHSM key store in the account, or it shares a backup history with an CloudHSM key store in the account. Each CloudHSM key store in the account must be associated with a different CloudHSM cluster.</p>
9    /// <p>CloudHSM clusters that share a backup history have the same cluster certificate. To view the cluster certificate of an CloudHSM cluster, use the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html">DescribeClusters</a> operation.</p>
10    CloudHsmClusterInUseException(crate::types::error::CloudHsmClusterInUseException),
11    /// <p>The request was rejected because the associated CloudHSM cluster did not meet the configuration requirements for an CloudHSM key store.</p>
12    /// <ul>
13    /// <li>
14    /// <p>The CloudHSM cluster must be configured with private subnets in at least two different Availability Zones in the Region.</p></li>
15    /// <li>
16    /// <p>The <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html">security group for the cluster</a> (cloudhsm-cluster-<i><cluster-id></cluster-id></i>-sg) must include inbound rules and outbound rules that allow TCP traffic on ports 2223-2225. The <b>Source</b> in the inbound rules and the <b>Destination</b> in the outbound rules must match the security group ID. These rules are set by default when you create the CloudHSM cluster. Do not delete or change them. To get information about a particular security group, use the <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSecurityGroups.html">DescribeSecurityGroups</a> operation.</p></li>
17    /// <li>
18    /// <p>The CloudHSM cluster must contain at least as many HSMs as the operation requires. To add HSMs, use the CloudHSM <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_CreateHsm.html">CreateHsm</a> operation.</p>
19    /// <p>For the <code>CreateCustomKeyStore</code>, <code>UpdateCustomKeyStore</code>, and <code>CreateKey</code> operations, the CloudHSM cluster must have at least two active HSMs, each in a different Availability Zone. For the <code>ConnectCustomKeyStore</code> operation, the CloudHSM must contain at least one active HSM.</p></li>
20    /// </ul>
21    /// <p>For information about the requirements for an CloudHSM cluster that is associated with an CloudHSM key store, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/create-keystore.html#before-keystore">Assemble the Prerequisites</a> in the <i>Key Management Service Developer Guide</i>. For information about creating a private subnet for an CloudHSM cluster, see <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/create-subnets.html">Create a Private Subnet</a> in the <i>CloudHSM User Guide</i>. For information about cluster security groups, see <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html">Configure a Default Security Group</a> in the <i> <i>CloudHSM User Guide</i> </i>.</p>
22    CloudHsmClusterInvalidConfigurationException(crate::types::error::CloudHsmClusterInvalidConfigurationException),
23    /// <p>The request was rejected because the CloudHSM cluster associated with the CloudHSM key store is not active. Initialize and activate the cluster and try the command again. For detailed instructions, see <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/getting-started.html">Getting Started</a> in the <i>CloudHSM User Guide</i>.</p>
24    CloudHsmClusterNotActiveException(crate::types::error::CloudHsmClusterNotActiveException),
25    /// <p>The request was rejected because KMS cannot find the CloudHSM cluster with the specified cluster ID. Retry the request with a different cluster ID.</p>
26    CloudHsmClusterNotFoundException(crate::types::error::CloudHsmClusterNotFoundException),
27    /// <p>The request was rejected because the specified CloudHSM cluster has a different cluster certificate than the original cluster. You cannot use the operation to specify an unrelated cluster for an CloudHSM key store.</p>
28    /// <p>Specify an CloudHSM cluster that shares a backup history with the original cluster. This includes clusters that were created from a backup of the current cluster, and clusters that were created from the same backup that produced the current cluster.</p>
29    /// <p>CloudHSM clusters that share a backup history have the same cluster certificate. To view the cluster certificate of an CloudHSM cluster, use the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html">DescribeClusters</a> operation.</p>
30    CloudHsmClusterNotRelatedException(crate::types::error::CloudHsmClusterNotRelatedException),
31    /// <p>The request was rejected because an automatic rotation of this key is currently in progress or scheduled to begin within the next 20 minutes.</p>
32    ConflictException(crate::types::error::ConflictException),
33    /// <p>The request was rejected because the custom key store contains KMS keys. After verifying that you do not need to use the KMS keys, use the <code>ScheduleKeyDeletion</code> operation to delete the KMS keys. After they are deleted, you can delete the custom key store.</p>
34    CustomKeyStoreHasCmKsException(crate::types::error::CustomKeyStoreHasCmKsException),
35    /// <p>The request was rejected because of the <code>ConnectionState</code> of the custom key store. To get the <code>ConnectionState</code> of a custom key store, use the <code>DescribeCustomKeyStores</code> operation.</p>
36    /// <p>This exception is thrown under the following conditions:</p>
37    /// <ul>
38    /// <li>
39    /// <p>You requested the <code>ConnectCustomKeyStore</code> operation on a custom key store with a <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>FAILED</code>. This operation is valid for all other <code>ConnectionState</code> values. To reconnect a custom key store in a <code>FAILED</code> state, disconnect it (<code>DisconnectCustomKeyStore</code>), then connect it (<code>ConnectCustomKeyStore</code>).</p></li>
40    /// <li>
41    /// <p>You requested the <code>CreateKey</code> operation in a custom key store that is not connected. This operations is valid only when the custom key store <code>ConnectionState</code> is <code>CONNECTED</code>.</p></li>
42    /// <li>
43    /// <p>You requested the <code>DisconnectCustomKeyStore</code> operation on a custom key store with a <code>ConnectionState</code> of <code>DISCONNECTING</code> or <code>DISCONNECTED</code>. This operation is valid for all other <code>ConnectionState</code> values.</p></li>
44    /// <li>
45    /// <p>You requested the <code>UpdateCustomKeyStore</code> or <code>DeleteCustomKeyStore</code> operation on a custom key store that is not disconnected. <code>UpdateCustomKeyStore</code> can be called on a custom key store in the <code>CONNECTED</code> state only to update <code>NewCustomKeyStoreName</code>. For all other properties, the custom key store <code>ConnectionState</code> must be <code>DISCONNECTED</code>.</p></li>
46    /// <li>
47    /// <p>You requested the <code>GenerateRandom</code> operation in an CloudHSM key store that is not connected. This operation is valid only when the CloudHSM key store <code>ConnectionState</code> is <code>CONNECTED</code>.</p></li>
48    /// </ul>
49    CustomKeyStoreInvalidStateException(crate::types::error::CustomKeyStoreInvalidStateException),
50    /// <p>The request was rejected because the specified custom key store name is already assigned to another custom key store in the account. Try again with a custom key store name that is unique in the account.</p>
51    CustomKeyStoreNameInUseException(crate::types::error::CustomKeyStoreNameInUseException),
52    /// <p>The request was rejected because KMS cannot find a custom key store with the specified key store name or ID.</p>
53    CustomKeyStoreNotFoundException(crate::types::error::CustomKeyStoreNotFoundException),
54    /// <p>The system timed out while trying to fulfill the request. You can retry the request.</p>
55    DependencyTimeoutException(crate::types::error::DependencyTimeoutException),
56    /// <p>The request was rejected because the specified KMS key is not enabled.</p>
57    DisabledException(crate::types::error::DisabledException),
58    /// <p>The request was rejected because the DryRun parameter was specified.</p>
59    DryRunOperationException(crate::types::error::DryRunOperationException),
60    /// <p>The request was rejected because the specified import token is expired. Use <code>GetParametersForImport</code> to get a new import token and public key, use the new public key to encrypt the key material, and then try the request again.</p>
61    ExpiredImportTokenException(crate::types::error::ExpiredImportTokenException),
62    /// <p>The request was rejected because the specified KMS key cannot decrypt the data. The <code>KeyId</code> in a <code>Decrypt</code> request and the <code>SourceKeyId</code> in a <code>ReEncrypt</code> request must identify the same KMS key that was used to encrypt the ciphertext.</p>
63    IncorrectKeyException(crate::types::error::IncorrectKeyException),
64    /// <p>The request was rejected because the key material in the request is, expired, invalid, or does not meet expectations. For example, it is not the same key material that was previously imported or KMS expected new key material but the key material being imported is already associated with the KMS key.</p>
65    IncorrectKeyMaterialException(crate::types::error::IncorrectKeyMaterialException),
66    /// <p>The request was rejected because the trust anchor certificate in the request to create an CloudHSM key store is not the trust anchor certificate for the specified CloudHSM cluster.</p>
67    /// <p>When you <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/initialize-cluster.html#sign-csr">initialize the CloudHSM cluster</a>, you create the trust anchor certificate and save it in the <code>customerCA.crt</code> file.</p>
68    IncorrectTrustAnchorException(crate::types::error::IncorrectTrustAnchorException),
69    /// <p>The request was rejected because the specified alias name is not valid.</p>
70    InvalidAliasNameException(crate::types::error::InvalidAliasNameException),
71    /// <p>The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.</p>
72    InvalidArnException(crate::types::error::InvalidArnException),
73    /// <p>From the <code>Decrypt</code> or <code>ReEncrypt</code> operation, the request was rejected because the specified ciphertext, or additional authenticated data incorporated into the ciphertext, such as the encryption context, is corrupted, missing, or otherwise invalid.</p>
74    /// <p>From the <code>ImportKeyMaterial</code> operation, the request was rejected because KMS could not decrypt the encrypted (wrapped) key material.</p>
75    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 length constraint or quota was exceeded. For more information, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html">Quotas</a> in the <i>Key Management Service Developer Guide</i>.</p>
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_last_usage::GetKeyLastUsageError, 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_last_usage::GetKeyLastUsageError, 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_last_usage::GetKeyLastUsageError> for Error {
1203    fn from(err: crate::operation::get_key_last_usage::GetKeyLastUsageError) -> Self {
1204        match err {
1205            crate::operation::get_key_last_usage::GetKeyLastUsageError::DependencyTimeoutException(inner) => Error::DependencyTimeoutException(inner),
1206            crate::operation::get_key_last_usage::GetKeyLastUsageError::InvalidArnException(inner) => Error::InvalidArnException(inner),
1207            crate::operation::get_key_last_usage::GetKeyLastUsageError::KmsInternalException(inner) => Error::KmsInternalException(inner),
1208            crate::operation::get_key_last_usage::GetKeyLastUsageError::NotFoundException(inner) => Error::NotFoundException(inner),
1209            crate::operation::get_key_last_usage::GetKeyLastUsageError::Unhandled(inner) => Error::Unhandled(inner),
1210        }
1211    }
1212}
1213impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_key_policy::GetKeyPolicyError, R>> for Error
1214where
1215    R: Send + Sync + std::fmt::Debug + 'static,
1216{
1217    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_key_policy::GetKeyPolicyError, R>) -> Self {
1218        match err {
1219            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1220            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1221                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1222                source: err.into(),
1223            }),
1224        }
1225    }
1226}
1227impl From<crate::operation::get_key_policy::GetKeyPolicyError> for Error {
1228    fn from(err: crate::operation::get_key_policy::GetKeyPolicyError) -> Self {
1229        match err {
1230            crate::operation::get_key_policy::GetKeyPolicyError::DependencyTimeoutException(inner) => Error::DependencyTimeoutException(inner),
1231            crate::operation::get_key_policy::GetKeyPolicyError::InvalidArnException(inner) => Error::InvalidArnException(inner),
1232            crate::operation::get_key_policy::GetKeyPolicyError::KmsInternalException(inner) => Error::KmsInternalException(inner),
1233            crate::operation::get_key_policy::GetKeyPolicyError::KmsInvalidStateException(inner) => Error::KmsInvalidStateException(inner),
1234            crate::operation::get_key_policy::GetKeyPolicyError::NotFoundException(inner) => Error::NotFoundException(inner),
1235            crate::operation::get_key_policy::GetKeyPolicyError::Unhandled(inner) => Error::Unhandled(inner),
1236        }
1237    }
1238}
1239impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_key_rotation_status::GetKeyRotationStatusError, R>> for Error
1240where
1241    R: Send + Sync + std::fmt::Debug + 'static,
1242{
1243    fn from(
1244        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_key_rotation_status::GetKeyRotationStatusError, R>,
1245    ) -> Self {
1246        match err {
1247            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1248            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1249                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1250                source: err.into(),
1251            }),
1252        }
1253    }
1254}
1255impl From<crate::operation::get_key_rotation_status::GetKeyRotationStatusError> for Error {
1256    fn from(err: crate::operation::get_key_rotation_status::GetKeyRotationStatusError) -> Self {
1257        match err {
1258            crate::operation::get_key_rotation_status::GetKeyRotationStatusError::DependencyTimeoutException(inner) => {
1259                Error::DependencyTimeoutException(inner)
1260            }
1261            crate::operation::get_key_rotation_status::GetKeyRotationStatusError::InvalidArnException(inner) => Error::InvalidArnException(inner),
1262            crate::operation::get_key_rotation_status::GetKeyRotationStatusError::KmsInternalException(inner) => Error::KmsInternalException(inner),
1263            crate::operation::get_key_rotation_status::GetKeyRotationStatusError::KmsInvalidStateException(inner) => {
1264                Error::KmsInvalidStateException(inner)
1265            }
1266            crate::operation::get_key_rotation_status::GetKeyRotationStatusError::NotFoundException(inner) => Error::NotFoundException(inner),
1267            crate::operation::get_key_rotation_status::GetKeyRotationStatusError::UnsupportedOperationException(inner) => {
1268                Error::UnsupportedOperationException(inner)
1269            }
1270            crate::operation::get_key_rotation_status::GetKeyRotationStatusError::Unhandled(inner) => Error::Unhandled(inner),
1271        }
1272    }
1273}
1274impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_parameters_for_import::GetParametersForImportError, R>>
1275    for Error
1276where
1277    R: Send + Sync + std::fmt::Debug + 'static,
1278{
1279    fn from(
1280        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_parameters_for_import::GetParametersForImportError, R>,
1281    ) -> Self {
1282        match err {
1283            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1284            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1285                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1286                source: err.into(),
1287            }),
1288        }
1289    }
1290}
1291impl From<crate::operation::get_parameters_for_import::GetParametersForImportError> for Error {
1292    fn from(err: crate::operation::get_parameters_for_import::GetParametersForImportError) -> Self {
1293        match err {
1294            crate::operation::get_parameters_for_import::GetParametersForImportError::DependencyTimeoutException(inner) => {
1295                Error::DependencyTimeoutException(inner)
1296            }
1297            crate::operation::get_parameters_for_import::GetParametersForImportError::InvalidArnException(inner) => Error::InvalidArnException(inner),
1298            crate::operation::get_parameters_for_import::GetParametersForImportError::KmsInternalException(inner) => {
1299                Error::KmsInternalException(inner)
1300            }
1301            crate::operation::get_parameters_for_import::GetParametersForImportError::KmsInvalidStateException(inner) => {
1302                Error::KmsInvalidStateException(inner)
1303            }
1304            crate::operation::get_parameters_for_import::GetParametersForImportError::NotFoundException(inner) => Error::NotFoundException(inner),
1305            crate::operation::get_parameters_for_import::GetParametersForImportError::UnsupportedOperationException(inner) => {
1306                Error::UnsupportedOperationException(inner)
1307            }
1308            crate::operation::get_parameters_for_import::GetParametersForImportError::Unhandled(inner) => Error::Unhandled(inner),
1309        }
1310    }
1311}
1312impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_public_key::GetPublicKeyError, R>> for Error
1313where
1314    R: Send + Sync + std::fmt::Debug + 'static,
1315{
1316    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_public_key::GetPublicKeyError, R>) -> Self {
1317        match err {
1318            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1319            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1320                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1321                source: err.into(),
1322            }),
1323        }
1324    }
1325}
1326impl From<crate::operation::get_public_key::GetPublicKeyError> for Error {
1327    fn from(err: crate::operation::get_public_key::GetPublicKeyError) -> Self {
1328        match err {
1329            crate::operation::get_public_key::GetPublicKeyError::DependencyTimeoutException(inner) => Error::DependencyTimeoutException(inner),
1330            crate::operation::get_public_key::GetPublicKeyError::DisabledException(inner) => Error::DisabledException(inner),
1331            crate::operation::get_public_key::GetPublicKeyError::InvalidArnException(inner) => Error::InvalidArnException(inner),
1332            crate::operation::get_public_key::GetPublicKeyError::InvalidGrantTokenException(inner) => Error::InvalidGrantTokenException(inner),
1333            crate::operation::get_public_key::GetPublicKeyError::InvalidKeyUsageException(inner) => Error::InvalidKeyUsageException(inner),
1334            crate::operation::get_public_key::GetPublicKeyError::KeyUnavailableException(inner) => Error::KeyUnavailableException(inner),
1335            crate::operation::get_public_key::GetPublicKeyError::KmsInternalException(inner) => Error::KmsInternalException(inner),
1336            crate::operation::get_public_key::GetPublicKeyError::KmsInvalidStateException(inner) => Error::KmsInvalidStateException(inner),
1337            crate::operation::get_public_key::GetPublicKeyError::NotFoundException(inner) => Error::NotFoundException(inner),
1338            crate::operation::get_public_key::GetPublicKeyError::UnsupportedOperationException(inner) => Error::UnsupportedOperationException(inner),
1339            crate::operation::get_public_key::GetPublicKeyError::Unhandled(inner) => Error::Unhandled(inner),
1340        }
1341    }
1342}
1343impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_key_material::ImportKeyMaterialError, R>> for Error
1344where
1345    R: Send + Sync + std::fmt::Debug + 'static,
1346{
1347    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_key_material::ImportKeyMaterialError, R>) -> Self {
1348        match err {
1349            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1350            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1351                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1352                source: err.into(),
1353            }),
1354        }
1355    }
1356}
1357impl From<crate::operation::import_key_material::ImportKeyMaterialError> for Error {
1358    fn from(err: crate::operation::import_key_material::ImportKeyMaterialError) -> Self {
1359        match err {
1360            crate::operation::import_key_material::ImportKeyMaterialError::DependencyTimeoutException(inner) => {
1361                Error::DependencyTimeoutException(inner)
1362            }
1363            crate::operation::import_key_material::ImportKeyMaterialError::ExpiredImportTokenException(inner) => {
1364                Error::ExpiredImportTokenException(inner)
1365            }
1366            crate::operation::import_key_material::ImportKeyMaterialError::IncorrectKeyMaterialException(inner) => {
1367                Error::IncorrectKeyMaterialException(inner)
1368            }
1369            crate::operation::import_key_material::ImportKeyMaterialError::InvalidArnException(inner) => Error::InvalidArnException(inner),
1370            crate::operation::import_key_material::ImportKeyMaterialError::InvalidCiphertextException(inner) => {
1371                Error::InvalidCiphertextException(inner)
1372            }
1373            crate::operation::import_key_material::ImportKeyMaterialError::InvalidImportTokenException(inner) => {
1374                Error::InvalidImportTokenException(inner)
1375            }
1376            crate::operation::import_key_material::ImportKeyMaterialError::KmsInternalException(inner) => Error::KmsInternalException(inner),
1377            crate::operation::import_key_material::ImportKeyMaterialError::KmsInvalidStateException(inner) => Error::KmsInvalidStateException(inner),
1378            crate::operation::import_key_material::ImportKeyMaterialError::NotFoundException(inner) => Error::NotFoundException(inner),
1379            crate::operation::import_key_material::ImportKeyMaterialError::UnsupportedOperationException(inner) => {
1380                Error::UnsupportedOperationException(inner)
1381            }
1382            crate::operation::import_key_material::ImportKeyMaterialError::Unhandled(inner) => Error::Unhandled(inner),
1383        }
1384    }
1385}
1386impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_aliases::ListAliasesError, R>> for Error
1387where
1388    R: Send + Sync + std::fmt::Debug + 'static,
1389{
1390    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_aliases::ListAliasesError, R>) -> Self {
1391        match err {
1392            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1393            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1394                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1395                source: err.into(),
1396            }),
1397        }
1398    }
1399}
1400impl From<crate::operation::list_aliases::ListAliasesError> for Error {
1401    fn from(err: crate::operation::list_aliases::ListAliasesError) -> Self {
1402        match err {
1403            crate::operation::list_aliases::ListAliasesError::DependencyTimeoutException(inner) => Error::DependencyTimeoutException(inner),
1404            crate::operation::list_aliases::ListAliasesError::InvalidArnException(inner) => Error::InvalidArnException(inner),
1405            crate::operation::list_aliases::ListAliasesError::InvalidMarkerException(inner) => Error::InvalidMarkerException(inner),
1406            crate::operation::list_aliases::ListAliasesError::KmsInternalException(inner) => Error::KmsInternalException(inner),
1407            crate::operation::list_aliases::ListAliasesError::NotFoundException(inner) => Error::NotFoundException(inner),
1408            crate::operation::list_aliases::ListAliasesError::Unhandled(inner) => Error::Unhandled(inner),
1409        }
1410    }
1411}
1412impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_grants::ListGrantsError, R>> for Error
1413where
1414    R: Send + Sync + std::fmt::Debug + 'static,
1415{
1416    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_grants::ListGrantsError, R>) -> Self {
1417        match err {
1418            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1419            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1420                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1421                source: err.into(),
1422            }),
1423        }
1424    }
1425}
1426impl From<crate::operation::list_grants::ListGrantsError> for Error {
1427    fn from(err: crate::operation::list_grants::ListGrantsError) -> Self {
1428        match err {
1429            crate::operation::list_grants::ListGrantsError::DependencyTimeoutException(inner) => Error::DependencyTimeoutException(inner),
1430            crate::operation::list_grants::ListGrantsError::InvalidArnException(inner) => Error::InvalidArnException(inner),
1431            crate::operation::list_grants::ListGrantsError::InvalidGrantIdException(inner) => Error::InvalidGrantIdException(inner),
1432            crate::operation::list_grants::ListGrantsError::InvalidMarkerException(inner) => Error::InvalidMarkerException(inner),
1433            crate::operation::list_grants::ListGrantsError::KmsInternalException(inner) => Error::KmsInternalException(inner),
1434            crate::operation::list_grants::ListGrantsError::KmsInvalidStateException(inner) => Error::KmsInvalidStateException(inner),
1435            crate::operation::list_grants::ListGrantsError::NotFoundException(inner) => Error::NotFoundException(inner),
1436            crate::operation::list_grants::ListGrantsError::Unhandled(inner) => Error::Unhandled(inner),
1437        }
1438    }
1439}
1440impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_key_policies::ListKeyPoliciesError, R>> for Error
1441where
1442    R: Send + Sync + std::fmt::Debug + 'static,
1443{
1444    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_key_policies::ListKeyPoliciesError, R>) -> Self {
1445        match err {
1446            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1447            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1448                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1449                source: err.into(),
1450            }),
1451        }
1452    }
1453}
1454impl From<crate::operation::list_key_policies::ListKeyPoliciesError> for Error {
1455    fn from(err: crate::operation::list_key_policies::ListKeyPoliciesError) -> Self {
1456        match err {
1457            crate::operation::list_key_policies::ListKeyPoliciesError::DependencyTimeoutException(inner) => Error::DependencyTimeoutException(inner),
1458            crate::operation::list_key_policies::ListKeyPoliciesError::InvalidArnException(inner) => Error::InvalidArnException(inner),
1459            crate::operation::list_key_policies::ListKeyPoliciesError::KmsInternalException(inner) => Error::KmsInternalException(inner),
1460            crate::operation::list_key_policies::ListKeyPoliciesError::KmsInvalidStateException(inner) => Error::KmsInvalidStateException(inner),
1461            crate::operation::list_key_policies::ListKeyPoliciesError::NotFoundException(inner) => Error::NotFoundException(inner),
1462            crate::operation::list_key_policies::ListKeyPoliciesError::Unhandled(inner) => Error::Unhandled(inner),
1463        }
1464    }
1465}
1466impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_key_rotations::ListKeyRotationsError, R>> for Error
1467where
1468    R: Send + Sync + std::fmt::Debug + 'static,
1469{
1470    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_key_rotations::ListKeyRotationsError, R>) -> Self {
1471        match err {
1472            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1473            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1474                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1475                source: err.into(),
1476            }),
1477        }
1478    }
1479}
1480impl From<crate::operation::list_key_rotations::ListKeyRotationsError> for Error {
1481    fn from(err: crate::operation::list_key_rotations::ListKeyRotationsError) -> Self {
1482        match err {
1483            crate::operation::list_key_rotations::ListKeyRotationsError::InvalidArnException(inner) => Error::InvalidArnException(inner),
1484            crate::operation::list_key_rotations::ListKeyRotationsError::InvalidMarkerException(inner) => Error::InvalidMarkerException(inner),
1485            crate::operation::list_key_rotations::ListKeyRotationsError::KmsInternalException(inner) => Error::KmsInternalException(inner),
1486            crate::operation::list_key_rotations::ListKeyRotationsError::KmsInvalidStateException(inner) => Error::KmsInvalidStateException(inner),
1487            crate::operation::list_key_rotations::ListKeyRotationsError::NotFoundException(inner) => Error::NotFoundException(inner),
1488            crate::operation::list_key_rotations::ListKeyRotationsError::UnsupportedOperationException(inner) => {
1489                Error::UnsupportedOperationException(inner)
1490            }
1491            crate::operation::list_key_rotations::ListKeyRotationsError::Unhandled(inner) => Error::Unhandled(inner),
1492        }
1493    }
1494}
1495impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_keys::ListKeysError, R>> for Error
1496where
1497    R: Send + Sync + std::fmt::Debug + 'static,
1498{
1499    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_keys::ListKeysError, R>) -> Self {
1500        match err {
1501            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1502            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1503                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1504                source: err.into(),
1505            }),
1506        }
1507    }
1508}
1509impl From<crate::operation::list_keys::ListKeysError> for Error {
1510    fn from(err: crate::operation::list_keys::ListKeysError) -> Self {
1511        match err {
1512            crate::operation::list_keys::ListKeysError::DependencyTimeoutException(inner) => Error::DependencyTimeoutException(inner),
1513            crate::operation::list_keys::ListKeysError::InvalidMarkerException(inner) => Error::InvalidMarkerException(inner),
1514            crate::operation::list_keys::ListKeysError::KmsInternalException(inner) => Error::KmsInternalException(inner),
1515            crate::operation::list_keys::ListKeysError::Unhandled(inner) => Error::Unhandled(inner),
1516        }
1517    }
1518}
1519impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_resource_tags::ListResourceTagsError, 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_resource_tags::ListResourceTagsError, 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_resource_tags::ListResourceTagsError> for Error {
1534    fn from(err: crate::operation::list_resource_tags::ListResourceTagsError) -> Self {
1535        match err {
1536            crate::operation::list_resource_tags::ListResourceTagsError::InvalidArnException(inner) => Error::InvalidArnException(inner),
1537            crate::operation::list_resource_tags::ListResourceTagsError::InvalidMarkerException(inner) => Error::InvalidMarkerException(inner),
1538            crate::operation::list_resource_tags::ListResourceTagsError::KmsInternalException(inner) => Error::KmsInternalException(inner),
1539            crate::operation::list_resource_tags::ListResourceTagsError::NotFoundException(inner) => Error::NotFoundException(inner),
1540            crate::operation::list_resource_tags::ListResourceTagsError::Unhandled(inner) => Error::Unhandled(inner),
1541        }
1542    }
1543}
1544impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_retirable_grants::ListRetirableGrantsError, R>> for Error
1545where
1546    R: Send + Sync + std::fmt::Debug + 'static,
1547{
1548    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_retirable_grants::ListRetirableGrantsError, R>) -> Self {
1549        match err {
1550            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1551            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1552                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1553                source: err.into(),
1554            }),
1555        }
1556    }
1557}
1558impl From<crate::operation::list_retirable_grants::ListRetirableGrantsError> for Error {
1559    fn from(err: crate::operation::list_retirable_grants::ListRetirableGrantsError) -> Self {
1560        match err {
1561            crate::operation::list_retirable_grants::ListRetirableGrantsError::DependencyTimeoutException(inner) => {
1562                Error::DependencyTimeoutException(inner)
1563            }
1564            crate::operation::list_retirable_grants::ListRetirableGrantsError::InvalidArnException(inner) => Error::InvalidArnException(inner),
1565            crate::operation::list_retirable_grants::ListRetirableGrantsError::InvalidMarkerException(inner) => Error::InvalidMarkerException(inner),
1566            crate::operation::list_retirable_grants::ListRetirableGrantsError::KmsInternalException(inner) => Error::KmsInternalException(inner),
1567            crate::operation::list_retirable_grants::ListRetirableGrantsError::NotFoundException(inner) => Error::NotFoundException(inner),
1568            crate::operation::list_retirable_grants::ListRetirableGrantsError::Unhandled(inner) => Error::Unhandled(inner),
1569        }
1570    }
1571}
1572impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_key_policy::PutKeyPolicyError, R>> for Error
1573where
1574    R: Send + Sync + std::fmt::Debug + 'static,
1575{
1576    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_key_policy::PutKeyPolicyError, R>) -> Self {
1577        match err {
1578            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1579            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1580                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1581                source: err.into(),
1582            }),
1583        }
1584    }
1585}
1586impl From<crate::operation::put_key_policy::PutKeyPolicyError> for Error {
1587    fn from(err: crate::operation::put_key_policy::PutKeyPolicyError) -> Self {
1588        match err {
1589            crate::operation::put_key_policy::PutKeyPolicyError::DependencyTimeoutException(inner) => Error::DependencyTimeoutException(inner),
1590            crate::operation::put_key_policy::PutKeyPolicyError::InvalidArnException(inner) => Error::InvalidArnException(inner),
1591            crate::operation::put_key_policy::PutKeyPolicyError::KmsInternalException(inner) => Error::KmsInternalException(inner),
1592            crate::operation::put_key_policy::PutKeyPolicyError::KmsInvalidStateException(inner) => Error::KmsInvalidStateException(inner),
1593            crate::operation::put_key_policy::PutKeyPolicyError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1594            crate::operation::put_key_policy::PutKeyPolicyError::MalformedPolicyDocumentException(inner) => {
1595                Error::MalformedPolicyDocumentException(inner)
1596            }
1597            crate::operation::put_key_policy::PutKeyPolicyError::NotFoundException(inner) => Error::NotFoundException(inner),
1598            crate::operation::put_key_policy::PutKeyPolicyError::UnsupportedOperationException(inner) => Error::UnsupportedOperationException(inner),
1599            crate::operation::put_key_policy::PutKeyPolicyError::Unhandled(inner) => Error::Unhandled(inner),
1600        }
1601    }
1602}
1603impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::re_encrypt::ReEncryptError, R>> for Error
1604where
1605    R: Send + Sync + std::fmt::Debug + 'static,
1606{
1607    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::re_encrypt::ReEncryptError, R>) -> Self {
1608        match err {
1609            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1610            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1611                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1612                source: err.into(),
1613            }),
1614        }
1615    }
1616}
1617impl From<crate::operation::re_encrypt::ReEncryptError> for Error {
1618    fn from(err: crate::operation::re_encrypt::ReEncryptError) -> Self {
1619        match err {
1620            crate::operation::re_encrypt::ReEncryptError::DependencyTimeoutException(inner) => Error::DependencyTimeoutException(inner),
1621            crate::operation::re_encrypt::ReEncryptError::DisabledException(inner) => Error::DisabledException(inner),
1622            crate::operation::re_encrypt::ReEncryptError::DryRunOperationException(inner) => Error::DryRunOperationException(inner),
1623            crate::operation::re_encrypt::ReEncryptError::IncorrectKeyException(inner) => Error::IncorrectKeyException(inner),
1624            crate::operation::re_encrypt::ReEncryptError::InvalidCiphertextException(inner) => Error::InvalidCiphertextException(inner),
1625            crate::operation::re_encrypt::ReEncryptError::InvalidGrantTokenException(inner) => Error::InvalidGrantTokenException(inner),
1626            crate::operation::re_encrypt::ReEncryptError::InvalidKeyUsageException(inner) => Error::InvalidKeyUsageException(inner),
1627            crate::operation::re_encrypt::ReEncryptError::KeyUnavailableException(inner) => Error::KeyUnavailableException(inner),
1628            crate::operation::re_encrypt::ReEncryptError::KmsInternalException(inner) => Error::KmsInternalException(inner),
1629            crate::operation::re_encrypt::ReEncryptError::KmsInvalidStateException(inner) => Error::KmsInvalidStateException(inner),
1630            crate::operation::re_encrypt::ReEncryptError::NotFoundException(inner) => Error::NotFoundException(inner),
1631            crate::operation::re_encrypt::ReEncryptError::Unhandled(inner) => Error::Unhandled(inner),
1632        }
1633    }
1634}
1635impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replicate_key::ReplicateKeyError, R>> for Error
1636where
1637    R: Send + Sync + std::fmt::Debug + 'static,
1638{
1639    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::replicate_key::ReplicateKeyError, R>) -> Self {
1640        match err {
1641            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1642            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1643                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1644                source: err.into(),
1645            }),
1646        }
1647    }
1648}
1649impl From<crate::operation::replicate_key::ReplicateKeyError> for Error {
1650    fn from(err: crate::operation::replicate_key::ReplicateKeyError) -> Self {
1651        match err {
1652            crate::operation::replicate_key::ReplicateKeyError::AlreadyExistsException(inner) => Error::AlreadyExistsException(inner),
1653            crate::operation::replicate_key::ReplicateKeyError::DisabledException(inner) => Error::DisabledException(inner),
1654            crate::operation::replicate_key::ReplicateKeyError::InvalidArnException(inner) => Error::InvalidArnException(inner),
1655            crate::operation::replicate_key::ReplicateKeyError::KmsInternalException(inner) => Error::KmsInternalException(inner),
1656            crate::operation::replicate_key::ReplicateKeyError::KmsInvalidStateException(inner) => Error::KmsInvalidStateException(inner),
1657            crate::operation::replicate_key::ReplicateKeyError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1658            crate::operation::replicate_key::ReplicateKeyError::MalformedPolicyDocumentException(inner) => {
1659                Error::MalformedPolicyDocumentException(inner)
1660            }
1661            crate::operation::replicate_key::ReplicateKeyError::NotFoundException(inner) => Error::NotFoundException(inner),
1662            crate::operation::replicate_key::ReplicateKeyError::TagException(inner) => Error::TagException(inner),
1663            crate::operation::replicate_key::ReplicateKeyError::UnsupportedOperationException(inner) => Error::UnsupportedOperationException(inner),
1664            crate::operation::replicate_key::ReplicateKeyError::Unhandled(inner) => Error::Unhandled(inner),
1665        }
1666    }
1667}
1668impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::retire_grant::RetireGrantError, R>> for Error
1669where
1670    R: Send + Sync + std::fmt::Debug + 'static,
1671{
1672    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::retire_grant::RetireGrantError, R>) -> Self {
1673        match err {
1674            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1675            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1676                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1677                source: err.into(),
1678            }),
1679        }
1680    }
1681}
1682impl From<crate::operation::retire_grant::RetireGrantError> for Error {
1683    fn from(err: crate::operation::retire_grant::RetireGrantError) -> Self {
1684        match err {
1685            crate::operation::retire_grant::RetireGrantError::DependencyTimeoutException(inner) => Error::DependencyTimeoutException(inner),
1686            crate::operation::retire_grant::RetireGrantError::DryRunOperationException(inner) => Error::DryRunOperationException(inner),
1687            crate::operation::retire_grant::RetireGrantError::InvalidArnException(inner) => Error::InvalidArnException(inner),
1688            crate::operation::retire_grant::RetireGrantError::InvalidGrantIdException(inner) => Error::InvalidGrantIdException(inner),
1689            crate::operation::retire_grant::RetireGrantError::InvalidGrantTokenException(inner) => Error::InvalidGrantTokenException(inner),
1690            crate::operation::retire_grant::RetireGrantError::KmsInternalException(inner) => Error::KmsInternalException(inner),
1691            crate::operation::retire_grant::RetireGrantError::KmsInvalidStateException(inner) => Error::KmsInvalidStateException(inner),
1692            crate::operation::retire_grant::RetireGrantError::NotFoundException(inner) => Error::NotFoundException(inner),
1693            crate::operation::retire_grant::RetireGrantError::Unhandled(inner) => Error::Unhandled(inner),
1694        }
1695    }
1696}
1697impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::revoke_grant::RevokeGrantError, R>> for Error
1698where
1699    R: Send + Sync + std::fmt::Debug + 'static,
1700{
1701    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::revoke_grant::RevokeGrantError, R>) -> Self {
1702        match err {
1703            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1704            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1705                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1706                source: err.into(),
1707            }),
1708        }
1709    }
1710}
1711impl From<crate::operation::revoke_grant::RevokeGrantError> for Error {
1712    fn from(err: crate::operation::revoke_grant::RevokeGrantError) -> Self {
1713        match err {
1714            crate::operation::revoke_grant::RevokeGrantError::DependencyTimeoutException(inner) => Error::DependencyTimeoutException(inner),
1715            crate::operation::revoke_grant::RevokeGrantError::DryRunOperationException(inner) => Error::DryRunOperationException(inner),
1716            crate::operation::revoke_grant::RevokeGrantError::InvalidArnException(inner) => Error::InvalidArnException(inner),
1717            crate::operation::revoke_grant::RevokeGrantError::InvalidGrantIdException(inner) => Error::InvalidGrantIdException(inner),
1718            crate::operation::revoke_grant::RevokeGrantError::KmsInternalException(inner) => Error::KmsInternalException(inner),
1719            crate::operation::revoke_grant::RevokeGrantError::KmsInvalidStateException(inner) => Error::KmsInvalidStateException(inner),
1720            crate::operation::revoke_grant::RevokeGrantError::NotFoundException(inner) => Error::NotFoundException(inner),
1721            crate::operation::revoke_grant::RevokeGrantError::Unhandled(inner) => Error::Unhandled(inner),
1722        }
1723    }
1724}
1725impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::rotate_key_on_demand::RotateKeyOnDemandError, R>> for Error
1726where
1727    R: Send + Sync + std::fmt::Debug + 'static,
1728{
1729    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::rotate_key_on_demand::RotateKeyOnDemandError, R>) -> Self {
1730        match err {
1731            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1732            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1733                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1734                source: err.into(),
1735            }),
1736        }
1737    }
1738}
1739impl From<crate::operation::rotate_key_on_demand::RotateKeyOnDemandError> for Error {
1740    fn from(err: crate::operation::rotate_key_on_demand::RotateKeyOnDemandError) -> Self {
1741        match err {
1742            crate::operation::rotate_key_on_demand::RotateKeyOnDemandError::ConflictException(inner) => Error::ConflictException(inner),
1743            crate::operation::rotate_key_on_demand::RotateKeyOnDemandError::DependencyTimeoutException(inner) => {
1744                Error::DependencyTimeoutException(inner)
1745            }
1746            crate::operation::rotate_key_on_demand::RotateKeyOnDemandError::DisabledException(inner) => Error::DisabledException(inner),
1747            crate::operation::rotate_key_on_demand::RotateKeyOnDemandError::InvalidArnException(inner) => Error::InvalidArnException(inner),
1748            crate::operation::rotate_key_on_demand::RotateKeyOnDemandError::KmsInternalException(inner) => Error::KmsInternalException(inner),
1749            crate::operation::rotate_key_on_demand::RotateKeyOnDemandError::KmsInvalidStateException(inner) => Error::KmsInvalidStateException(inner),
1750            crate::operation::rotate_key_on_demand::RotateKeyOnDemandError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1751            crate::operation::rotate_key_on_demand::RotateKeyOnDemandError::NotFoundException(inner) => Error::NotFoundException(inner),
1752            crate::operation::rotate_key_on_demand::RotateKeyOnDemandError::UnsupportedOperationException(inner) => {
1753                Error::UnsupportedOperationException(inner)
1754            }
1755            crate::operation::rotate_key_on_demand::RotateKeyOnDemandError::Unhandled(inner) => Error::Unhandled(inner),
1756        }
1757    }
1758}
1759impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::schedule_key_deletion::ScheduleKeyDeletionError, R>> for Error
1760where
1761    R: Send + Sync + std::fmt::Debug + 'static,
1762{
1763    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::schedule_key_deletion::ScheduleKeyDeletionError, R>) -> Self {
1764        match err {
1765            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1766            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1767                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1768                source: err.into(),
1769            }),
1770        }
1771    }
1772}
1773impl From<crate::operation::schedule_key_deletion::ScheduleKeyDeletionError> for Error {
1774    fn from(err: crate::operation::schedule_key_deletion::ScheduleKeyDeletionError) -> Self {
1775        match err {
1776            crate::operation::schedule_key_deletion::ScheduleKeyDeletionError::DependencyTimeoutException(inner) => {
1777                Error::DependencyTimeoutException(inner)
1778            }
1779            crate::operation::schedule_key_deletion::ScheduleKeyDeletionError::InvalidArnException(inner) => Error::InvalidArnException(inner),
1780            crate::operation::schedule_key_deletion::ScheduleKeyDeletionError::KmsInternalException(inner) => Error::KmsInternalException(inner),
1781            crate::operation::schedule_key_deletion::ScheduleKeyDeletionError::KmsInvalidStateException(inner) => {
1782                Error::KmsInvalidStateException(inner)
1783            }
1784            crate::operation::schedule_key_deletion::ScheduleKeyDeletionError::NotFoundException(inner) => Error::NotFoundException(inner),
1785            crate::operation::schedule_key_deletion::ScheduleKeyDeletionError::Unhandled(inner) => Error::Unhandled(inner),
1786        }
1787    }
1788}
1789impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::sign::SignError, R>> for Error
1790where
1791    R: Send + Sync + std::fmt::Debug + 'static,
1792{
1793    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::sign::SignError, R>) -> Self {
1794        match err {
1795            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1796            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1797                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1798                source: err.into(),
1799            }),
1800        }
1801    }
1802}
1803impl From<crate::operation::sign::SignError> for Error {
1804    fn from(err: crate::operation::sign::SignError) -> Self {
1805        match err {
1806            crate::operation::sign::SignError::DependencyTimeoutException(inner) => Error::DependencyTimeoutException(inner),
1807            crate::operation::sign::SignError::DisabledException(inner) => Error::DisabledException(inner),
1808            crate::operation::sign::SignError::DryRunOperationException(inner) => Error::DryRunOperationException(inner),
1809            crate::operation::sign::SignError::InvalidGrantTokenException(inner) => Error::InvalidGrantTokenException(inner),
1810            crate::operation::sign::SignError::InvalidKeyUsageException(inner) => Error::InvalidKeyUsageException(inner),
1811            crate::operation::sign::SignError::KeyUnavailableException(inner) => Error::KeyUnavailableException(inner),
1812            crate::operation::sign::SignError::KmsInternalException(inner) => Error::KmsInternalException(inner),
1813            crate::operation::sign::SignError::KmsInvalidStateException(inner) => Error::KmsInvalidStateException(inner),
1814            crate::operation::sign::SignError::NotFoundException(inner) => Error::NotFoundException(inner),
1815            crate::operation::sign::SignError::Unhandled(inner) => Error::Unhandled(inner),
1816        }
1817    }
1818}
1819impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
1820where
1821    R: Send + Sync + std::fmt::Debug + 'static,
1822{
1823    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
1824        match err {
1825            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1826            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1827                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1828                source: err.into(),
1829            }),
1830        }
1831    }
1832}
1833impl From<crate::operation::tag_resource::TagResourceError> for Error {
1834    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
1835        match err {
1836            crate::operation::tag_resource::TagResourceError::InvalidArnException(inner) => Error::InvalidArnException(inner),
1837            crate::operation::tag_resource::TagResourceError::KmsInternalException(inner) => Error::KmsInternalException(inner),
1838            crate::operation::tag_resource::TagResourceError::KmsInvalidStateException(inner) => Error::KmsInvalidStateException(inner),
1839            crate::operation::tag_resource::TagResourceError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1840            crate::operation::tag_resource::TagResourceError::NotFoundException(inner) => Error::NotFoundException(inner),
1841            crate::operation::tag_resource::TagResourceError::TagException(inner) => Error::TagException(inner),
1842            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1843        }
1844    }
1845}
1846impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
1847where
1848    R: Send + Sync + std::fmt::Debug + 'static,
1849{
1850    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
1851        match err {
1852            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1853            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1854                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1855                source: err.into(),
1856            }),
1857        }
1858    }
1859}
1860impl From<crate::operation::untag_resource::UntagResourceError> for Error {
1861    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
1862        match err {
1863            crate::operation::untag_resource::UntagResourceError::InvalidArnException(inner) => Error::InvalidArnException(inner),
1864            crate::operation::untag_resource::UntagResourceError::KmsInternalException(inner) => Error::KmsInternalException(inner),
1865            crate::operation::untag_resource::UntagResourceError::KmsInvalidStateException(inner) => Error::KmsInvalidStateException(inner),
1866            crate::operation::untag_resource::UntagResourceError::NotFoundException(inner) => Error::NotFoundException(inner),
1867            crate::operation::untag_resource::UntagResourceError::TagException(inner) => Error::TagException(inner),
1868            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1869        }
1870    }
1871}
1872impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_alias::UpdateAliasError, R>> for Error
1873where
1874    R: Send + Sync + std::fmt::Debug + 'static,
1875{
1876    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_alias::UpdateAliasError, R>) -> Self {
1877        match err {
1878            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1879            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1880                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1881                source: err.into(),
1882            }),
1883        }
1884    }
1885}
1886impl From<crate::operation::update_alias::UpdateAliasError> for Error {
1887    fn from(err: crate::operation::update_alias::UpdateAliasError) -> Self {
1888        match err {
1889            crate::operation::update_alias::UpdateAliasError::DependencyTimeoutException(inner) => Error::DependencyTimeoutException(inner),
1890            crate::operation::update_alias::UpdateAliasError::KmsInternalException(inner) => Error::KmsInternalException(inner),
1891            crate::operation::update_alias::UpdateAliasError::KmsInvalidStateException(inner) => Error::KmsInvalidStateException(inner),
1892            crate::operation::update_alias::UpdateAliasError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1893            crate::operation::update_alias::UpdateAliasError::NotFoundException(inner) => Error::NotFoundException(inner),
1894            crate::operation::update_alias::UpdateAliasError::Unhandled(inner) => Error::Unhandled(inner),
1895        }
1896    }
1897}
1898impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_custom_key_store::UpdateCustomKeyStoreError, R>> for Error
1899where
1900    R: Send + Sync + std::fmt::Debug + 'static,
1901{
1902    fn from(
1903        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_custom_key_store::UpdateCustomKeyStoreError, R>,
1904    ) -> Self {
1905        match err {
1906            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1907            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1908                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1909                source: err.into(),
1910            }),
1911        }
1912    }
1913}
1914impl From<crate::operation::update_custom_key_store::UpdateCustomKeyStoreError> for Error {
1915    fn from(err: crate::operation::update_custom_key_store::UpdateCustomKeyStoreError) -> Self {
1916        match err {
1917            crate::operation::update_custom_key_store::UpdateCustomKeyStoreError::CloudHsmClusterInvalidConfigurationException(inner) => {
1918                Error::CloudHsmClusterInvalidConfigurationException(inner)
1919            }
1920            crate::operation::update_custom_key_store::UpdateCustomKeyStoreError::CloudHsmClusterNotActiveException(inner) => {
1921                Error::CloudHsmClusterNotActiveException(inner)
1922            }
1923            crate::operation::update_custom_key_store::UpdateCustomKeyStoreError::CloudHsmClusterNotFoundException(inner) => {
1924                Error::CloudHsmClusterNotFoundException(inner)
1925            }
1926            crate::operation::update_custom_key_store::UpdateCustomKeyStoreError::CloudHsmClusterNotRelatedException(inner) => {
1927                Error::CloudHsmClusterNotRelatedException(inner)
1928            }
1929            crate::operation::update_custom_key_store::UpdateCustomKeyStoreError::CustomKeyStoreInvalidStateException(inner) => {
1930                Error::CustomKeyStoreInvalidStateException(inner)
1931            }
1932            crate::operation::update_custom_key_store::UpdateCustomKeyStoreError::CustomKeyStoreNameInUseException(inner) => {
1933                Error::CustomKeyStoreNameInUseException(inner)
1934            }
1935            crate::operation::update_custom_key_store::UpdateCustomKeyStoreError::CustomKeyStoreNotFoundException(inner) => {
1936                Error::CustomKeyStoreNotFoundException(inner)
1937            }
1938            crate::operation::update_custom_key_store::UpdateCustomKeyStoreError::KmsInternalException(inner) => Error::KmsInternalException(inner),
1939            crate::operation::update_custom_key_store::UpdateCustomKeyStoreError::XksProxyIncorrectAuthenticationCredentialException(inner) => {
1940                Error::XksProxyIncorrectAuthenticationCredentialException(inner)
1941            }
1942            crate::operation::update_custom_key_store::UpdateCustomKeyStoreError::XksProxyInvalidConfigurationException(inner) => {
1943                Error::XksProxyInvalidConfigurationException(inner)
1944            }
1945            crate::operation::update_custom_key_store::UpdateCustomKeyStoreError::XksProxyInvalidResponseException(inner) => {
1946                Error::XksProxyInvalidResponseException(inner)
1947            }
1948            crate::operation::update_custom_key_store::UpdateCustomKeyStoreError::XksProxyUriEndpointInUseException(inner) => {
1949                Error::XksProxyUriEndpointInUseException(inner)
1950            }
1951            crate::operation::update_custom_key_store::UpdateCustomKeyStoreError::XksProxyUriInUseException(inner) => {
1952                Error::XksProxyUriInUseException(inner)
1953            }
1954            crate::operation::update_custom_key_store::UpdateCustomKeyStoreError::XksProxyUriUnreachableException(inner) => {
1955                Error::XksProxyUriUnreachableException(inner)
1956            }
1957            crate::operation::update_custom_key_store::UpdateCustomKeyStoreError::XksProxyVpcEndpointServiceInUseException(inner) => {
1958                Error::XksProxyVpcEndpointServiceInUseException(inner)
1959            }
1960            crate::operation::update_custom_key_store::UpdateCustomKeyStoreError::XksProxyVpcEndpointServiceInvalidConfigurationException(inner) => {
1961                Error::XksProxyVpcEndpointServiceInvalidConfigurationException(inner)
1962            }
1963            crate::operation::update_custom_key_store::UpdateCustomKeyStoreError::XksProxyVpcEndpointServiceNotFoundException(inner) => {
1964                Error::XksProxyVpcEndpointServiceNotFoundException(inner)
1965            }
1966            crate::operation::update_custom_key_store::UpdateCustomKeyStoreError::Unhandled(inner) => Error::Unhandled(inner),
1967        }
1968    }
1969}
1970impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_key_description::UpdateKeyDescriptionError, R>> for Error
1971where
1972    R: Send + Sync + std::fmt::Debug + 'static,
1973{
1974    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_key_description::UpdateKeyDescriptionError, R>) -> Self {
1975        match err {
1976            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1977            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1978                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1979                source: err.into(),
1980            }),
1981        }
1982    }
1983}
1984impl From<crate::operation::update_key_description::UpdateKeyDescriptionError> for Error {
1985    fn from(err: crate::operation::update_key_description::UpdateKeyDescriptionError) -> Self {
1986        match err {
1987            crate::operation::update_key_description::UpdateKeyDescriptionError::DependencyTimeoutException(inner) => {
1988                Error::DependencyTimeoutException(inner)
1989            }
1990            crate::operation::update_key_description::UpdateKeyDescriptionError::InvalidArnException(inner) => Error::InvalidArnException(inner),
1991            crate::operation::update_key_description::UpdateKeyDescriptionError::KmsInternalException(inner) => Error::KmsInternalException(inner),
1992            crate::operation::update_key_description::UpdateKeyDescriptionError::KmsInvalidStateException(inner) => {
1993                Error::KmsInvalidStateException(inner)
1994            }
1995            crate::operation::update_key_description::UpdateKeyDescriptionError::NotFoundException(inner) => Error::NotFoundException(inner),
1996            crate::operation::update_key_description::UpdateKeyDescriptionError::Unhandled(inner) => Error::Unhandled(inner),
1997        }
1998    }
1999}
2000impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_primary_region::UpdatePrimaryRegionError, R>> for Error
2001where
2002    R: Send + Sync + std::fmt::Debug + 'static,
2003{
2004    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_primary_region::UpdatePrimaryRegionError, R>) -> Self {
2005        match err {
2006            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2007            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2008                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2009                source: err.into(),
2010            }),
2011        }
2012    }
2013}
2014impl From<crate::operation::update_primary_region::UpdatePrimaryRegionError> for Error {
2015    fn from(err: crate::operation::update_primary_region::UpdatePrimaryRegionError) -> Self {
2016        match err {
2017            crate::operation::update_primary_region::UpdatePrimaryRegionError::DisabledException(inner) => Error::DisabledException(inner),
2018            crate::operation::update_primary_region::UpdatePrimaryRegionError::InvalidArnException(inner) => Error::InvalidArnException(inner),
2019            crate::operation::update_primary_region::UpdatePrimaryRegionError::KmsInternalException(inner) => Error::KmsInternalException(inner),
2020            crate::operation::update_primary_region::UpdatePrimaryRegionError::KmsInvalidStateException(inner) => {
2021                Error::KmsInvalidStateException(inner)
2022            }
2023            crate::operation::update_primary_region::UpdatePrimaryRegionError::NotFoundException(inner) => Error::NotFoundException(inner),
2024            crate::operation::update_primary_region::UpdatePrimaryRegionError::UnsupportedOperationException(inner) => {
2025                Error::UnsupportedOperationException(inner)
2026            }
2027            crate::operation::update_primary_region::UpdatePrimaryRegionError::Unhandled(inner) => Error::Unhandled(inner),
2028        }
2029    }
2030}
2031impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::verify::VerifyError, R>> for Error
2032where
2033    R: Send + Sync + std::fmt::Debug + 'static,
2034{
2035    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::verify::VerifyError, R>) -> Self {
2036        match err {
2037            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2038            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2039                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2040                source: err.into(),
2041            }),
2042        }
2043    }
2044}
2045impl From<crate::operation::verify::VerifyError> for Error {
2046    fn from(err: crate::operation::verify::VerifyError) -> Self {
2047        match err {
2048            crate::operation::verify::VerifyError::DependencyTimeoutException(inner) => Error::DependencyTimeoutException(inner),
2049            crate::operation::verify::VerifyError::DisabledException(inner) => Error::DisabledException(inner),
2050            crate::operation::verify::VerifyError::DryRunOperationException(inner) => Error::DryRunOperationException(inner),
2051            crate::operation::verify::VerifyError::InvalidGrantTokenException(inner) => Error::InvalidGrantTokenException(inner),
2052            crate::operation::verify::VerifyError::InvalidKeyUsageException(inner) => Error::InvalidKeyUsageException(inner),
2053            crate::operation::verify::VerifyError::KeyUnavailableException(inner) => Error::KeyUnavailableException(inner),
2054            crate::operation::verify::VerifyError::KmsInternalException(inner) => Error::KmsInternalException(inner),
2055            crate::operation::verify::VerifyError::KmsInvalidSignatureException(inner) => Error::KmsInvalidSignatureException(inner),
2056            crate::operation::verify::VerifyError::KmsInvalidStateException(inner) => Error::KmsInvalidStateException(inner),
2057            crate::operation::verify::VerifyError::NotFoundException(inner) => Error::NotFoundException(inner),
2058            crate::operation::verify::VerifyError::Unhandled(inner) => Error::Unhandled(inner),
2059        }
2060    }
2061}
2062impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::verify_mac::VerifyMacError, R>> for Error
2063where
2064    R: Send + Sync + std::fmt::Debug + 'static,
2065{
2066    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::verify_mac::VerifyMacError, R>) -> Self {
2067        match err {
2068            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2069            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2070                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2071                source: err.into(),
2072            }),
2073        }
2074    }
2075}
2076impl From<crate::operation::verify_mac::VerifyMacError> for Error {
2077    fn from(err: crate::operation::verify_mac::VerifyMacError) -> Self {
2078        match err {
2079            crate::operation::verify_mac::VerifyMacError::DisabledException(inner) => Error::DisabledException(inner),
2080            crate::operation::verify_mac::VerifyMacError::DryRunOperationException(inner) => Error::DryRunOperationException(inner),
2081            crate::operation::verify_mac::VerifyMacError::InvalidGrantTokenException(inner) => Error::InvalidGrantTokenException(inner),
2082            crate::operation::verify_mac::VerifyMacError::InvalidKeyUsageException(inner) => Error::InvalidKeyUsageException(inner),
2083            crate::operation::verify_mac::VerifyMacError::KeyUnavailableException(inner) => Error::KeyUnavailableException(inner),
2084            crate::operation::verify_mac::VerifyMacError::KmsInternalException(inner) => Error::KmsInternalException(inner),
2085            crate::operation::verify_mac::VerifyMacError::KmsInvalidMacException(inner) => Error::KmsInvalidMacException(inner),
2086            crate::operation::verify_mac::VerifyMacError::KmsInvalidStateException(inner) => Error::KmsInvalidStateException(inner),
2087            crate::operation::verify_mac::VerifyMacError::NotFoundException(inner) => Error::NotFoundException(inner),
2088            crate::operation::verify_mac::VerifyMacError::Unhandled(inner) => Error::Unhandled(inner),
2089        }
2090    }
2091}
2092impl ::std::error::Error for Error {
2093    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
2094        match self {
2095            Error::AlreadyExistsException(inner) => inner.source(),
2096            Error::CloudHsmClusterInUseException(inner) => inner.source(),
2097            Error::CloudHsmClusterInvalidConfigurationException(inner) => inner.source(),
2098            Error::CloudHsmClusterNotActiveException(inner) => inner.source(),
2099            Error::CloudHsmClusterNotFoundException(inner) => inner.source(),
2100            Error::CloudHsmClusterNotRelatedException(inner) => inner.source(),
2101            Error::ConflictException(inner) => inner.source(),
2102            Error::CustomKeyStoreHasCmKsException(inner) => inner.source(),
2103            Error::CustomKeyStoreInvalidStateException(inner) => inner.source(),
2104            Error::CustomKeyStoreNameInUseException(inner) => inner.source(),
2105            Error::CustomKeyStoreNotFoundException(inner) => inner.source(),
2106            Error::DependencyTimeoutException(inner) => inner.source(),
2107            Error::DisabledException(inner) => inner.source(),
2108            Error::DryRunOperationException(inner) => inner.source(),
2109            Error::ExpiredImportTokenException(inner) => inner.source(),
2110            Error::IncorrectKeyException(inner) => inner.source(),
2111            Error::IncorrectKeyMaterialException(inner) => inner.source(),
2112            Error::IncorrectTrustAnchorException(inner) => inner.source(),
2113            Error::InvalidAliasNameException(inner) => inner.source(),
2114            Error::InvalidArnException(inner) => inner.source(),
2115            Error::InvalidCiphertextException(inner) => inner.source(),
2116            Error::InvalidGrantIdException(inner) => inner.source(),
2117            Error::InvalidGrantTokenException(inner) => inner.source(),
2118            Error::InvalidImportTokenException(inner) => inner.source(),
2119            Error::InvalidKeyUsageException(inner) => inner.source(),
2120            Error::InvalidMarkerException(inner) => inner.source(),
2121            Error::KmsInternalException(inner) => inner.source(),
2122            Error::KmsInvalidMacException(inner) => inner.source(),
2123            Error::KmsInvalidSignatureException(inner) => inner.source(),
2124            Error::KmsInvalidStateException(inner) => inner.source(),
2125            Error::KeyUnavailableException(inner) => inner.source(),
2126            Error::LimitExceededException(inner) => inner.source(),
2127            Error::MalformedPolicyDocumentException(inner) => inner.source(),
2128            Error::NotFoundException(inner) => inner.source(),
2129            Error::TagException(inner) => inner.source(),
2130            Error::UnsupportedOperationException(inner) => inner.source(),
2131            Error::XksKeyAlreadyInUseException(inner) => inner.source(),
2132            Error::XksKeyInvalidConfigurationException(inner) => inner.source(),
2133            Error::XksKeyNotFoundException(inner) => inner.source(),
2134            Error::XksProxyIncorrectAuthenticationCredentialException(inner) => inner.source(),
2135            Error::XksProxyInvalidConfigurationException(inner) => inner.source(),
2136            Error::XksProxyInvalidResponseException(inner) => inner.source(),
2137            Error::XksProxyUriEndpointInUseException(inner) => inner.source(),
2138            Error::XksProxyUriInUseException(inner) => inner.source(),
2139            Error::XksProxyUriUnreachableException(inner) => inner.source(),
2140            Error::XksProxyVpcEndpointServiceInUseException(inner) => inner.source(),
2141            Error::XksProxyVpcEndpointServiceInvalidConfigurationException(inner) => inner.source(),
2142            Error::XksProxyVpcEndpointServiceNotFoundException(inner) => inner.source(),
2143            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
2144        }
2145    }
2146}
2147impl ::aws_types::request_id::RequestId for Error {
2148    fn request_id(&self) -> Option<&str> {
2149        match self {
2150            Self::AlreadyExistsException(e) => e.request_id(),
2151            Self::CloudHsmClusterInUseException(e) => e.request_id(),
2152            Self::CloudHsmClusterInvalidConfigurationException(e) => e.request_id(),
2153            Self::CloudHsmClusterNotActiveException(e) => e.request_id(),
2154            Self::CloudHsmClusterNotFoundException(e) => e.request_id(),
2155            Self::CloudHsmClusterNotRelatedException(e) => e.request_id(),
2156            Self::ConflictException(e) => e.request_id(),
2157            Self::CustomKeyStoreHasCmKsException(e) => e.request_id(),
2158            Self::CustomKeyStoreInvalidStateException(e) => e.request_id(),
2159            Self::CustomKeyStoreNameInUseException(e) => e.request_id(),
2160            Self::CustomKeyStoreNotFoundException(e) => e.request_id(),
2161            Self::DependencyTimeoutException(e) => e.request_id(),
2162            Self::DisabledException(e) => e.request_id(),
2163            Self::DryRunOperationException(e) => e.request_id(),
2164            Self::ExpiredImportTokenException(e) => e.request_id(),
2165            Self::IncorrectKeyException(e) => e.request_id(),
2166            Self::IncorrectKeyMaterialException(e) => e.request_id(),
2167            Self::IncorrectTrustAnchorException(e) => e.request_id(),
2168            Self::InvalidAliasNameException(e) => e.request_id(),
2169            Self::InvalidArnException(e) => e.request_id(),
2170            Self::InvalidCiphertextException(e) => e.request_id(),
2171            Self::InvalidGrantIdException(e) => e.request_id(),
2172            Self::InvalidGrantTokenException(e) => e.request_id(),
2173            Self::InvalidImportTokenException(e) => e.request_id(),
2174            Self::InvalidKeyUsageException(e) => e.request_id(),
2175            Self::InvalidMarkerException(e) => e.request_id(),
2176            Self::KmsInternalException(e) => e.request_id(),
2177            Self::KmsInvalidMacException(e) => e.request_id(),
2178            Self::KmsInvalidSignatureException(e) => e.request_id(),
2179            Self::KmsInvalidStateException(e) => e.request_id(),
2180            Self::KeyUnavailableException(e) => e.request_id(),
2181            Self::LimitExceededException(e) => e.request_id(),
2182            Self::MalformedPolicyDocumentException(e) => e.request_id(),
2183            Self::NotFoundException(e) => e.request_id(),
2184            Self::TagException(e) => e.request_id(),
2185            Self::UnsupportedOperationException(e) => e.request_id(),
2186            Self::XksKeyAlreadyInUseException(e) => e.request_id(),
2187            Self::XksKeyInvalidConfigurationException(e) => e.request_id(),
2188            Self::XksKeyNotFoundException(e) => e.request_id(),
2189            Self::XksProxyIncorrectAuthenticationCredentialException(e) => e.request_id(),
2190            Self::XksProxyInvalidConfigurationException(e) => e.request_id(),
2191            Self::XksProxyInvalidResponseException(e) => e.request_id(),
2192            Self::XksProxyUriEndpointInUseException(e) => e.request_id(),
2193            Self::XksProxyUriInUseException(e) => e.request_id(),
2194            Self::XksProxyUriUnreachableException(e) => e.request_id(),
2195            Self::XksProxyVpcEndpointServiceInUseException(e) => e.request_id(),
2196            Self::XksProxyVpcEndpointServiceInvalidConfigurationException(e) => e.request_id(),
2197            Self::XksProxyVpcEndpointServiceNotFoundException(e) => e.request_id(),
2198            Self::Unhandled(e) => e.meta.request_id(),
2199        }
2200    }
2201}