ByteMatchTuple.setTargetString
Code IndexAdd Codota to your IDE (free)

Best code snippets using com.amazonaws.services.waf.model.ByteMatchTuple.setTargetString(Showing top 8 results out of 315)

origin: aws/aws-sdk-java

byteMatchTuple.setTargetString(context.getUnmarshaller(java.nio.ByteBuffer.class).unmarshall(context));
origin: aws/aws-sdk-java

byteMatchTuple.setTargetString(context.getUnmarshaller(java.nio.ByteBuffer.class).unmarshall(context));
origin: aws/aws-sdk-java

setTargetString(targetString);
return this;
origin: com.amazonaws/aws-java-sdk-bundle

byteMatchTuple.setTargetString(context.getUnmarshaller(java.nio.ByteBuffer.class).unmarshall(context));
origin: com.amazonaws/aws-java-sdk-osgi

byteMatchTuple.setTargetString(context.getUnmarshaller(java.nio.ByteBuffer.class).unmarshall(context));
origin: com.amazonaws/aws-java-sdk-osgi

byteMatchTuple.setTargetString(context.getUnmarshaller(java.nio.ByteBuffer.class).unmarshall(context));
origin: com.amazonaws/aws-java-sdk-bundle

setTargetString(targetString);
return this;
origin: com.amazonaws/aws-java-sdk-osgi

setTargetString(targetString);
return this;
com.amazonaws.services.waf.modelByteMatchTuplesetTargetString

Javadoc

The value that you want AWS WAF to search for. AWS WAF searches for the specified string in the part of web requests that you specified in FieldToMatch. The maximum length of the value is 50 bytes.

Valid values depend on the values that you specified for FieldToMatch:

  • HEADER: The value that you want AWS WAF to search for in the request header that you specified in FieldToMatch, for example, the value of the User-Agent or Referer header.

  • METHOD: The HTTP method, which indicates the type of operation specified in the request. CloudFront supports the following methods: DELETE, GET, HEAD, OPTIONS, PATCH, POST, and PUT.

  • QUERY_STRING: The value that you want AWS WAF to search for in the query string, which is the part of a URL that appears after a ? character.

  • URI: The value that you want AWS WAF to search for in the part of a URL that identifies a resource, for example, /images/daily-ad.jpg.

  • BODY: The part of a request that contains any additional data that you want to send to your web server as the HTTP request body, such as data from a form. The request body immediately follows the request headers. Note that only the first 8192 bytes of the request body are forwarded to AWS WAF for inspection. To allow or block requests based on the length of the body, you can create a size constraint set. For more information, see CreateSizeConstraintSet.

If TargetString includes alphabetic characters A-Z and a-z, note that the value is case sensitive.

If you're using the AWS WAF API

Specify a base64-encoded version of the value. The maximum length of the value before you base64-encode it is 50 bytes.

For example, suppose the value of Type is HEADER and the value of Data is User-Agent. If you want to search the User-Agent header for the value BadBot, you base64-encode BadBot using MIME base64 encoding and include the resulting value, QmFkQm90, in the value of TargetString.

If you're using the AWS CLI or one of the AWS SDKs

The value that you want AWS WAF to search for. The SDK automatically base64 encodes the value.

The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.

Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.

Popular methods of ByteMatchTuple

  • <init>
  • equals
  • getFieldToMatch
    The part of a web request that you want AWS WAF to search, such as a specified header or a query st
  • getPositionalConstraint
    Within the portion of a web request that you want to search (for example, in the query string, if a
  • getTargetString
    The value that you want AWS WAF to search for. AWS WAF searches for the specified string in the par
  • getTextTransformation
    Text transformations eliminate some of the unusual formatting that attackers use in web requests in
  • hashCode
  • setFieldToMatch
    The part of a web request that you want AWS WAF to search, such as a specified header or a query st
  • setPositionalConstraint
    Within the portion of a web request that you want to search (for example, in the query string, if a
  • setTextTransformation
    Text transformations eliminate some of the unusual formatting that attackers use in web requests in
  • withPositionalConstraint
    Within the portion of a web request that you want to search (for example, in the query string, if a
  • withTextTransformation
    Text transformations eliminate some of the unusual formatting that attackers use in web requests in
  • withPositionalConstraint,
  • withTextTransformation

Popular classes and methods

  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • getContentResolver (Context)
  • getSystemService (Context)
  • Menu (java.awt)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.

For IntelliJ IDEA,
Android Studio or Eclipse

  • Codota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutContact Us
  • Terms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)