@wheatstalk/cdk-sns-log-group-subscription
TypeScript icon, indicating that this package has built-in type declarations

0.0.12 • Public • Published

SNS Log Group Subscription

This AWS CDK construct library provides LogGroupSubscription, which subscribes a CloudWatch LogGroup to an SNS topic. Uses for this construct might include:

  • Logging AWS SES Notifications via SNS Topic
  • Debugging an application that publishes to an SNS Topic
  • Logging events not published other than to an SNS Topic

Example Usage

const topic = new aws_sns.Topic(stack, 'Topic');
const logGroup = new aws_logs.LogGroup(stack, 'LogGroup');

topic.addSubscription(
  new LogGroupSubscription({
    logGroup,
    logFormat: LogFormat.MESSAGE,
  }),
);

Readme

Keywords

none

Package Sidebar

Install

npm i @wheatstalk/cdk-sns-log-group-subscription

Weekly Downloads

42

Version

0.0.12

License

Apache-2.0

Unpacked Size

19.5 kB

Total Files

20

Last publish

Collaborators

  • misterjoshua