AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi
aws.waf.getWebAcl
Explore with Pulumi AI
aws.waf.WebAcl
Retrieves a WAF Web ACL Resource Id.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.waf.getWebAcl({
name: "tfWAFWebACL",
});
import pulumi
import pulumi_aws as aws
example = aws.waf.get_web_acl(name="tfWAFWebACL")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/waf"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := waf.LookupWebAcl(ctx, &waf.LookupWebAclArgs{
Name: "tfWAFWebACL",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = Aws.Waf.GetWebAcl.Invoke(new()
{
Name = "tfWAFWebACL",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.waf.WafFunctions;
import com.pulumi.aws.waf.inputs.GetWebAclArgs;
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 = WafFunctions.getWebAcl(GetWebAclArgs.builder()
.name("tfWAFWebACL")
.build());
}
}
variables:
example:
fn::invoke:
Function: aws:waf:getWebAcl
Arguments:
name: tfWAFWebACL
Using getWebAcl
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getWebAcl(args: GetWebAclArgs, opts?: InvokeOptions): Promise<GetWebAclResult>
function getWebAclOutput(args: GetWebAclOutputArgs, opts?: InvokeOptions): Output<GetWebAclResult>
def get_web_acl(name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetWebAclResult
def get_web_acl_output(name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetWebAclResult]
func LookupWebAcl(ctx *Context, args *LookupWebAclArgs, opts ...InvokeOption) (*LookupWebAclResult, error)
func LookupWebAclOutput(ctx *Context, args *LookupWebAclOutputArgs, opts ...InvokeOption) LookupWebAclResultOutput
> Note: This function is named LookupWebAcl
in the Go SDK.
public static class GetWebAcl
{
public static Task<GetWebAclResult> InvokeAsync(GetWebAclArgs args, InvokeOptions? opts = null)
public static Output<GetWebAclResult> Invoke(GetWebAclInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetWebAclResult> getWebAcl(GetWebAclArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws:waf/getWebAcl:getWebAcl
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
- Name of the WAF Web ACL.
- Name string
- Name of the WAF Web ACL.
- name String
- Name of the WAF Web ACL.
- name string
- Name of the WAF Web ACL.
- name str
- Name of the WAF Web ACL.
- name String
- Name of the WAF Web ACL.
getWebAcl Result
The following output properties are available:
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.