UNPKG

929 BTypeScriptView Raw
1import * as events from '@aws-cdk/aws-events';
2import * as logs from '@aws-cdk/aws-logs';
3import { TargetBaseProps } from './util';
4/**
5 * Customize the CloudWatch LogGroup Event Target
6 */
7export interface LogGroupProps extends TargetBaseProps {
8 /**
9 * The event to send to the CloudWatch LogGroup
10 *
11 * This will be the event logged into the CloudWatch LogGroup
12 *
13 * @default - the entire EventBridge event
14 */
15 readonly event?: events.RuleTargetInput;
16}
17/**
18 * Use an AWS CloudWatch LogGroup as an event rule target.
19 */
20export declare class CloudWatchLogGroup implements events.IRuleTarget {
21 private readonly logGroup;
22 private readonly props;
23 constructor(logGroup: logs.ILogGroup, props?: LogGroupProps);
24 /**
25 * Returns a RuleTarget that can be used to log an event into a CloudWatch LogGroup
26 */
27 bind(_rule: events.IRule, _id?: string): events.RuleTargetConfig;
28}