@Generated(value="software.amazon.awssdk:codegen") public final class WafInvalidParameterException extends WafException implements ToCopyableBuilder<WafInvalidParameterException.Builder,WafInvalidParameterException>
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
, or
WebACL
) using an action other than INSERT
or DELETE
.
You tried to create a WebACL
with a DefaultAction
Type
other than
ALLOW
, BLOCK
, or COUNT
.
You tried to create a RateBasedRule
with a RateKey
value other than IP
.
You tried to update a WebACL
with a WafAction
Type
other than
ALLOW
, BLOCK
, or COUNT
.
You tried to update a ByteMatchSet
with a FieldToMatch
Type
other than HEADER,
METHOD, QUERY_STRING, URI, or BODY.
You tried to update a ByteMatchSet
with a Field
of HEADER
but no value for
Data
.
Your request references an ARN that is malformed, or corresponds to a resource with which a web ACL cannot be associated.
Modifier and Type | Class and Description |
---|---|
static interface |
WafInvalidParameterException.Builder |
Modifier and Type | Method and Description |
---|---|
static WafInvalidParameterException.Builder |
builder() |
ParameterExceptionField |
field()
Returns the value of the Field property for this object.
|
String |
fieldAsString()
Returns the value of the Field property for this object.
|
String |
parameter()
Returns the value of the Parameter property for this object.
|
ParameterExceptionReason |
reason()
Returns the value of the Reason property for this object.
|
String |
reasonAsString()
Returns the value of the Reason property for this object.
|
static Class<? extends WafInvalidParameterException.Builder> |
serializableBuilderClass() |
WafInvalidParameterException.Builder |
toBuilder()
Create a
AwsServiceException.Builder initialized with the properties of this AwsServiceException . |
awsErrorDetails, getMessage, isClockSkewException, isThrottlingException
requestId, statusCode
retryable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
copy
public WafInvalidParameterException.Builder toBuilder()
AwsServiceException
AwsServiceException.Builder
initialized with the properties of this AwsServiceException
.toBuilder
in interface ToCopyableBuilder<WafInvalidParameterException.Builder,WafInvalidParameterException>
toBuilder
in class WafException
public static WafInvalidParameterException.Builder builder()
public static Class<? extends WafInvalidParameterException.Builder> serializableBuilderClass()
public ParameterExceptionField field()
If the service returns an enum value that is not available in the current SDK version, field
will return
ParameterExceptionField.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
fieldAsString()
.
ParameterExceptionField
public String fieldAsString()
If the service returns an enum value that is not available in the current SDK version, field
will return
ParameterExceptionField.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
fieldAsString()
.
ParameterExceptionField
public String parameter()
public ParameterExceptionReason reason()
If the service returns an enum value that is not available in the current SDK version, reason
will
return ParameterExceptionReason.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is
available from reasonAsString()
.
ParameterExceptionReason
public String reasonAsString()
If the service returns an enum value that is not available in the current SDK version, reason
will
return ParameterExceptionReason.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is
available from reasonAsString()
.
ParameterExceptionReason
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.