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

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 unknown error occurred. The raw HTTP response is provided.

Methods

impl ImportKeyMaterialError
[src]

Trait Implementations

impl Debug for ImportKeyMaterialError
[src]

Formats the value using the given formatter. Read more

impl PartialEq for ImportKeyMaterialError
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl From<Error> for ImportKeyMaterialError
[src]

Performs the conversion.

impl From<CredentialsError> for ImportKeyMaterialError
[src]

Performs the conversion.

impl From<HttpDispatchError> for ImportKeyMaterialError
[src]

Performs the conversion.

impl From<Error> for ImportKeyMaterialError
[src]

Performs the conversion.

impl Display for ImportKeyMaterialError
[src]

Formats the value using the given formatter. Read more

impl Error for ImportKeyMaterialError
[src]

This method is soft-deprecated. Read more

The lower-level cause of this error, if any. Read more

Auto Trait Implementations