GeoMatchSet

Provides a WAF Regional Geo Match Set Resource

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var geoMatchSet = new Aws.WafRegional.GeoMatchSet("geoMatchSet", new Aws.WafRegional.GeoMatchSetArgs
        {
            GeoMatchConstraints = 
            {
                new Aws.WafRegional.Inputs.GeoMatchSetGeoMatchConstraintArgs
                {
                    Type = "Country",
                    Value = "US",
                },
                new Aws.WafRegional.Inputs.GeoMatchSetGeoMatchConstraintArgs
                {
                    Type = "Country",
                    Value = "CA",
                },
            },
        });
    }

}
package main

import (
    "github.com/pulumi/pulumi-aws/sdk/v2/go/aws/wafregional"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := wafregional.NewGeoMatchSet(ctx, "geoMatchSet", &wafregional.GeoMatchSetArgs{
            GeoMatchConstraints: wafregional.GeoMatchSetGeoMatchConstraintArray{
                &wafregional.GeoMatchSetGeoMatchConstraintArgs{
                    Type:  pulumi.String("Country"),
                    Value: pulumi.String("US"),
                },
                &wafregional.GeoMatchSetGeoMatchConstraintArgs{
                    Type:  pulumi.String("Country"),
                    Value: pulumi.String("CA"),
                },
            },
        })
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aws as aws

geo_match_set = aws.wafregional.GeoMatchSet("geoMatchSet", geo_match_constraints=[
    {
        "type": "Country",
        "value": "US",
    },
    {
        "type": "Country",
        "value": "CA",
    },
])
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const geoMatchSet = new aws.wafregional.GeoMatchSet("geo_match_set", {
    geoMatchConstraints: [
        {
            type: "Country",
            value: "US",
        },
        {
            type: "Country",
            value: "CA",
        },
    ],
});

Create a GeoMatchSet Resource

def GeoMatchSet(resource_name, opts=None, geo_match_constraints=None, name=None, __props__=None);
func NewGeoMatchSet(ctx *Context, name string, args *GeoMatchSetArgs, opts ...ResourceOption) (*GeoMatchSet, error)
public GeoMatchSet(string name, GeoMatchSetArgs? args = null, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args GeoMatchSetArgs
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 GeoMatchSetArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args GeoMatchSetArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

GeoMatchSet Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The GeoMatchSet resource accepts the following input properties:

GeoMatchConstraints List<GeoMatchSetGeoMatchConstraintArgs>

The Geo Match Constraint objects which contain the country that you want AWS WAF to search for.

Name string

The name or description of the Geo Match Set.

GeoMatchConstraints []GeoMatchSetGeoMatchConstraint

The Geo Match Constraint objects which contain the country that you want AWS WAF to search for.

Name string

The name or description of the Geo Match Set.

geoMatchConstraints GeoMatchSetGeoMatchConstraint[]

The Geo Match Constraint objects which contain the country that you want AWS WAF to search for.

name string

The name or description of the Geo Match Set.

geo_match_constraints List[GeoMatchSetGeoMatchConstraint]

The Geo Match Constraint objects which contain the country that you want AWS WAF to search for.

name str

The name or description of the Geo Match Set.

Outputs

All input properties are implicitly available as output properties. Additionally, the GeoMatchSet resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.

Look up an Existing GeoMatchSet Resource

Get an existing GeoMatchSet 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?: GeoMatchSetState, opts?: CustomResourceOptions): GeoMatchSet
static get(resource_name, id, opts=None, geo_match_constraints=None, name=None, __props__=None);
func GetGeoMatchSet(ctx *Context, name string, id IDInput, state *GeoMatchSetState, opts ...ResourceOption) (*GeoMatchSet, error)
public static GeoMatchSet Get(string name, Input<string> id, GeoMatchSetState? 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:

GeoMatchConstraints List<GeoMatchSetGeoMatchConstraintArgs>

The Geo Match Constraint objects which contain the country that you want AWS WAF to search for.

Name string

The name or description of the Geo Match Set.

GeoMatchConstraints []GeoMatchSetGeoMatchConstraint

The Geo Match Constraint objects which contain the country that you want AWS WAF to search for.

Name string

The name or description of the Geo Match Set.

geoMatchConstraints GeoMatchSetGeoMatchConstraint[]

The Geo Match Constraint objects which contain the country that you want AWS WAF to search for.

name string

The name or description of the Geo Match Set.

geo_match_constraints List[GeoMatchSetGeoMatchConstraint]

The Geo Match Constraint objects which contain the country that you want AWS WAF to search for.

name str

The name or description of the Geo Match Set.

Supporting Types

GeoMatchSetGeoMatchConstraint

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

Type string

The type of geographical area you want AWS WAF to search for. Currently Country is the only valid value.

Value string

The country that you want AWS WAF to search for. This is the two-letter country code, e.g. US, CA, RU, CN, etc. See docs for all supported values.

Type string

The type of geographical area you want AWS WAF to search for. Currently Country is the only valid value.

Value string

The country that you want AWS WAF to search for. This is the two-letter country code, e.g. US, CA, RU, CN, etc. See docs for all supported values.

type string

The type of geographical area you want AWS WAF to search for. Currently Country is the only valid value.

value string

The country that you want AWS WAF to search for. This is the two-letter country code, e.g. US, CA, RU, CN, etc. See docs for all supported values.

type str

The type of geographical area you want AWS WAF to search for. Currently Country is the only valid value.

value str

The country that you want AWS WAF to search for. This is the two-letter country code, e.g. US, CA, RU, CN, etc. See docs for all supported values.

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.