@gammarers/aws-log-stream-event-notification-stack
Version:
This AWS CDK construct stack subscribes to a CloudWatch Logs log stream, and when a target log level is detected, it sends the log information to a Step Functions state machine via a Lambda function. The state machine processes and formats the log informa
13 lines (12 loc) • 488 B
TypeScript
import { Stack, StackProps } from 'aws-cdk-lib';
import { Construct } from 'constructs';
export interface TargetNotification {
readonly emails?: string[];
}
export interface LogStreamEventNotificationStackProps extends StackProps {
readonly notification?: TargetNotification;
readonly logGroupNames: string[];
}
export declare class LogStreamEventNotificationStack extends Stack {
constructor(scope: Construct, id: string, props?: LogStreamEventNotificationStackProps);
}