UNPKG

daily-spend-to-slack

Version:

A construct that deploys a CloudWatch cronjob that will trigger a Lambda that will fetch the yesterday usage of AWS and send it to a SNS as a spoofed ECR CloudWatch event that can be parsed by AWS Chatbot and send to Slack.

38 lines (37 loc) 779 B
import { Schedule } from 'aws-cdk-lib/aws-events'; import { Construct } from 'constructs'; /** * @stability stable */ export interface DailySpendToSlackProps { /** * @stability stable */ readonly schedule: Schedule; /** * @stability stable */ readonly slackWorkspaceId: string; /** * @stability stable */ readonly slackChannelId: string; /** * @stability stable */ readonly slackChannelName: string; /** * @stability stable */ readonly accountName: string; } /** * @stability stable */ export declare class DailySpendToSlack extends Construct { private props; /** * @stability stable */ constructor(scope: Construct, id: string, props: DailySpendToSlackProps); }