public static final class CfnAlarmModelProps.Builder
extends java.lang.Object
CfnAlarmModelProps
Constructor and Description |
---|
Builder() |
public CfnAlarmModelProps.Builder alarmRule(CfnAlarmModel.AlarmRuleProperty alarmRule)
CfnAlarmModelProps.getAlarmRule()
alarmRule
- Defines when your alarm is invoked. This parameter is required.this
public CfnAlarmModelProps.Builder alarmRule(IResolvable alarmRule)
CfnAlarmModelProps.getAlarmRule()
alarmRule
- Defines when your alarm is invoked. This parameter is required.this
public CfnAlarmModelProps.Builder roleArn(java.lang.String roleArn)
CfnAlarmModelProps.getRoleArn()
roleArn
- The ARN of the IAM role that allows the alarm to perform actions and access AWS resources. This parameter is required.
For more information, see Amazon Resource Names (ARNs) in the AWS General Reference .this
public CfnAlarmModelProps.Builder alarmCapabilities(IResolvable alarmCapabilities)
CfnAlarmModelProps.getAlarmCapabilities()
alarmCapabilities
- Contains the configuration information of alarm state changes.this
public CfnAlarmModelProps.Builder alarmCapabilities(CfnAlarmModel.AlarmCapabilitiesProperty alarmCapabilities)
CfnAlarmModelProps.getAlarmCapabilities()
alarmCapabilities
- Contains the configuration information of alarm state changes.this
public CfnAlarmModelProps.Builder alarmEventActions(IResolvable alarmEventActions)
CfnAlarmModelProps.getAlarmEventActions()
alarmEventActions
- Contains information about one or more alarm actions.this
public CfnAlarmModelProps.Builder alarmEventActions(CfnAlarmModel.AlarmEventActionsProperty alarmEventActions)
CfnAlarmModelProps.getAlarmEventActions()
alarmEventActions
- Contains information about one or more alarm actions.this
public CfnAlarmModelProps.Builder alarmModelDescription(java.lang.String alarmModelDescription)
CfnAlarmModelProps.getAlarmModelDescription()
alarmModelDescription
- The description of the alarm model.this
public CfnAlarmModelProps.Builder alarmModelName(java.lang.String alarmModelName)
CfnAlarmModelProps.getAlarmModelName()
alarmModelName
- The name of the alarm model.this
public CfnAlarmModelProps.Builder key(java.lang.String key)
CfnAlarmModelProps.getKey()
key
- An input attribute used as a key to create an alarm.
AWS IoT Events routes inputs associated with this key to the alarm.this
public CfnAlarmModelProps.Builder severity(java.lang.Number severity)
CfnAlarmModelProps.getSeverity()
severity
- A non-negative integer that reflects the severity level of the alarm.this
public CfnAlarmModelProps.Builder tags(java.util.List<? extends CfnTag> tags)
CfnAlarmModelProps.getTags()
tags
- A list of key-value pairs that contain metadata for the alarm model.
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.
this
public CfnAlarmModelProps build()
CfnAlarmModelProps
java.lang.NullPointerException
- if any required attribute was not provided