Skip to content
v2.278.0

LogAlarmReference Struct ​

A reference to a LogAlarm resource.

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 interfaces_cloudwatch } from 'aws-cdk-lib/interfaces';
const logAlarmReference: interfaces_cloudwatch.LogAlarmReference = {
  alarmName: 'alarmName',
  logAlarmArn: 'logAlarmArn',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.interfaces import aws_cloudwatch as interfaces_cloudwatch

log_alarm_reference = interfaces_cloudwatch.LogAlarmReference(
    alarm_name="alarmName",
    log_alarm_arn="logAlarmArn"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.interfaces.cloudwatch.*;

LogAlarmReference logAlarmReference = LogAlarmReference.builder()
        .alarmName("alarmName")
        .logAlarmArn("logAlarmArn")
        .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.Interfaces.CloudWatch;

var logAlarmReference = new LogAlarmReference {
    AlarmName = "alarmName",
    LogAlarmArn = "logAlarmArn"
};
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"

logAlarmReference := &LogAlarmReference{
	AlarmName: jsii.String("alarmName"),
	LogAlarmArn: jsii.String("logAlarmArn"),
}

Properties ​

alarmNamestringalarm_namestralarmNameStringAlarmNamestringAlarmName*string required #
The AlarmName of the LogAlarm resource.
logAlarmArnstringlog_alarm_arnstrlogAlarmArnStringLogAlarmArnstringLogAlarmArn*string required #
The ARN of the LogAlarm resource.