[][src]Enum rusoto_kms::CreateKeyError

pub enum CreateKeyError {
    CloudHsmClusterInvalidConfiguration(String),
    CustomKeyStoreInvalidState(String),
    CustomKeyStoreNotFound(String),
    DependencyTimeout(String),
    InvalidArn(String),
    KMSInternal(String),
    LimitExceeded(String),
    MalformedPolicyDocument(String),
    Tag(String),
    UnsupportedOperation(String),
}

Errors returned by CreateKey

Variants

CloudHsmClusterInvalidConfiguration(String)

The request was rejected because the associated AWS CloudHSM cluster did not meet the configuration requirements for a custom key store. The cluster must be configured with private subnets in at least two different Availability Zones in the Region. Also, it must contain at least as many HSMs as the operation requires.

For the CreateCustomKeyStore, UpdateCustomKeyStore, and CreateKey operations, the AWS CloudHSM cluster must have at least two active HSMs, each in a different Availability Zone. For the ConnectCustomKeyStore operation, the AWS CloudHSM must contain at least one active HSM.

For information about creating a private subnet for a AWS CloudHSM cluster, see Create a Private Subnet in the AWS CloudHSM User Guide. To add HSMs, use the AWS CloudHSM CreateHsm operation.

CustomKeyStoreInvalidState(String)

The request was rejected because of the ConnectionState of the custom key store. To get the ConnectionState of a custom key store, use the DescribeCustomKeyStores operation.

This exception is thrown under the following conditions:

  • You requested the CreateKey or GenerateRandom operation in a custom key store that is not connected. These operations are valid only when the custom key store ConnectionState is CONNECTED.

  • You requested the UpdateCustomKeyStore or DeleteCustomKeyStore operation on a custom key store that is not disconnected. This operation is valid only when the custom key store ConnectionState is DISCONNECTED.

  • You requested the ConnectCustomKeyStore operation on a custom key store with a ConnectionState of DISCONNECTING or FAILED. This operation is valid for all other ConnectionState values.

CustomKeyStoreNotFound(String)

The request was rejected because AWS KMS cannot find a custom key store with the specified key store name or ID.

DependencyTimeout(String)

The system timed out while trying to fulfill the request. The request can be retried.

InvalidArn(String)

The request was rejected because a specified ARN was not valid.

KMSInternal(String)

The request was rejected because an internal exception occurred. The request can be retried.

LimitExceeded(String)

The request was rejected because a limit was exceeded. For more information, see Limits in the AWS Key Management Service Developer Guide.

MalformedPolicyDocument(String)

The request was rejected because the specified policy is not syntactically or semantically correct.

Tag(String)

The request was rejected because one or more tags are not valid.

UnsupportedOperation(String)

The request was rejected because a specified parameter is not supported or a specified resource is not valid for this operation.

Methods

impl CreateKeyError[src]

Trait Implementations

impl PartialEq<CreateKeyError> for CreateKeyError[src]

impl Debug for CreateKeyError[src]

impl Display for CreateKeyError[src]

impl Error for CreateKeyError[src]

fn cause(&self) -> Option<&dyn Error>1.0.0[src]

Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

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

fn source(&self) -> Option<&(dyn Error + 'static)>1.30.0[src]

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

fn type_id(&self) -> TypeId where
    Self: 'static, 
1.34.0[src]

Gets the TypeId of self

Auto Trait Implementations

Blanket Implementations

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T

impl<T> Same<T> for T

type Output = T

Should always be Self