Package com.amazonaws.services.waf.model
Class WAFInvalidParameterException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.amazonaws.AmazonClientException
com.amazonaws.AmazonServiceException
com.amazonaws.services.waf.model.WAFInvalidParameterException
- All Implemented Interfaces:
Serializable
The operation failed because AWS WAF didn't recognize a parameter in the request. For example:
- You specified an invalid parameter name.
- You specified an invalid value.
- You tried to update an object (
ByteMatchSet
,IPSet
,Rule
, orWebACL
) using an action other thanINSERT
orDELETE
. - You tried to create a
WebACL
with aDefaultAction
Type
other thanALLOW
,BLOCK
, orCOUNT
. - You tried to update a
WebACL
with aWafAction
Type
other thanALLOW
,BLOCK
, orCOUNT
. - You tried to update a
ByteMatchSet
with aFieldToMatch
Type
other than HEADER, QUERY_STRING, or URI. - You tried to update a
ByteMatchSet
with aField
ofHEADER
but no value forData
.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.amazonaws.AmazonServiceException
AmazonServiceException.ErrorType
-
Constructor Summary
ConstructorsConstructorDescriptionWAFInvalidParameterException
(String message) Constructs a new WAFInvalidParameterException with the specified error message. -
Method Summary
Modifier and TypeMethodDescriptiongetField()
void
setField
(ParameterExceptionField field) void
void
setParameter
(String parameter) void
setReason
(ParameterExceptionReason reason) void
withField
(ParameterExceptionField field) withParameter
(String parameter) withReason
(ParameterExceptionReason reason) withReason
(String reason) Methods inherited from class com.amazonaws.AmazonServiceException
getErrorCode, getErrorMessage, getErrorType, getMessage, getRawResponse, getRawResponseContent, getRequestId, getServiceName, getStatusCode, setErrorCode, setErrorMessage, setErrorType, setRawResponse, setRawResponseContent, setRequestId, setServiceName, setStatusCode
Methods inherited from class com.amazonaws.AmazonClientException
isRetryable
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
WAFInvalidParameterException
Constructs a new WAFInvalidParameterException with the specified error message.- Parameters:
message
- Describes the error encountered.
-
-
Method Details
-
setField
- Parameters:
field
-- See Also:
-
getField
- Returns:
- See Also:
-
withField
- Parameters:
field
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setField
- Parameters:
field
-- See Also:
-
withField
- Parameters:
field
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setParameter
- Parameters:
parameter
-
-
getParameter
- Returns:
-
withParameter
- Parameters:
parameter
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setReason
- Parameters:
reason
-- See Also:
-
getReason
- Returns:
- See Also:
-
withReason
- Parameters:
reason
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setReason
- Parameters:
reason
-- See Also:
-
withReason
- Parameters:
reason
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-