Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(cloudwatch): description for cloudwatch alarm actions #25853

Merged
merged 6 commits into from
Jun 14, 2023
Next Next commit
docs(cloudwatch): description for cloudwatch alarm actions
  • Loading branch information
go-to-k committed Jun 5, 2023
commit 539199007438a8db07415914d50be8fc07bb44aa
6 changes: 3 additions & 3 deletions packages/aws-cdk-lib/aws-cloudwatch/lib/alarm-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export abstract class AlarmBase extends Resource implements IAlarm {
/**
* Trigger this action if the alarm fires
*
* Typically the ARN of an SNS topic or ARN of an AutoScaling policy.
* Typically SnsAcion or AutoScalingAction.
*/
public addAlarmAction(...actions: IAlarmAction[]) {
if (this.alarmActionArns === undefined) {
Expand All @@ -70,7 +70,7 @@ export abstract class AlarmBase extends Resource implements IAlarm {
/**
* Trigger this action if there is insufficient data to evaluate the alarm
*
* Typically the ARN of an SNS topic or ARN of an AutoScaling policy.
* Typically SnsAcion or AutoScalingAction.
*/
public addInsufficientDataAction(...actions: IAlarmAction[]) {
if (this.insufficientDataActionArns === undefined) {
Expand All @@ -83,7 +83,7 @@ export abstract class AlarmBase extends Resource implements IAlarm {
/**
* Trigger this action if the alarm returns from breaching state into ok state
*
* Typically the ARN of an SNS topic or ARN of an AutoScaling policy.
* Typically SnsAcion or AutoScalingAction.
*/
public addOkAction(...actions: IAlarmAction[]) {
if (this.okActionArns === undefined) {
Expand Down
2 changes: 1 addition & 1 deletion packages/aws-cdk-lib/aws-cloudwatch/lib/alarm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ export class Alarm extends AlarmBase {
/**
* Trigger this action if the alarm fires
*
* Typically the ARN of an SNS topic or ARN of an AutoScaling policy.
* Typically SnsAcion or AutoScalingAction.
*/
public addAlarmAction(...actions: IAlarmAction[]) {
if (this.alarmActionArns === undefined) {
Expand Down