GetWebAcl
Retrieves the summary of a WAFv2 Web ACL.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Aws.WafV2.GetWebAcl.InvokeAsync(new Aws.WafV2.GetWebAclArgs
{
Name = "some-web-acl",
Scope = "REGIONAL",
}));
}
}
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/wafv2"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := wafv2.GetWebAcl(ctx, &wafv2.GetWebAclArgs{
Name: "some-web-acl",
Scope: "REGIONAL",
}, nil)
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_aws as aws
example = aws.wafv2.get_web_acl(name="some-web-acl",
scope="REGIONAL")import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = pulumi.output(aws.wafv2.getWebAcl({
name: "some-web-acl",
scope: "REGIONAL",
}, { async: true }));Using GetWebAcl
function getWebAcl(args: GetWebAclArgs, opts?: InvokeOptions): Promise<GetWebAclResult>function get_web_acl(name=None, scope=None, opts=None)func GetWebAcl(ctx *Context, args *GetWebAclArgs, opts ...InvokeOption) (*GetWebAclResult, error)public static class GetWebAcl {
public static Task<GetWebAclResult> InvokeAsync(GetWebAclArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
GetWebAcl 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.