#[non_exhaustive]
pub enum DeleteCustomKeyStoreErrorKind {
CustomKeyStoreHasCmKsException(CustomKeyStoreHasCmKsException),
CustomKeyStoreInvalidStateException(CustomKeyStoreInvalidStateException),
CustomKeyStoreNotFoundException(CustomKeyStoreNotFoundException),
KmsInternalException(KmsInternalException),
Unhandled(Box<dyn Error + Send + Sync + 'static>),
}Expand description
Types of errors that can occur for the DeleteCustomKeyStore operation.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
CustomKeyStoreHasCmKsException(CustomKeyStoreHasCmKsException)
The request was rejected because the custom key store contains KMS keys. After verifying that you do not need to use the KMS keys, use the ScheduleKeyDeletion operation to delete the KMS keys. After they are deleted, you can delete the custom key store.
CustomKeyStoreInvalidStateException(CustomKeyStoreInvalidStateException)
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
CreateKeyorGenerateRandomoperation in a custom key store that is not connected. These operations are valid only when the custom key storeConnectionStateisCONNECTED. -
You requested the
UpdateCustomKeyStoreorDeleteCustomKeyStoreoperation on a custom key store that is not disconnected. This operation is valid only when the custom key storeConnectionStateisDISCONNECTED. -
You requested the
ConnectCustomKeyStoreoperation on a custom key store with aConnectionStateofDISCONNECTINGorFAILED. This operation is valid for all otherConnectionStatevalues.
CustomKeyStoreNotFoundException(CustomKeyStoreNotFoundException)
The request was rejected because KMS cannot find a custom key store with the specified key store name or ID.
KmsInternalException(KmsInternalException)
The request was rejected because an internal exception occurred. The request can be retried.
Unhandled(Box<dyn Error + Send + Sync + 'static>)
An unexpected error, e.g. invalid JSON returned by the service or an unknown error code
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for DeleteCustomKeyStoreErrorKind
impl Send for DeleteCustomKeyStoreErrorKind
impl Sync for DeleteCustomKeyStoreErrorKind
impl Unpin for DeleteCustomKeyStoreErrorKind
impl !UnwindSafe for DeleteCustomKeyStoreErrorKind
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more