AWS Classic

Pulumi Official
Package maintained by Pulumi
v5.10.0 published on Monday, Jul 11, 2022 by Pulumi

getIpset

aws.waf.IpSet Retrieves a WAF IP Set Resource Id.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(Aws.Waf.GetIpset.InvokeAsync(new Aws.Waf.GetIpsetArgs
        {
            Name = "tfWAFIPSet",
        }));
    }

}
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.GetIpset(ctx, &waf.GetIpsetArgs{
			Name: "tfWAFIPSet",
		}, 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.getIpset(GetIpsetArgs.builder()
            .name("tfWAFIPSet")
            .build()));

    }
}
import pulumi
import pulumi_aws as aws

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

const example = pulumi.output(aws.waf.getIpset({
    name: "tfWAFIPSet",
}));
variables:
  example:
    Fn::Invoke:
      Function: aws:waf:getIpset
      Arguments:
        name: tfWAFIPSet

Using getIpset

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 getIpset(args: GetIpsetArgs, opts?: InvokeOptions): Promise<GetIpsetResult>
function getIpsetOutput(args: GetIpsetOutputArgs, opts?: InvokeOptions): Output<GetIpsetResult>
def get_ipset(name: Optional[str] = None,
              opts: Optional[InvokeOptions] = None) -> GetIpsetResult
def get_ipset_output(name: Optional[pulumi.Input[str]] = None,
              opts: Optional[InvokeOptions] = None) -> Output[GetIpsetResult]
func GetIpset(ctx *Context, args *GetIpsetArgs, opts ...InvokeOption) (*GetIpsetResult, error)
func GetIpsetOutput(ctx *Context, args *GetIpsetOutputArgs, opts ...InvokeOption) GetIpsetResultOutput

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

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

The following arguments are supported:

Name string

The name of the WAF IP set.

Name string

The name of the WAF IP set.

name String

The name of the WAF IP set.

name string

The name of the WAF IP set.

name str

The name of the WAF IP set.

name String

The name of the WAF IP set.

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