GetRule
aws.wafregional.Rule Retrieves a WAF Regional Rule Resource Id.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Aws.WafRegional.GetRule.InvokeAsync(new Aws.WafRegional.GetRuleArgs
{
Name = "tfWAFRegionalRule",
}));
}
}
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.LookupRule(ctx, &wafregional.LookupRuleArgs{
Name: "tfWAFRegionalRule",
}, nil)
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_aws as aws
example = aws.wafregional.get_rule(name="tfWAFRegionalRule")import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = pulumi.output(aws.wafregional.getRule({
name: "tfWAFRegionalRule",
}, { async: true }));Using GetRule
function getRule(args: GetRuleArgs, opts?: InvokeOptions): Promise<GetRuleResult>function get_rule(name=None, opts=None)func LookupRule(ctx *Context, args *LookupRuleArgs, opts ...InvokeOption) (*LookupRuleResult, error)Note: This function is named
LookupRulein the Go SDK.
public static class GetRule {
public static Task<GetRuleResult> InvokeAsync(GetRuleArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
GetRule Result
The following output properties are available:
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.