@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class WAFInvalidPermissionPolicyException extends AWSWAFV2Exception
The operation failed because the specified policy isn't in the proper format.
The policy specifications must conform to the following:
The policy must be composed using IAM Policy version 2012-10-17.
The policy must include specifications for Effect
, Action
, and Principal
.
Effect
must specify Allow
.
Action
must specify wafv2:CreateWebACL
, wafv2:UpdateWebACL
, and
wafv2:PutFirewallManagerRuleGroups
and may optionally specify wafv2:GetRuleGroup
. WAF
rejects any extra actions or wildcard actions in the policy.
The policy must not include a Resource
parameter.
For more information, see IAM Policies.
AmazonServiceException.ErrorType
Constructor and Description |
---|
WAFInvalidPermissionPolicyException(String message)
Constructs a new WAFInvalidPermissionPolicyException 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, setStatusCode
isRetryable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public WAFInvalidPermissionPolicyException(String message)
message
- Describes the error encountered.