Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(aws-cdk-lib): allow create explicitly empty trees on aws-cdk-lib core #29784

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
{
"Resources": {
"CfnWebACL": {
"Type": "AWS::WAFv2::WebACL",
"Properties": {
"DefaultAction": {
"Block": {}
},
"Description": "My Web Application Firewall",
"Name": "MyWebACL",
"Rules": [
{
"Action": {
"Block": {}
},
"Name": "MyRuleObject",
"Priority": 0,
"Statement": {
"ByteMatchStatement": {
"FieldToMatch": {
"SingleHeader": {
"name": "User-Agent"
}
},
"PositionalConstraint": "EXACTLY",
"SearchString": "MyCustomUserAgent",
"TextTransformations": [
{
"Priority": 0,
"Type": "NONE"
}
]
}
},
"VisibilityConfig": {
"CloudWatchMetricsEnabled": true,
"MetricName": "MyRuleObjectMetrics",
"SampledRequestsEnabled": true
}
},
{
"Action": {
"Block": {}
},
"Name": "MyJsonPlainRule",
"Priority": 1,
"Statement": {
"ByteMatchStatement": {
"FieldToMatch": {
"SingleHeader": {
"name": "Other-User-Agent"
}
},
"positionalConstraint": "EXACTLY",
"searchString": "MyCustomOtherUserAgent",
"textTransformations": [
{
"priority": 0,
"type": "NONE"
}
]
}
}
}
],
"Scope": "CLOUDFRONT",
"VisibilityConfig": {
"CloudWatchMetricsEnabled": true,
"MetricName": "MyWebACLMetric",
"SampledRequestsEnabled": true
}
}
}
},
"Parameters": {
"BootstrapVersion": {
"Type": "AWS::SSM::Parameter::Value<String>",
"Default": "/cdk-bootstrap/hnb659fds/version",
"Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
}
},
"Rules": {
"CheckBootstrapVersion": {
"Assertions": [
{
"Assert": {
"Fn::Not": [
{
"Fn::Contains": [
[
"1",
"2",
"3",
"4",
"5"
],
{
"Ref": "BootstrapVersion"
}
]
}
]
},
"AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
}
]
}
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading