SqlInjectionMatchSet
Provides a WAF Regional SQL Injection Match Set Resource for use with Application Load Balancer.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var sqlInjectionMatchSet = new Aws.WafRegional.SqlInjectionMatchSet("sqlInjectionMatchSet", new Aws.WafRegional.SqlInjectionMatchSetArgs
{
SqlInjectionMatchTuples =
{
new Aws.WafRegional.Inputs.SqlInjectionMatchSetSqlInjectionMatchTupleArgs
{
FieldToMatch = new Aws.WafRegional.Inputs.SqlInjectionMatchSetSqlInjectionMatchTupleFieldToMatchArgs
{
Type = "QUERY_STRING",
},
TextTransformation = "URL_DECODE",
},
},
});
}
}
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/wafregional"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := wafregional.NewSqlInjectionMatchSet(ctx, "sqlInjectionMatchSet", &wafregional.SqlInjectionMatchSetArgs{
SqlInjectionMatchTuples: wafregional.SqlInjectionMatchSetSqlInjectionMatchTupleArray{
&wafregional.SqlInjectionMatchSetSqlInjectionMatchTupleArgs{
FieldToMatch: &wafregional.SqlInjectionMatchSetSqlInjectionMatchTupleFieldToMatchArgs{
Type: pulumi.String("QUERY_STRING"),
},
TextTransformation: pulumi.String("URL_DECODE"),
},
},
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_aws as aws
sql_injection_match_set = aws.wafregional.SqlInjectionMatchSet("sqlInjectionMatchSet", sql_injection_match_tuples=[{
"fieldToMatch": {
"type": "QUERY_STRING",
},
"textTransformation": "URL_DECODE",
}])import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const sqlInjectionMatchSet = new aws.wafregional.SqlInjectionMatchSet("sql_injection_match_set", {
sqlInjectionMatchTuples: [{
fieldToMatch: {
type: "QUERY_STRING",
},
textTransformation: "URL_DECODE",
}],
});Create a SqlInjectionMatchSet Resource
new SqlInjectionMatchSet(name: string, args?: SqlInjectionMatchSetArgs, opts?: CustomResourceOptions);def SqlInjectionMatchSet(resource_name, opts=None, name=None, sql_injection_match_tuples=None, __props__=None);func NewSqlInjectionMatchSet(ctx *Context, name string, args *SqlInjectionMatchSetArgs, opts ...ResourceOption) (*SqlInjectionMatchSet, error)public SqlInjectionMatchSet(string name, SqlInjectionMatchSetArgs? args = null, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args SqlInjectionMatchSetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SqlInjectionMatchSetArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SqlInjectionMatchSetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
SqlInjectionMatchSet Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The SqlInjectionMatchSet resource accepts the following input properties:
- Name string
The name or description of the SizeConstraintSet.
- Sql
Injection List<SqlMatch Tuples Injection Match Set Sql Injection Match Tuple Args> 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.
- Name string
The name or description of the SizeConstraintSet.
- Sql
Injection []SqlMatch Tuples Injection Match Set Sql Injection Match Tuple 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.
- name string
The name or description of the SizeConstraintSet.
- sql
Injection SqlMatch Tuples Injection Match Set Sql Injection Match Tuple[] 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.
- name str
The name or description of the SizeConstraintSet.
- sql_
injection_ List[Sqlmatch_ tuples Injection Match Set Sql Injection Match Tuple] 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.
Outputs
All input properties are implicitly available as output properties. Additionally, the SqlInjectionMatchSet resource produces the following output properties:
Look up an Existing SqlInjectionMatchSet Resource
Get an existing SqlInjectionMatchSet resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: SqlInjectionMatchSetState, opts?: CustomResourceOptions): SqlInjectionMatchSetstatic get(resource_name, id, opts=None, name=None, sql_injection_match_tuples=None, __props__=None);func GetSqlInjectionMatchSet(ctx *Context, name string, id IDInput, state *SqlInjectionMatchSetState, opts ...ResourceOption) (*SqlInjectionMatchSet, error)public static SqlInjectionMatchSet Get(string name, Input<string> id, SqlInjectionMatchSetState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Name string
The name or description of the SizeConstraintSet.
- Sql
Injection List<SqlMatch Tuples Injection Match Set Sql Injection Match Tuple Args> 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.
- Name string
The name or description of the SizeConstraintSet.
- Sql
Injection []SqlMatch Tuples Injection Match Set Sql Injection Match Tuple 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.
- name string
The name or description of the SizeConstraintSet.
- sql
Injection SqlMatch Tuples Injection Match Set Sql Injection Match Tuple[] 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.
- name str
The name or description of the SizeConstraintSet.
- sql_
injection_ List[Sqlmatch_ tuples Injection Match Set Sql Injection Match Tuple] 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.
Supporting Types
SqlInjectionMatchSetSqlInjectionMatchTuple
- Field
To SqlMatch Injection Match Set Sql Injection Match Tuple Field To Match Args Specifies where in a web request to look for snippets of malicious SQL code.
- Text
Transformation string Text transformations used to eliminate unusual formatting that attackers use in web requests in an effort to bypass AWS WAF. If you specify a transformation, AWS WAF performs the transformation on
field_to_matchbefore inspecting a request for a match. e.g.CMD_LINE,HTML_ENTITY_DECODEorNONE. See docs for all supported values.
- Field
To SqlMatch Injection Match Set Sql Injection Match Tuple Field To Match Specifies where in a web request to look for snippets of malicious SQL code.
- Text
Transformation string Text transformations used to eliminate unusual formatting that attackers use in web requests in an effort to bypass AWS WAF. If you specify a transformation, AWS WAF performs the transformation on
field_to_matchbefore inspecting a request for a match. e.g.CMD_LINE,HTML_ENTITY_DECODEorNONE. See docs for all supported values.
- field
To SqlMatch Injection Match Set Sql Injection Match Tuple Field To Match Specifies where in a web request to look for snippets of malicious SQL code.
- text
Transformation string Text transformations used to eliminate unusual formatting that attackers use in web requests in an effort to bypass AWS WAF. If you specify a transformation, AWS WAF performs the transformation on
field_to_matchbefore inspecting a request for a match. e.g.CMD_LINE,HTML_ENTITY_DECODEorNONE. See docs for all supported values.
- field
To Dict[SqlMatch Injection Match Set Sql Injection Match Tuple Field To Match] Specifies where in a web request to look for snippets of malicious SQL code.
- text
Transformation str Text transformations used to eliminate unusual formatting that attackers use in web requests in an effort to bypass AWS WAF. If you specify a transformation, AWS WAF performs the transformation on
field_to_matchbefore inspecting a request for a match. e.g.CMD_LINE,HTML_ENTITY_DECODEorNONE. See docs for all supported values.
SqlInjectionMatchSetSqlInjectionMatchTupleFieldToMatch
- Type string
The part of the web request that you want AWS WAF to search for a specified string. e.g.
HEADER,METHODorBODY. See docs for all supported values.- Data string
When
typeisHEADER, enter the name of the header that you want to search, e.g.User-AgentorReferer. Iftypeis any other value, omit this field.
- Type string
The part of the web request that you want AWS WAF to search for a specified string. e.g.
HEADER,METHODorBODY. See docs for all supported values.- Data string
When
typeisHEADER, enter the name of the header that you want to search, e.g.User-AgentorReferer. Iftypeis any other value, omit this field.
- type string
The part of the web request that you want AWS WAF to search for a specified string. e.g.
HEADER,METHODorBODY. See docs for all supported values.- data string
When
typeisHEADER, enter the name of the header that you want to search, e.g.User-AgentorReferer. Iftypeis any other value, omit this field.
- type str
The part of the web request that you want AWS WAF to search for a specified string. e.g.
HEADER,METHODorBODY. See docs for all supported values.- data str
When
typeisHEADER, enter the name of the header that you want to search, e.g.User-AgentorReferer. Iftypeis any other value, omit this field.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.