Class WafInvalidParameterException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- software.amazon.awssdk.core.exception.SdkException
-
- software.amazon.awssdk.core.exception.SdkServiceException
-
- software.amazon.awssdk.awscore.exception.AwsServiceException
-
- software.amazon.awssdk.services.wafv2.model.Wafv2Exception
-
- software.amazon.awssdk.services.wafv2.model.WafInvalidParameterException
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<WafInvalidParameterException.Builder,WafInvalidParameterException>
@Generated("software.amazon.awssdk:codegen") public final class WafInvalidParameterException extends Wafv2Exception implements ToCopyableBuilder<WafInvalidParameterException.Builder,WafInvalidParameterException>
The operation failed because WAF didn't recognize a parameter in the request. For example:
-
You specified a parameter name or value that isn't valid.
-
Your nested statement isn't valid. You might have tried to nest a statement that can’t be nested.
-
You tried to update a
WebACLwith aDefaultActionthat isn't among the types available at DefaultAction. -
Your request references an ARN that is malformed, or corresponds to a resource with which a web ACL can't be associated.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceWafInvalidParameterException.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WafInvalidParameterException.Builderbuilder()ParameterExceptionFieldfield()The settings where the invalid parameter was found.StringfieldAsString()The settings where the invalid parameter was found.Stringparameter()The invalid parameter that resulted in the exception.Stringreason()Additional information about the exception.List<SdkField<?>>sdkFields()static Class<? extends WafInvalidParameterException.Builder>serializableBuilderClass()WafInvalidParameterException.BuildertoBuilder()-
Methods inherited from class software.amazon.awssdk.awscore.exception.AwsServiceException
awsErrorDetails, getMessage, isClockSkewException, isThrottlingException
-
Methods inherited from class software.amazon.awssdk.core.exception.SdkServiceException
extendedRequestId, requestId, statusCode
-
Methods inherited from class software.amazon.awssdk.core.exception.SdkException
create, retryable
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
toBuilder
public WafInvalidParameterException.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<WafInvalidParameterException.Builder,WafInvalidParameterException>- Overrides:
toBuilderin classWafv2Exception
-
builder
public static WafInvalidParameterException.Builder builder()
-
serializableBuilderClass
public static Class<? extends WafInvalidParameterException.Builder> serializableBuilderClass()
-
field
public ParameterExceptionField field()
The settings where the invalid parameter was found.
If the service returns an enum value that is not available in the current SDK version,
fieldwill returnParameterExceptionField.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromfieldAsString().- Returns:
- The settings where the invalid parameter was found.
- See Also:
ParameterExceptionField
-
fieldAsString
public String fieldAsString()
The settings where the invalid parameter was found.
If the service returns an enum value that is not available in the current SDK version,
fieldwill returnParameterExceptionField.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromfieldAsString().- Returns:
- The settings where the invalid parameter was found.
- See Also:
ParameterExceptionField
-
parameter
public String parameter()
The invalid parameter that resulted in the exception.
- Returns:
- The invalid parameter that resulted in the exception.
-
reason
public String reason()
Additional information about the exception.
- Returns:
- Additional information about the exception.
-
-