CfnRegexPatternSetProps Struct
Properties for defining a CfnRegexPatternSet.
| Source |
|---|
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_wafregional as wafregional } from 'aws-cdk-lib';
const cfnRegexPatternSetProps: wafregional.CfnRegexPatternSetProps = {
name: 'name',
regexPatternStrings: ['regexPatternStrings'],
};
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_wafregional as wafregional
cfn_regex_pattern_set_props = wafregional.CfnRegexPatternSetProps(
name="name",
regex_pattern_strings=["regexPatternStrings"]
)
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.regional.*;
CfnRegexPatternSetProps cfnRegexPatternSetProps = CfnRegexPatternSetProps.builder()
.name("name")
.regexPatternStrings(List.of("regexPatternStrings"))
.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.WAFRegional;
var cfnRegexPatternSetProps = new CfnRegexPatternSetProps {
Name = "name",
RegexPatternStrings = new [] { "regexPatternStrings" }
};
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"
cfnRegexPatternSetProps := &CfnRegexPatternSetProps{
Name: jsii.String("name"),
RegexPatternStrings: []*string{
jsii.String("regexPatternStrings"),
},
}
Properties
A friendly name or description of the `RegexPatternSet` .
You can't change Name after you create a RegexPatternSet .
regexPatternStringsstring[]regex_pattern_stringstyping.List[str]regexPatternStringsList<String>RegexPatternStringsstring[]RegexPatternStrings*[]*string required #Specifies the regular expression (regex) patterns that you want AWS WAF to search for, such as `B[a@]dB[o0]t` .