class Monitor
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.AppConfig.Alpha.Monitor |
Go | github.com/aws/aws-cdk-go/awscdkappconfigalpha/v2#Monitor |
Java | software.amazon.awscdk.services.appconfig.alpha.Monitor |
Python | aws_cdk.aws_appconfig_alpha.Monitor |
TypeScript (source) | @aws-cdk/aws-appconfig-alpha » Monitor |
⚠️ Deprecated: undefined
Defines monitors that will be associated with an AWS AppConfig environment.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as appconfig_alpha from '@aws-cdk/aws-appconfig-alpha';
const monitor = appconfig_alpha.Monitor.fromCfnMonitorsProperty({
alarmArn: 'alarmArn',
alarmRoleArn: 'alarmRoleArn',
});
Initializer
new Monitor()
⚠️ Deprecated: undefined
Properties
Name | Type | Description |
---|---|---|
alarm | string | The alarm ARN for AWS AppConfig to monitor. |
monitor | Monitor | The type of monitor. |
alarm | string | The IAM role ARN for AWS AppConfig to view the alarm state. |
is | boolean | Indicates whether a CloudWatch alarm is a composite alarm. |
alarmArn
⚠️ Deprecated: undefined
Type:
string
The alarm ARN for AWS AppConfig to monitor.
monitorType
⚠️ Deprecated: undefined
Type:
Monitor
The type of monitor.
alarmRoleArn?
⚠️ Deprecated: undefined
Type:
string
(optional)
The IAM role ARN for AWS AppConfig to view the alarm state.
isCompositeAlarm?
⚠️ Deprecated: undefined
Type:
boolean
(optional)
Indicates whether a CloudWatch alarm is a composite alarm.
Methods
Name | Description |
---|---|
static from | Creates a Monitor from a CfnEnvironment.MonitorsProperty construct. |
static from | Creates a Monitor from a CloudWatch alarm. |
CfnMonitorsProperty(monitorsProperty)
static frompublic static fromCfnMonitorsProperty(monitorsProperty: MonitorsProperty): Monitor
⚠️ Deprecated: undefined
Parameters
- monitorsProperty
Monitors
— The monitors property.Property
Returns
Creates a Monitor from a CfnEnvironment.MonitorsProperty construct.
CloudWatchAlarm(alarm, alarmRole?)
static frompublic static fromCloudWatchAlarm(alarm: IAlarm, alarmRole?: IRole): Monitor
⚠️ Deprecated: undefined
Parameters
- alarm
IAlarm
— The Amazon CloudWatch alarm. - alarmRole
IRole
— The IAM role for AWS AppConfig to view the alarm state.
Returns
Creates a Monitor from a CloudWatch alarm.
If the alarm role is not specified, a role will be generated.