@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class KmsInvalidStateException extends AWSStepFunctionsException
The KMS key is not in valid state, for example: Disabled or Deleted.
AmazonServiceException.ErrorType| Constructor and Description | 
|---|
| KmsInvalidStateException(String message)Constructs a new KmsInvalidStateException with the specified error message. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getKmsKeyState()
 Current status of the KMS; key. | 
| void | setKmsKeyState(String kmsKeyState)
 Current status of the KMS; key. | 
| KmsInvalidStateException | withKmsKeyState(KmsKeyState kmsKeyState)
 Current status of the KMS; key. | 
| KmsInvalidStateException | withKmsKeyState(String kmsKeyState)
 Current status of the KMS; key. | 
getErrorCode, getErrorMessage, getErrorType, getHttpHeaders, getMessage, getProxyHost, getRawResponse, getRawResponseContent, getRequestId, getServiceName, getStatusCode, setErrorCode, setErrorMessage, setErrorType, setHttpHeaders, setProxyHost, setRawResponse, setRawResponseContent, setRequestId, setServiceName, setStatusCodeisRetryableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic KmsInvalidStateException(String message)
message - Describes the error encountered.public void setKmsKeyState(String kmsKeyState)
 Current status of the KMS; key. For example: DISABLED, PENDING_DELETION,
 PENDING_IMPORT, UNAVAILABLE, CREATING.
 
kmsKeyState - Current status of the KMS; key. For example: DISABLED, PENDING_DELETION,
        PENDING_IMPORT, UNAVAILABLE, CREATING.KmsKeyStatepublic String getKmsKeyState()
 Current status of the KMS; key. For example: DISABLED, PENDING_DELETION,
 PENDING_IMPORT, UNAVAILABLE, CREATING.
 
DISABLED, PENDING_DELETION,
         PENDING_IMPORT, UNAVAILABLE, CREATING.KmsKeyStatepublic KmsInvalidStateException withKmsKeyState(String kmsKeyState)
 Current status of the KMS; key. For example: DISABLED, PENDING_DELETION,
 PENDING_IMPORT, UNAVAILABLE, CREATING.
 
kmsKeyState - Current status of the KMS; key. For example: DISABLED, PENDING_DELETION,
        PENDING_IMPORT, UNAVAILABLE, CREATING.KmsKeyStatepublic KmsInvalidStateException withKmsKeyState(KmsKeyState kmsKeyState)
 Current status of the KMS; key. For example: DISABLED, PENDING_DELETION,
 PENDING_IMPORT, UNAVAILABLE, CREATING.
 
kmsKeyState - Current status of the KMS; key. For example: DISABLED, PENDING_DELETION,
        PENDING_IMPORT, UNAVAILABLE, CREATING.KmsKeyStateCopyright © 2024. All rights reserved.