We recommend new projects start with resources from the AWS provider.
aws-native.wafv2.IpSet
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
Contains a list of IP addresses. This can be either IPV4 or IPV6. The list will be mutually
Create IpSet Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IpSet(name: string, args: IpSetArgs, opts?: CustomResourceOptions);
@overload
def IpSet(resource_name: str,
args: IpSetArgs,
opts: Optional[ResourceOptions] = None)
@overload
def IpSet(resource_name: str,
opts: Optional[ResourceOptions] = None,
addresses: Optional[Sequence[str]] = None,
ip_address_version: Optional[IpSetIpAddressVersion] = None,
scope: Optional[IpSetScope] = None,
description: Optional[str] = None,
name: Optional[str] = None,
tags: Optional[Sequence[_root_inputs.TagArgs]] = None)
func NewIpSet(ctx *Context, name string, args IpSetArgs, opts ...ResourceOption) (*IpSet, error)
public IpSet(string name, IpSetArgs args, CustomResourceOptions? opts = null)
type: aws-native:wafv2:IpSet
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args IpSetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args IpSetArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args IpSetArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IpSetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IpSetArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
IpSet Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The IpSet resource accepts the following input properties:
- Addresses List<string>
- List of IPAddresses.
- Ip
Address Pulumi.Version Aws Native. Wa Fv2. Ip Set Ip Address Version - The version of the IP addresses, either
IPV4
orIPV6
. - Scope
Pulumi.
Aws Native. Wa Fv2. Ip Set Scope Specifies whether this is for an Amazon CloudFront distribution or for a regional application. A regional application can be an Application Load Balancer (ALB), an Amazon API Gateway REST API, an AWS AppSync GraphQL API, an Amazon Cognito user pool, an AWS App Runner service, or an AWS Verified Access instance. Valid Values are
CLOUDFRONT
andREGIONAL
.For
CLOUDFRONT
, you must create your WAFv2 resources in the US East (N. Virginia) Region,us-east-1
.- Description string
- A description of the IP set that helps with identification.
- Name string
- The name of the IP set. You cannot change the name of an
IPSet
after you create it. - List<Pulumi.
Aws Native. Inputs. Tag> Key:value pairs associated with an AWS resource. The key:value pair can be anything you define. Typically, the tag key represents a category (such as "environment") and the tag value represents a specific value within that category (such as "test," "development," or "production"). You can add up to 50 tags to each AWS resource.
To modify tags on existing resources, use the AWS WAF APIs or command line interface. With AWS CloudFormation , you can only add tags to AWS WAF resources during resource creation.
- Addresses []string
- List of IPAddresses.
- Ip
Address IpVersion Set Ip Address Version - The version of the IP addresses, either
IPV4
orIPV6
. - Scope
Ip
Set Scope Specifies whether this is for an Amazon CloudFront distribution or for a regional application. A regional application can be an Application Load Balancer (ALB), an Amazon API Gateway REST API, an AWS AppSync GraphQL API, an Amazon Cognito user pool, an AWS App Runner service, or an AWS Verified Access instance. Valid Values are
CLOUDFRONT
andREGIONAL
.For
CLOUDFRONT
, you must create your WAFv2 resources in the US East (N. Virginia) Region,us-east-1
.- Description string
- A description of the IP set that helps with identification.
- Name string
- The name of the IP set. You cannot change the name of an
IPSet
after you create it. - Tag
Args Key:value pairs associated with an AWS resource. The key:value pair can be anything you define. Typically, the tag key represents a category (such as "environment") and the tag value represents a specific value within that category (such as "test," "development," or "production"). You can add up to 50 tags to each AWS resource.
To modify tags on existing resources, use the AWS WAF APIs or command line interface. With AWS CloudFormation , you can only add tags to AWS WAF resources during resource creation.
- addresses List<String>
- List of IPAddresses.
- ip
Address IpVersion Set Ip Address Version - The version of the IP addresses, either
IPV4
orIPV6
. - scope
Ip
Set Scope Specifies whether this is for an Amazon CloudFront distribution or for a regional application. A regional application can be an Application Load Balancer (ALB), an Amazon API Gateway REST API, an AWS AppSync GraphQL API, an Amazon Cognito user pool, an AWS App Runner service, or an AWS Verified Access instance. Valid Values are
CLOUDFRONT
andREGIONAL
.For
CLOUDFRONT
, you must create your WAFv2 resources in the US East (N. Virginia) Region,us-east-1
.- description String
- A description of the IP set that helps with identification.
- name String
- The name of the IP set. You cannot change the name of an
IPSet
after you create it. - List<Tag>
Key:value pairs associated with an AWS resource. The key:value pair can be anything you define. Typically, the tag key represents a category (such as "environment") and the tag value represents a specific value within that category (such as "test," "development," or "production"). You can add up to 50 tags to each AWS resource.
To modify tags on existing resources, use the AWS WAF APIs or command line interface. With AWS CloudFormation , you can only add tags to AWS WAF resources during resource creation.
- addresses string[]
- List of IPAddresses.
- ip
Address IpVersion Set Ip Address Version - The version of the IP addresses, either
IPV4
orIPV6
. - scope
Ip
Set Scope Specifies whether this is for an Amazon CloudFront distribution or for a regional application. A regional application can be an Application Load Balancer (ALB), an Amazon API Gateway REST API, an AWS AppSync GraphQL API, an Amazon Cognito user pool, an AWS App Runner service, or an AWS Verified Access instance. Valid Values are
CLOUDFRONT
andREGIONAL
.For
CLOUDFRONT
, you must create your WAFv2 resources in the US East (N. Virginia) Region,us-east-1
.- description string
- A description of the IP set that helps with identification.
- name string
- The name of the IP set. You cannot change the name of an
IPSet
after you create it. - Tag[]
Key:value pairs associated with an AWS resource. The key:value pair can be anything you define. Typically, the tag key represents a category (such as "environment") and the tag value represents a specific value within that category (such as "test," "development," or "production"). You can add up to 50 tags to each AWS resource.
To modify tags on existing resources, use the AWS WAF APIs or command line interface. With AWS CloudFormation , you can only add tags to AWS WAF resources during resource creation.
- addresses Sequence[str]
- List of IPAddresses.
- ip_
address_ Ipversion Set Ip Address Version - The version of the IP addresses, either
IPV4
orIPV6
. - scope
Ip
Set Scope Specifies whether this is for an Amazon CloudFront distribution or for a regional application. A regional application can be an Application Load Balancer (ALB), an Amazon API Gateway REST API, an AWS AppSync GraphQL API, an Amazon Cognito user pool, an AWS App Runner service, or an AWS Verified Access instance. Valid Values are
CLOUDFRONT
andREGIONAL
.For
CLOUDFRONT
, you must create your WAFv2 resources in the US East (N. Virginia) Region,us-east-1
.- description str
- A description of the IP set that helps with identification.
- name str
- The name of the IP set. You cannot change the name of an
IPSet
after you create it. - Sequence[Tag
Args] Key:value pairs associated with an AWS resource. The key:value pair can be anything you define. Typically, the tag key represents a category (such as "environment") and the tag value represents a specific value within that category (such as "test," "development," or "production"). You can add up to 50 tags to each AWS resource.
To modify tags on existing resources, use the AWS WAF APIs or command line interface. With AWS CloudFormation , you can only add tags to AWS WAF resources during resource creation.
- addresses List<String>
- List of IPAddresses.
- ip
Address "IPV4" | "IPV6"Version - The version of the IP addresses, either
IPV4
orIPV6
. - scope "CLOUDFRONT" | "REGIONAL"
Specifies whether this is for an Amazon CloudFront distribution or for a regional application. A regional application can be an Application Load Balancer (ALB), an Amazon API Gateway REST API, an AWS AppSync GraphQL API, an Amazon Cognito user pool, an AWS App Runner service, or an AWS Verified Access instance. Valid Values are
CLOUDFRONT
andREGIONAL
.For
CLOUDFRONT
, you must create your WAFv2 resources in the US East (N. Virginia) Region,us-east-1
.- description String
- A description of the IP set that helps with identification.
- name String
- The name of the IP set. You cannot change the name of an
IPSet
after you create it. - List<Property Map>
Key:value pairs associated with an AWS resource. The key:value pair can be anything you define. Typically, the tag key represents a category (such as "environment") and the tag value represents a specific value within that category (such as "test," "development," or "production"). You can add up to 50 tags to each AWS resource.
To modify tags on existing resources, use the AWS WAF APIs or command line interface. With AWS CloudFormation , you can only add tags to AWS WAF resources during resource creation.
Outputs
All input properties are implicitly available as output properties. Additionally, the IpSet resource produces the following output properties:
Supporting Types
IpSetIpAddressVersion, IpSetIpAddressVersionArgs
- Ipv4
- IPV4
- Ipv6
- IPV6
- Ip
Set Ip Address Version Ipv4 - IPV4
- Ip
Set Ip Address Version Ipv6 - IPV6
- Ipv4
- IPV4
- Ipv6
- IPV6
- Ipv4
- IPV4
- Ipv6
- IPV6
- IPV4
- IPV4
- IPV6
- IPV6
- "IPV4"
- IPV4
- "IPV6"
- IPV6
IpSetScope, IpSetScopeArgs
- Cloudfront
- CLOUDFRONT
- Regional
- REGIONAL
- Ip
Set Scope Cloudfront - CLOUDFRONT
- Ip
Set Scope Regional - REGIONAL
- Cloudfront
- CLOUDFRONT
- Regional
- REGIONAL
- Cloudfront
- CLOUDFRONT
- Regional
- REGIONAL
- CLOUDFRONT
- CLOUDFRONT
- REGIONAL
- REGIONAL
- "CLOUDFRONT"
- CLOUDFRONT
- "REGIONAL"
- REGIONAL
Tag, TagArgs
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.