Skip to content

Commit e4a8828

Browse files
authored
Update TAG012 to list of rules (#55)
* Add TAG012 to list of rules * Update TAG012 to list of rules * Update tagging.permission to tagging.permissions
1 parent 04989c4 commit e4a8828

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

docs/BASIC_LINTING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
| | `TAG009` | `"Resource MUST provide 'cloudFormationSystemTags' {true\|false} if 'tagging.taggable' is true"` |
4848
| | `TAG010` | `"Resource MUST provide 'tagProperty' {/properties/Tags} if 'tagging.taggable' is true"` |
4949
| | `TAG011` | `"Resource MUST implement Tags property if 'tagging.taggable' is true"` |
50+
| | `TAG012` | `"Resource MUST provide 'permissions' if 'tagging.taggable' is true"` |
5051
| | `TAG013` | `"'tagProperty' MUST specify property defined in the schema"` |
5152
| | `TAG014` | `"'tagProperty' MUST NOT be a part of 'writeOnlyProperties'"` |
5253

src/rpdk/guard_rail/rule_library/tags/schema-linter-core-tagging-rules.guard

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,12 @@ rule ensure_property_tags_exists_v2 when tagging exists {
134134
>>
135135
}
136136
}
137-
tagging.permission exists
137+
tagging.permissions exists
138138
<<
139139
{
140140
"result": "WARNING",
141141
"check_id": "TAG012",
142-
"message": "Resource MUST provide `permission` if `tagging.taggable` is true"
142+
"message": "Resource MUST provide `permissions` if `tagging.taggable` is true"
143143
}
144144
>>
145145
}

tests/integ/runner/test_integ_runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ def test_exec_compliance_stateless_aws_verifiedpermissions_policy(
338338
),
339339
GuardRuleResult(
340340
check_id="TAG012",
341-
message="Resource MUST provide `permission` if `tagging.taggable` is true",
341+
message="Resource MUST provide `permissions` if `tagging.taggable` is true",
342342
path="",
343343
),
344344
},

0 commit comments

Comments
 (0)