in lib/codecommit-policy.ts [152:163]
private toTagCondition(tags: { [key: string]: string }): { [key: string]: {} } {
const resourceTags: { [key: string]: string } = {};
const nullCheck: { [key: string]: boolean } = {};
Object.keys(tags).forEach(tag => {
resourceTags[`aws:ResourceTag/${tag}`] = tags[tag];
nullCheck[`aws:ResourceTag/${tag}`] = false;
});
return {
"ForAllValues:StringEquals": resourceTags,
"Null": nullCheck,
}
}