Skip to content

Commit e7dc82f

Browse files
authored
fix(cfn-include): allowedValues aren't included when specified by a parameter (#9532)
---- Closes #9531 This fix allows allowedValues in parameters to be used in cfn-include. *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent e146c23 commit e7dc82f

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/@aws-cdk/cloudformation-include/lib/cfn-include.ts

+1
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ export class CfnInclude extends core.CfnElement {
225225
type: expression.Type,
226226
default: expression.Default,
227227
allowedPattern: expression.AllowedPattern,
228+
allowedValues: expression.AllowedValues,
228229
constraintDescription: expression.ConstraintDescription,
229230
description: expression.Description,
230231
maxLength: expression.MaxLength,

packages/@aws-cdk/cloudformation-include/test/test-templates/bucket-with-parameters.json

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"Description": "the time in seconds that a browser will cache the preflight response",
1616
"MaxValue": "300",
1717
"MinValue": "0",
18+
"AllowedValues": [1, 2, 3, 10, 100, 300],
1819
"Type": "Number",
1920
"NoEcho": "true"
2021
}

0 commit comments

Comments
 (0)