IpSet
Provides a WAF IPSet Resource
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var ipset = new Aws.Waf.IpSet("ipset", new Aws.Waf.IpSetArgs
{
IpSetDescriptors =
{
new Aws.Waf.Inputs.IpSetIpSetDescriptorArgs
{
Type = "IPV4",
Value = "192.0.7.0/24",
},
new Aws.Waf.Inputs.IpSetIpSetDescriptorArgs
{
Type = "IPV4",
Value = "10.16.16.0/16",
},
},
});
}
}
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/waf"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := waf.NewIpSet(ctx, "ipset", &waf.IpSetArgs{
IpSetDescriptors: waf.IpSetIpSetDescriptorArray{
&waf.IpSetIpSetDescriptorArgs{
Type: pulumi.String("IPV4"),
Value: pulumi.String("192.0.7.0/24"),
},
&waf.IpSetIpSetDescriptorArgs{
Type: pulumi.String("IPV4"),
Value: pulumi.String("10.16.16.0/16"),
},
},
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_aws as aws
ipset = aws.waf.IpSet("ipset", ip_set_descriptors=[
{
"type": "IPV4",
"value": "192.0.7.0/24",
},
{
"type": "IPV4",
"value": "10.16.16.0/16",
},
])import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const ipset = new aws.waf.IpSet("ipset", {
ipSetDescriptors: [
{
type: "IPV4",
value: "192.0.7.0/24",
},
{
type: "IPV4",
value: "10.16.16.0/16",
},
],
});Create a IpSet Resource
new IpSet(name: string, args?: IpSetArgs, opts?: CustomResourceOptions);def IpSet(resource_name, opts=None, ip_set_descriptors=None, name=None, __props__=None);public IpSet(string name, IpSetArgs? args = null, CustomResourceOptions? opts = null)- 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.
- opts ResourceOptions
- A bag of options that control this 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.
IpSet Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The IpSet resource accepts the following input properties:
- Ip
Set List<IpDescriptors Set Ip Set Descriptor Args> One or more pairs specifying the IP address type (IPV4 or IPV6) and the IP address range (in CIDR format) from which web requests originate.
- Name string
The name or description of the IPSet.
- Ip
Set []IpDescriptors Set Ip Set Descriptor One or more pairs specifying the IP address type (IPV4 or IPV6) and the IP address range (in CIDR format) from which web requests originate.
- Name string
The name or description of the IPSet.
- ip
Set IpDescriptors Set Ip Set Descriptor[] One or more pairs specifying the IP address type (IPV4 or IPV6) and the IP address range (in CIDR format) from which web requests originate.
- name string
The name or description of the IPSet.
- ip_
set_ List[Ipdescriptors Set Ip Set Descriptor] One or more pairs specifying the IP address type (IPV4 or IPV6) and the IP address range (in CIDR format) from which web requests originate.
- name str
The name or description of the IPSet.
Outputs
All input properties are implicitly available as output properties. Additionally, the IpSet resource produces the following output properties:
Look up an Existing IpSet Resource
Get an existing IpSet resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: IpSetState, opts?: CustomResourceOptions): IpSetstatic get(resource_name, id, opts=None, arn=None, ip_set_descriptors=None, name=None, __props__=None);func GetIpSet(ctx *Context, name string, id IDInput, state *IpSetState, opts ...ResourceOption) (*IpSet, error)public static IpSet Get(string name, Input<string> id, IpSetState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Arn string
The ARN of the WAF IPSet.
- Ip
Set List<IpDescriptors Set Ip Set Descriptor Args> One or more pairs specifying the IP address type (IPV4 or IPV6) and the IP address range (in CIDR format) from which web requests originate.
- Name string
The name or description of the IPSet.
- Arn string
The ARN of the WAF IPSet.
- Ip
Set []IpDescriptors Set Ip Set Descriptor One or more pairs specifying the IP address type (IPV4 or IPV6) and the IP address range (in CIDR format) from which web requests originate.
- Name string
The name or description of the IPSet.
- arn string
The ARN of the WAF IPSet.
- ip
Set IpDescriptors Set Ip Set Descriptor[] One or more pairs specifying the IP address type (IPV4 or IPV6) and the IP address range (in CIDR format) from which web requests originate.
- name string
The name or description of the IPSet.
- arn str
The ARN of the WAF IPSet.
- ip_
set_ List[Ipdescriptors Set Ip Set Descriptor] One or more pairs specifying the IP address type (IPV4 or IPV6) and the IP address range (in CIDR format) from which web requests originate.
- name str
The name or description of the IPSet.
Supporting Types
IpSetIpSetDescriptor
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.