Skip to content

Commit

Permalink
Add string restraints for glue job and event jobs (#2816)
Browse files Browse the repository at this point in the history
  • Loading branch information
kddejong authored Jul 26, 2023
1 parent 98d1db3 commit 70059ee
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/cfnlint/data/ExtendedSpecs/all/03_value_types/aws_events.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,29 @@
"StringEquals"
]
}
},
{
"op": "add",
"path": "/ValueTypes/AWS::Events::Rule.Name",
"value": {
"StringMax": 64,
"StringMin": 1
}
},
{
"op": "add",
"path": "/ValueTypes/AWS::Events::Rule.EventBusName",
"value": {
"StringMax": 256,
"StringMin": 1
}
},
{
"op": "add",
"path": "/ValueTypes/AWS::Events::Rule.Description",
"value": {
"StringMax": 512,
"StringMin": 1
}
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,13 @@
"NumberMax": 100,
"NumberMin": 1
}
},
{
"op": "add",
"path": "/ValueTypes/AWS::Glue::Job.Name",
"value": {
"NumberMax": 255,
"NumberMin": 1
}
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,26 @@
"value": {
"ValueType": "AWS::Default::Default.EnabledState"
}
},
{
"op": "add",
"path": "/ResourceTypes/AWS::Events::Rule/Properties/Name/Value",
"value": {
"ValueType": "AWS::Events::Rule.Name"
}
},
{
"op": "add",
"path": "/ResourceTypes/AWS::Events::Rule/Properties/EventBusName/Value",
"value": {
"ValueType": "AWS::Events::Rule.EventBusName"
}
},
{
"op": "add",
"path": "/ResourceTypes/AWS::Events::Rule/Properties/Description/Value",
"value": {
"ValueType": "AWS::Events::Rule.Description"
}
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,12 @@
"value": {
"ValueType": "AWS::Glue::MLTransform.MaxCapacity"
}
},
{
"op": "add",
"path": "/ResourceTypes/AWS::Glue::Job/Properties/Name/Value",
"value": {
"ValueType": "AWS::Glue::Job.Name"
}
}
]

0 comments on commit 70059ee

Please sign in to comment.