1. Packages
  2. AWS
  3. API Docs
  4. waf
  5. getIpset
AWS v6.64.0 published on Friday, Dec 6, 2024 by Pulumi

aws.waf.getIpset

Explore with Pulumi AI

aws logo
AWS v6.64.0 published on Friday, Dec 6, 2024 by Pulumi

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

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = aws.waf.getIpset({
        name: "tfWAFIPSet",
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.waf.get_ipset(name="tfWAFIPSet")
    
    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.GetIpset(ctx, &waf.GetIpsetArgs{
    			Name: "tfWAFIPSet",
    		}, 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.GetIpset.Invoke(new()
        {
            Name = "tfWAFIPSet",
        });
    
    });
    
    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.GetIpsetArgs;
    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.getIpset(GetIpsetArgs.builder()
                .name("tfWAFIPSet")
                .build());
    
        }
    }
    
    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
    Name of the WAF IP set.
    Name string
    Name of the WAF IP set.
    name String
    Name of the WAF IP set.
    name string
    Name of the WAF IP set.
    name str
    Name of the WAF IP set.
    name String
    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
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    AWS v6.64.0 published on Friday, Dec 6, 2024 by Pulumi