github.com/koding/terraform@v0.6.4-0.20170608090606-5d7e0339779d/website/source/docs/providers/aws/r/wafregional_byte_match_set.html.markdown (about) 1 --- 2 layout: "aws" 3 page_title: "AWS: wafregional_byte_match_set" 4 sidebar_current: "docs-aws-resource-wafregional-bytematchset" 5 description: |- 6 Provides a AWS WAF Regional ByteMatchSet resource for use with ALB. 7 --- 8 9 # aws\_wafregional\_byte\_match\_set 10 11 Provides a WAF Regional Byte Match Set Resource for use with Application Load Balancer. 12 13 ## Example Usage 14 15 ``` 16 resource "aws_wafregional_byte_match_set" "byte_set" { 17 name = "tf_waf_byte_match_set" 18 byte_match_tuple { 19 text_transformation = "NONE" 20 target_string = "badrefer1" 21 positional_constraint = "CONTAINS" 22 field_to_match { 23 type = "HEADER" 24 data = "referer" 25 } 26 } 27 } 28 ``` 29 30 ## Argument Reference 31 32 The following arguments are supported: 33 34 * `name` - (Required) The name or description of the ByteMatchSet. 35 * `byte_match_tuple` - (Optional)Settings for the ByteMatchSet, such as the bytes (typically a string that corresponds with ASCII characters) that you want AWS WAF to search for in web requests. ByteMatchTuple documented below. 36 37 ByteMatchTuple(byte_match_tuple) support the following: 38 39 * `field_to_match` - (Required) Settings for the ByteMatchTuple. FieldToMatch documented below. 40 * `positional_constraint` - (Required) Within the portion of a web request that you want to search. 41 * `target_string` - (Required) The value that you want AWS WAF to search for. The maximum length of the value is 50 bytes. 42 * `text_transformation` - (Required) The formatting way for web request. 43 44 FieldToMatch(field_to_match) support following: 45 46 * `data` - (Optional) When the value of Type is HEADER, enter the name of the header that you want AWS WAF to search, for example, User-Agent or Referer. If the value of Type is any other value, omit Data. 47 * `type` - (Required) The part of the web request that you want AWS WAF to search for a specified string. 48 49 ## Remarks 50 51 ## Attributes Reference 52 53 The following attributes are exported: 54 55 * `id` - The ID of the WAF ByteMatchSet.