GetWebAcl

aws.wafregional.WebAcl Retrieves a WAF Regional Web ACL Resource Id.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(Aws.WafRegional.GetWebAcl.InvokeAsync(new Aws.WafRegional.GetWebAclArgs
        {
            Name = "tfWAFRegionalWebACL",
        }));
    }

}
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.LookupWebAcl(ctx, &wafregional.LookupWebAclArgs{
            Name: "tfWAFRegionalWebACL",
        }, nil)
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aws as aws

example = aws.wafregional.get_web_acl(name="tfWAFRegionalWebACL")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = pulumi.output(aws.wafregional.getWebAcl({
    name: "tfWAFRegionalWebACL",
}, { async: true }));

Using GetWebAcl

function getWebAcl(args: GetWebAclArgs, opts?: InvokeOptions): Promise<GetWebAclResult>
function  get_web_acl(name=None, opts=None)
func LookupWebAcl(ctx *Context, args *LookupWebAclArgs, opts ...InvokeOption) (*LookupWebAclResult, error)

Note: This function is named LookupWebAcl in the Go SDK.

public static class GetWebAcl {
    public static Task<GetWebAclResult> InvokeAsync(GetWebAclArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Name string

The name of the WAF Regional Web ACL.

Name string

The name of the WAF Regional Web ACL.

name string

The name of the WAF Regional Web ACL.

name str

The name of the WAF Regional Web ACL.

GetWebAcl Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Name string
Id string

The provider-assigned unique ID for this managed resource.

Name string
id string

The provider-assigned unique ID for this managed resource.

name string
id str

The provider-assigned unique ID for this managed resource.

name str

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.