title: AWS WAF Create an ACL and rule to allow access to only one country to access the API gateway
body: <p>I want to create a json format cloud formation template that creates an ACL and rule in WAF to allow only the United States users to access the API gateway. I have the following code so far but it gives an error ("Encountered unsupported property Action") in AWS:</p>
  
  <pre><code>        "Type":"AWS::WAF::Rule",
          "Properties":{
              "Name":"APIGeoBlockRule",
              "Priority":0,
              "Action":{
                  "Block":{}
              },
              "VisibilityConfig":{
                  "SampledRequestsEnabled":true,
                  "CloudWatchMetricsEnabled":true,
                  "MetricName": "APIGeoBlockRule"
              },
              "Statement":{
                  "NotStatement":{
                      "Statement":{
                          "GeoMatchStatement":{
                              "CountryCodes":[
                                  "US"
                              ]
                          }
                      }
                  }
              }
          }
      } 
  </code></pre>