Skip to content

Commit 3dfb0e4

Browse files
authored
Allow AllowedPattern with AWS type parameters (#3388)
1 parent b0782f8 commit 3dfb0e4

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/cfnlint/data/schemas/other/parameters/configuration.json

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"else": {
88
"propertyNames": {
99
"enum": [
10+
"AllowedPattern",
1011
"AllowedValues",
1112
"ConstraintDescription",
1213
"Default",

test/unit/rules/parameters/test_configuration.py

+10
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,16 @@ def context(cfn):
7373
},
7474
[],
7575
),
76+
(
77+
"AWS type allowed allowed pattern",
78+
{
79+
"AWS": {
80+
"Type": "AWS::EC2::Image::Id",
81+
"AllowedPattern": "^ami-[0-9a-f]+$",
82+
}
83+
},
84+
[],
85+
),
7686
(
7787
"Number type with AllowedPattern",
7888
{

0 commit comments

Comments
 (0)