AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
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 ConnectCustomKeyStore operation on a custom key store with
a ConnectionState
of DISCONNECTING
or FAILED
. This operation
is valid for all other ConnectionState
values. To reconnect a custom key store
in a FAILED
state, disconnect it (DisconnectCustomKeyStore), then connect
it (ConnectCustomKeyStore
).
You requested the CreateKey operation in a custom key store that is not connected.
This operations is valid only when the custom key store ConnectionState
is
CONNECTED
.
You requested the DisconnectCustomKeyStore operation on a custom key store
with a ConnectionState
of DISCONNECTING
or DISCONNECTED
. This
operation is valid for all other ConnectionState
values.
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 GenerateRandom operation in an CloudHSM key store that is
not connected. This operation is valid only when the CloudHSM key store ConnectionState
is CONNECTED
.
Namespace: Amazon.KeyManagementService.Model
Assembly: AWSSDK.KeyManagementService.dll
Version: 3.x.y.z
public class CustomKeyStoreInvalidStateException : AmazonKeyManagementServiceException _Exception, ISerializable
The CustomKeyStoreInvalidStateException type exposes the following members
Name | Description | |
---|---|---|
CustomKeyStoreInvalidStateException(string) |
Constructs a new CustomKeyStoreInvalidStateException with the specified error message. |
|
CustomKeyStoreInvalidStateException(string, Exception) |
Construct instance of CustomKeyStoreInvalidStateException |
|
CustomKeyStoreInvalidStateException(Exception) |
Construct instance of CustomKeyStoreInvalidStateException |
|
CustomKeyStoreInvalidStateException(string, Exception, ErrorType, string, string, HttpStatusCode) |
Construct instance of CustomKeyStoreInvalidStateException |
|
CustomKeyStoreInvalidStateException(string, ErrorType, string, string, HttpStatusCode) |
Construct instance of CustomKeyStoreInvalidStateException |
Name | Type | Description | |
---|---|---|---|
Data | System.Collections.IDictionary | Inherited from System.Exception. | |
ErrorCode | System.String | Inherited from Amazon.Runtime.AmazonServiceException. | |
ErrorType | Amazon.Runtime.ErrorType | Inherited from Amazon.Runtime.AmazonServiceException. | |
HelpLink | System.String | Inherited from System.Exception. | |
HResult | System.Int32 | Inherited from System.Exception. | |
InnerException | System.Exception | Inherited from System.Exception. | |
Message | System.String | Inherited from System.Exception. | |
RequestId | System.String | Inherited from Amazon.Runtime.AmazonServiceException. | |
Retryable | Amazon.Runtime.RetryableDetails | Inherited from Amazon.Runtime.AmazonServiceException. | |
Source | System.String | Inherited from System.Exception. | |
StackTrace | System.String | Inherited from System.Exception. | |
StatusCode | System.Net.HttpStatusCode | Inherited from Amazon.Runtime.AmazonServiceException. | |
TargetSite | System.Reflection.MethodBase | Inherited from System.Exception. |
Name | Description | |
---|---|---|
GetObjectData(SerializationInfo, StreamingContext) |
Sets the System.Runtime.Serialization.SerializationInfo with information about the exception. |
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5 and newer, 3.5