cfnlego 0.3.6 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 25066bbf6b0f77c292bb68084bf0c5fb06b268ac
4
- data.tar.gz: a7856ec18977a98a80b29cee8a55921952e81880
3
+ metadata.gz: 53035b40f7dd79d6baad4af1e9a98bbb3cb2376b
4
+ data.tar.gz: f2c09018e239fd06cfa1c97c80f117c4a867d14a
5
5
  SHA512:
6
- metadata.gz: 7b43509a985cb6e86b23be3dec6eafb45215435336d348b2a8f0b331251ce6ca111f63550b2be61cbd703c84f612b619a7c7d8ab141283dcd00c6ca24f81c1d8
7
- data.tar.gz: 03722f7ad2285d72e963bdd63be3ad6fcdbe2078ccf55b245f6332e16c1341ce44f7436f2ab279242e9f3ebb0e3c507e03c9d8ddedc79dd469fec8855c8ca1f6
6
+ metadata.gz: 414cca0ec059d59798133f3ab01efa090b36d080c374439fe5a16bd6ff32e9648b9739da5747aaf1b546df4d8cd0810b53df3c9327e0531383ca8a364971b931
7
+ data.tar.gz: 0558bf3b064d7f9a3f798e9954dc3488c9ef6b0ef1219f5071a1bc7d5f4582c13ea4e51d3e8ee13c7b25903f5a36cdf33bf0db49e44243a9734d517effd26e70
data/README.md CHANGED
@@ -91,6 +91,13 @@ Example:
91
91
  - AWS::SNS::TopicPolicy
92
92
  - AWS::SQS::Queue
93
93
  - AWS::SQS::QueuePolicy
94
+ - AWS::WAF::ByteMatchSet
95
+ - AWS::WAF::IPSet
96
+ - AWS::WAF::Rule
97
+ - AWS::WAF::SizeConstraintSet
98
+ - AWS::WAF::SqlInjectionMatchSet
99
+ - AWS::WAF::WebACL
100
+ - AWS::WAF::XssMatchSet
94
101
 
95
102
  ### License
96
103
 
