Byte Match Set
    Provides a WAF Regional Byte Match Set Resource for use with Application Load Balancer.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const byteSet = new aws.wafregional.ByteMatchSet("byte_set", {
    name: "my_waf_byte_match_set",
    byteMatchTuples: [{
        textTransformation: "NONE",
        targetString: "badrefer1",
        positionalConstraint: "CONTAINS",
        fieldToMatch: {
            type: "HEADER",
            data: "referer",
        },
    }],
});Content copied to clipboard
import pulumi
import pulumi_aws as aws
byte_set = aws.wafregional.ByteMatchSet("byte_set",
    name="my_waf_byte_match_set",
    byte_match_tuples=[aws.wafregional.ByteMatchSetByteMatchTupleArgs(
        text_transformation="NONE",
        target_string="badrefer1",
        positional_constraint="CONTAINS",
        field_to_match=aws.wafregional.ByteMatchSetByteMatchTupleFieldToMatchArgs(
            type="HEADER",
            data="referer",
        ),
    )])Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
    var byteSet = new Aws.WafRegional.ByteMatchSet("byte_set", new()
    {
        Name = "my_waf_byte_match_set",
        ByteMatchTuples = new[]
        {
            new Aws.WafRegional.Inputs.ByteMatchSetByteMatchTupleArgs
            {
                TextTransformation = "NONE",
                TargetString = "badrefer1",
                PositionalConstraint = "CONTAINS",
                FieldToMatch = new Aws.WafRegional.Inputs.ByteMatchSetByteMatchTupleFieldToMatchArgs
                {
                    Type = "HEADER",
                    Data = "referer",
                },
            },
        },
    });
});Content copied to clipboard
package main
import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/wafregional"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := wafregional.NewByteMatchSet(ctx, "byte_set", &wafregional.ByteMatchSetArgs{
			Name: pulumi.String("my_waf_byte_match_set"),
			ByteMatchTuples: wafregional.ByteMatchSetByteMatchTupleArray{
				&wafregional.ByteMatchSetByteMatchTupleArgs{
					TextTransformation:   pulumi.String("NONE"),
					TargetString:         pulumi.String("badrefer1"),
					PositionalConstraint: pulumi.String("CONTAINS"),
					FieldToMatch: &wafregional.ByteMatchSetByteMatchTupleFieldToMatchArgs{
						Type: pulumi.String("HEADER"),
						Data: pulumi.String("referer"),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.wafregional.ByteMatchSet;
import com.pulumi.aws.wafregional.ByteMatchSetArgs;
import com.pulumi.aws.wafregional.inputs.ByteMatchSetByteMatchTupleArgs;
import com.pulumi.aws.wafregional.inputs.ByteMatchSetByteMatchTupleFieldToMatchArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        var byteSet = new ByteMatchSet("byteSet", ByteMatchSetArgs.builder()
            .name("my_waf_byte_match_set")
            .byteMatchTuples(ByteMatchSetByteMatchTupleArgs.builder()
                .textTransformation("NONE")
                .targetString("badrefer1")
                .positionalConstraint("CONTAINS")
                .fieldToMatch(ByteMatchSetByteMatchTupleFieldToMatchArgs.builder()
                    .type("HEADER")
                    .data("referer")
                    .build())
                .build())
            .build());
    }
}Content copied to clipboard
resources:
  byteSet:
    type: aws:wafregional:ByteMatchSet
    name: byte_set
    properties:
      name: my_waf_byte_match_set
      byteMatchTuples:
        - textTransformation: NONE
          targetString: badrefer1
          positionalConstraint: CONTAINS
          fieldToMatch:
            type: HEADER
            data: refererContent copied to clipboard
Import
Using pulumi import, import WAF Regional Byte Match Set using the id. For example:
$ pulumi import aws:wafregional/byteMatchSet:ByteMatchSet byte_set a1b2c3d4-d5f6-7777-8888-9999aaaabbbbccccContent copied to clipboard