# CloudWatch Alarm Actions library
<!--BEGIN STABILITY BANNER-->---
![cdk-constructs: Stable](https://img.shields.io/badge/cdk--constructs-stable-success.svg?style=for-the-badge)
---
<!--END STABILITY BANNER-->
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
```python
# Alarm must be configured with an EC2 per-instance metric
# alarm: cloudwatch.Alarm
# Attach a reboot when alarm triggers
alarm.add_alarm_action(
actions.Ec2Action(actions.Ec2InstanceAction.REBOOT))
```
## SSM OpsCenter Action Example
```python
# alarm: cloudwatch.Alarm
# Create an OpsItem with specific severity and category when alarm triggers
alarm.add_alarm_action(
actions.SsmAction(actions.OpsItemSeverity.CRITICAL, actions.OpsItemCategory.PERFORMANCE))
```
See `@aws-cdk/aws-cloudwatch` for more information.
Raw data
{
"_id": null,
"home_page": "https://github.com/aws/aws-cdk",
"name": "aws-cdk.aws-cloudwatch-actions",
"maintainer": "",
"docs_url": null,
"requires_python": "~=3.7",
"maintainer_email": "",
"keywords": "",
"author": "Amazon Web Services",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/f2/f0/f5e22c2e3830bf26c4d6bb92257d7de3891dc07a5bbd24f3d31ad4ee386f/aws-cdk.aws-cloudwatch-actions-1.203.0.tar.gz",
"platform": null,
"description": "# CloudWatch Alarm Actions library\n\n<!--BEGIN STABILITY BANNER-->---\n\n\n![cdk-constructs: Stable](https://img.shields.io/badge/cdk--constructs-stable-success.svg?style=for-the-badge)\n\n---\n<!--END STABILITY BANNER-->\n\nThis library contains a set of classes which can be used as CloudWatch Alarm actions.\n\nThe currently implemented actions are: EC2 Actions, SNS Actions, SSM OpsCenter Actions, Autoscaling Actions and Application Autoscaling Actions\n\n## EC2 Action Example\n\n```python\n# Alarm must be configured with an EC2 per-instance metric\n# alarm: cloudwatch.Alarm\n\n# Attach a reboot when alarm triggers\nalarm.add_alarm_action(\n actions.Ec2Action(actions.Ec2InstanceAction.REBOOT))\n```\n\n## SSM OpsCenter Action Example\n\n```python\n# alarm: cloudwatch.Alarm\n\n# Create an OpsItem with specific severity and category when alarm triggers\nalarm.add_alarm_action(\n actions.SsmAction(actions.OpsItemSeverity.CRITICAL, actions.OpsItemCategory.PERFORMANCE))\n```\n\nSee `@aws-cdk/aws-cloudwatch` for more information.\n\n\n",
"bugtrack_url": null,
"license": "Apache-2.0",
"summary": "Alarm Actions for AWS CloudWatch CDK library",
"version": "1.203.0",
"project_urls": {
"Homepage": "https://github.com/aws/aws-cdk",
"Source": "https://github.com/aws/aws-cdk.git"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "2f8954b5c92366d260bf5d1b82ecc3cfe7779a848cc1a74431b7ab4028f8967a",
"md5": "2990a907c16c499823ab9c165bb6ad24",
"sha256": "6d4366eb777827bb79fa875a654d95b3c2b3736e0b34bd2eea5634024ebcd00e"
},
"downloads": -1,
"filename": "aws_cdk.aws_cloudwatch_actions-1.203.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "2990a907c16c499823ab9c165bb6ad24",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "~=3.7",
"size": 30156,
"upload_time": "2023-05-31T22:53:30",
"upload_time_iso_8601": "2023-05-31T22:53:30.706025Z",
"url": "https://files.pythonhosted.org/packages/2f/89/54b5c92366d260bf5d1b82ecc3cfe7779a848cc1a74431b7ab4028f8967a/aws_cdk.aws_cloudwatch_actions-1.203.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "f2f0f5e22c2e3830bf26c4d6bb92257d7de3891dc07a5bbd24f3d31ad4ee386f",
"md5": "b1868b30a5a46f5e3481b99e02fdfb6e",
"sha256": "0c9b6964c37795591080ee220260ba12db6b8a4dc598a56bb91e0c93ffe66be1"
},
"downloads": -1,
"filename": "aws-cdk.aws-cloudwatch-actions-1.203.0.tar.gz",
"has_sig": false,
"md5_digest": "b1868b30a5a46f5e3481b99e02fdfb6e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "~=3.7",
"size": 30719,
"upload_time": "2023-05-31T23:01:18",
"upload_time_iso_8601": "2023-05-31T23:01:18.243119Z",
"url": "https://files.pythonhosted.org/packages/f2/f0/f5e22c2e3830bf26c4d6bb92257d7de3891dc07a5bbd24f3d31ad4ee386f/aws-cdk.aws-cloudwatch-actions-1.203.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-05-31 23:01:18",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "aws",
"github_project": "aws-cdk",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "aws-cdk.aws-cloudwatch-actions"
}