Byte Match Set Args
data class ByteMatchSetArgs(val byteMatchTuples: Output<List<ByteMatchSetByteMatchTupleArgs>>? = null, val name: Output<String>? = null) : ConvertibleToJava<ByteMatchSetArgs>
Provides a WAF Byte Match Set Resource
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.waf.ByteMatchSet;
import com.pulumi.aws.waf.ByteMatchSetArgs;
import com.pulumi.aws.waf.inputs.ByteMatchSetByteMatchTupleArgs;
import com.pulumi.aws.waf.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()
.byteMatchTuples(ByteMatchSetByteMatchTupleArgs.builder()
.fieldToMatch(ByteMatchSetByteMatchTupleFieldToMatchArgs.builder()
.data("referer")
.type("HEADER")
.build())
.positionalConstraint("CONTAINS")
.targetString("badrefer1")
.textTransformation("NONE")
.build())
.build());
}
}
Content copied to clipboard
Import
WAF Byte Match Set can be imported using the id, e.g.,
$ pulumi import aws:waf/byteMatchSet:ByteMatchSet byte_set a1b2c3d4-d5f6-7777-8888-9999aaaabbbbcccc
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(byteMatchTuples: Output<List<ByteMatchSetByteMatchTupleArgs>>? = null, name: Output<String>? = null)