API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see

We welcome your feedback on this new version of the documentation. Send your comments to


import ""

type ByteMatchSet struct { ByteMatchSetId *string `min:"1" type:"string" required:"true"` ByteMatchTuples []*ByteMatchTuple `type:"list" required:"true"` Name *string `min:"1" type:"string"` }

In a GetByteMatchSet request, ByteMatchSet is a complex type that contains the ByteMatchSetId and Name of a ByteMatchSet, and the values that you specified when you updated the ByteMatchSet.

A complex type that contains ByteMatchTuple objects, which specify the parts of web requests that you want AWS WAF to inspect and the values that you want AWS WAF to search for. If a ByteMatchSet contains more than one ByteMatchTuple object, a request needs to match the settings in only one ByteMatchTuple to be considered a match.


Type: *string

The ByteMatchSetId for a ByteMatchSet. You use ByteMatchSetId to get information about a ByteMatchSet (see GetByteMatchSet), update a ByteMatchSet (see UpdateByteMatchSet), insert a ByteMatchSet into a Rule or delete one from a Rule (see UpdateRule), and delete a ByteMatchSet from AWS WAF (see DeleteByteMatchSet).

ByteMatchSetId is returned by CreateByteMatchSet and by ListByteMatchSets.

ByteMatchSetId is a required field


The bytes (typically a string that corresponds with ASCII characters) that you want AWS WAF to search for in web requests, the location in requests that you want AWS WAF to search, and other settings.


Type: *string

A friendly name or description of the ByteMatchSet. You can't change Name after you create a ByteMatchSet.



func (s ByteMatchSet) GoString() string

GoString returns the string representation


func (s *ByteMatchSet) SetByteMatchSetId(v string) *ByteMatchSet

SetByteMatchSetId sets the ByteMatchSetId field's value.


func (s *ByteMatchSet) SetByteMatchTuples(v []*ByteMatchTuple) *ByteMatchSet

SetByteMatchTuples sets the ByteMatchTuples field's value.


func (s *ByteMatchSet) SetName(v string) *ByteMatchSet

SetName sets the Name field's value.


func (s ByteMatchSet) String() string

String returns the string representation

On this page: