Skip to content

Commit

Permalink
Allow for creation of new ValueTypes from schema update specs (#2824)
Browse files Browse the repository at this point in the history
  • Loading branch information
kddejong authored Jul 28, 2023
1 parent 9ca9f50 commit a1212b1
Show file tree
Hide file tree
Showing 66 changed files with 23,186 additions and 8,880 deletions.
512 changes: 475 additions & 37 deletions src/cfnlint/data/CloudSpecs/af-south-1.json

Large diffs are not rendered by default.

544 changes: 448 additions & 96 deletions src/cfnlint/data/CloudSpecs/ap-east-1.json

Large diffs are not rendered by default.

943 changes: 630 additions & 313 deletions src/cfnlint/data/CloudSpecs/ap-northeast-1.json

Large diffs are not rendered by default.

765 changes: 575 additions & 190 deletions src/cfnlint/data/CloudSpecs/ap-northeast-2.json

Large diffs are not rendered by default.

417 changes: 388 additions & 29 deletions src/cfnlint/data/CloudSpecs/ap-northeast-3.json

Large diffs are not rendered by default.

654 changes: 486 additions & 168 deletions src/cfnlint/data/CloudSpecs/ap-south-1.json

Large diffs are not rendered by default.

558 changes: 520 additions & 38 deletions src/cfnlint/data/CloudSpecs/ap-south-2.json

Large diffs are not rendered by default.

890 changes: 576 additions & 314 deletions src/cfnlint/data/CloudSpecs/ap-southeast-1.json

Large diffs are not rendered by default.

837 changes: 613 additions & 224 deletions src/cfnlint/data/CloudSpecs/ap-southeast-2.json

Large diffs are not rendered by default.

537 changes: 362 additions & 175 deletions src/cfnlint/data/CloudSpecs/ap-southeast-3.json

Large diffs are not rendered by default.

505 changes: 469 additions & 36 deletions src/cfnlint/data/CloudSpecs/ap-southeast-4.json

Large diffs are not rendered by default.

1,009 changes: 836 additions & 173 deletions src/cfnlint/data/CloudSpecs/ca-central-1.json

Large diffs are not rendered by default.

810 changes: 629 additions & 181 deletions src/cfnlint/data/CloudSpecs/cn-north-1.json

Large diffs are not rendered by default.

639 changes: 502 additions & 137 deletions src/cfnlint/data/CloudSpecs/cn-northwest-1.json

Large diffs are not rendered by default.

2,226 changes: 1,531 additions & 695 deletions src/cfnlint/data/CloudSpecs/eu-central-1.json

Large diffs are not rendered by default.

568 changes: 530 additions & 38 deletions src/cfnlint/data/CloudSpecs/eu-central-2.json

Large diffs are not rendered by default.

832 changes: 508 additions & 324 deletions src/cfnlint/data/CloudSpecs/eu-north-1.json

Large diffs are not rendered by default.

489 changes: 452 additions & 37 deletions src/cfnlint/data/CloudSpecs/eu-south-1.json

Large diffs are not rendered by default.

1,507 changes: 539 additions & 968 deletions src/cfnlint/data/CloudSpecs/eu-south-2.json

Large diffs are not rendered by default.

937 changes: 554 additions & 383 deletions src/cfnlint/data/CloudSpecs/eu-west-1.json

Large diffs are not rendered by default.

635 changes: 622 additions & 13 deletions src/cfnlint/data/CloudSpecs/eu-west-2.json

Large diffs are not rendered by default.

546 changes: 519 additions & 27 deletions src/cfnlint/data/CloudSpecs/eu-west-3.json

Large diffs are not rendered by default.

400 changes: 366 additions & 34 deletions src/cfnlint/data/CloudSpecs/me-central-1.json

Large diffs are not rendered by default.

481 changes: 452 additions & 29 deletions src/cfnlint/data/CloudSpecs/me-south-1.json

Large diffs are not rendered by default.

720 changes: 508 additions & 212 deletions src/cfnlint/data/CloudSpecs/sa-east-1.json

Large diffs are not rendered by default.

6,844 changes: 5,820 additions & 1,024 deletions src/cfnlint/data/CloudSpecs/us-east-1.json

Large diffs are not rendered by default.

1,192 changes: 813 additions & 379 deletions src/cfnlint/data/CloudSpecs/us-east-2.json

Large diffs are not rendered by default.

1,540 changes: 406 additions & 1,134 deletions src/cfnlint/data/CloudSpecs/us-gov-east-1.json

Large diffs are not rendered by default.

1,486 changes: 508 additions & 978 deletions src/cfnlint/data/CloudSpecs/us-gov-west-1.json

Large diffs are not rendered by default.

629 changes: 459 additions & 170 deletions src/cfnlint/data/CloudSpecs/us-west-1.json

Large diffs are not rendered by default.

1,290 changes: 1,011 additions & 279 deletions src/cfnlint/data/CloudSpecs/us-west-2.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"etag": "\"a73684adddb26effe0b0a6a921138bf8\"", "url": "https://cfn-resource-specifications-ap-southeast-3-prod.s3.ap-southeast-3.amazonaws.com/latest/CloudFormationResourceSpecification.json"}
{"etag": "\"3a5d457e2f7ede1b6cdef38a3b27f439\"", "url": "https://cfn-resource-specifications-ap-southeast-3-prod.s3.ap-southeast-3.amazonaws.com/latest/CloudFormationResourceSpecification.json"}
Original file line number Diff line number Diff line change
@@ -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"}
{"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 number Diff line number Diff line change
@@ -1 +1 @@
{"etag": "\"3f62825307a58f17ed734556249119b8\"", "url": "https://cfn-resource-specifications-ap-south-2-prod.s3.ap-south-2.amazonaws.com/latest/gzip/CloudFormationResourceSpecification.json"}
{"etag": "\"d686bf7e6473d327f9f837cbedda8d76\"", "url": "https://cfn-resource-specifications-ap-south-2-prod.s3.ap-south-2.amazonaws.com/latest/gzip/CloudFormationResourceSpecification.json"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"etag": "\"a9e3e4a501b2bc19baa5058b3188b63a\"", "url": "https://cfn-resource-specifications-eu-south-2-prod.s3.eu-south-2.amazonaws.com/latest/gzip/CloudFormationResourceSpecification.json"}
{"etag": "\"8b6f95849f54b33523dac7830420d202\"", "url": "https://cfn-resource-specifications-eu-south-2-prod.s3.eu-south-2.amazonaws.com/latest/gzip/CloudFormationResourceSpecification.json"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"etag": "\"b01ea52459b62732fb6bc1f889ee1f7c\"", "url": "https://d1742qcu2c1ncx.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
{"etag": "\"26e4bc8baea4ad80ea9683ceefb08d69\"", "url": "https://d1742qcu2c1ncx.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"etag": "\"7b99d15a1038164e8432fa9bf5d84ac4\"", "url": "https://diy8iv58sj6ba.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
{"etag": "\"35ebdc9fde6b3447c2281278dd0fc294\"", "url": "https://diy8iv58sj6ba.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"etag": "\"2502276d9a5c85e6dfa350decb78a1d5\"", "url": "https://cfn-resource-specifications-ap-east-1-prod.s3.ap-east-1.amazonaws.com/latest/gzip/CloudFormationResourceSpecification.json"}
{"etag": "\"4fcb36aa556ef09f351b6370141fe307\"", "url": "https://cfn-resource-specifications-ap-east-1-prod.s3.ap-east-1.amazonaws.com/latest/gzip/CloudFormationResourceSpecification.json"}
Original file line number Diff line number Diff line change
@@ -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"}
{"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 number Diff line number Diff line change
@@ -1 +1 @@
{"etag": "\"16631d8f692c00d3b1bf99300589613e\"", "url": "https://cfn-resource-specifications-eu-south-1-prod.s3.eu-south-1.amazonaws.com/latest/gzip/CloudFormationResourceSpecification.json"}
{"etag": "\"6054a7213529095eac4b25cd6f30e2bd\"", "url": "https://cfn-resource-specifications-eu-south-1-prod.s3.eu-south-1.amazonaws.com/latest/gzip/CloudFormationResourceSpecification.json"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"etag": "\"ecbd97cbe455b76f34a81a6286a73f65\"", "url": "https://cfn-resource-specifications-cn-north-1-prod.s3.cn-north-1.amazonaws.com.cn/latest/gzip/CloudFormationResourceSpecification.json"}
{"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 number Diff line number Diff line change
@@ -1 +1 @@
{"etag": "\"92e6ea5d957c0c675fbf5480deb04254\"", "url": "https://cfn-resource-specifications-me-central-1-prod.s3.me-central-1.amazonaws.com/latest/gzip/CloudFormationResourceSpecification.json"}
{"etag": "\"e3cb779f88adeb43afca69b118bd5a6c\"", "url": "https://cfn-resource-specifications-me-central-1-prod.s3.me-central-1.amazonaws.com/latest/gzip/CloudFormationResourceSpecification.json"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"etag": "\"f5053374106a0b88a5434ad3bb5a4a4c\"", "url": "https://d3c9jyj3w509b0.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
{"etag": "\"3cd0e506b748530b4bea94362e2e0502\"", "url": "https://d3c9jyj3w509b0.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"etag": "\"4c699c3cdc9013cf6bb6014fdc31f783\"", "url": "https://cfn-resource-specifications-af-south-1-prod.s3.af-south-1.amazonaws.com/latest/gzip/CloudFormationResourceSpecification.json"}
{"etag": "\"24d9d50acd786bf3920852140399cfe0\"", "url": "https://cfn-resource-specifications-af-south-1-prod.s3.af-south-1.amazonaws.com/latest/gzip/CloudFormationResourceSpecification.json"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"etag": "\"600db09233e79d70fad7f54d0b41f265\"", "url": "https://cfn-resource-specifications-me-south-1-prod.s3.me-south-1.amazonaws.com/latest/gzip/CloudFormationResourceSpecification.json"}
{"etag": "\"e8b1fafca1b2ca9d52eb4eaf5f0368c6\"", "url": "https://cfn-resource-specifications-me-south-1-prod.s3.me-south-1.amazonaws.com/latest/gzip/CloudFormationResourceSpecification.json"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"etag": "\"7848da9a4bdf7a5179d4575845e64049\"", "url": "https://cfn-resource-specifications-cn-northwest-1-prod.s3.cn-northwest-1.amazonaws.com.cn/latest/gzip/CloudFormationResourceSpecification.json"}
{"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 number Diff line number Diff line change
@@ -1 +1 @@
{"etag": "\"b3c5a973e9c6ff2b89113175522ebe29\"", "url": "https://d2zq80gdmjim8k.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
{"etag": "\"1280e9a3afaf3b5ad61bef99f51b26f9\"", "url": "https://d2zq80gdmjim8k.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"etag": "\"105dc1f12358e8a11d93b65ab6c5d202\"", "url": "https://doigdx0kgq9el.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
{"etag": "\"9c1ce9e5151a16eba60f7a1d1e8dcd1a\"", "url": "https://doigdx0kgq9el.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"etag": "\"583992f92f23258a69ec8e21e6200406\"", "url": "https://d2senuesg1djtx.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
{"etag": "\"911ada40ea12e88b3d7496fea32b6d4b\"", "url": "https://d2senuesg1djtx.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"etag": "\"f3bb2e6494e14a42b0dcd80ae0db2b00\"", "url": "https://d33vqc0rt9ld30.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
{"etag": "\"940b1d8240116692689bf2469d9ebb14\"", "url": "https://d33vqc0rt9ld30.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"etag": "\"7fb2d38ab03ae05ac0cfb4477d7dc2aa\"", "url": "https://d1mta8qj7i28i2.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
{"etag": "\"1e999e3769e0e955848b02943b895310\"", "url": "https://d1mta8qj7i28i2.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"etag": "\"f9035a86916b0f95b1bed3cf6d7045ef\"", "url": "https://d3teyb21fexa9r.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
{"etag": "\"ce222b63ea2588e88a7a14ebf90d69bb\"", "url": "https://d3teyb21fexa9r.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"etag": "\"5f7885a4b51a8f4764e2434a10965025\"", "url": "https://d68hl49wbnanq.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
{"etag": "\"9405cbd58633b4a39bc5eb918c4fbe59\"", "url": "https://d68hl49wbnanq.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"etag": "\"ad7455fcb7ec34beec8f320c65b92963\"", "url": "https://dnwj8swjjbsbt.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
{"etag": "\"db63f8becffd11d640f70f38ee1c3a34\"", "url": "https://dnwj8swjjbsbt.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"etag": "\"3dbb4462ad3e190be680eab7aa480f13\"", "url": "https://cfn-resource-specifications-ap-southeast-4-prod.s3.ap-southeast-4.amazonaws.com/latest/CloudFormationResourceSpecification.json"}
{"etag": "\"e15dc822890e55eb3d85d86831edebac\"", "url": "https://cfn-resource-specifications-ap-southeast-4-prod.s3.ap-southeast-4.amazonaws.com/latest/CloudFormationResourceSpecification.json"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"etag": "\"93d45016d8d56b0fcd77e26d90568ea5\"", "url": "https://d1ane3fvebulky.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
{"etag": "\"71fa0d2efd948f8e079c88d8b859c262\"", "url": "https://d1ane3fvebulky.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"etag": "\"5d737c8f1909f470e914a50587340648\"", "url": "https://d2s8ygphhesbe7.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
{"etag": "\"deeff70adefb6c0fff3a118d1dd931d9\"", "url": "https://d2s8ygphhesbe7.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"etag": "\"af8a4ed5e3df67d9135468fc01338b5f\"", "url": "https://d2d0mfegowb3wk.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
{"etag": "\"410e00c0d77684f797e58ddf02f0c559\"", "url": "https://d2d0mfegowb3wk.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"etag": "\"a13ad353f1018ca5e146dde0bb163cd0\"", "url": "https://d1uauaxba7bl26.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
{"etag": "\"b0a9324eadc29287d7f4b1dee1ce2ea0\"", "url": "https://d1uauaxba7bl26.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"etag": "\"ad70fce6a5fc4f4c353f0aec082580e9\"", "url": "https://cfn-resource-specifications-eu-central-2-prod.s3.eu-central-2.amazonaws.com/latest/gzip/CloudFormationResourceSpecification.json"}
{"etag": "\"4e4e7758266ed15e0f32c9a0a89e1b9a\"", "url": "https://cfn-resource-specifications-eu-central-2-prod.s3.eu-central-2.amazonaws.com/latest/gzip/CloudFormationResourceSpecification.json"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"etag": "\"efa3528ec17af5f3680917d40049bca3\"", "url": "https://d2stg8d246z9di.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
{"etag": "\"0305fdb6365cd7231d049b0e609978e5\"", "url": "https://d2stg8d246z9di.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"etag": "\"69acad50ae09299d17b64a9da2cf0bc1\"", "url": "https://d201a2mn26r7lk.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
{"etag": "\"8f809753e2626a7ea8cb4198325eb135\"", "url": "https://d201a2mn26r7lk.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json"}
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
},
{
"op": "add",
"path": "/ValueTypes/WS::CodeDeploy::DeploymentGroup.TriggerConfig.TriggerEvents",
"path": "/ValueTypes/AWS::CodeDeploy::DeploymentGroup.TriggerConfig.TriggerEvents",
"value": {
"botocore": "codedeploy/2014-10-06/TriggerEventType"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"op": "add",
"path": "/PropertyTypes/AWS::CodeDeploy::DeploymentGroup.TriggerConfig/Properties/TriggerEvents/Value",
"value": {
"ValueType": "WS::CodeDeploy::DeploymentGroup.TriggerConfig.TriggerEvents"
"ValueType": "AWS::CodeDeploy::DeploymentGroup.TriggerConfig.TriggerEvents"
}
}
]
37 changes: 27 additions & 10 deletions src/cfnlint/maintenance.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,26 @@ def update_resource_spec(region, url, schema_cache, force: bool = False):
del spec["ValueTypes"][path_details[2]]
except: # pylint: disable=bare-except
pass
# Debug as the parent element isn't supported in the region
LOGGER.debug(
"Parent element not found for patch (%s) in region %s", patch, region
)
if path_details[1] == "ResourceTypes":
if (
spec.get("ResourceTypes")
.get(path_details[2], {})
.get("Attributes", {})
.get(path_details[4])
):
continue
LOGGER.debug(
"Parent element not found for patch (%s) in region %s",
patch,
region,
)
else:
# Debug as the parent element isn't supported in the region
LOGGER.debug(
"Parent element not found for patch (%s) in region %s",
patch,
region,
)

# Patch provider schema data
spec = patch_spec(spec, "all", "ProviderSchemasPatches")
Expand Down Expand Up @@ -354,6 +370,8 @@ def get_object_details(names, properties, schema):
results = {}
warnings.filterwarnings("error")
for propname, propdetails in properties.items():
if propname == "Tag":
continue
subname, propdetails = resolve_refs(propdetails, schema)
t = propdetails.get("type")
if not t:
Expand Down Expand Up @@ -402,10 +420,7 @@ def get_object_details(names, properties, schema):
if not results.get(".".join(names + [propname])):
if (
propdetails.get("pattern")
or (
propdetails.get("minLength")
and propdetails.get("maxLength")
)
or propdetails.get("maxLength")
or propdetails.get("enum")
):
results[".".join(names + [propname])] = {}
Expand All @@ -429,10 +444,10 @@ def get_object_details(names, properties, schema):
propname,
p,
)
if propdetails.get("minLength") and propdetails.get("maxLength"):
if propdetails.get("maxLength"):
results[".".join(names + [propname])].update(
{
"StringMin": propdetails.get("minLength"),
"StringMin": propdetails.get("minLength", 0),
"StringMax": propdetails.get("maxLength"),
}
)
Expand Down Expand Up @@ -473,6 +488,8 @@ def process_schema(schema):
patch = []
if v:
if n.count(".") == 2:
if ".Tag." in n:
continue
r_type = "PropertyTypes"
else:
r_type = "ResourceTypes"
Expand Down
21 changes: 19 additions & 2 deletions test/unit/module/maintenance/test_update_resource_specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,20 @@ def test_update_resource_spec(
"Properties": {
"AllowedPublishers": {},
"CodeSigningPolicies": {},
"Description": {},
"Description": {
"Value": {
"ValueType": "AWS::Lambda::CodeSigningConfig.Description"
},
},
},
}
},
"ValueTypes": {
"AWS::EC2::Instance.Types": ["m2.medium"],
"AWS::Lambda::CodeSigningConfig.Description": {
"StringMin": 0,
"StringMax": 256,
},
"AWS::Lambda::CodeSigningConfig.AllowedPublishers.SigningProfileVersionArns": {
"AllowedPatternRegex": "arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\\-])+:([a-z]{2}(-gov)?-[a-z]+-\\d{1})?:(\\d{12})?:(.*)",
"StringMin": 12,
Expand Down Expand Up @@ -252,7 +260,11 @@ def test_update_resource_spec_cache(
"Properties": {
"AllowedPublishers": {},
"CodeSigningPolicies": {},
"Description": {},
"Description": {
"Value": {
"ValueType": "AWS::Lambda::CodeSigningConfig.Description"
},
},
},
}
},
Expand All @@ -261,6 +273,10 @@ def test_update_resource_spec_cache(
"m2.medium",
"m2.large",
],
"AWS::Lambda::CodeSigningConfig.Description": {
"StringMin": 0,
"StringMax": 256,
},
"AWS::Lambda::CodeSigningConfig.AllowedPublishers.SigningProfileVersionArns": {
"AllowedPatternRegex": "arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\\-])+:([a-z]{2}(-gov)?-[a-z]+-\\d{1})?:(\\d{12})?:(.*)",
"StringMin": 12,
Expand Down Expand Up @@ -290,6 +306,7 @@ def test_update_resource_spec_cache(
"AWS::EC2::Instance.Types": [
"m2.medium",
],
"AWS::Lambda::CodeSigningConfig.Description": "CACHED",
"AWS::Lambda::CodeSigningConfig.AllowedPublishers.SigningProfileVersionArns": "CACHED",
"AWS::Lambda::CodeSigningConfig.CodeSigningPolicies.UntrustedArtifactOnDeployment": "CACHED",
},
Expand Down

0 comments on commit a1212b1

Please sign in to comment.