getRegexPatternSet

Retrieves the summary of a WAFv2 Regex Pattern Set.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.wafv2.getRegexPatternSet({
name: "some-regex-pattern-set",
scope: "REGIONAL",
});
import pulumi
import pulumi_aws as aws
example = aws.wafv2.get_regex_pattern_set(name="some-regex-pattern-set",
scope="REGIONAL")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = Aws.WafV2.GetRegexPatternSet.Invoke(new()
{
Name = "some-regex-pattern-set",
Scope = "REGIONAL",
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/wafv2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := wafv2.LookupRegexPatternSet(ctx, &wafv2.LookupRegexPatternSetArgs{
Name: "some-regex-pattern-set",
Scope: "REGIONAL",
}, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.wafv2.Wafv2Functions;
import com.pulumi.aws.wafv2.inputs.GetRegexPatternSetArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = Wafv2Functions.getRegexPatternSet(GetRegexPatternSetArgs.builder()
.name("some-regex-pattern-set")
.scope("REGIONAL")
.build());
}
}
variables:
example:
fn::invoke:
function: aws:wafv2:getRegexPatternSet
arguments:
name: some-regex-pattern-set
scope: REGIONAL

Return

A collection of values returned by getRegexPatternSet.

Parameters

argument

A collection of arguments for invoking getRegexPatternSet.


Return

A collection of values returned by getRegexPatternSet.

Parameters

name

Name of the WAFv2 Regex Pattern Set.

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.

See also


Return

A collection of values returned by getRegexPatternSet.

Parameters

argument

Builder for com.pulumi.aws.wafv2.kotlin.inputs.GetRegexPatternSetPlainArgs.

See also