AWS Classic

Pulumi Official
Package maintained by Pulumi
v5.4.0 published on Wednesday, May 4, 2022 by Pulumi

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/v5/go/aws/waf"
	"github.com/pulumi/pulumi/sdk/v3/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
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var example = Output.of(WafFunctions.getRateBasedRule(GetRateBasedRuleArgs.builder()
            .name("tfWAFRateBasedRule")
            .build()));

        }
}
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",
}));
variables:
  example:
    Fn::Invoke:
      Function: aws:waf:getRateBasedRule
      Arguments:
        name: tfWAFRateBasedRule

Using getRateBasedRule

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 getRateBasedRule(args: GetRateBasedRuleArgs, opts?: InvokeOptions): Promise<GetRateBasedRuleResult>
function getRateBasedRuleOutput(args: GetRateBasedRuleOutputArgs, opts?: InvokeOptions): Output<GetRateBasedRuleResult>
def get_rate_based_rule(name: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetRateBasedRuleResult
def get_rate_based_rule_output(name: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetRateBasedRuleResult]
func LookupRateBasedRule(ctx *Context, args *LookupRateBasedRuleArgs, opts ...InvokeOption) (*LookupRateBasedRuleResult, error)
func LookupRateBasedRuleOutput(ctx *Context, args *LookupRateBasedRuleOutputArgs, opts ...InvokeOption) LookupRateBasedRuleResultOutput

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

public static class GetRateBasedRule 
{
    public static Task<GetRateBasedRuleResult> InvokeAsync(GetRateBasedRuleArgs args, InvokeOptions? opts = null)
    public static Output<GetRateBasedRuleResult> Invoke(GetRateBasedRuleInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetRateBasedRuleResult> getRateBasedRule(GetRateBasedRuleArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: aws:waf/getRateBasedRule:getRateBasedRule
  Arguments:
    # Arguments dictionary

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 string

The name of the WAF rate based rule.

name str

The name of the WAF rate based rule.

name String

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 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
id String

The provider-assigned unique ID for this managed resource.

name String

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.