Skip to content

Resource: awsWafGeoMatchSet

Provides a WAF Geo Match Set Resource

Example Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.wafGeoMatchSet.WafGeoMatchSet(this, "geo_match_set", {
  geoMatchConstraint: [
    {
      type: "Country",
      value: "US",
    },
    {
      type: "Country",
      value: "CA",
    },
  ],
  name: "geo_match_set",
});

Argument Reference

The following arguments are supported:

  • name - (Required) The name or description of the GeoMatchSet.
  • geoMatchConstraint - (Optional) The GeoMatchConstraint objects which contain the country that you want AWS WAF to search for.

Nested Blocks

geoMatchConstraint

Arguments

  • type - (Required) The type of geographical area you want AWS WAF to search for. Currently Country is the only valid value.
  • value - (Required) 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.

Remarks

Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • id - The ID of the WAF GeoMatchSet.
  • arn - Amazon Resource Name (ARN)

Import

WAF Geo Match Set can be imported using their ID, e.g.,

$ terraform import aws_waf_geo_match_set.example a1b2c3d4-d5f6-7777-8888-9999aaaabbbbcccc