@Stability(value=Stable) public static final class CfnCompositeAlarm.Builder extends Object implements software.amazon.jsii.Builder<CfnCompositeAlarm>
CfnCompositeAlarm.| Modifier and Type | Method and Description |
|---|---|
CfnCompositeAlarm.Builder |
actionsEnabled(Boolean actionsEnabled)
Indicates whether actions should be executed during any changes to the alarm state of the composite alarm.
|
CfnCompositeAlarm.Builder |
actionsEnabled(IResolvable actionsEnabled)
Indicates whether actions should be executed during any changes to the alarm state of the composite alarm.
|
CfnCompositeAlarm.Builder |
actionsSuppressor(String actionsSuppressor)
`AWS::CloudWatch::CompositeAlarm.ActionsSuppressor`.
|
CfnCompositeAlarm.Builder |
actionsSuppressorExtensionPeriod(Number actionsSuppressorExtensionPeriod)
`AWS::CloudWatch::CompositeAlarm.ActionsSuppressorExtensionPeriod`.
|
CfnCompositeAlarm.Builder |
actionsSuppressorWaitPeriod(Number actionsSuppressorWaitPeriod)
`AWS::CloudWatch::CompositeAlarm.ActionsSuppressorWaitPeriod`.
|
CfnCompositeAlarm.Builder |
alarmActions(List<String> alarmActions)
The actions to execute when this alarm transitions to the ALARM state from any other state.
|
CfnCompositeAlarm.Builder |
alarmDescription(String alarmDescription)
The description for the composite alarm.
|
CfnCompositeAlarm.Builder |
alarmName(String alarmName)
The name for the composite alarm.
|
CfnCompositeAlarm.Builder |
alarmRule(String alarmRule)
An expression that specifies which other alarms are to be evaluated to determine this composite alarm's state.
|
CfnCompositeAlarm |
build() |
static CfnCompositeAlarm.Builder |
create(software.constructs.Construct scope,
String id) |
CfnCompositeAlarm.Builder |
insufficientDataActions(List<String> insufficientDataActions)
The actions to execute when this alarm transitions to the INSUFFICIENT_DATA state from any other state.
|
CfnCompositeAlarm.Builder |
okActions(List<String> okActions)
The actions to execute when this alarm transitions to the OK state from any other state.
|
@Stability(value=Stable) public static CfnCompositeAlarm.Builder create(software.constructs.Construct scope, String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.CfnCompositeAlarm.Builder.@Stability(value=Stable) public CfnCompositeAlarm.Builder alarmName(String alarmName)
This name must be unique within your AWS account.
alarmName - The name for the composite alarm. This parameter is required.this@Stability(value=Stable) public CfnCompositeAlarm.Builder alarmRule(String alarmRule)
For each alarm that you reference, you designate a function that specifies whether that alarm needs to be in ALARM state, OK state, or INSUFFICIENT_DATA state. You can use operators (AND, OR and NOT) to combine multiple functions in a single expression. You can use parenthesis to logically group the functions in your expression.
You can use either alarm names or ARNs to reference the other alarms that are to be evaluated.
Functions can include the following:
TRUE and FALSE are useful for testing a complex AlarmRule structure, and for testing your alarm actions.
For more information about AlarmRule syntax, see PutCompositeAlarm in the Amazon CloudWatch API Reference .
alarmRule - An expression that specifies which other alarms are to be evaluated to determine this composite alarm's state. This parameter is required.this@Stability(value=Stable) public CfnCompositeAlarm.Builder actionsEnabled(Boolean actionsEnabled)
The default is TRUE.
actionsEnabled - Indicates whether actions should be executed during any changes to the alarm state of the composite alarm. This parameter is required.this@Stability(value=Stable) public CfnCompositeAlarm.Builder actionsEnabled(IResolvable actionsEnabled)
The default is TRUE.
actionsEnabled - Indicates whether actions should be executed during any changes to the alarm state of the composite alarm. This parameter is required.this@Stability(value=Stable) public CfnCompositeAlarm.Builder actionsSuppressor(String actionsSuppressor)
actionsSuppressor - `AWS::CloudWatch::CompositeAlarm.ActionsSuppressor`. This parameter is required.this@Stability(value=Stable) public CfnCompositeAlarm.Builder actionsSuppressorExtensionPeriod(Number actionsSuppressorExtensionPeriod)
actionsSuppressorExtensionPeriod - `AWS::CloudWatch::CompositeAlarm.ActionsSuppressorExtensionPeriod`. This parameter is required.this@Stability(value=Stable) public CfnCompositeAlarm.Builder actionsSuppressorWaitPeriod(Number actionsSuppressorWaitPeriod)
actionsSuppressorWaitPeriod - `AWS::CloudWatch::CompositeAlarm.ActionsSuppressorWaitPeriod`. This parameter is required.this@Stability(value=Stable) public CfnCompositeAlarm.Builder alarmActions(List<String> alarmActions)
Each action is specified as an Amazon Resource Name (ARN). For more information about creating alarms and the actions that you can specify, see PutCompositeAlarm in the Amazon CloudWatch API Reference .
alarmActions - The actions to execute when this alarm transitions to the ALARM state from any other state. This parameter is required.this@Stability(value=Stable) public CfnCompositeAlarm.Builder alarmDescription(String alarmDescription)
alarmDescription - The description for the composite alarm. This parameter is required.this@Stability(value=Stable) public CfnCompositeAlarm.Builder insufficientDataActions(List<String> insufficientDataActions)
Each action is specified as an Amazon Resource Name (ARN). For more information about creating alarms and the actions that you can specify, see PutCompositeAlarm in the Amazon CloudWatch API Reference .
insufficientDataActions - The actions to execute when this alarm transitions to the INSUFFICIENT_DATA state from any other state. This parameter is required.this@Stability(value=Stable) public CfnCompositeAlarm.Builder okActions(List<String> okActions)
Each action is specified as an Amazon Resource Name (ARN). For more information about creating alarms and the actions that you can specify, see PutCompositeAlarm in the Amazon CloudWatch API Reference .
okActions - The actions to execute when this alarm transitions to the OK state from any other state. This parameter is required.this@Stability(value=Stable) public CfnCompositeAlarm build()
build in interface software.amazon.jsii.Builder<CfnCompositeAlarm>Copyright © 2022. All rights reserved.