Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aws-cdk/aws-cloudwatch

Package Overview
Dependencies
Maintainers
5
Versions
288
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-cdk/aws-cloudwatch - npm Package Compare versions

Comparing version 1.24.0 to 1.25.0

20

package.json
{
"name": "@aws-cdk/aws-cloudwatch",
"version": "1.24.0",
"version": "1.25.0",
"description": "CDK Constructs for AWS CloudWatch",

@@ -65,18 +65,18 @@ "main": "lib/index.js",

"devDependencies": {
"@aws-cdk/assert": "1.24.0",
"@aws-cdk/assert": "1.25.0",
"@types/nodeunit": "^0.0.30",
"cdk-build-tools": "1.24.0",
"cdk-integ-tools": "1.24.0",
"cfn2ts": "1.24.0",
"cdk-build-tools": "1.25.0",
"cdk-integ-tools": "1.25.0",
"cfn2ts": "1.25.0",
"nodeunit": "^0.11.3",
"pkglint": "1.24.0"
"pkglint": "1.25.0"
},
"dependencies": {
"@aws-cdk/aws-iam": "1.24.0",
"@aws-cdk/core": "1.24.0"
"@aws-cdk/aws-iam": "1.25.0",
"@aws-cdk/core": "1.25.0"
},
"homepage": "https://github.com/aws/aws-cdk",
"peerDependencies": {
"@aws-cdk/aws-iam": "1.24.0",
"@aws-cdk/core": "1.24.0"
"@aws-cdk/aws-iam": "1.25.0",
"@aws-cdk/core": "1.25.0"
},

@@ -83,0 +83,0 @@ "awslint": {

@@ -145,2 +145,18 @@ ## Amazon CloudWatch Construct Library

### Alarm Actions
To add actions to an alarm, use the integration classes from the
`@aws-cdk/aws-cloudwatch-actions` package. For example, to post a message to
an SNS topic when an alarm breaches, do the following:
```ts
import * as cw_actions from '@aws-cdk/aws-cloudwatch-actions';
// ...
const topic = new sns.Topic(stack, 'Topic');
const alarm = new cloudwatch.Alarm(stack, 'Alarm', { /* ... */ });
alarm.addAlarmAction(new cw_actions.SnsAction(topic));
```
### A note on units

@@ -147,0 +163,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc