@aws-cdk/aws-cloudwatch
Advanced tools
Comparing version 1.24.0 to 1.25.0
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
836770
266
+ Added@aws-cdk/aws-iam@1.25.0(transitive)
+ Added@aws-cdk/core@1.25.0(transitive)
+ Added@aws-cdk/cx-api@1.25.0(transitive)
+ Added@aws-cdk/region-info@1.25.0(transitive)
- Removed@aws-cdk/aws-iam@1.24.0(transitive)
- Removed@aws-cdk/core@1.24.0(transitive)
- Removed@aws-cdk/cx-api@1.24.0(transitive)
- Removed@aws-cdk/region-info@1.24.0(transitive)
Updated@aws-cdk/aws-iam@1.25.0
Updated@aws-cdk/core@1.25.0