RegexPatternSet
Provides a WAF Regional Regex Pattern Set Resource
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.WafRegional.RegexPatternSet("example", new Aws.WafRegional.RegexPatternSetArgs
{
RegexPatternStrings =
{
"one",
"two",
},
});
}
}
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.NewRegexPatternSet(ctx, "example", &wafregional.RegexPatternSetArgs{
RegexPatternStrings: pulumi.StringArray{
pulumi.String("one"),
pulumi.String("two"),
},
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_aws as aws
example = aws.wafregional.RegexPatternSet("example", regex_pattern_strings=[
"one",
"two",
])import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.wafregional.RegexPatternSet("example", {
regexPatternStrings: [
"one",
"two",
],
});Create a RegexPatternSet Resource
new RegexPatternSet(name: string, args?: RegexPatternSetArgs, opts?: CustomResourceOptions);def RegexPatternSet(resource_name, opts=None, name=None, regex_pattern_strings=None, __props__=None);func NewRegexPatternSet(ctx *Context, name string, args *RegexPatternSetArgs, opts ...ResourceOption) (*RegexPatternSet, error)public RegexPatternSet(string name, RegexPatternSetArgs? args = null, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args RegexPatternSetArgs
- 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 RegexPatternSetArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RegexPatternSetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
RegexPatternSet Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The RegexPatternSet resource accepts the following input properties:
- Name string
The name or description of the Regex Pattern Set.
- Regex
Pattern List<string>Strings A list of regular expression (regex) patterns that you want AWS WAF to search for, such as
B[a@]dB[o0]t.
- Name string
The name or description of the Regex Pattern Set.
- Regex
Pattern []stringStrings A list of regular expression (regex) patterns that you want AWS WAF to search for, such as
B[a@]dB[o0]t.
- name string
The name or description of the Regex Pattern Set.
- regex
Pattern string[]Strings A list of regular expression (regex) patterns that you want AWS WAF to search for, such as
B[a@]dB[o0]t.
- name str
The name or description of the Regex Pattern Set.
- regex_
pattern_ List[str]strings A list of regular expression (regex) patterns that you want AWS WAF to search for, such as
B[a@]dB[o0]t.
Outputs
All input properties are implicitly available as output properties. Additionally, the RegexPatternSet resource produces the following output properties:
Look up an Existing RegexPatternSet Resource
Get an existing RegexPatternSet 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?: RegexPatternSetState, opts?: CustomResourceOptions): RegexPatternSetstatic get(resource_name, id, opts=None, name=None, regex_pattern_strings=None, __props__=None);func GetRegexPatternSet(ctx *Context, name string, id IDInput, state *RegexPatternSetState, opts ...ResourceOption) (*RegexPatternSet, error)public static RegexPatternSet Get(string name, Input<string> id, RegexPatternSetState? 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 Regex Pattern Set.
- Regex
Pattern List<string>Strings A list of regular expression (regex) patterns that you want AWS WAF to search for, such as
B[a@]dB[o0]t.
- Name string
The name or description of the Regex Pattern Set.
- Regex
Pattern []stringStrings A list of regular expression (regex) patterns that you want AWS WAF to search for, such as
B[a@]dB[o0]t.
- name string
The name or description of the Regex Pattern Set.
- regex
Pattern string[]Strings A list of regular expression (regex) patterns that you want AWS WAF to search for, such as
B[a@]dB[o0]t.
- name str
The name or description of the Regex Pattern Set.
- regex_
pattern_ List[str]strings A list of regular expression (regex) patterns that you want AWS WAF to search for, such as
B[a@]dB[o0]t.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.