- Valid Scope(s): Unknown
- alias: string (Required): the resource alias
- name: string: the resource name
- properties: AWS.IoTEvents/AlarmModelProperties (Required): properties of the resource
- Valid Scope(s): Unknown
- alias: string (Required): the resource alias
- name: string: the resource name
- properties: AWS.IoTEvents/DetectorModelProperties (Required): properties of the resource
- Valid Scope(s): Unknown
- alias: string (Required): the resource alias
- name: string: the resource name
- properties: AWS.IoTEvents/InputProperties (Required): properties of the resource
- AlarmCapabilities: AlarmCapabilities
- AlarmEventActions: AlarmEventActions
- AlarmModelDescription: string: A brief description of the alarm model.
- AlarmModelName: string (Identifier): The name of the alarm model.
- AlarmRule: AlarmRule (Required)
- Key: string: The value used to identify a alarm instance. When a device or system sends input, a new alarm instance with a unique key value is created. AWS IoT Events can continue to route input to its corresponding alarm instance based on this identifying information.
This parameter uses a JSON-path expression to select the attribute-value pair in the message payload that is used for identification. To route the message to the correct alarm instance, the device must send a message payload that contains the same attribute-value.
-
RoleArn: string (Required): The ARN of the role that grants permission to AWS IoT Events to perform its operations.
-
Severity: int: A non-negative integer that reflects the severity level of the alarm.
-
Tags: Tag[]: An array of key-value pairs to apply to this resource.
For more information, see Tag.
- AcknowledgeFlow: AcknowledgeFlow
- InitializationConfiguration: InitializationConfiguration
- Enabled: bool: The value must be TRUE or FALSE. If TRUE, you receive a notification when the alarm state changes. You must choose to acknowledge the notification before the alarm state can return to NORMAL. If FALSE, you won't receive notifications. The alarm automatically changes to the NORMAL state when the input property value returns to the specified range.
- DisabledOnInitialization: bool (Required): The value must be TRUE or FALSE. If FALSE, all alarm instances created based on the alarm model are activated. The default value is TRUE.
- AlarmActions: AlarmAction[]
- DynamoDB: DynamoDB
- DynamoDBv2: DynamoDBv2
- Firehose: Firehose
- IotEvents: IotEvents
- IotSiteWise: IotSiteWise
- IotTopicPublish: IotTopicPublish
- Lambda: Lambda
- Sns: Sns
- Sqs: Sqs
-
HashKeyField: string (Required): The name of the hash key (also called the partition key).
-
HashKeyType: string: The data type for the hash key (also called the partition key). You can specify the following values:
-
STRING
- The hash key is a string. -
NUMBER
- The hash key is a number.
If you don't specify hashKeyType
, the default value is STRING
.
-
HashKeyValue: string (Required): The value of the hash key (also called the partition key).
-
Operation: string: The type of operation to perform. You can specify the following values:
-
INSERT
- Insert data as a new item into the DynamoDB table. This item uses the specified hash key as a partition key. If you specified a range key, the item uses the range key as a sort key. -
UPDATE
- Update an existing item of the DynamoDB table with new data. This item's partition key must match the specified hash key. If you specified a range key, the range key must match the item's sort key. -
DELETE
- Delete an existing item of the DynamoDB table. This item's partition key must match the specified hash key. If you specified a range key, the range key must match the item's sort key.
If you don't specify this parameter, AWS IoT Events triggers the INSERT
operation.
- Payload: Payload
- PayloadField: string: The name of the DynamoDB column that receives the action payload.
If you don't specify this parameter, the name of the DynamoDB column is payload
.
-
RangeKeyField: string: The name of the range key (also called the sort key).
-
RangeKeyType: string: The data type for the range key (also called the sort key), You can specify the following values:
-
STRING
- The range key is a string. -
NUMBER
- The range key is number.
If you don't specify rangeKeyField
, the default value is STRING
.
- RangeKeyValue: string: The value of the range key (also called the sort key).
- TableName: string (Required): The name of the DynamoDB table.
- ContentExpression: string (Required): The content of the payload. You can use a string expression that includes quoted strings (
'<string>'
), variables ($variable.<variable-name>
), input values ($input.<input-name>.<path-to-datum>
), string concatenations, and quoted strings that contain${}
as the content. The recommended maximum size of a content expression is 1 KB. - Type: string (Required): The value of the payload type can be either
STRING
orJSON
.
- Payload: Payload
- TableName: string (Required): The name of the DynamoDB table.
- DeliveryStreamName: string (Required): The name of the Kinesis Data Firehose delivery stream where the data is written.
- Payload: Payload
- Separator: string: A character separator that is used to separate records written to the Kinesis Data Firehose delivery stream. Valid values are: '\n' (newline), '\t' (tab), '\r\n' (Windows newline), ',' (comma).
- InputName: string (Required): The name of the AWS IoT Events input where the data is sent.
- Payload: Payload
- AssetId: string: The ID of the asset that has the specified property. You can specify an expression.
- EntryId: string: A unique identifier for this entry. You can use the entry ID to track which data entry causes an error in case of failure. The default is a new unique identifier. You can also specify an expression.
- PropertyAlias: string: The alias of the asset property. You can also specify an expression.
- PropertyId: string: The ID of the asset property. You can specify an expression.
- PropertyValue: AssetPropertyValue
- Quality: string: The quality of the asset property value. The value must be
GOOD
,BAD
, orUNCERTAIN
. You can also specify an expression. - Timestamp: AssetPropertyTimestamp
- Value: AssetPropertyVariant (Required)
- OffsetInNanos: string: The timestamp, in seconds, in the Unix epoch format. The valid range is between
1-31556889864403199
. You can also specify an expression. - TimeInSeconds: string (Required): The nanosecond offset converted from
timeInSeconds
. The valid range is between0-999999999
. You can also specify an expression.
- BooleanValue: string: The asset property value is a Boolean value that must be
TRUE
orFALSE
. You can also specify an expression. If you use an expression, the evaluated result should be a Boolean value. - DoubleValue: string: The asset property value is a double. You can also specify an expression. If you use an expression, the evaluated result should be a double.
- IntegerValue: string: The asset property value is an integer. You can also specify an expression. If you use an expression, the evaluated result should be an integer.
- StringValue: string: The asset property value is a string. You can also specify an expression. If you use an expression, the evaluated result should be a string.
- MqttTopic: string (Required): The MQTT topic of the message. You can use a string expression that includes variables (
$variable.<variable-name>
) and input values ($input.<input-name>.<path-to-datum>
) as the topic string. - Payload: Payload
- FunctionArn: string (Required): The ARN of the Lambda function that is executed.
- Payload: Payload
- Payload: Payload
- TargetArn: string (Required): The ARN of the Amazon SNS target where the message is sent.
- Payload: Payload
- QueueUrl: string (Required): The URL of the SQS queue where the data is written.
- UseBase64: bool: Set this to
TRUE
if you want the data to be base-64 encoded before it is written to the queue. Otherwise, set this toFALSE
.
- SimpleRule: SimpleRule
- ComparisonOperator: string (Required): The comparison operator.
- InputProperty: string (Required): The value on the left side of the comparison operator. You can specify an AWS IoT Events input attribute as an input property.
- Threshold: string (Required): The value on the right side of the comparison operator. You can enter a number or specify an AWS IoT Events input attribute.
- Key: string (Required): Key of the Tag.
- Value: string (Required): Value of the Tag.
- DetectorModelDefinition: DetectorModelDefinition (Required)
- DetectorModelDescription: string: A brief description of the detector model.
- DetectorModelName: string (Identifier): The name of the detector model.
- EvaluationMethod: string: Information about the order in which events are evaluated and how actions are executed.
- Key: string: The value used to identify a detector instance. When a device or system sends input, a new detector instance with a unique key value is created. AWS IoT Events can continue to route input to its corresponding detector instance based on this identifying information.
This parameter uses a JSON-path expression to select the attribute-value pair in the message payload that is used for identification. To route the message to the correct detector instance, the device must send a message payload that contains the same attribute-value.
- RoleArn: string (Required): The ARN of the role that grants permission to AWS IoT Events to perform its operations.
- Tags: Tag[]: An array of key-value pairs to apply to this resource.
For more information, see Tag.
- InitialStateName: string (Required): The state that is entered at the creation of each detector (instance).
- States: State[] (Required): Information about the states of the detector.
- OnEnter: OnEnter
- OnExit: OnExit
- OnInput: OnInput
- StateName: string (Required): The name of the state.
- Events: Event[]: Specifies the
actions
that are performed when the state is entered and thecondition
isTRUE
.
- Actions: Action[]: The actions to be performed.
- Condition: string: The Boolean expression that, when
TRUE
, causes theactions
to be performed. If not present, theactions
are performed (=TRUE
). If the expression result is not aBoolean
value, theactions
are not performed (=FALSE
). - EventName: string (Required): The name of the event.
- ClearTimer: ClearTimer
- DynamoDB: DynamoDB
- DynamoDBv2: DynamoDBv2
- Firehose: Firehose
- IotEvents: IotEvents
- IotSiteWise: IotSiteWise
- IotTopicPublish: IotTopicPublish
- Lambda: Lambda
- ResetTimer: ResetTimer
- SetTimer: SetTimer
- SetVariable: SetVariable
- Sns: Sns
- Sqs: Sqs
- TimerName: string (Required)
-
HashKeyField: string (Required): The name of the hash key (also called the partition key).
-
HashKeyType: string: The data type for the hash key (also called the partition key). You can specify the following values:
-
STRING
- The hash key is a string. -
NUMBER
- The hash key is a number.
If you don't specify hashKeyType
, the default value is STRING
.
-
HashKeyValue: string (Required): The value of the hash key (also called the partition key).
-
Operation: string: The type of operation to perform. You can specify the following values:
-
INSERT
- Insert data as a new item into the DynamoDB table. This item uses the specified hash key as a partition key. If you specified a range key, the item uses the range key as a sort key. -
UPDATE
- Update an existing item of the DynamoDB table with new data. This item's partition key must match the specified hash key. If you specified a range key, the range key must match the item's sort key. -
DELETE
- Delete an existing item of the DynamoDB table. This item's partition key must match the specified hash key. If you specified a range key, the range key must match the item's sort key.
If you don't specify this parameter, AWS IoT Events triggers the INSERT
operation.
- Payload: Payload
- PayloadField: string: The name of the DynamoDB column that receives the action payload.
If you don't specify this parameter, the name of the DynamoDB column is payload
.
-
RangeKeyField: string: The name of the range key (also called the sort key).
-
RangeKeyType: string: The data type for the range key (also called the sort key), You can specify the following values:
-
STRING
- The range key is a string. -
NUMBER
- The range key is number.
If you don't specify rangeKeyField
, the default value is STRING
.
- RangeKeyValue: string: The value of the range key (also called the sort key).
- TableName: string (Required): The name of the DynamoDB table.
- ContentExpression: string (Required): The content of the payload. You can use a string expression that includes quoted strings (
'<string>'
), variables ($variable.<variable-name>
), input values ($input.<input-name>.<path-to-datum>
), string concatenations, and quoted strings that contain${}
as the content. The recommended maximum size of a content expression is 1 KB. - Type: string (Required): The value of the payload type can be either
STRING
orJSON
.
- Payload: Payload
- TableName: string (Required): The name of the DynamoDB table.
- DeliveryStreamName: string (Required): The name of the Kinesis Data Firehose delivery stream where the data is written.
- Payload: Payload
- Separator: string: A character separator that is used to separate records written to the Kinesis Data Firehose delivery stream. Valid values are: '\n' (newline), '\t' (tab), '\r\n' (Windows newline), ',' (comma).
- InputName: string (Required): The name of the AWS IoT Events input where the data is sent.
- Payload: Payload
- AssetId: string: The ID of the asset that has the specified property. You can specify an expression.
- EntryId: string: A unique identifier for this entry. You can use the entry ID to track which data entry causes an error in case of failure. The default is a new unique identifier. You can also specify an expression.
- PropertyAlias: string: The alias of the asset property. You can also specify an expression.
- PropertyId: string: The ID of the asset property. You can specify an expression.
- PropertyValue: AssetPropertyValue (Required)
- Quality: string: The quality of the asset property value. The value must be
GOOD
,BAD
, orUNCERTAIN
. You can also specify an expression. - Timestamp: AssetPropertyTimestamp
- Value: AssetPropertyVariant (Required)
- OffsetInNanos: string: The timestamp, in seconds, in the Unix epoch format. The valid range is between
1-31556889864403199
. You can also specify an expression. - TimeInSeconds: string (Required): The nanosecond offset converted from
timeInSeconds
. The valid range is between0-999999999
. You can also specify an expression.
- BooleanValue: string: The asset property value is a Boolean value that must be
TRUE
orFALSE
. You can also specify an expression. If you use an expression, the evaluated result should be a Boolean value. - DoubleValue: string: The asset property value is a double. You can also specify an expression. If you use an expression, the evaluated result should be a double.
- IntegerValue: string: The asset property value is an integer. You can also specify an expression. If you use an expression, the evaluated result should be an integer.
- StringValue: string: The asset property value is a string. You can also specify an expression. If you use an expression, the evaluated result should be a string.
- MqttTopic: string (Required): The MQTT topic of the message. You can use a string expression that includes variables (
$variable.<variable-name>
) and input values ($input.<input-name>.<path-to-datum>
) as the topic string. - Payload: Payload
- FunctionArn: string (Required): The ARN of the Lambda function that is executed.
- Payload: Payload
- TimerName: string (Required): The name of the timer to reset.
- DurationExpression: string: The duration of the timer, in seconds. You can use a string expression that includes numbers, variables (
$variable.<variable-name>
), and input values ($input.<input-name>.<path-to-datum>
) as the duration. The range of the duration is1-31622400
seconds. To ensure accuracy, the minimum duration is60
seconds. The evaluated result of the duration is rounded down to the nearest whole number. - Seconds: int: The number of seconds until the timer expires. The minimum value is
60
seconds to ensure accuracy. The maximum value is31622400
seconds. - TimerName: string (Required): The name of the timer.
- Value: string (Required): The new value of the variable.
- VariableName: string (Required): The name of the variable.
- Payload: Payload
- TargetArn: string (Required): The ARN of the Amazon SNS target where the message is sent.
- Payload: Payload
- QueueUrl: string (Required): The URL of the SQS queue where the data is written.
- UseBase64: bool: Set this to
TRUE
if you want the data to be base-64 encoded before it is written to the queue. Otherwise, set this toFALSE
.
- Events: Event[]: Specifies the
actions
that are performed when the state is exited and thecondition
isTRUE
.
- Events: Event[]: Specifies the
actions
performed when thecondition
evaluates toTRUE
. - TransitionEvents: TransitionEvent[]: Specifies the
actions
performed, and the nextstate
entered, when acondition
evaluates toTRUE
.
- Actions: Action[]: The actions to be performed.
- Condition: string (Required): A Boolean expression that when
TRUE
causes theactions
to be performed and thenextState
to be entered. - EventName: string (Required): The name of the event.
- NextState: string (Required): The next state to enter.
- Key: string (Required): Key of the Tag.
- Value: string (Required): Value of the Tag.
- InputDefinition: InputDefinition (Required)
- InputDescription: string: A brief description of the input.
- InputName: string (Identifier): The name of the input.
- Tags: Tag[]: An array of key-value pairs to apply to this resource.
For more information, see Tag.
- Attributes: Attribute[] (Required): The attributes from the JSON payload that are made available by the input. Inputs are derived from messages sent to the AWS IoT Events system using
BatchPutMessage
. Each such message contains a JSON payload, and those attributes (and their paired values) specified here are available for use in thecondition
expressions used by detectors that monitor this input.
- JsonPath: string (Required): An expression that specifies an attribute-value pair in a JSON structure. Use this to specify an attribute from the JSON payload that is made available by the input. Inputs are derived from messages sent to AWS IoT Events (
BatchPutMessage
). Each such message contains a JSON payload. The attribute (and its paired value) specified here are available for use in thecondition
expressions used by detectors.
Syntax: <field-name>.<field-name>...
- Key: string (Required): Key of the Tag.
- Value: string (Required): Value of the Tag.