AWS SDK for Go (PILOT)
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 https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

ByteMatchSet

import "github.com/aws/aws-sdk-go/service/waf"

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.

ByteMatchSetId

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

ByteMatchTuples

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.

Name

Type: *string

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

Method

GoString

func (s ByteMatchSet) GoString() string

GoString returns the string representation

SetByteMatchSetId

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

SetByteMatchSetId sets the ByteMatchSetId field's value.

SetByteMatchTuples

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

SetByteMatchTuples sets the ByteMatchTuples field's value.

SetName

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

SetName sets the Name field's value.

String

func (s ByteMatchSet) String() string

String returns the string representation

On this page: