@aws-solutions-constructs/aws-wafwebacl-appsync 2.51.0 → 2.52.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. package/.eslintignore +3 -1
  2. package/.jsii +49 -4
  3. package/integ.config.json +7 -0
  4. package/lib/index.js +1 -1
  5. package/package.json +9 -8
  6. package/test/integ.wafaps-no-arguments.js +5 -2
  7. package/test/integ.wafaps-no-arguments.js.snapshot/cdk.out +1 -0
  8. package/test/integ.wafaps-no-arguments.js.snapshot/integ.json +12 -0
  9. package/test/integ.wafaps-no-arguments.js.snapshot/manifest.json +125 -0
  10. package/test/integ.wafaps-no-arguments.js.snapshot/tree.json +301 -0
  11. package/test/integ.wafaps-no-arguments.js.snapshot/wafaps-no-arguments.assets.json +19 -0
  12. package/test/integ.wafaps-no-arguments.js.snapshot/wafaps-no-arguments.template.json +204 -0
  13. package/test/integ.wafaps-no-arguments.js.snapshot/wafapsnoargumentsIntegDefaultTestDeployAssertF5B21BFB.assets.json +19 -0
  14. package/test/integ.wafaps-no-arguments.js.snapshot/wafapsnoargumentsIntegDefaultTestDeployAssertF5B21BFB.template.json +36 -0
  15. package/test/integ.wafaps-partial-arguments.js +5 -2
  16. package/test/integ.wafaps-partial-arguments.js.snapshot/cdk.out +1 -0
  17. package/test/integ.wafaps-partial-arguments.js.snapshot/integ.json +12 -0
  18. package/test/integ.wafaps-partial-arguments.js.snapshot/manifest.json +125 -0
  19. package/test/integ.wafaps-partial-arguments.js.snapshot/tree.json +302 -0
  20. package/test/integ.wafaps-partial-arguments.js.snapshot/wafaps-partial-arguments.assets.json +19 -0
  21. package/test/integ.wafaps-partial-arguments.js.snapshot/wafaps-partial-arguments.template.json +205 -0
  22. package/test/integ.wafaps-partial-arguments.js.snapshot/wafapspartialargumentsIntegDefaultTestDeployAssert5B8DF79A.assets.json +19 -0
  23. package/test/integ.wafaps-partial-arguments.js.snapshot/wafapspartialargumentsIntegDefaultTestDeployAssert5B8DF79A.template.json +36 -0
  24. package/test/integ.wafaps-no-arguments.expected.json +0 -204
  25. package/test/integ.wafaps-partial-arguments.expected.json +0 -205
@@ -1,204 +0,0 @@
1
- {
2
- "Resources": {
3
- "newgraphqlapi": {
4
- "Type": "AWS::AppSync::GraphQLApi",
5
- "Properties": {
6
- "AuthenticationType": "API_KEY",
7
- "Name": "api"
8
- }
9
- },
10
- "testwafwebaclappsynctestwafwebaclappsyncWebACLA64C38D0": {
11
- "Type": "AWS::WAFv2::WebACL",
12
- "Properties": {
13
- "DefaultAction": {
14
- "Allow": {}
15
- },
16
- "Rules": [
17
- {
18
- "Name": "AWS-AWSManagedRulesBotControlRuleSet",
19
- "OverrideAction": {
20
- "None": {}
21
- },
22
- "Priority": 0,
23
- "Statement": {
24
- "ManagedRuleGroupStatement": {
25
- "Name": "AWSManagedRulesBotControlRuleSet",
26
- "VendorName": "AWS"
27
- }
28
- },
29
- "VisibilityConfig": {
30
- "CloudWatchMetricsEnabled": true,
31
- "MetricName": "AWSManagedRulesBotControlRuleSet",
32
- "SampledRequestsEnabled": true
33
- }
34
- },
35
- {
36
- "Name": "AWS-AWSManagedRulesKnownBadInputsRuleSet",
37
- "OverrideAction": {
38
- "None": {}
39
- },
40
- "Priority": 1,
41
- "Statement": {
42
- "ManagedRuleGroupStatement": {
43
- "Name": "AWSManagedRulesKnownBadInputsRuleSet",
44
- "VendorName": "AWS"
45
- }
46
- },
47
- "VisibilityConfig": {
48
- "CloudWatchMetricsEnabled": true,
49
- "MetricName": "AWSManagedRulesKnownBadInputsRuleSet",
50
- "SampledRequestsEnabled": true
51
- }
52
- },
53
- {
54
- "Name": "AWS-AWSManagedRulesCommonRuleSet",
55
- "OverrideAction": {
56
- "None": {}
57
- },
58
- "Priority": 2,
59
- "Statement": {
60
- "ManagedRuleGroupStatement": {
61
- "Name": "AWSManagedRulesCommonRuleSet",
62
- "VendorName": "AWS"
63
- }
64
- },
65
- "VisibilityConfig": {
66
- "CloudWatchMetricsEnabled": true,
67
- "MetricName": "AWSManagedRulesCommonRuleSet",
68
- "SampledRequestsEnabled": true
69
- }
70
- },
71
- {
72
- "Name": "AWS-AWSManagedRulesAnonymousIpList",
73
- "OverrideAction": {
74
- "None": {}
75
- },
76
- "Priority": 3,
77
- "Statement": {
78
- "ManagedRuleGroupStatement": {
79
- "Name": "AWSManagedRulesAnonymousIpList",
80
- "VendorName": "AWS"
81
- }
82
- },
83
- "VisibilityConfig": {
84
- "CloudWatchMetricsEnabled": true,
85
- "MetricName": "AWSManagedRulesAnonymousIpList",
86
- "SampledRequestsEnabled": true
87
- }
88
- },
89
- {
90
- "Name": "AWS-AWSManagedRulesAmazonIpReputationList",
91
- "OverrideAction": {
92
- "None": {}
93
- },
94
- "Priority": 4,
95
- "Statement": {
96
- "ManagedRuleGroupStatement": {
97
- "Name": "AWSManagedRulesAmazonIpReputationList",
98
- "VendorName": "AWS"
99
- }
100
- },
101
- "VisibilityConfig": {
102
- "CloudWatchMetricsEnabled": true,
103
- "MetricName": "AWSManagedRulesAmazonIpReputationList",
104
- "SampledRequestsEnabled": true
105
- }
106
- },
107
- {
108
- "Name": "AWS-AWSManagedRulesAdminProtectionRuleSet",
109
- "OverrideAction": {
110
- "None": {}
111
- },
112
- "Priority": 5,
113
- "Statement": {
114
- "ManagedRuleGroupStatement": {
115
- "Name": "AWSManagedRulesAdminProtectionRuleSet",
116
- "VendorName": "AWS"
117
- }
118
- },
119
- "VisibilityConfig": {
120
- "CloudWatchMetricsEnabled": true,
121
- "MetricName": "AWSManagedRulesAdminProtectionRuleSet",
122
- "SampledRequestsEnabled": true
123
- }
124
- },
125
- {
126
- "Name": "AWS-AWSManagedRulesSQLiRuleSet",
127
- "OverrideAction": {
128
- "None": {}
129
- },
130
- "Priority": 6,
131
- "Statement": {
132
- "ManagedRuleGroupStatement": {
133
- "Name": "AWSManagedRulesSQLiRuleSet",
134
- "VendorName": "AWS"
135
- }
136
- },
137
- "VisibilityConfig": {
138
- "CloudWatchMetricsEnabled": true,
139
- "MetricName": "AWSManagedRulesSQLiRuleSet",
140
- "SampledRequestsEnabled": true
141
- }
142
- }
143
- ],
144
- "Scope": "REGIONAL",
145
- "VisibilityConfig": {
146
- "CloudWatchMetricsEnabled": true,
147
- "MetricName": "webACL",
148
- "SampledRequestsEnabled": true
149
- }
150
- }
151
- },
152
- "testwafwebaclappsyncWebACLAssociation": {
153
- "Type": "AWS::WAFv2::WebACLAssociation",
154
- "Properties": {
155
- "ResourceArn": {
156
- "Fn::GetAtt": [
157
- "newgraphqlapi",
158
- "Arn"
159
- ]
160
- },
161
- "WebACLArn": {
162
- "Fn::GetAtt": [
163
- "testwafwebaclappsynctestwafwebaclappsyncWebACLA64C38D0",
164
- "Arn"
165
- ]
166
- }
167
- }
168
- }
169
- },
170
- "Parameters": {
171
- "BootstrapVersion": {
172
- "Type": "AWS::SSM::Parameter::Value<String>",
173
- "Default": "/cdk-bootstrap/hnb659fds/version",
174
- "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
175
- }
176
- },
177
- "Rules": {
178
- "CheckBootstrapVersion": {
179
- "Assertions": [
180
- {
181
- "Assert": {
182
- "Fn::Not": [
183
- {
184
- "Fn::Contains": [
185
- [
186
- "1",
187
- "2",
188
- "3",
189
- "4",
190
- "5"
191
- ],
192
- {
193
- "Ref": "BootstrapVersion"
194
- }
195
- ]
196
- }
197
- ]
198
- },
199
- "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
200
- }
201
- ]
202
- }
203
- }
204
- }
@@ -1,205 +0,0 @@
1
- {
2
- "Resources": {
3
- "newgraphqlapi": {
4
- "Type": "AWS::AppSync::GraphQLApi",
5
- "Properties": {
6
- "AuthenticationType": "API_KEY",
7
- "Name": "api"
8
- }
9
- },
10
- "testwafwebaclappsynctestwafwebaclappsyncWebACLA64C38D0": {
11
- "Type": "AWS::WAFv2::WebACL",
12
- "Properties": {
13
- "DefaultAction": {
14
- "Allow": {}
15
- },
16
- "Name": "test-name-appsync",
17
- "Rules": [
18
- {
19
- "Name": "AWS-AWSManagedRulesBotControlRuleSet",
20
- "OverrideAction": {
21
- "None": {}
22
- },
23
- "Priority": 0,
24
- "Statement": {
25
- "ManagedRuleGroupStatement": {
26
- "Name": "AWSManagedRulesBotControlRuleSet",
27
- "VendorName": "AWS"
28
- }
29
- },
30
- "VisibilityConfig": {
31
- "CloudWatchMetricsEnabled": true,
32
- "MetricName": "AWSManagedRulesBotControlRuleSet",
33
- "SampledRequestsEnabled": true
34
- }
35
- },
36
- {
37
- "Name": "AWS-AWSManagedRulesKnownBadInputsRuleSet",
38
- "OverrideAction": {
39
- "None": {}
40
- },
41
- "Priority": 1,
42
- "Statement": {
43
- "ManagedRuleGroupStatement": {
44
- "Name": "AWSManagedRulesKnownBadInputsRuleSet",
45
- "VendorName": "AWS"
46
- }
47
- },
48
- "VisibilityConfig": {
49
- "CloudWatchMetricsEnabled": true,
50
- "MetricName": "AWSManagedRulesKnownBadInputsRuleSet",
51
- "SampledRequestsEnabled": true
52
- }
53
- },
54
- {
55
- "Name": "AWS-AWSManagedRulesCommonRuleSet",
56
- "OverrideAction": {
57
- "None": {}
58
- },
59
- "Priority": 2,
60
- "Statement": {
61
- "ManagedRuleGroupStatement": {
62
- "Name": "AWSManagedRulesCommonRuleSet",
63
- "VendorName": "AWS"
64
- }
65
- },
66
- "VisibilityConfig": {
67
- "CloudWatchMetricsEnabled": true,
68
- "MetricName": "AWSManagedRulesCommonRuleSet",
69
- "SampledRequestsEnabled": true
70
- }
71
- },
72
- {
73
- "Name": "AWS-AWSManagedRulesAnonymousIpList",
74
- "OverrideAction": {
75
- "None": {}
76
- },
77
- "Priority": 3,
78
- "Statement": {
79
- "ManagedRuleGroupStatement": {
80
- "Name": "AWSManagedRulesAnonymousIpList",
81
- "VendorName": "AWS"
82
- }
83
- },
84
- "VisibilityConfig": {
85
- "CloudWatchMetricsEnabled": true,
86
- "MetricName": "AWSManagedRulesAnonymousIpList",
87
- "SampledRequestsEnabled": true
88
- }
89
- },
90
- {
91
- "Name": "AWS-AWSManagedRulesAmazonIpReputationList",
92
- "OverrideAction": {
93
- "None": {}
94
- },
95
- "Priority": 4,
96
- "Statement": {
97
- "ManagedRuleGroupStatement": {
98
- "Name": "AWSManagedRulesAmazonIpReputationList",
99
- "VendorName": "AWS"
100
- }
101
- },
102
- "VisibilityConfig": {
103
- "CloudWatchMetricsEnabled": true,
104
- "MetricName": "AWSManagedRulesAmazonIpReputationList",
105
- "SampledRequestsEnabled": true
106
- }
107
- },
108
- {
109
- "Name": "AWS-AWSManagedRulesAdminProtectionRuleSet",
110
- "OverrideAction": {
111
- "None": {}
112
- },
113
- "Priority": 5,
114
- "Statement": {
115
- "ManagedRuleGroupStatement": {
116
- "Name": "AWSManagedRulesAdminProtectionRuleSet",
117
- "VendorName": "AWS"
118
- }
119
- },
120
- "VisibilityConfig": {
121
- "CloudWatchMetricsEnabled": true,
122
- "MetricName": "AWSManagedRulesAdminProtectionRuleSet",
123
- "SampledRequestsEnabled": true
124
- }
125
- },
126
- {
127
- "Name": "AWS-AWSManagedRulesSQLiRuleSet",
128
- "OverrideAction": {
129
- "None": {}
130
- },
131
- "Priority": 6,
132
- "Statement": {
133
- "ManagedRuleGroupStatement": {
134
- "Name": "AWSManagedRulesSQLiRuleSet",
135
- "VendorName": "AWS"
136
- }
137
- },
138
- "VisibilityConfig": {
139
- "CloudWatchMetricsEnabled": true,
140
- "MetricName": "AWSManagedRulesSQLiRuleSet",
141
- "SampledRequestsEnabled": true
142
- }
143
- }
144
- ],
145
- "Scope": "REGIONAL",
146
- "VisibilityConfig": {
147
- "CloudWatchMetricsEnabled": true,
148
- "MetricName": "webACL",
149
- "SampledRequestsEnabled": true
150
- }
151
- }
152
- },
153
- "testwafwebaclappsyncWebACLAssociation": {
154
- "Type": "AWS::WAFv2::WebACLAssociation",
155
- "Properties": {
156
- "ResourceArn": {
157
- "Fn::GetAtt": [
158
- "newgraphqlapi",
159
- "Arn"
160
- ]
161
- },
162
- "WebACLArn": {
163
- "Fn::GetAtt": [
164
- "testwafwebaclappsynctestwafwebaclappsyncWebACLA64C38D0",
165
- "Arn"
166
- ]
167
- }
168
- }
169
- }
170
- },
171
- "Parameters": {
172
- "BootstrapVersion": {
173
- "Type": "AWS::SSM::Parameter::Value<String>",
174
- "Default": "/cdk-bootstrap/hnb659fds/version",
175
- "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
176
- }
177
- },
178
- "Rules": {
179
- "CheckBootstrapVersion": {
180
- "Assertions": [
181
- {
182
- "Assert": {
183
- "Fn::Not": [
184
- {
185
- "Fn::Contains": [
186
- [
187
- "1",
188
- "2",
189
- "3",
190
- "4",
191
- "5"
192
- ],
193
- {
194
- "Ref": "BootstrapVersion"
195
- }
196
- ]
197
- }
198
- ]
199
- },
200
- "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
201
- }
202
- ]
203
- }
204
- }
205
- }