All Downloads are FREE. Search and download functionalities are using the official Maven repository.

software.amazon.awscdk.services.cloudwatch.actions.package-info Maven / Gradle / Ivy

/**
 * 

CloudWatch Alarm Actions library

*

* --- *

* End-of-Support *

*

*

* AWS CDK v1 has reached End-of-Support on 2023-06-01. * This package is no longer being updated, and users should migrate to AWS CDK v2. *

* For more information on how to migrate, see the Migrating to AWS CDK v2 guide. *

*

*

*


*

* *

* This library contains a set of classes which can be used as CloudWatch Alarm actions. *

* The currently implemented actions are: EC2 Actions, SNS Actions, SSM OpsCenter Actions, Autoscaling Actions and Application Autoscaling Actions *

*

EC2 Action Example

*

*

 * // Alarm must be configured with an EC2 per-instance metric
 * Alarm alarm;
 * 
 * // Attach a reboot when alarm triggers
 * alarm.addAlarmAction(
 * new Ec2Action(Ec2InstanceAction.REBOOT));
 * 
*

*

SSM OpsCenter Action Example

*

*

 * Alarm alarm;
 * 
 * // Create an OpsItem with specific severity and category when alarm triggers
 * alarm.addAlarmAction(
 * new SsmAction(OpsItemSeverity.CRITICAL, OpsItemCategory.PERFORMANCE));
 * 
*

* See @aws-cdk/aws-cloudwatch for more information. * * Deprecated: AWS CDK v1 has reached End-of-Support on 2023-06-01. This package is no longer being updated, and users should migrate to AWS CDK v2. For more information on how to migrate, see https://docs.aws.amazon.com/cdk/v2/guide/migrating-v2.html */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Deprecated package software.amazon.awscdk.services.cloudwatch.actions;





© 2015 - 2025 Weber Informatics LLC | Privacy Policy