AWS v6.54.0 published on Friday, Sep 27, 2024 by Pulumi
aws.wafregional.getRateBasedMod
Explore with Pulumi AI
aws.wafregional.RateBasedRule
Retrieves a WAF Regional Rate Based Rule Resource Id.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.wafregional.getRateBasedMod({
name: "tfWAFRegionalRateBasedRule",
});
import pulumi
import pulumi_aws as aws
example = aws.wafregional.get_rate_based_mod(name="tfWAFRegionalRateBasedRule")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/wafregional"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := wafregional.GetRateBasedMod(ctx, &wafregional.GetRateBasedModArgs{
Name: "tfWAFRegionalRateBasedRule",
}, 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.WafRegional.GetRateBasedMod.Invoke(new()
{
Name = "tfWAFRegionalRateBasedRule",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.wafregional.WafregionalFunctions;
import com.pulumi.aws.wafregional.inputs.GetRateBasedModArgs;
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 = WafregionalFunctions.getRateBasedMod(GetRateBasedModArgs.builder()
.name("tfWAFRegionalRateBasedRule")
.build());
}
}
variables:
example:
fn::invoke:
Function: aws:wafregional:getRateBasedMod
Arguments:
name: tfWAFRegionalRateBasedRule
Using getRateBasedMod
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 getRateBasedMod(args: GetRateBasedModArgs, opts?: InvokeOptions): Promise<GetRateBasedModResult>
function getRateBasedModOutput(args: GetRateBasedModOutputArgs, opts?: InvokeOptions): Output<GetRateBasedModResult>
def get_rate_based_mod(name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetRateBasedModResult
def get_rate_based_mod_output(name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRateBasedModResult]
func GetRateBasedMod(ctx *Context, args *GetRateBasedModArgs, opts ...InvokeOption) (*GetRateBasedModResult, error)
func GetRateBasedModOutput(ctx *Context, args *GetRateBasedModOutputArgs, opts ...InvokeOption) GetRateBasedModResultOutput
> Note: This function is named GetRateBasedMod
in the Go SDK.
public static class GetRateBasedMod
{
public static Task<GetRateBasedModResult> InvokeAsync(GetRateBasedModArgs args, InvokeOptions? opts = null)
public static Output<GetRateBasedModResult> Invoke(GetRateBasedModInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetRateBasedModResult> getRateBasedMod(GetRateBasedModArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws:wafregional/getRateBasedMod:getRateBasedMod
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
- Name of the WAF Regional rate based rule.
- Name string
- Name of the WAF Regional rate based rule.
- name String
- Name of the WAF Regional rate based rule.
- name string
- Name of the WAF Regional rate based rule.
- name str
- Name of the WAF Regional rate based rule.
- name String
- Name of the WAF Regional rate based rule.
getRateBasedMod 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.