Enum rusoto_kms::ImportKeyMaterialError [−][src]
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), Unknown(String), }
Errors returned by ImportKeyMaterial
Variants
DependencyTimeout(String)
The system timed out while trying to fulfill the request. The request can be retried.
ExpiredImportToken(String)
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.
IncorrectKeyMaterial(String)
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).
InvalidArn(String)
The request was rejected because a specified ARN was not valid.
InvalidCiphertext(String)
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.
InvalidImportToken(String)
The request was rejected because the provided import token is invalid or is associated with a different customer master key (CMK).
KMSInternal(String)
The request was rejected because an internal exception occurred. The request can be retried.
KMSInvalidState(String)
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.
NotFound(String)
The request was rejected because the specified entity or resource could not be found.
UnsupportedOperation(String)
The request was rejected because a specified parameter is not supported or a specified resource is not valid for this operation.
HttpDispatch(HttpDispatchError)
An error occurred dispatching the HTTP request
Credentials(CredentialsError)
An error was encountered with AWS credentials.
Validation(String)
A validation error occurred. Details from AWS are provided.
Unknown(String)
An unknown error occurred. The raw HTTP response is provided.
Methods
impl ImportKeyMaterialError
[src]
impl ImportKeyMaterialError
pub fn from_body(body: &str) -> ImportKeyMaterialError
[src]
pub fn from_body(body: &str) -> ImportKeyMaterialError
Trait Implementations
impl Debug for ImportKeyMaterialError
[src]
impl Debug for ImportKeyMaterialError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for ImportKeyMaterialError
[src]
impl PartialEq for ImportKeyMaterialError
fn eq(&self, other: &ImportKeyMaterialError) -> bool
[src]
fn eq(&self, other: &ImportKeyMaterialError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ImportKeyMaterialError) -> bool
[src]
fn ne(&self, other: &ImportKeyMaterialError) -> bool
This method tests for !=
.
impl From<Error> for ImportKeyMaterialError
[src]
impl From<Error> for ImportKeyMaterialError
fn from(err: Error) -> ImportKeyMaterialError
[src]
fn from(err: Error) -> ImportKeyMaterialError
Performs the conversion.
impl From<CredentialsError> for ImportKeyMaterialError
[src]
impl From<CredentialsError> for ImportKeyMaterialError
fn from(err: CredentialsError) -> ImportKeyMaterialError
[src]
fn from(err: CredentialsError) -> ImportKeyMaterialError
Performs the conversion.
impl From<HttpDispatchError> for ImportKeyMaterialError
[src]
impl From<HttpDispatchError> for ImportKeyMaterialError
fn from(err: HttpDispatchError) -> ImportKeyMaterialError
[src]
fn from(err: HttpDispatchError) -> ImportKeyMaterialError
Performs the conversion.
impl From<Error> for ImportKeyMaterialError
[src]
impl From<Error> for ImportKeyMaterialError
fn from(err: Error) -> ImportKeyMaterialError
[src]
fn from(err: Error) -> ImportKeyMaterialError
Performs the conversion.
impl Display for ImportKeyMaterialError
[src]
impl Display for ImportKeyMaterialError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Error for ImportKeyMaterialError
[src]
impl Error for ImportKeyMaterialError
Auto Trait Implementations
impl Send for ImportKeyMaterialError
impl Send for ImportKeyMaterialError
impl Sync for ImportKeyMaterialError
impl Sync for ImportKeyMaterialError