You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::WAF::Types::ByteMatchSetUpdate

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing ByteMatchSetUpdate as input to an Aws::Client method, you can use a vanilla Hash:

{
  action: "INSERT", # required, accepts INSERT, DELETE
  byte_match_tuple: { # required
    field_to_match: { # required
      type: "URI", # required, accepts URI, QUERY_STRING, HEADER, METHOD, BODY
      data: "MatchFieldData",
    },
    target_string: "data", # required
    text_transformation: "NONE", # required, accepts NONE, COMPRESS_WHITE_SPACE, HTML_ENTITY_DECODE, LOWERCASE, CMD_LINE, URL_DECODE
    positional_constraint: "EXACTLY", # required, accepts EXACTLY, STARTS_WITH, ENDS_WITH, CONTAINS, CONTAINS_WORD
  },
}

In an UpdateByteMatchSet request, ByteMatchSetUpdate specifies whether to insert or delete a ByteMatchTuple and includes the settings for the ByteMatchTuple.

Instance Attribute Summary collapse

Instance Attribute Details

#actionString

Specifies whether to insert or delete a ByteMatchTuple.

Possible values:

  • INSERT
  • DELETE

Returns:

  • (String)

    Specifies whether to insert or delete a ByteMatchTuple.

#byte_match_tupleTypes::ByteMatchTuple

Information about the part of a web request that you want AWS WAF to inspect and the value that you want AWS WAF to search for. If you specify DELETE for the value of Action, the ByteMatchTuple values must exactly match the values in the ByteMatchTuple that you want to delete from the ByteMatchSet.

Returns:

  • (Types::ByteMatchTuple)

    Information about the part of a web request that you want AWS WAF to inspect and the value that you want AWS WAF to search for.