Class Monitor
Defines monitors that will be associated with an AWS AppConfig environment.
Inheritance
Namespace: Amazon.CDK.AWS.AppConfig
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public abstract class Monitor : DeputyBase
Syntax (vb)
Public MustInherit Class Monitor
Inherits DeputyBase
Remarks
ExampleMetadata: infused
Examples
Application application;
Alarm alarm;
CompositeAlarm compositeAlarm;
new Environment(this, "MyEnvironment", new EnvironmentProps {
Application = application,
Monitors = new [] { Monitor.FromCloudWatchAlarm(alarm), Monitor.FromCloudWatchAlarm(compositeAlarm) }
});
Synopsis
Constructors
Monitor() | |
Monitor(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Monitor(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
AlarmArn | The alarm ARN for AWS AppConfig to monitor. |
AlarmRoleArn | The IAM role ARN for AWS AppConfig to view the alarm state. |
IsCompositeAlarm | Indicates whether a CloudWatch alarm is a composite alarm. |
MonitorType | The type of monitor. |
Methods
FromCfnMonitorsProperty(CfnEnvironment.IMonitorsProperty) | Creates a Monitor from a CfnEnvironment.MonitorsProperty construct. |
FromCloudWatchAlarm(IAlarm, IRole) | Creates a Monitor from a CloudWatch alarm. |
Constructors
Monitor()
protected Monitor()
Monitor(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected Monitor(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
Monitor(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected Monitor(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
AlarmArn
The alarm ARN for AWS AppConfig to monitor.
public abstract string AlarmArn { get; }
Property Value
System.String
AlarmRoleArn
The IAM role ARN for AWS AppConfig to view the alarm state.
public abstract string AlarmRoleArn { get; }
Property Value
System.String
IsCompositeAlarm
Indicates whether a CloudWatch alarm is a composite alarm.
public abstract Nullable<bool> IsCompositeAlarm { get; }
Property Value
System.Nullable<System.Boolean>
MonitorType
Methods
FromCfnMonitorsProperty(CfnEnvironment.IMonitorsProperty)
Creates a Monitor from a CfnEnvironment.MonitorsProperty construct.
public static Monitor FromCfnMonitorsProperty(CfnEnvironment.IMonitorsProperty monitorsProperty)
Parameters
- monitorsProperty CfnEnvironment.IMonitorsProperty
The monitors property.
Returns
FromCloudWatchAlarm(IAlarm, IRole)
Creates a Monitor from a CloudWatch alarm.
public static Monitor FromCloudWatchAlarm(IAlarm alarm, IRole alarmRole = null)
Parameters
- alarm IAlarm
The Amazon CloudWatch alarm.
- alarmRole IRole
The IAM role for AWS AppConfig to view the alarm state.
Returns
Remarks
If the alarm role is not specified, a role will be generated.