GetRateBasedRule

aws.waf.RateBasedRule Retrieves a WAF Rate Based Rule Resource Id.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(Aws.Waf.GetRateBasedRule.InvokeAsync(new Aws.Waf.GetRateBasedRuleArgs
        {
            Name = "tfWAFRateBasedRule",
        }));
    }

}
package main

import (
    "github.com/pulumi/pulumi-aws/sdk/v2/go/aws/waf"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := waf.LookupRateBasedRule(ctx, &waf.LookupRateBasedRuleArgs{
            Name: "tfWAFRateBasedRule",
        }, nil)
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aws as aws

example = aws.waf.get_rate_based_rule(name="tfWAFRateBasedRule")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = pulumi.output(aws.waf.getRateBasedRule({
    name: "tfWAFRateBasedRule",
}, { async: true }));

Using GetRateBasedRule

function getRateBasedRule(args: GetRateBasedRuleArgs, opts?: InvokeOptions): Promise<GetRateBasedRuleResult>
function  get_rate_based_rule(name=None, opts=None)
func LookupRateBasedRule(ctx *Context, args *LookupRateBasedRuleArgs, opts ...InvokeOption) (*LookupRateBasedRuleResult, error)

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

public static class GetRateBasedRule {
    public static Task<GetRateBasedRuleResult> InvokeAsync(GetRateBasedRuleArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Name string

The name of the WAF rate based rule.

Name string

The name of the WAF rate based rule.

name string

The name of the WAF rate based rule.

name str

The name of the WAF rate based rule.

GetRateBasedRule 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.