Show / Hide Table of Contents

Class IpSet

Provides a WAFv2 IP Set Resource

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var example = new Aws.WafV2.IpSet("example", new Aws.WafV2.IpSetArgs
    {
        Addresses = 
        {
            "1.2.3.4/32",
            "5.6.7.8/32",
        },
        Description = "Example IP set",
        IpAddressVersion = "IPV4",
        Scope = "REGIONAL",
        Tags = 
        {
            { "Tag1", "Value1" },
            { "Tag2", "Value2" },
        },
    });
}

}
Inheritance
System.Object
Resource
CustomResource
IpSet
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.WafV2
Assembly: Pulumi.Aws.dll
Syntax
public class IpSet : CustomResource

Constructors

View Source

IpSet(String, IpSetArgs, CustomResourceOptions)

Create a IpSet resource with the given unique name, arguments, and options.

Declaration
public IpSet(string name, IpSetArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

IpSetArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

Addresses

Contains an array of strings that specify one or more IP addresses or blocks of IP addresses in Classless Inter-Domain Routing (CIDR) notation. AWS WAF supports all address ranges for IP versions IPv4 and IPv6.

Declaration
public Output<ImmutableArray<string>> Addresses { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<System.String>>
View Source

Arn

The Amazon Resource Name (ARN) that identifies the cluster.

Declaration
public Output<string> Arn { get; }
Property Value
Type Description
Output<System.String>
View Source

Description

A friendly description of the IP set.

Declaration
public Output<string> Description { get; }
Property Value
Type Description
Output<System.String>
View Source

IpAddressVersion

Specify IPV4 or IPV6. Valid values are IPV4 or IPV6.

Declaration
public Output<string> IpAddressVersion { get; }
Property Value
Type Description
Output<System.String>
View Source

LockToken

Declaration
public Output<string> LockToken { get; }
Property Value
Type Description
Output<System.String>
View Source

Name

A friendly name of the IP set.

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

Scope

Specifies whether this is for an AWS CloudFront distribution or for a regional application. Valid values are CLOUDFRONT or REGIONAL. To work with CloudFront, you must also specify the Region US East (N. Virginia).

Declaration
public Output<string> Scope { get; }
Property Value
Type Description
Output<System.String>
View Source

Tags

An array of key:value pairs to associate with the resource.

Declaration
public Output<ImmutableDictionary<string, object>> Tags { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>>

Methods

View Source

Get(String, Input<String>, IpSetState, CustomResourceOptions)

Get an existing IpSet resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static IpSet Get(string name, Input<string> id, IpSetState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

IpSetState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
IpSet
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.