Monitor
- class aws_cdk.aws_appconfig.Monitor
Bases:
object
Defines monitors that will be associated with an AWS AppConfig environment.
- ExampleMetadata:
infused
Example:
# application: appconfig.Application # alarm: cloudwatch.Alarm # composite_alarm: cloudwatch.CompositeAlarm appconfig.Environment(self, "MyEnvironment", application=application, monitors=[ appconfig.Monitor.from_cloud_watch_alarm(alarm), appconfig.Monitor.from_cloud_watch_alarm(composite_alarm) ] )
Attributes
- alarm_arn
The alarm ARN for AWS AppConfig to monitor.
- alarm_role_arn
The IAM role ARN for AWS AppConfig to view the alarm state.
- is_composite_alarm
Indicates whether a CloudWatch alarm is a composite alarm.
- monitor_type
The type of monitor.
Static Methods
- classmethod from_cfn_monitors_property(*, alarm_arn=None, alarm_role_arn=None)
Creates a Monitor from a CfnEnvironment.MonitorsProperty construct.
- Parameters:
alarm_arn (
Optional
[str
]) –alarm_role_arn (
Optional
[str
]) –
- Return type:
- classmethod from_cloud_watch_alarm(alarm, alarm_role=None)
Creates a Monitor from a CloudWatch alarm.
If the alarm role is not specified, a role will be generated.