Skip to content

Commit 70059ee

Browse files
authored
Add string restraints for glue job and event jobs (#2816)
1 parent 98d1db3 commit 70059ee

File tree

4 files changed

+60
-0
lines changed

4 files changed

+60
-0
lines changed

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,29 @@
2525
"StringEquals"
2626
]
2727
}
28+
},
29+
{
30+
"op": "add",
31+
"path": "/ValueTypes/AWS::Events::Rule.Name",
32+
"value": {
33+
"StringMax": 64,
34+
"StringMin": 1
35+
}
36+
},
37+
{
38+
"op": "add",
39+
"path": "/ValueTypes/AWS::Events::Rule.EventBusName",
40+
"value": {
41+
"StringMax": 256,
42+
"StringMin": 1
43+
}
44+
},
45+
{
46+
"op": "add",
47+
"path": "/ValueTypes/AWS::Events::Rule.Description",
48+
"value": {
49+
"StringMax": 512,
50+
"StringMin": 1
51+
}
2852
}
2953
]

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,5 +78,13 @@
7878
"NumberMax": 100,
7979
"NumberMin": 1
8080
}
81+
},
82+
{
83+
"op": "add",
84+
"path": "/ValueTypes/AWS::Glue::Job.Name",
85+
"value": {
86+
"NumberMax": 255,
87+
"NumberMin": 1
88+
}
8189
}
8290
]

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

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,26 @@
2626
"value": {
2727
"ValueType": "AWS::Default::Default.EnabledState"
2828
}
29+
},
30+
{
31+
"op": "add",
32+
"path": "/ResourceTypes/AWS::Events::Rule/Properties/Name/Value",
33+
"value": {
34+
"ValueType": "AWS::Events::Rule.Name"
35+
}
36+
},
37+
{
38+
"op": "add",
39+
"path": "/ResourceTypes/AWS::Events::Rule/Properties/EventBusName/Value",
40+
"value": {
41+
"ValueType": "AWS::Events::Rule.EventBusName"
42+
}
43+
},
44+
{
45+
"op": "add",
46+
"path": "/ResourceTypes/AWS::Events::Rule/Properties/Description/Value",
47+
"value": {
48+
"ValueType": "AWS::Events::Rule.Description"
49+
}
2950
}
3051
]

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,5 +90,12 @@
9090
"value": {
9191
"ValueType": "AWS::Glue::MLTransform.MaxCapacity"
9292
}
93+
},
94+
{
95+
"op": "add",
96+
"path": "/ResourceTypes/AWS::Glue::Job/Properties/Name/Value",
97+
"value": {
98+
"ValueType": "AWS::Glue::Job.Name"
99+
}
93100
}
94101
]

0 commit comments

Comments
 (0)