An alarm outside the pattern deploys cleanly and fires, but CloudWatch is denied
sns:Publish and use of the key, so every notification is dropped. Callers that derive
alarm names from a naming implementation should check each name, because a custom
implementation need not keep the prefix the pattern assumes.
Parameters
alarmName: string
The alarm name
alarmNamePattern: string
The grant pattern, in which * matches any characters
Validates that an alarm name matches the name pattern a notification topic's CloudWatch grants are scoped to (see GrantCloudWatchAlarmsTopicAccessProps.alarmNamePattern).
An alarm outside the pattern deploys cleanly and fires, but CloudWatch is denied
sns:Publishand use of the key, so every notification is dropped. Callers that derive alarm names from a naming implementation should check each name, because a custom implementation need not keep the prefix the pattern assumes.