@@ -0,0 +1,16 @@
1
+ AWS::WAF::ByteMatchSet:
2
+ Properties:
3
+ ByteMatchTuples: |
4
+ [
5
+ {
6
+ "FieldToMatch" => {
7
+ "Data" => "If you specify HEADER for the Type property, the name of the header that AWS WAF searches for, such as User-Agent or Referer. If you specify any other value for the Type property, do not specify this property.",
8
+ "Type" => "URI | QUERY_STRING | HEADER | METHOD | BODY"
9
+ },
10
+ "PositionalConstraint" => "EXACTLY | STARTS_WITH | ENDS_WITH | CONTAINS | CONTAINS_WORD",
11
+ "TargetString" => "The value that you want AWS WAF to search for. AWS WAF searches for the specified string in the part of web requests that you specified in FieldToMatch. The maximum length of the value is 50 bytes. Valid values depend on the values that you specified for FieldToMatch: HEADER: The value that you want AWS WAF to search for in the request header that you specified in FieldToMatch, for example, the value of the User-Agent or Referer header. METHOD: The HTTP method, which indicates the type of operation specified in the request. CloudFront supports the following methods: DELETE, GET, HEAD, OPTIONS, PATCH, POST, and PUT. QUERY_STRING: The value that you want AWS WAF to search for in the query string, which is the part of a URL that appears after a ? character. URI: The value that you want AWS WAF to search for in the part of a URL that identifies a resource, for example, /images/daily-ad.jpg. BODY: The part of a request that contains any additional data that you want to send to your web server as the HTTP request body, such as data from a form. The request body immediately follows the request headers. Note that only the first 8192 bytes of the request body are forwarded to AWS WAF for inspection. To allow or block requests based on the length of the body, you can create a size constraint set. For more information, see CreateSizeConstraintSet. If TargetString includes alphabetic characters A-Z and a-z, note that the value is case sensitive.",
12
+ "TargetStringBase64" => "The base64-encoded value that AWS WAF searches for. AWS CloudFormation sends this value to AWS WAF without encoding it. You must specify this property or the TargetString property.",
13
+ "TextTransformation" => "NONE | COMPRESS_WHITE_SPACE | HTML_ENTITY_DECODE | LOWERCASE | CMD_LINE | URL_DECODE"
14
+ }
15
+ ]
16
+ Name: "\"A friendly name or description of the ByteMatchSet.\""
@@ -0,0 +1,10 @@
1
+ AWS::WAF::IPSet:
2
+ Properties:
3
+ IPSetDescriptors: |
4
+ [
5
+ {
6
+ "Type" => "IPV4",
7
+ "Value"=> "AWS WAF supports only /8, /16, /24, and /32 IP addresses."
8
+ }
9
+ ]
10
+ Name: "\"A friendly name or description of the IPSet.\""
@@ -0,0 +1,12 @@
1
+ AWS::WAF::Rule:
2
+ Properties:
3
+ MetricName: "\"A friendly name or description for the metrics of the rule.\""
4
+ Name: "\"A friendly name or description of the rule.\""
5
+ Predicates: |
6
+ [
7
+ {
8
+ "DataId" => "The unique identifier of a predicate, such as the ID of a ByteMatchSet or IPSet.",
9
+ "Negated" => "Whether to use the settings or the negated settings that you specified in the ByteMatchSet, IPSet, SizeConstraintSet, SqlInjectionMatchSet, or XssMatchSet objects. Specify false if you want AWS WAF to allow, block, or count requests based on the settings in the specified ByteMatchSet, IPSet, SizeConstraintSet, SqlInjectionMatchSet, or XssMatchSet objects. For example, if an IPSet object includes the IP address 192.0.2.44, AWS WAF allows, blocks, or counts requests originating from that IP address. Specify true if you want AWS WAF to allow, block, or count requests based on the negated settings in the ByteMatchSet, IPSet, SizeConstraintSet, SqlInjectionMatchSet, or XssMatchSet objects. For example, if an IPSet object includes the IP address 192.0.2.44, AWS WAF allows, blocks, or counts requests originating from all IP addresses except 192.0.2.44.",
10
+ "Type" => "IPMatch | ByteMatch | SqlInjectionMatch | SizeConstraint | XssMatch"
11
+ }
12
+ ]
@@ -0,0 +1,15 @@
1
+ AWS::WAF::SizeConstraintSet:
2
+ Properties:
3
+ SizeConstraints: |
4
+ [
5
+ {
6
+ "ComparisonOperator" => "EQ | NE | LE | LT | GE | GT",
7
+ "FieldToMatch" => {
8
+ "Data" => "If you specify HEADER for the Type property, the name of the header that AWS WAF searches for, such as User-Agent or Referer. If you specify any other value for the Type property, do not specify this property.",
9
+ "Type" => "URI | QUERY_STRING | HEADER | METHOD | BODY"
10
+ },
11
+ "Size" => "Valid values for size are 0 - 21474836480 bytes (0 - 20 GB).",
12
+ "TextTransformation" => "NONE | COMPRESS_WHITE_SPACE | HTML_ENTITY_DECODE | LOWERCASE | CMD_LINE | URL_DECODE"
13
+ }
14
+ ]
15
+ Name: "\"A friendly name or description of the SizeConstraintSet.\""
@@ -0,0 +1,13 @@
1
+ AWS::WAF::SqlInjectionMatchSet:
2
+ Properties:
3
+ SqlInjectionMatchTuples: |
4
+ [
5
+ {
6
+ "FieldToMatch" => {
7
+ "Data" => "If you specify HEADER for the Type property, the name of the header that AWS WAF searches for, such as User-Agent or Referer. If you specify any other value for the Type property, do not specify this property.",
8
+ "Type" => "URI | QUERY_STRING | HEADER | METHOD | BODY"
9
+ },
10
+ "TextTransformation" => "NONE | COMPRESS_WHITE_SPACE | HTML_ENTITY_DECODE | LOWERCASE | CMD_LINE | URL_DECODE"
11
+ }
12
+ ]
13
+ Name: "\"A friendly name or description of the SqlInjectionMatchSet.\""
@@ -0,0 +1,16 @@
1
+ AWS::WAF::WebACL:
2
+ Properties:
3
+ DefaultAction: |
4
+ {
5
+ "Type" => "The action that Amazon CloudFront (CloudFront) or AWS WAF takes when a web request matches all conditions in the rule, such as allow, block, or count the request. Ex: BLOCK | ALLOW | COUNT"
6
+ }
7
+ MetricName: "\"A friendly name or description for the Amazon CloudWatch metric of this web ACL.\""
8
+ Name: "\"A friendly name or description of the web ACL\""
9
+ Rules: |
10
+ [
11
+ {
12
+ "Action" => "BLOCK | ALLOW | COUNT",
13
+ "Priority" => "The order in which AWS WAF evaluates the rules in a web ACL. AWS WAF evaluates rules with a lower value before rules with a higher value. The value must be a unique integer. If you have multiple rules in a web ACL, the priority numbers do not need to be consecutive.",
14
+ "RuleId" => "The ID of an AWS WAF rule to associate with a web ACL."
15
+ }
16
+ ]
@@ -0,0 +1,14 @@
1
+ AWS::WAF::XssMatchSet:
2
+ Properties:
3
+ XssMatchTuples: |
4
+ [
5
+ {
6
+ "FieldToMatch" => {
7
+ "Data" => "If you specify HEADER for the Type property, the name of the header that AWS WAF searches for, such as User-Agent or Referer. If you specify any other value for the Type property, do not specify this property.",
8
+ "Type" => "URI | QUERY_STRING | HEADER | METHOD | BODY"
9
+ },
10
+ "TextTransformation" => "NONE | COMPRESS_WHITE_SPACE | HTML_ENTITY_DECODE | LOWERCASE | CMD_LINE | URL_DECODE"
11
+ }
12
+ ]
13
+
14
+ Name: "\"A friendly name or description of the XssMatchSet.\""
@@ -1,3 +1,3 @@
1
1
  module Cfnlego
2
- VERSION='0.3.6'
2
+ VERSION='0.4.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cfnlego
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Yung
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-04 00:00:00.000000000 Z
11
+ date: 2016-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-beautify
@@ -147,6 +147,13 @@ files:
147
147
  - lib/cfnlego/resources/AWS/SNS/TopicPolicy.yaml
148
148
  - lib/cfnlego/resources/AWS/SQS/Queue.yaml
149
149
  - lib/cfnlego/resources/AWS/SQS/QueuePolicy.yaml
150
+ - lib/cfnlego/resources/AWS/WAF/ByteMatchSet.yaml
151
+ - lib/cfnlego/resources/AWS/WAF/IPSet.yaml
152
+ - lib/cfnlego/resources/AWS/WAF/Rule.yaml
153
+ - lib/cfnlego/resources/AWS/WAF/SizeConstraintSet.yaml
154
+ - lib/cfnlego/resources/AWS/WAF/SqlInjectionMatchSet.yaml
155
+ - lib/cfnlego/resources/AWS/WAF/WebACL.yaml
156
+ - lib/cfnlego/resources/AWS/WAF/XssMatchSet.yaml
150
157
  - lib/cfnlego/version.rb
151
158
  - utils/list-supported-resources.sh
152
159
  homepage: https://github.com/allinwonder/cfnlego