@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AccessDeniedException extends AmazonSecurityLakeException
You do not have sufficient access to perform this action. Access denied errors appear when Amazon Security Lake explicitly or implicitly denies an authorization request. An explicit denial occurs when a policy contains a Deny statement for the specific Amazon Web Services action. An implicit denial occurs when there is no applicable Deny statement and also no applicable Allow statement.
AmazonServiceException.ErrorType
Constructor and Description |
---|
AccessDeniedException(String message)
Constructs a new AccessDeniedException with the specified error message.
|
Modifier and Type | Method and Description |
---|---|
String |
getErrorCode()
A coded string to provide more information about the access denied exception.
|
void |
setErrorCode(String errorCode)
A coded string to provide more information about the access denied exception.
|
AccessDeniedException |
withErrorCode(String errorCode)
A coded string to provide more information about the access denied exception.
|
getErrorMessage, getErrorType, getHttpHeaders, getMessage, getProxyHost, getRawResponse, getRawResponseContent, getRequestId, getServiceName, getStatusCode, setErrorMessage, setErrorType, setHttpHeaders, setProxyHost, setRawResponse, setRawResponseContent, setRequestId, setServiceName, setStatusCode
isRetryable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public AccessDeniedException(String message)
message
- Describes the error encountered.public void setErrorCode(String errorCode)
A coded string to provide more information about the access denied exception. You can use the error code to check the exception type.
setErrorCode
in class AmazonServiceException
errorCode
- A coded string to provide more information about the access denied exception. You can use the error code
to check the exception type.public String getErrorCode()
A coded string to provide more information about the access denied exception. You can use the error code to check the exception type.
getErrorCode
in class AmazonServiceException
public AccessDeniedException withErrorCode(String errorCode)
A coded string to provide more information about the access denied exception. You can use the error code to check the exception type.
errorCode
- A coded string to provide more information about the access denied exception. You can use the error code
to check the exception type.