MonitorProperty Struct
Amazon CloudWatch alarms to monitor during the deployment process.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_appconfig as appconfig } from 'aws-cdk-lib';
const monitorProperty: appconfig.CfnEnvironment.MonitorProperty = {
alarmArn: 'alarmArn',
// the properties below are optional
alarmRoleArn: 'alarmRoleArn',
};
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_appconfig as appconfig
monitor_property = appconfig.CfnEnvironment.MonitorProperty(
alarm_arn="alarmArn",
# the properties below are optional
alarm_role_arn="alarmRoleArn"
)
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.appconfig.*;
MonitorProperty monitorProperty = MonitorProperty.builder()
.alarmArn("alarmArn")
// the properties below are optional
.alarmRoleArn("alarmRoleArn")
.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.AppConfig;
var monitorProperty = new MonitorProperty {
AlarmArn = "alarmArn",
// the properties below are optional
AlarmRoleArn = "alarmRoleArn"
};
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"
monitorProperty := &MonitorProperty{
AlarmArn: jsii.String("alarmArn"),
// the properties below are optional
AlarmRoleArn: jsii.String("alarmRoleArn"),
}
Properties
Amazon Resource Name (ARN) of the Amazon CloudWatch alarm.
alarmRoleArnoptionalstringalarm_role_arnoptionalstralarmRoleArnoptionalStringAlarmRoleArnoptionalstringAlarmRoleArnoptional*string#ARN of an AWS Identity and Access Management (IAM) role for AWS AppConfig to monitor `AlarmArn` .