public class InvalidKMSResourceException extends AmazonServiceException
Kinesis Data Firehose throws this exception when an attempt to put records or
to start or stop delivery stream encryption fails. This happens when the KMS
service throws one of the following exception types:
AccessDeniedException
, InvalidStateException
,
DisabledException
, or NotFoundException
.
AmazonServiceException.ErrorType
Constructor and Description |
---|
InvalidKMSResourceException(java.lang.String message)
Constructs a new InvalidKMSResourceException with the specified error
message.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCode()
Returns the value of the code property for this object.
|
void |
setCode(java.lang.String code)
Sets the value of code
|
getErrorCode, getErrorMessage, getErrorType, getMessage, getRequestId, getServiceName, getStatusCode, setErrorCode, setErrorMessage, setErrorType, setRequestId, setServiceName, setStatusCode
isRetryable
public InvalidKMSResourceException(java.lang.String message)
message
- Describes the error encountered.public java.lang.String getCode()
public void setCode(java.lang.String code)
code
- The new value for the code property for this object.Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.