AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::WAF::ByteMatchSet

CfnByteMatchSet

> This is *AWS WAF Classic* documentation. For more information, see [AWS WAF Classic](https://docs.aws.amazon.com/waf/latest/developerguide/classic-waf-chapter.html) in the developer guide. > > *For the latest version of AWS WAF* , use the AWS WAF V2 API and see the [AWS WAF Developer Guide](https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html) . With the latest version, AWS WAF has a single set of endpoints for regional and global use. The `AWS::WAF::ByteMatchSet` resource creates an AWS WAF `ByteMatchSet` that identifies a part of a web request that you want to inspect.

Import

import { CfnByteMatchSet } from 'aws-cdk-lib/aws-waf';

Or use the module namespace:

import * as waf from 'aws-cdk-lib/aws-waf';
// waf.CfnByteMatchSet

Properties

Configuration passed to the constructor as CfnByteMatchSetProps.

nameRequired
string

The name of the `ByteMatchSet` . You can't change `Name` after you create a `ByteMatchSet` .

byteMatchTuplesOptional
IResolvable | IResolvable | ByteMatchTupleProperty[]

Specifies 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.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

LevelL1 (CloudFormation)
Moduleaws-waf
CFN TypeAWS::WAF::ByteMatchSet
Properties2

External Links