Skip to content

Commit

Permalink
Rework E3023 to v1 (#3222)
Browse files Browse the repository at this point in the history
* Rework E3023 to v1

* Update specs and patch in cfnLint records

* Cleanup some lightly used functions to save code that isn't being used
  • Loading branch information
kddejong authored May 7, 2024
1 parent 15d8fc0 commit c6f3d66
Show file tree
Hide file tree
Showing 170 changed files with 23,641 additions and 22,964 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"etag": "\"5be6c3d6cc20aec9e2b0af4cf38ba795\"", "url": "https://schema.cloudformation.eu-south-1.amazonaws.com/CloudformationSchema.zip"}
{"etag": "\"e87d885506dbe74990369fcec2a7f4be\"", "url": "https://schema.cloudformation.eu-south-1.amazonaws.com/CloudformationSchema.zip"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"etag": "\"4efa70f4d3ca674b6012a952d3981912\"", "url": "https://schema.cloudformation.cn-north-1.amazonaws.com.cn/CloudformationSchema.zip"}
{"etag": "\"798a8fe6282866309c4c3dcdaf477656\"", "url": "https://schema.cloudformation.cn-north-1.amazonaws.com.cn/CloudformationSchema.zip"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"etag": "\"20175402c26daae79d7d40a4bc9b9d6d\"", "url": "https://schema.cloudformation.us-gov-east-1.amazonaws.com/CloudformationSchema.zip"}
{"etag": "\"025494d5fc7a10bc1bff99910f584467\"", "url": "https://schema.cloudformation.us-gov-east-1.amazonaws.com/CloudformationSchema.zip"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"etag": "\"0e8552ab59cd62e1ebae499df4999190\"", "url": "https://schema.cloudformation.me-south-1.amazonaws.com/CloudformationSchema.zip"}
{"etag": "\"ee7dfa30db494bbcd897e1eeae0851fa\"", "url": "https://schema.cloudformation.me-south-1.amazonaws.com/CloudformationSchema.zip"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"etag": "\"ea42b4f82a56b2e26ac70730d19c2c4e\"", "url": "https://schema.cloudformation.us-gov-west-1.amazonaws.com/CloudformationSchema.zip"}
{"etag": "\"35c9d8507ab48b7b8895e8d65bb64df6\"", "url": "https://schema.cloudformation.us-gov-west-1.amazonaws.com/CloudformationSchema.zip"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"etag": "\"962be477eb92934af7da12e651d99acb\"", "url": "https://schema.cloudformation.me-central-1.amazonaws.com/CloudformationSchema.zip"}
{"etag": "\"c1267c22eae6ec89391882f62774a018\"", "url": "https://schema.cloudformation.me-central-1.amazonaws.com/CloudformationSchema.zip"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"etag": "\"d136292da86d1107fb38944da119a85f\"", "url": "https://schema.cloudformation.eu-west-2.amazonaws.com/CloudformationSchema.zip"}
{"etag": "\"9267ef129ac9f87b865a004fd344820c\"", "url": "https://schema.cloudformation.eu-west-2.amazonaws.com/CloudformationSchema.zip"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"etag": "\"267889b2ace92a6fbaf41e3133707465\"", "url": "https://schema.cloudformation.cn-northwest-1.amazonaws.com.cn/CloudformationSchema.zip"}
{"etag": "\"f2c3811d276a4a38db7eea46e59d2827\"", "url": "https://schema.cloudformation.cn-northwest-1.amazonaws.com.cn/CloudformationSchema.zip"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"etag": "\"d734b5e29989d28ada8cadfec0206491\"", "url": "https://schema.cloudformation.af-south-1.amazonaws.com/CloudformationSchema.zip"}
{"etag": "\"b864e6b9e10c7eebaf38e76e385b69ab\"", "url": "https://schema.cloudformation.af-south-1.amazonaws.com/CloudformationSchema.zip"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"etag": "\"a3e08ddeb101a55d76c60ff89ba8711d\"", "url": "https://schema.cloudformation.us-west-1.amazonaws.com/CloudformationSchema.zip"}
{"etag": "\"ac8d33386acb19b4d9b9ca26a2554056\"", "url": "https://schema.cloudformation.us-west-1.amazonaws.com/CloudformationSchema.zip"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"etag": "\"782bc38d3d5f5020f1a832554b0c7391\"", "url": "https://schema.cloudformation.eu-central-1.amazonaws.com/CloudformationSchema.zip"}
{"etag": "\"c826faa4cabf2f744249fc65db8ef0ae\"", "url": "https://schema.cloudformation.eu-central-1.amazonaws.com/CloudformationSchema.zip"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"etag": "\"6489176dd4bba1d1979c97e698bf6a69\"", "url": "https://schema.cloudformation.ap-south-1.amazonaws.com/CloudformationSchema.zip"}
{"etag": "\"4f09259265f7e4f33b6058ed6a8c60ec\"", "url": "https://schema.cloudformation.ap-south-1.amazonaws.com/CloudformationSchema.zip"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"etag": "\"1b05d262da282d4757cbd937874848a3\"", "url": "https://schema.cloudformation.ap-southeast-4.amazonaws.com/CloudformationSchema.zip"}
{"etag": "\"079288f0e6b78a0bcfad624f5ff4b427\"", "url": "https://schema.cloudformation.ap-southeast-4.amazonaws.com/CloudformationSchema.zip"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"etag": "\"2ac34ae0b5222266fc0c0118137bbe3d\"", "url": "https://schema.cloudformation.us-east-2.amazonaws.com/CloudformationSchema.zip"}
{"etag": "\"d91bd2ee1af58d7e337090bedc2d14c9\"", "url": "https://schema.cloudformation.us-east-2.amazonaws.com/CloudformationSchema.zip"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"etag": "\"2c3cd7913949accdbe759197a3f0464c\"", "url": "https://schema.cloudformation.ap-southeast-1.amazonaws.com/CloudformationSchema.zip"}
{"etag": "\"d0a3d6093b022434e82c3ad61ab19523\"", "url": "https://schema.cloudformation.ap-southeast-1.amazonaws.com/CloudformationSchema.zip"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"etag": "\"a743a3ee9b3692c1bee0317b3f0b740f\"", "url": "https://schema.cloudformation.ap-northeast-2.amazonaws.com/CloudformationSchema.zip"}
{"etag": "\"dc9b6bbf50a1e2aafdf54d6a56b11b4b\"", "url": "https://schema.cloudformation.ap-northeast-2.amazonaws.com/CloudformationSchema.zip"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"etag": "\"f1517b109b7dad36b7b0feb350bedf49\"", "url": "https://schema.cloudformation.ap-southeast-3.amazonaws.com/CloudformationSchema.zip"}
{"etag": "\"744316b6a742a94508f9727bc68c87fd\"", "url": "https://schema.cloudformation.ap-southeast-3.amazonaws.com/CloudformationSchema.zip"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"etag": "\"5dcff826b7a618ceff6b6d174f5f9abb\"", "url": "https://schema.cloudformation.ap-east-1.amazonaws.com/CloudformationSchema.zip"}
{"etag": "\"b5e2cc67f6fd48a24807a1e6f3d7979a\"", "url": "https://schema.cloudformation.ap-east-1.amazonaws.com/CloudformationSchema.zip"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"etag": "\"a3222442280299facfd86f35ef14b6eb\"", "url": "https://schema.cloudformation.sa-east-1.amazonaws.com/CloudformationSchema.zip"}
{"etag": "\"88266fc1dcb1aec501d70bc954a75a7f\"", "url": "https://schema.cloudformation.sa-east-1.amazonaws.com/CloudformationSchema.zip"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"etag": "\"71ab6babdaa5f43689ee162835b85853\"", "url": "https://schema.cloudformation.ap-southeast-2.amazonaws.com/CloudformationSchema.zip"}
{"etag": "\"453b388326c1b177ffd7b44947bf1397\"", "url": "https://schema.cloudformation.ap-southeast-2.amazonaws.com/CloudformationSchema.zip"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"etag": "\"d4e4dcbc4dadd679556c86241c1f18e7\"", "url": "https://schema.cloudformation.ca-west-1.amazonaws.com/CloudformationSchema.zip"}
{"etag": "\"4142b7d2cba9b70c1b1f8d29fde7a81a\"", "url": "https://schema.cloudformation.ca-west-1.amazonaws.com/CloudformationSchema.zip"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"etag": "\"92791a383520abf3c03120d821597f3a\"", "url": "https://schema.cloudformation.eu-central-2.amazonaws.com/CloudformationSchema.zip"}
{"etag": "\"14e9028f6315d2b7675d0d7d257b4034\"", "url": "https://schema.cloudformation.eu-central-2.amazonaws.com/CloudformationSchema.zip"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"etag": "\"5829d5c557f814a26d5abacb675469b1\"", "url": "https://schema.cloudformation.eu-north-1.amazonaws.com/CloudformationSchema.zip"}
{"etag": "\"75e2135cca0179025501ad0c6f53c3f6\"", "url": "https://schema.cloudformation.eu-north-1.amazonaws.com/CloudformationSchema.zip"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"etag": "\"e922e755a7c374ef57e65ea76aa9697d\"", "url": "https://schema.cloudformation.eu-south-2.amazonaws.com/CloudformationSchema.zip"}
{"etag": "\"ddb6698278518b550cde9977b6e1a553\"", "url": "https://schema.cloudformation.eu-south-2.amazonaws.com/CloudformationSchema.zip"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"etag": "\"439894586ed8273b086675bb1685bea1\"", "url": "https://schema.cloudformation.ca-central-1.amazonaws.com/CloudformationSchema.zip"}
{"etag": "\"5640fbee7470aa5dc281689e3cd00735\"", "url": "https://schema.cloudformation.ca-central-1.amazonaws.com/CloudformationSchema.zip"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"etag": "\"5e70338b6fb4db7882d6733dbc0b4299\"", "url": "https://schema.cloudformation.eu-west-3.amazonaws.com/CloudformationSchema.zip"}
{"etag": "\"613671a5afa37824281981e8fda57f50\"", "url": "https://schema.cloudformation.eu-west-3.amazonaws.com/CloudformationSchema.zip"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"etag": "\"9af63beaff84775e879dabd0b479e96d\"", "url": "https://schema.cloudformation.ap-northeast-3.amazonaws.com/CloudformationSchema.zip"}
{"etag": "\"56f652c5d88a1c2b125e806a6cf96cf8\"", "url": "https://schema.cloudformation.ap-northeast-3.amazonaws.com/CloudformationSchema.zip"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"etag": "\"8a7f4108ee890dbb21e622077d68132e\"", "url": "https://schema.cloudformation.us-west-2.amazonaws.com/CloudformationSchema.zip"}
{"etag": "\"b3450b8ab8de26d9b0b1a3b3de718eb3\"", "url": "https://schema.cloudformation.us-west-2.amazonaws.com/CloudformationSchema.zip"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"etag": "\"22d2a95a6da6053463e2f44f11a859ae\"", "url": "https://schema.cloudformation.ap-south-2.amazonaws.com/CloudformationSchema.zip"}
{"etag": "\"73460bac99245cb563d103738663035f\"", "url": "https://schema.cloudformation.ap-south-2.amazonaws.com/CloudformationSchema.zip"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"etag": "\"fc927c1b6ecffd10a11da6d0030ec430\"", "url": "https://schema.cloudformation.il-central-1.amazonaws.com/CloudformationSchema.zip"}
{"etag": "\"56021ebe33670817c2ab393906f5ed38\"", "url": "https://schema.cloudformation.il-central-1.amazonaws.com/CloudformationSchema.zip"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"etag": "\"254cb029a9a10edc92a0f8e567da79ca\"", "url": "https://schema.cloudformation.eu-west-1.amazonaws.com/CloudformationSchema.zip"}
{"etag": "\"d19ca33de638a5b222a4e541ea201044\"", "url": "https://schema.cloudformation.eu-west-1.amazonaws.com/CloudformationSchema.zip"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"etag": "\"7e7cd3bcdd1bcd328f57fb0537babc79\"", "url": "https://schema.cloudformation.ap-northeast-1.amazonaws.com/CloudformationSchema.zip"}
{"etag": "\"c1f5656d55618cee25465222ee56ada2\"", "url": "https://schema.cloudformation.ap-northeast-1.amazonaws.com/CloudformationSchema.zip"}
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"if": {
"properties": {
"AliasTarget": {
"minItems": 1
}
},
"required": [
"AliasTarget"
]
},
"then": {
"properties": {
"TTL": false
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,281 @@
{
"allOf": [
{
"if": {
"properties": {
"Type": {
"const": "A"
}
}
},
"then": {
"properties": {
"ResourceRecords": {
"items": {
"$ref": "#/definitions/ARecord"
}
}
}
}
},
{
"if": {
"properties": {
"Type": {
"const": "AAAA"
}
}
},
"then": {
"properties": {
"ResourceRecords": {
"items": {
"$ref": "#/definitions/AAAARecord"
}
}
}
}
},
{
"if": {
"properties": {
"Type": {
"const": "CAA"
}
}
},
"then": {
"properties": {
"ResourceRecords": {
"items": {
"$ref": "#/definitions/CAARecord"
}
}
}
}
},
{
"if": {
"properties": {
"Type": {
"const": "CNAME"
}
}
},
"then": {
"properties": {
"ResourceRecords": {
"items": {
"$ref": "#/definitions/CNAMERecord"
},
"maxItems": 1
}
}
}
},
{
"if": {
"properties": {
"Type": {
"const": "DS"
}
}
},
"then": {
"properties": {
"ResourceRecords": {
"items": {
"$ref": "#/definitions/DSRecord"
}
}
}
}
},
{
"if": {
"properties": {
"Type": {
"const": "MX"
}
}
},
"then": {
"properties": {
"ResourceRecords": {
"items": {
"$ref": "#/definitions/MXRecord"
}
}
}
}
},
{
"if": {
"properties": {
"Type": {
"const": "NAPTR"
}
}
},
"then": {
"properties": {
"ResourceRecords": {
"items": {
"$ref": "#/definitions/NAPTRRecord"
}
}
}
}
},
{
"if": {
"properties": {
"Type": {
"const": "NS"
}
}
},
"then": {
"properties": {
"ResourceRecords": {
"items": {
"$ref": "#/definitions/NSRecord"
}
}
}
}
},
{
"if": {
"properties": {
"Type": {
"const": "PTR"
}
}
},
"then": {
"properties": {
"ResourceRecords": {
"items": {
"$ref": "#/definitions/PTRRecord"
}
}
}
}
},
{
"if": {
"properties": {
"Type": {
"const": "SOA"
}
}
},
"then": {
"properties": {
"ResourceRecords": {
"items": {
"$ref": "#/definitions/SOARecord"
},
"maxItems": 1
}
}
}
},
{
"if": {
"properties": {
"Type": {
"const": "SPF"
}
}
},
"then": {
"properties": {
"ResourceRecords": {
"items": {
"$ref": "#/definitions/SPFRecord"
}
}
}
}
},
{
"if": {
"properties": {
"Type": {
"const": "SRV"
}
}
},
"then": {
"properties": {
"ResourceRecords": {
"items": {
"$ref": "#/definitions/SRVRecord"
}
}
}
}
},
{
"if": {
"properties": {
"Type": {
"const": "TXT"
}
}
},
"then": {
"properties": {
"ResourceRecords": {
"items": {
"$ref": "#/definitions/TXTRecord"
}
}
}
}
}
],
"definitions": {
"AAAARecord": {
"format": "ipv6"
},
"ARecord": {
"format": "ipv4"
},
"CAARecord": {
"pattern": "^(0|128)\\s([a-zA-Z0-9]+)\\s(\".+\")$"
},
"CNAMERecord": {
"anyOf": [
{
"$ref": "#/definitions/DomainName"
},
{
"pattern": "^.*\\.acm-validations\\.aws\\.?$"
}
]
},
"DSRecord": {},
"DomainName": {
"pattern": "^[a-zA-Z0-9\\!\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,-\\/\\:\\;\\<\\=\\>\\?\\@\\[\\\\\\]\\^\\_\\`\\{\\|\\}\\~\\.]+$"
},
"MXRecord": {
"pattern": "^([0-9]{1,4}|[1-5][0-9]{4}|6[0-4][0-9]{1-3}|65[0-4][0-9]{1-2}|655[0-2][0-9]|6553[0-5])\\s[a-zA-Z0-9\\!\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,-\\/\\:\\;\\<\\=\\>\\?\\@\\[\\\\\\]\\^\\_\\`\\{\\|\\}\\~\\.]+$"
},
"NAPTRRecord": {},
"NSRecord": {
"$ref": "#/definitions/DomainName"
},
"PTRRecord": {
"$ref": "#/definitions/DomainName"
},
"SOARecord": {},
"SPFRecord": {},
"SRVRecord": {},
"TXTRecord": {
"pattern": "^(\"[^\"]{1,255}\" *)*\"[^\"]{1,255}\"$"
}
}
}
Loading

0 comments on commit c6f3d66

Please sign in to comment.