#[non_exhaustive]
pub enum DisconnectCustomKeyStoreErrorKind {
CustomKeyStoreInvalidStateException(CustomKeyStoreInvalidStateException),
CustomKeyStoreNotFoundException(CustomKeyStoreNotFoundException),
KmsInternalException(KmsInternalException),
Unhandled(Box<dyn Error + Send + Sync + 'static>),
}Expand description
Types of errors that can occur for the DisconnectCustomKeyStore operation.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
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 Send for DisconnectCustomKeyStoreErrorKind
impl Sync for DisconnectCustomKeyStoreErrorKind
impl Unpin for DisconnectCustomKeyStoreErrorKind
impl !UnwindSafe for DisconnectCustomKeyStoreErrorKind
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