Skip to content

Commit a1212b1

Browse files
authored
Allow for creation of new ValueTypes from schema update specs (#2824)
1 parent 9ca9f50 commit a1212b1

File tree

66 files changed

+23186
-8880
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+23186
-8880
lines changed

src/cfnlint/data/CloudSpecs/af-south-1.json

+475-37
Large diffs are not rendered by default.

src/cfnlint/data/CloudSpecs/ap-east-1.json

+448-96
Large diffs are not rendered by default.

src/cfnlint/data/CloudSpecs/ap-northeast-1.json

+630-313
Large diffs are not rendered by default.

src/cfnlint/data/CloudSpecs/ap-northeast-2.json

+575-190
Large diffs are not rendered by default.

src/cfnlint/data/CloudSpecs/ap-northeast-3.json

+388-29
Large diffs are not rendered by default.

src/cfnlint/data/CloudSpecs/ap-south-1.json

+486-168
Large diffs are not rendered by default.

src/cfnlint/data/CloudSpecs/ap-south-2.json

+520-38
Large diffs are not rendered by default.

src/cfnlint/data/CloudSpecs/ap-southeast-1.json

+576-314
Large diffs are not rendered by default.

src/cfnlint/data/CloudSpecs/ap-southeast-2.json

+613-224
Large diffs are not rendered by default.

src/cfnlint/data/CloudSpecs/ap-southeast-3.json

+362-175
Large diffs are not rendered by default.

src/cfnlint/data/CloudSpecs/ap-southeast-4.json

+469-36
Large diffs are not rendered by default.

src/cfnlint/data/CloudSpecs/ca-central-1.json

+836-173
Large diffs are not rendered by default.

src/cfnlint/data/CloudSpecs/cn-north-1.json

+629-181
Large diffs are not rendered by default.

src/cfnlint/data/CloudSpecs/cn-northwest-1.json

+502-137
Large diffs are not rendered by default.

src/cfnlint/data/CloudSpecs/eu-central-1.json

+1,531-695
Large diffs are not rendered by default.

src/cfnlint/data/CloudSpecs/eu-central-2.json

+530-38
Large diffs are not rendered by default.

src/cfnlint/data/CloudSpecs/eu-north-1.json

+508-324
Large diffs are not rendered by default.

src/cfnlint/data/CloudSpecs/eu-south-1.json

+452-37
Large diffs are not rendered by default.

src/cfnlint/data/CloudSpecs/eu-south-2.json

+539-968
Large diffs are not rendered by default.

src/cfnlint/data/CloudSpecs/eu-west-1.json

+554-383
Large diffs are not rendered by default.

src/cfnlint/data/CloudSpecs/eu-west-2.json

+622-13
Large diffs are not rendered by default.

src/cfnlint/data/CloudSpecs/eu-west-3.json

+519-27
Large diffs are not rendered by default.

src/cfnlint/data/CloudSpecs/me-central-1.json

+366-34
Large diffs are not rendered by default.

src/cfnlint/data/CloudSpecs/me-south-1.json

+452-29
Large diffs are not rendered by default.

src/cfnlint/data/CloudSpecs/sa-east-1.json

+508-212
Large diffs are not rendered by default.

src/cfnlint/data/CloudSpecs/us-east-1.json

+5,820-1,024
Large diffs are not rendered by default.

src/cfnlint/data/CloudSpecs/us-east-2.json

+813-379
Large diffs are not rendered by default.

src/cfnlint/data/CloudSpecs/us-gov-east-1.json

+406-1,134
Large diffs are not rendered by default.

src/cfnlint/data/CloudSpecs/us-gov-west-1.json

+508-978
Large diffs are not rendered by default.

src/cfnlint/data/CloudSpecs/us-west-1.json

+459-170
Large diffs are not rendered by default.

src/cfnlint/data/CloudSpecs/us-west-2.json

+1,011-279
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"etag": "\"a73684adddb26effe0b0a6a921138bf8\"", "url": "https://cfn-resource-specifications-ap-southeast-3-prod.s3.ap-southeast-3.amazonaws.com/latest/CloudFormationResourceSpecification.json"}
1+
{"etag": "\"3a5d457e2f7ede1b6cdef38a3b27f439\"", "url": "https://cfn-resource-specifications-ap-southeast-3-prod.s3.ap-southeast-3.amazonaws.com/latest/CloudFormationResourceSpecification.json"}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"etag": "\"31bea595ac96d7ccbc1b5eff31f35b15\"", "url": "https://s3.us-gov-west-1.amazonaws.com/cfn-resource-specifications-us-gov-west-1-prod/latest/gzip/CloudFormationResourceSpecification.json"}
1+
{"etag": "\"96e14ee59804d2944024019b20c33f9c\"", "url": "https://s3.us-gov-west-1.amazonaws.com/cfn-resource-specifications-us-gov-west-1-prod/latest/gzip/CloudFormationResourceSpecification.json"}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"etag": "\"3f62825307a58f17ed734556249119b8\"", "url": "https://cfn-resource-specifications-ap-south-2-prod.s3.ap-south-2.amazonaws.com/latest/gzip/CloudFormationResourceSpecification.json"}
1+
{"etag": "\"d686bf7e6473d327f9f837cbedda8d76\"", "url": "https://cfn-resource-specifications-ap-south-2-prod.s3.ap-south-2.amazonaws.com/latest/gzip/CloudFormationResourceSpecification.json"}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"etag": "\"a9e3e4a501b2bc19baa5058b3188b63a\"", "url": "https://cfn-resource-specifications-eu-south-2-prod.s3.eu-south-2.amazonaws.com/latest/gzip/CloudFormationResourceSpecification.json"}
1+
{"etag": "\"8b6f95849f54b33523dac7830420d202\"", "url": "https://cfn-resource-specifications-eu-south-2-prod.s3.eu-south-2.amazonaws.com/latest/gzip/CloudFormationResourceSpecification.json"}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"etag": "\"b01ea52459b62732fb6bc1f889ee1f7c\"", "url": "https://d1742qcu2c1ncx.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
1+
{"etag": "\"26e4bc8baea4ad80ea9683ceefb08d69\"", "url": "https://d1742qcu2c1ncx.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"etag": "\"7b99d15a1038164e8432fa9bf5d84ac4\"", "url": "https://diy8iv58sj6ba.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
1+
{"etag": "\"35ebdc9fde6b3447c2281278dd0fc294\"", "url": "https://diy8iv58sj6ba.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"etag": "\"2502276d9a5c85e6dfa350decb78a1d5\"", "url": "https://cfn-resource-specifications-ap-east-1-prod.s3.ap-east-1.amazonaws.com/latest/gzip/CloudFormationResourceSpecification.json"}
1+
{"etag": "\"4fcb36aa556ef09f351b6370141fe307\"", "url": "https://cfn-resource-specifications-ap-east-1-prod.s3.ap-east-1.amazonaws.com/latest/gzip/CloudFormationResourceSpecification.json"}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"etag": "\"0fbdbde50ac2f8ce70f76c06ae01bfb3\"", "url": "https://s3.us-gov-east-1.amazonaws.com/cfn-resource-specifications-us-gov-east-1-prod/latest/gzip/CloudFormationResourceSpecification.json"}
1+
{"etag": "\"665fb6776b15d57d999f28ed4cd8fce9\"", "url": "https://s3.us-gov-east-1.amazonaws.com/cfn-resource-specifications-us-gov-east-1-prod/latest/gzip/CloudFormationResourceSpecification.json"}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"etag": "\"16631d8f692c00d3b1bf99300589613e\"", "url": "https://cfn-resource-specifications-eu-south-1-prod.s3.eu-south-1.amazonaws.com/latest/gzip/CloudFormationResourceSpecification.json"}
1+
{"etag": "\"6054a7213529095eac4b25cd6f30e2bd\"", "url": "https://cfn-resource-specifications-eu-south-1-prod.s3.eu-south-1.amazonaws.com/latest/gzip/CloudFormationResourceSpecification.json"}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"etag": "\"ecbd97cbe455b76f34a81a6286a73f65\"", "url": "https://cfn-resource-specifications-cn-north-1-prod.s3.cn-north-1.amazonaws.com.cn/latest/gzip/CloudFormationResourceSpecification.json"}
1+
{"etag": "\"2b350eb8a7793c46709789921705efcf\"", "url": "https://cfn-resource-specifications-cn-north-1-prod.s3.cn-north-1.amazonaws.com.cn/latest/gzip/CloudFormationResourceSpecification.json"}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"etag": "\"92e6ea5d957c0c675fbf5480deb04254\"", "url": "https://cfn-resource-specifications-me-central-1-prod.s3.me-central-1.amazonaws.com/latest/gzip/CloudFormationResourceSpecification.json"}
1+
{"etag": "\"e3cb779f88adeb43afca69b118bd5a6c\"", "url": "https://cfn-resource-specifications-me-central-1-prod.s3.me-central-1.amazonaws.com/latest/gzip/CloudFormationResourceSpecification.json"}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"etag": "\"f5053374106a0b88a5434ad3bb5a4a4c\"", "url": "https://d3c9jyj3w509b0.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
1+
{"etag": "\"3cd0e506b748530b4bea94362e2e0502\"", "url": "https://d3c9jyj3w509b0.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"etag": "\"4c699c3cdc9013cf6bb6014fdc31f783\"", "url": "https://cfn-resource-specifications-af-south-1-prod.s3.af-south-1.amazonaws.com/latest/gzip/CloudFormationResourceSpecification.json"}
1+
{"etag": "\"24d9d50acd786bf3920852140399cfe0\"", "url": "https://cfn-resource-specifications-af-south-1-prod.s3.af-south-1.amazonaws.com/latest/gzip/CloudFormationResourceSpecification.json"}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"etag": "\"600db09233e79d70fad7f54d0b41f265\"", "url": "https://cfn-resource-specifications-me-south-1-prod.s3.me-south-1.amazonaws.com/latest/gzip/CloudFormationResourceSpecification.json"}
1+
{"etag": "\"e8b1fafca1b2ca9d52eb4eaf5f0368c6\"", "url": "https://cfn-resource-specifications-me-south-1-prod.s3.me-south-1.amazonaws.com/latest/gzip/CloudFormationResourceSpecification.json"}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"etag": "\"7848da9a4bdf7a5179d4575845e64049\"", "url": "https://cfn-resource-specifications-cn-northwest-1-prod.s3.cn-northwest-1.amazonaws.com.cn/latest/gzip/CloudFormationResourceSpecification.json"}
1+
{"etag": "\"528c765781bd9638b37e1360245c394e\"", "url": "https://cfn-resource-specifications-cn-northwest-1-prod.s3.cn-northwest-1.amazonaws.com.cn/latest/gzip/CloudFormationResourceSpecification.json"}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"etag": "\"b3c5a973e9c6ff2b89113175522ebe29\"", "url": "https://d2zq80gdmjim8k.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
1+
{"etag": "\"1280e9a3afaf3b5ad61bef99f51b26f9\"", "url": "https://d2zq80gdmjim8k.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"etag": "\"105dc1f12358e8a11d93b65ab6c5d202\"", "url": "https://doigdx0kgq9el.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
1+
{"etag": "\"9c1ce9e5151a16eba60f7a1d1e8dcd1a\"", "url": "https://doigdx0kgq9el.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"etag": "\"583992f92f23258a69ec8e21e6200406\"", "url": "https://d2senuesg1djtx.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
1+
{"etag": "\"911ada40ea12e88b3d7496fea32b6d4b\"", "url": "https://d2senuesg1djtx.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"etag": "\"f3bb2e6494e14a42b0dcd80ae0db2b00\"", "url": "https://d33vqc0rt9ld30.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
1+
{"etag": "\"940b1d8240116692689bf2469d9ebb14\"", "url": "https://d33vqc0rt9ld30.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"etag": "\"7fb2d38ab03ae05ac0cfb4477d7dc2aa\"", "url": "https://d1mta8qj7i28i2.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
1+
{"etag": "\"1e999e3769e0e955848b02943b895310\"", "url": "https://d1mta8qj7i28i2.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"etag": "\"f9035a86916b0f95b1bed3cf6d7045ef\"", "url": "https://d3teyb21fexa9r.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
1+
{"etag": "\"ce222b63ea2588e88a7a14ebf90d69bb\"", "url": "https://d3teyb21fexa9r.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"etag": "\"5f7885a4b51a8f4764e2434a10965025\"", "url": "https://d68hl49wbnanq.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
1+
{"etag": "\"9405cbd58633b4a39bc5eb918c4fbe59\"", "url": "https://d68hl49wbnanq.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"etag": "\"ad7455fcb7ec34beec8f320c65b92963\"", "url": "https://dnwj8swjjbsbt.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
1+
{"etag": "\"db63f8becffd11d640f70f38ee1c3a34\"", "url": "https://dnwj8swjjbsbt.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"etag": "\"3dbb4462ad3e190be680eab7aa480f13\"", "url": "https://cfn-resource-specifications-ap-southeast-4-prod.s3.ap-southeast-4.amazonaws.com/latest/CloudFormationResourceSpecification.json"}
1+
{"etag": "\"e15dc822890e55eb3d85d86831edebac\"", "url": "https://cfn-resource-specifications-ap-southeast-4-prod.s3.ap-southeast-4.amazonaws.com/latest/CloudFormationResourceSpecification.json"}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"etag": "\"93d45016d8d56b0fcd77e26d90568ea5\"", "url": "https://d1ane3fvebulky.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
1+
{"etag": "\"71fa0d2efd948f8e079c88d8b859c262\"", "url": "https://d1ane3fvebulky.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"etag": "\"5d737c8f1909f470e914a50587340648\"", "url": "https://d2s8ygphhesbe7.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
1+
{"etag": "\"deeff70adefb6c0fff3a118d1dd931d9\"", "url": "https://d2s8ygphhesbe7.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"etag": "\"af8a4ed5e3df67d9135468fc01338b5f\"", "url": "https://d2d0mfegowb3wk.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
1+
{"etag": "\"410e00c0d77684f797e58ddf02f0c559\"", "url": "https://d2d0mfegowb3wk.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"etag": "\"a13ad353f1018ca5e146dde0bb163cd0\"", "url": "https://d1uauaxba7bl26.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
1+
{"etag": "\"b0a9324eadc29287d7f4b1dee1ce2ea0\"", "url": "https://d1uauaxba7bl26.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"etag": "\"ad70fce6a5fc4f4c353f0aec082580e9\"", "url": "https://cfn-resource-specifications-eu-central-2-prod.s3.eu-central-2.amazonaws.com/latest/gzip/CloudFormationResourceSpecification.json"}
1+
{"etag": "\"4e4e7758266ed15e0f32c9a0a89e1b9a\"", "url": "https://cfn-resource-specifications-eu-central-2-prod.s3.eu-central-2.amazonaws.com/latest/gzip/CloudFormationResourceSpecification.json"}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"etag": "\"efa3528ec17af5f3680917d40049bca3\"", "url": "https://d2stg8d246z9di.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
1+
{"etag": "\"0305fdb6365cd7231d049b0e609978e5\"", "url": "https://d2stg8d246z9di.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"etag": "\"69acad50ae09299d17b64a9da2cf0bc1\"", "url": "https://d201a2mn26r7lk.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
1+
{"etag": "\"8f809753e2626a7ea8cb4198325eb135\"", "url": "https://d201a2mn26r7lk.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}

src/cfnlint/data/ExtendedSpecs/all/03_value_types/aws_codedeploy.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
},
3737
{
3838
"op": "add",
39-
"path": "/ValueTypes/WS::CodeDeploy::DeploymentGroup.TriggerConfig.TriggerEvents",
39+
"path": "/ValueTypes/AWS::CodeDeploy::DeploymentGroup.TriggerConfig.TriggerEvents",
4040
"value": {
4141
"botocore": "codedeploy/2014-10-06/TriggerEventType"
4242
}

src/cfnlint/data/ExtendedSpecs/all/04_property_values/aws_codedeploy.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"op": "add",
3939
"path": "/PropertyTypes/AWS::CodeDeploy::DeploymentGroup.TriggerConfig/Properties/TriggerEvents/Value",
4040
"value": {
41-
"ValueType": "WS::CodeDeploy::DeploymentGroup.TriggerConfig.TriggerEvents"
41+
"ValueType": "AWS::CodeDeploy::DeploymentGroup.TriggerConfig.TriggerEvents"
4242
}
4343
}
4444
]

src/cfnlint/maintenance.py

+27-10
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,26 @@ def update_resource_spec(region, url, schema_cache, force: bool = False):
112112
del spec["ValueTypes"][path_details[2]]
113113
except: # pylint: disable=bare-except
114114
pass
115-
# Debug as the parent element isn't supported in the region
116-
LOGGER.debug(
117-
"Parent element not found for patch (%s) in region %s", patch, region
118-
)
115+
if path_details[1] == "ResourceTypes":
116+
if (
117+
spec.get("ResourceTypes")
118+
.get(path_details[2], {})
119+
.get("Attributes", {})
120+
.get(path_details[4])
121+
):
122+
continue
123+
LOGGER.debug(
124+
"Parent element not found for patch (%s) in region %s",
125+
patch,
126+
region,
127+
)
128+
else:
129+
# Debug as the parent element isn't supported in the region
130+
LOGGER.debug(
131+
"Parent element not found for patch (%s) in region %s",
132+
patch,
133+
region,
134+
)
119135

120136
# Patch provider schema data
121137
spec = patch_spec(spec, "all", "ProviderSchemasPatches")
@@ -354,6 +370,8 @@ def get_object_details(names, properties, schema):
354370
results = {}
355371
warnings.filterwarnings("error")
356372
for propname, propdetails in properties.items():
373+
if propname == "Tag":
374+
continue
357375
subname, propdetails = resolve_refs(propdetails, schema)
358376
t = propdetails.get("type")
359377
if not t:
@@ -402,10 +420,7 @@ def get_object_details(names, properties, schema):
402420
if not results.get(".".join(names + [propname])):
403421
if (
404422
propdetails.get("pattern")
405-
or (
406-
propdetails.get("minLength")
407-
and propdetails.get("maxLength")
408-
)
423+
or propdetails.get("maxLength")
409424
or propdetails.get("enum")
410425
):
411426
results[".".join(names + [propname])] = {}
@@ -429,10 +444,10 @@ def get_object_details(names, properties, schema):
429444
propname,
430445
p,
431446
)
432-
if propdetails.get("minLength") and propdetails.get("maxLength"):
447+
if propdetails.get("maxLength"):
433448
results[".".join(names + [propname])].update(
434449
{
435-
"StringMin": propdetails.get("minLength"),
450+
"StringMin": propdetails.get("minLength", 0),
436451
"StringMax": propdetails.get("maxLength"),
437452
}
438453
)
@@ -473,6 +488,8 @@ def process_schema(schema):
473488
patch = []
474489
if v:
475490
if n.count(".") == 2:
491+
if ".Tag." in n:
492+
continue
476493
r_type = "PropertyTypes"
477494
else:
478495
r_type = "ResourceTypes"

test/unit/module/maintenance/test_update_resource_specs.py

+19-2
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,20 @@ def test_update_resource_spec(
161161
"Properties": {
162162
"AllowedPublishers": {},
163163
"CodeSigningPolicies": {},
164-
"Description": {},
164+
"Description": {
165+
"Value": {
166+
"ValueType": "AWS::Lambda::CodeSigningConfig.Description"
167+
},
168+
},
165169
},
166170
}
167171
},
168172
"ValueTypes": {
169173
"AWS::EC2::Instance.Types": ["m2.medium"],
174+
"AWS::Lambda::CodeSigningConfig.Description": {
175+
"StringMin": 0,
176+
"StringMax": 256,
177+
},
170178
"AWS::Lambda::CodeSigningConfig.AllowedPublishers.SigningProfileVersionArns": {
171179
"AllowedPatternRegex": "arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\\-])+:([a-z]{2}(-gov)?-[a-z]+-\\d{1})?:(\\d{12})?:(.*)",
172180
"StringMin": 12,
@@ -252,7 +260,11 @@ def test_update_resource_spec_cache(
252260
"Properties": {
253261
"AllowedPublishers": {},
254262
"CodeSigningPolicies": {},
255-
"Description": {},
263+
"Description": {
264+
"Value": {
265+
"ValueType": "AWS::Lambda::CodeSigningConfig.Description"
266+
},
267+
},
256268
},
257269
}
258270
},
@@ -261,6 +273,10 @@ def test_update_resource_spec_cache(
261273
"m2.medium",
262274
"m2.large",
263275
],
276+
"AWS::Lambda::CodeSigningConfig.Description": {
277+
"StringMin": 0,
278+
"StringMax": 256,
279+
},
264280
"AWS::Lambda::CodeSigningConfig.AllowedPublishers.SigningProfileVersionArns": {
265281
"AllowedPatternRegex": "arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\\-])+:([a-z]{2}(-gov)?-[a-z]+-\\d{1})?:(\\d{12})?:(.*)",
266282
"StringMin": 12,
@@ -290,6 +306,7 @@ def test_update_resource_spec_cache(
290306
"AWS::EC2::Instance.Types": [
291307
"m2.medium",
292308
],
309+
"AWS::Lambda::CodeSigningConfig.Description": "CACHED",
293310
"AWS::Lambda::CodeSigningConfig.AllowedPublishers.SigningProfileVersionArns": "CACHED",
294311
"AWS::Lambda::CodeSigningConfig.CodeSigningPolicies.UntrustedArtifactOnDeployment": "CACHED",
295312
},

0 commit comments

Comments
 (0)