pub enum ImportKeyMaterialError {
DependencyTimeout(String),
ExpiredImportToken(String),
IncorrectKeyMaterial(String),
InvalidArn(String),
InvalidCiphertext(String),
InvalidImportToken(String),
KMSInternal(String),
KMSInvalidState(String),
NotFound(String),
UnsupportedOperation(String),
HttpDispatch(HttpDispatchError),
Credentials(CredentialsError),
Validation(String),
ParseError(String),
Unknown(BufferedHttpResponse),
}
Errors returned by ImportKeyMaterial
The system timed out while trying to fulfill the request. The request can be retried.
The request was rejected because the provided import token is expired. Use GetParametersForImport 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.
The request was rejected because the provided key material is invalid or is not the same key material that was previously imported into this customer master key (CMK).
The request was rejected because a specified ARN was not valid.
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.
The request was rejected because the provided import token is invalid or is associated with a different customer master key (CMK).
The request was rejected because an internal exception occurred. The request can be retried.
The request was rejected because the state of the specified resource is not valid for this request.
For more information about how key state affects the use of a CMK, see How Key State Affects Use of a Customer Master Key in the AWS Key Management Service Developer Guide.
The request was rejected because the specified entity or resource could not be found.
The request was rejected because a specified parameter is not supported or a specified resource is not valid for this operation.
An error occurred dispatching the HTTP request
An error was encountered with AWS credentials.
A validation error occurred. Details from AWS are provided.
An error occurred parsing the response payload.
An unknown error occurred. The raw HTTP response is provided.
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.
Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
Deprecating in 1.33.0
: replaced by Error::source, which can support downcasting
The lower-level cause of this error, if any. Read more
The lower-level source of this error, if any. Read more
Converts the given value to a String
. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static