[−][src]Enum rusoto_kms::CreateKeyError
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
isCONNECTED
. -
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
isDISCONNECTED
. -
You requested the ConnectCustomKeyStore operation on a custom key store with a
ConnectionState
ofDISCONNECTING
orFAILED
. This operation is valid for all otherConnectionState
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]
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreateKeyError>
[src]
Trait Implementations
impl PartialEq<CreateKeyError> for CreateKeyError
[src]
fn eq(&self, other: &CreateKeyError) -> bool
[src]
fn ne(&self, other: &CreateKeyError) -> bool
[src]
impl Debug for CreateKeyError
[src]
impl Display for CreateKeyError
[src]
impl Error for CreateKeyError
[src]
fn description(&self) -> &str
[src]
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
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]
Self: 'static,
Gets the TypeId
of self
Auto Trait Implementations
impl Send for CreateKeyError
impl Sync for CreateKeyError
Blanket Implementations
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Erased for T
impl<T> Same<T> for T
type Output = T
Should always be Self