@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class KmsInvalidKeyUsageException extends AmazonSQSException
The request was rejected for one of the following reasons:
The KeyUsage value of the KMS key is incompatible with the API operation.
The encryption algorithm or signing algorithm specified for the operation is incompatible with the type of key material in the KMS key (KeySpec).
AmazonServiceException.ErrorType| Constructor and Description |
|---|
KmsInvalidKeyUsageException(String message)
Constructs a new KmsInvalidKeyUsageException with the specified error message.
|
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 KmsInvalidKeyUsageException(String message)
message - Describes the error encountered.