CfnSqlInjectionMatchSetProps Struct
Properties for defining a CfnSqlInjectionMatchSet.
| Source |
|---|
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_waf as waf } from 'aws-cdk-lib';
const cfnSqlInjectionMatchSetProps: waf.CfnSqlInjectionMatchSetProps = {
name: 'name',
// the properties below are optional
sqlInjectionMatchTuples: [{
fieldToMatch: {
type: 'type',
// the properties below are optional
data: 'data',
},
textTransformation: 'textTransformation',
}],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_waf as waf
cfn_sql_injection_match_set_props = waf.CfnSqlInjectionMatchSetProps(
name="name",
# the properties below are optional
sql_injection_match_tuples=[waf.CfnSqlInjectionMatchSet.SqlInjectionMatchTupleProperty(
field_to_match=waf.CfnSqlInjectionMatchSet.FieldToMatchProperty(
type="type",
# the properties below are optional
data="data"
),
text_transformation="textTransformation"
)]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.waf.*;
CfnSqlInjectionMatchSetProps cfnSqlInjectionMatchSetProps = CfnSqlInjectionMatchSetProps.builder()
.name("name")
// the properties below are optional
.sqlInjectionMatchTuples(List.of(SqlInjectionMatchTupleProperty.builder()
.fieldToMatch(FieldToMatchProperty.builder()
.type("type")
// the properties below are optional
.data("data")
.build())
.textTransformation("textTransformation")
.build()))
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.WAF;
var cfnSqlInjectionMatchSetProps = new CfnSqlInjectionMatchSetProps {
Name = "name",
// the properties below are optional
SqlInjectionMatchTuples = new [] { new SqlInjectionMatchTupleProperty {
FieldToMatch = new FieldToMatchProperty {
Type = "type",
// the properties below are optional
Data = "data"
},
TextTransformation = "textTransformation"
} }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnSqlInjectionMatchSetProps := &CfnSqlInjectionMatchSetProps{
Name: jsii.String("name"),
// the properties below are optional
SqlInjectionMatchTuples: []interface{}{
&SqlInjectionMatchTupleProperty{
FieldToMatch: &FieldToMatchProperty{
Type: jsii.String("type"),
// the properties below are optional
Data: jsii.String("data"),
},
TextTransformation: jsii.String("textTransformation"),
},
},
}
Properties
The name, if any, of the `SqlInjectionMatchSet` .
sqlInjectionMatchTuplesoptionalIResolvable | IResolvable | CfnSqlInjectionMatchSet.sql_injection_match_tuplesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, SqlInjectionMatchTupleProperty]]]sqlInjectionMatchTuplesoptionalIResolvableSqlInjectionMatchTuplesoptionalIResolvableSqlInjectionMatchTuplesoptionalinterface{} #Specifies the parts of web requests that you want to inspect for snippets of malicious SQL code.