Show / Hide Table of Contents

Class RegexPatternSet

Provides an AWS WAFv2 Regex Pattern Set Resource

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var example = new Aws.WafV2.RegexPatternSet("example", new Aws.WafV2.RegexPatternSetArgs
    {
        Description = "Example regex pattern set",
        RegularExpressions = 
        {
            new Aws.WafV2.Inputs.RegexPatternSetRegularExpressionArgs
            {
                RegexString = "one",
            },
            new Aws.WafV2.Inputs.RegexPatternSetRegularExpressionArgs
            {
                RegexString = "two",
            },
        },
        Scope = "REGIONAL",
        Tags = 
        {
            { "Tag1", "Value1" },
            { "Tag2", "Value2" },
        },
    });
}

}
Inheritance
System.Object
Resource
CustomResource
RegexPatternSet
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.WafV2
Assembly: Pulumi.Aws.dll
Syntax
public class RegexPatternSet : CustomResource

Constructors

View Source

RegexPatternSet(String, RegexPatternSetArgs, CustomResourceOptions)

Create a RegexPatternSet resource with the given unique name, arguments, and options.

Declaration
public RegexPatternSet(string name, RegexPatternSetArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

RegexPatternSetArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

Arn

The Amazon Resource Name (ARN) that identifies the cluster.

Declaration
public Output<string> Arn { get; }
Property Value
Type Description
Output<System.String>
View Source

Description

A friendly description of the regular expression pattern set.

Declaration
public Output<string> Description { get; }
Property Value
Type Description
Output<System.String>
View Source

LockToken

Declaration
public Output<string> LockToken { get; }
Property Value
Type Description
Output<System.String>
View Source

Name

A friendly name of the regular expression pattern set.

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

RegularExpressions

One or more blocks of regular expression patterns that you want AWS WAF to search for, such as B[a@]dB[o0]t. See Regular Expression below for details.

Declaration
public Output<ImmutableArray<RegexPatternSetRegularExpression>> RegularExpressions { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<RegexPatternSetRegularExpression>>
View Source

Scope

Specifies whether this is for an AWS CloudFront distribution or for a regional application. Valid values are CLOUDFRONT or REGIONAL. To work with CloudFront, you must also specify the region us-east-1 (N. Virginia) on the AWS provider.

Declaration
public Output<string> Scope { get; }
Property Value
Type Description
Output<System.String>
View Source

Tags

An array of key:value pairs to associate with the resource.

Declaration
public Output<ImmutableDictionary<string, object>> Tags { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>>

Methods

View Source

Get(String, Input<String>, RegexPatternSetState, CustomResourceOptions)

Get an existing RegexPatternSet resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static RegexPatternSet Get(string name, Input<string> id, RegexPatternSetState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

RegexPatternSetState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
RegexPatternSet
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.