@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
93 lines (92 loc) • 3.19 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Retrieves the summary of a WAFv2 Regex Pattern Set.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = aws.wafv2.getRegexPatternSet({
* name: "some-regex-pattern-set",
* scope: "REGIONAL",
* });
* ```
*/
export declare function getRegexPatternSet(args: GetRegexPatternSetArgs, opts?: pulumi.InvokeOptions): Promise<GetRegexPatternSetResult>;
/**
* A collection of arguments for invoking getRegexPatternSet.
*/
export interface GetRegexPatternSetArgs {
/**
* Name of the WAFv2 Regex Pattern Set.
*/
name: string;
/**
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
*/
region?: string;
/**
* 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.
*/
scope: string;
}
/**
* A collection of values returned by getRegexPatternSet.
*/
export interface GetRegexPatternSetResult {
/**
* ARN of the entity.
*/
readonly arn: string;
/**
* Description of the set that helps with identification.
*/
readonly description: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly name: string;
readonly region: string;
/**
* One or more blocks of regular expression patterns that AWS WAF is searching for. See Regular Expression below for details.
*/
readonly regularExpressions: outputs.wafv2.GetRegexPatternSetRegularExpression[];
readonly scope: string;
}
/**
* Retrieves the summary of a WAFv2 Regex Pattern Set.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = aws.wafv2.getRegexPatternSet({
* name: "some-regex-pattern-set",
* scope: "REGIONAL",
* });
* ```
*/
export declare function getRegexPatternSetOutput(args: GetRegexPatternSetOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetRegexPatternSetResult>;
/**
* A collection of arguments for invoking getRegexPatternSet.
*/
export interface GetRegexPatternSetOutputArgs {
/**
* Name of the WAFv2 Regex Pattern Set.
*/
name: pulumi.Input<string>;
/**
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
*/
region?: pulumi.Input<string>;
/**
* 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.
*/
scope: pulumi.Input<string>;
}