To permit CloudWatch alarm publishing while restricting the source with aws:SourceArn and aws:SourceAccount conditions,…