File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
src/rpdk/guard_rail/rule_library/tags Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 38
38
| ----------| -------------| ------|
39
39
| ` check_if_taggable_is_used ` | ` TAG001 ` | ` "'taggable' is deprecated, please used 'tagging' property" ` |
40
40
| ` ensure_tagging_is_specified ` | ` TAG002 ` | ` "'tagging' MUST be specified" ` |
41
+ | | ` TAG015 ` | ` "'tagging.taggable' MUST be True" ` |
41
42
| ` ensure_taggable_and_tagging_do_not_coexist ` | ` TAG003 ` | ` "'taggable' and 'tagging' MUST NOT coexist" ` |
42
43
| ` ensure_property_tags_exists_v1 ` | ` TAG004 ` | ` "Resource MUST implement Tags property if 'taggable' is true" ` |
43
44
| ` ensure_property_tags_exists_v2 ` | ` TAG005 ` | ` "'tagging' MUST BE a struct" ` |
Original file line number Diff line number Diff line change @@ -20,6 +20,17 @@ rule ensure_tagging_is_specified {
20
20
"message": "`tagging` MUST be specified"
21
21
}
22
22
>>
23
+
24
+ when tagging exists {
25
+ tagging.taggable == true
26
+ <<
27
+ {
28
+ "result": "NON_COMPLIANT",
29
+ "check_id": "TAG015",
30
+ "message": "`tagging.taggable` MUST be true"
31
+ }
32
+ >>
33
+ }
23
34
}
24
35
25
36
rule ensure_taggable_and_tagging_do_not_coexist when taggable exists {
You can’t perform that action at this time.
0 commit comments