SqlInjectionMatchSet

class SqlInjectionMatchSet : KotlinCustomResource

Provides a WAF Regional SQL Injection Match Set Resource for use with Application Load Balancer.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const sqlInjectionMatchSet = new aws.wafregional.SqlInjectionMatchSet("sql_injection_match_set", {
name: "tf-sql_injection_match_set",
sqlInjectionMatchTuples: [{
textTransformation: "URL_DECODE",
fieldToMatch: {
type: "QUERY_STRING",
},
}],
});
import pulumi
import pulumi_aws as aws
sql_injection_match_set = aws.wafregional.SqlInjectionMatchSet("sql_injection_match_set",
name="tf-sql_injection_match_set",
sql_injection_match_tuples=[{
"text_transformation": "URL_DECODE",
"field_to_match": {
"type": "QUERY_STRING",
},
}])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var sqlInjectionMatchSet = new Aws.WafRegional.SqlInjectionMatchSet("sql_injection_match_set", new()
{
Name = "tf-sql_injection_match_set",
SqlInjectionMatchTuples = new[]
{
new Aws.WafRegional.Inputs.SqlInjectionMatchSetSqlInjectionMatchTupleArgs
{
TextTransformation = "URL_DECODE",
FieldToMatch = new Aws.WafRegional.Inputs.SqlInjectionMatchSetSqlInjectionMatchTupleFieldToMatchArgs
{
Type = "QUERY_STRING",
},
},
},
});
});
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.NewSqlInjectionMatchSet(ctx, "sql_injection_match_set", &wafregional.SqlInjectionMatchSetArgs{
Name: pulumi.String("tf-sql_injection_match_set"),
SqlInjectionMatchTuples: wafregional.SqlInjectionMatchSetSqlInjectionMatchTupleArray{
&wafregional.SqlInjectionMatchSetSqlInjectionMatchTupleArgs{
TextTransformation: pulumi.String("URL_DECODE"),
FieldToMatch: &wafregional.SqlInjectionMatchSetSqlInjectionMatchTupleFieldToMatchArgs{
Type: pulumi.String("QUERY_STRING"),
},
},
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.wafregional.SqlInjectionMatchSet;
import com.pulumi.aws.wafregional.SqlInjectionMatchSetArgs;
import com.pulumi.aws.wafregional.inputs.SqlInjectionMatchSetSqlInjectionMatchTupleArgs;
import com.pulumi.aws.wafregional.inputs.SqlInjectionMatchSetSqlInjectionMatchTupleFieldToMatchArgs;
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 sqlInjectionMatchSet = new SqlInjectionMatchSet("sqlInjectionMatchSet", SqlInjectionMatchSetArgs.builder()
.name("tf-sql_injection_match_set")
.sqlInjectionMatchTuples(SqlInjectionMatchSetSqlInjectionMatchTupleArgs.builder()
.textTransformation("URL_DECODE")
.fieldToMatch(SqlInjectionMatchSetSqlInjectionMatchTupleFieldToMatchArgs.builder()
.type("QUERY_STRING")
.build())
.build())
.build());
}
}
resources:
sqlInjectionMatchSet:
type: aws:wafregional:SqlInjectionMatchSet
name: sql_injection_match_set
properties:
name: tf-sql_injection_match_set
sqlInjectionMatchTuples:
- textTransformation: URL_DECODE
fieldToMatch:
type: QUERY_STRING

Import

Using pulumi import, import WAF Regional Sql Injection Match Set using the id. For example:

$ pulumi import aws:wafregional/sqlInjectionMatchSet:SqlInjectionMatchSet sql_injection_match_set a1b2c3d4-d5f6-7777-8888-9999aaaabbbbcccc

Properties

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

The name or description of the SizeConstraintSet.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The parts of web requests that you want AWS WAF to inspect for malicious SQL code and, if you want AWS WAF to inspect a header, the name of the header.

Link copied to clipboard
val urn: Output<String>