public static final class CfnAlarmModel.Builder
extends java.lang.Object
CfnAlarmModel
.Modifier and Type | Method and Description |
---|---|
CfnAlarmModel.Builder |
alarmCapabilities(CfnAlarmModel.AlarmCapabilitiesProperty alarmCapabilities)
Contains the configuration information of alarm state changes.
|
CfnAlarmModel.Builder |
alarmCapabilities(IResolvable alarmCapabilities)
Contains the configuration information of alarm state changes.
|
CfnAlarmModel.Builder |
alarmEventActions(CfnAlarmModel.AlarmEventActionsProperty alarmEventActions)
Contains information about one or more alarm actions.
|
CfnAlarmModel.Builder |
alarmEventActions(IResolvable alarmEventActions)
Contains information about one or more alarm actions.
|
CfnAlarmModel.Builder |
alarmModelDescription(java.lang.String alarmModelDescription)
The description of the alarm model.
|
CfnAlarmModel.Builder |
alarmModelName(java.lang.String alarmModelName)
The name of the alarm model.
|
CfnAlarmModel.Builder |
alarmRule(CfnAlarmModel.AlarmRuleProperty alarmRule)
Defines when your alarm is invoked.
|
CfnAlarmModel.Builder |
alarmRule(IResolvable alarmRule)
Defines when your alarm is invoked.
|
CfnAlarmModel |
build() |
static CfnAlarmModel.Builder |
create(Construct scope,
java.lang.String id) |
CfnAlarmModel.Builder |
key(java.lang.String key)
An input attribute used as a key to create an alarm.
|
CfnAlarmModel.Builder |
roleArn(java.lang.String roleArn)
The ARN of the IAM role that allows the alarm to perform actions and access AWS resources.
|
CfnAlarmModel.Builder |
severity(java.lang.Number severity)
A non-negative integer that reflects the severity level of the alarm.
|
CfnAlarmModel.Builder |
tags(java.util.List<? extends CfnTag> tags)
A list of key-value pairs that contain metadata for the alarm model.
|
public static CfnAlarmModel.Builder create(Construct scope, java.lang.String id)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.CfnAlarmModel.AcknowledgeFlowProperty.Builder
.public CfnAlarmModel.Builder alarmRule(CfnAlarmModel.AlarmRuleProperty alarmRule)
alarmRule
- Defines when your alarm is invoked. This parameter is required.this
public CfnAlarmModel.Builder alarmRule(IResolvable alarmRule)
alarmRule
- Defines when your alarm is invoked. This parameter is required.this
public CfnAlarmModel.Builder roleArn(java.lang.String roleArn)
For more information, see Amazon Resource Names (ARNs) in the AWS General Reference .
roleArn
- The ARN of the IAM role that allows the alarm to perform actions and access AWS resources. This parameter is required.this
public CfnAlarmModel.Builder alarmCapabilities(IResolvable alarmCapabilities)
alarmCapabilities
- Contains the configuration information of alarm state changes. This parameter is required.this
public CfnAlarmModel.Builder alarmCapabilities(CfnAlarmModel.AlarmCapabilitiesProperty alarmCapabilities)
alarmCapabilities
- Contains the configuration information of alarm state changes. This parameter is required.this
public CfnAlarmModel.Builder alarmEventActions(IResolvable alarmEventActions)
alarmEventActions
- Contains information about one or more alarm actions. This parameter is required.this
public CfnAlarmModel.Builder alarmEventActions(CfnAlarmModel.AlarmEventActionsProperty alarmEventActions)
alarmEventActions
- Contains information about one or more alarm actions. This parameter is required.this
public CfnAlarmModel.Builder alarmModelDescription(java.lang.String alarmModelDescription)
alarmModelDescription
- The description of the alarm model. This parameter is required.this
public CfnAlarmModel.Builder alarmModelName(java.lang.String alarmModelName)
alarmModelName
- The name of the alarm model. This parameter is required.this
public CfnAlarmModel.Builder key(java.lang.String key)
AWS IoT Events routes inputs associated with this key to the alarm.
key
- An input attribute used as a key to create an alarm. This parameter is required.this
public CfnAlarmModel.Builder severity(java.lang.Number severity)
severity
- A non-negative integer that reflects the severity level of the alarm. This parameter is required.this
public CfnAlarmModel.Builder tags(java.util.List<? extends CfnTag> tags)
The tags help you manage the alarm model. For more information, see Tagging your AWS IoT Events resources in the AWS IoT Events Developer Guide .
You can create up to 50 tags for one alarm model.
tags
- A list of key-value pairs that contain metadata for the alarm model. This parameter is required.this
public CfnAlarmModel build()