Skip to content
v2.277.0

AlarmActionConfig Struct ​

Properties for an alarm action.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudwatch as cloudwatch } from 'aws-cdk-lib';
const alarmActionConfig: cloudwatch.AlarmActionConfig = {
  alarmActionArn: 'alarmActionArn',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_cloudwatch as cloudwatch

alarm_action_config = cloudwatch.AlarmActionConfig(
    alarm_action_arn="alarmActionArn"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cloudwatch.*;

AlarmActionConfig alarmActionConfig = AlarmActionConfig.builder()
        .alarmActionArn("alarmActionArn")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CloudWatch;

var alarmActionConfig = new AlarmActionConfig {
    AlarmActionArn = "alarmActionArn"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

alarmActionConfig := &AlarmActionConfig{
	AlarmActionArn: jsii.String("alarmActionArn"),
}

Properties ​

alarmActionArnstringalarm_action_arnstralarmActionArnStringAlarmActionArnstringAlarmActionArn*stringrequired#
Return the ARN that should be used for a CloudWatch Alarm action.