1. Packages
  2. AWS
  3. API Docs
  4. wafregional
  5. getIpset
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

aws.wafregional.getIpset

Explore with Pulumi AI

aws logo
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

    aws.wafregional.IpSet Retrieves a WAF Regional IP Set Resource Id.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = aws.wafregional.getIpset({
        name: "tfWAFRegionalIPSet",
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.wafregional.get_ipset(name="tfWAFRegionalIPSet")
    
    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.GetIpset(ctx, &wafregional.GetIpsetArgs{
    			Name: "tfWAFRegionalIPSet",
    		}, 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.GetIpset.Invoke(new()
        {
            Name = "tfWAFRegionalIPSet",
        });
    
    });
    
    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.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 = WafregionalFunctions.getIpset(GetIpsetArgs.builder()
                .name("tfWAFRegionalIPSet")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: aws:wafregional:getIpset
          Arguments:
            name: tfWAFRegionalIPSet
    

    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:wafregional/getIpset:getIpset
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    Name of the WAF Regional IP set.
    Name string
    Name of the WAF Regional IP set.
    name String
    Name of the WAF Regional IP set.
    name string
    Name of the WAF Regional IP set.
    name str
    Name of the WAF Regional IP set.
    name String
    Name of the WAF Regional 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.60.0 published on Tuesday, Nov 19, 2024 by Pulumi