Type object
Schema URL https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-iotevents-detectormodel.json
Parent schema serverless-framework-configuration
Type: object

The AWS::IoTEvents::DetectorModel resource creates a detector model. You create a detector model (a model of your equipment or process) using states. For each state, you define conditional (Boolean) logic that evaluates the incoming inputs to detect significant events. When an event is detected, it can change the state or trigger custom-built or predefined actions using other AWS services. You can define additional events that trigger actions when entering or exiting a state and, optionally, when a condition is met. For more information, see How to Use AWS IoT Events in the AWS IoT Events Developer Guide.. Source:- https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git

Properties

DetectorModelDefinition object required

Information that defines how a detector operates.

2 nested properties
InitialStateName string | Aws_CF_FunctionString required

The state that is entered at the creation of each detector (instance).

States State[] required

Information about the states of the detector.

minItems=1
RoleArn string | Aws_CF_FunctionString required

The ARN of the role that grants permission to AWS IoT Events to perform its operations.

DetectorModelDescription string | Aws_CF_FunctionString

A brief description of the detector model.

DetectorModelName string | Aws_CF_FunctionString

The name of the detector model.

EvaluationMethod string | Aws_CF_FunctionString

Information about the order in which events are evaluated and how actions are executed.

Key string | Aws_CF_FunctionString

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.

Tags Tag[]

An array of key-value pairs to apply to this resource.

For more information, see Tag.

Definitions

DetectorModelDefinition object

Information that defines how a detector operates.

InitialStateName string | Aws_CF_FunctionString required

The state that is entered at the creation of each detector (instance).

States State[] required

Information about the states of the detector.

minItems=1
State object

Information that defines a state of a detector.

StateName string | Aws_CF_FunctionString required

The name of the state.

OnEnter object

When entering this state, perform these actions if the condition is TRUE.

1 nested properties
Events Event[]

Specifies the actions that are performed when the state is entered and the condition is TRUE.

OnExit object

When exiting this state, perform these actions if the specified condition is TRUE.

1 nested properties
Events Event[]

Specifies the actions that are performed when the state is exited and the condition is TRUE.

OnInput object

When an input is received and the condition is TRUE, perform the specified actions.

2 nested properties
Events Event[]

Specifies the actions performed when the condition evaluates to TRUE.

TransitionEvents TransitionEvent[]

Specifies the actions performed, and the next state entered, when a condition evaluates to TRUE.

OnEnter object

When entering this state, perform these actions if the condition is TRUE.

Events Event[]

Specifies the actions that are performed when the state is entered and the condition is TRUE.

OnExit object

When exiting this state, perform these actions if the specified condition is TRUE.

Events Event[]

Specifies the actions that are performed when the state is exited and the condition is TRUE.

OnInput object

When an input is received and the condition is TRUE, perform the specified actions.

Events Event[]

Specifies the actions performed when the condition evaluates to TRUE.

TransitionEvents TransitionEvent[]

Specifies the actions performed, and the next state entered, when a condition evaluates to TRUE.

Event object

Specifies the actions to be performed when the condition evaluates to TRUE.

EventName string | Aws_CF_FunctionString required

The name of the event.

Actions Action[]

The actions to be performed.

Condition string | Aws_CF_FunctionString

The Boolean expression that, when TRUE, causes the actions to be performed. If not present, the actions are performed (=TRUE). If the expression result is not a Boolean value, the actions are not performed (=FALSE).

TransitionEvent object

Specifies the actions performed and the next state entered when a condition evaluates to TRUE.

Condition string | Aws_CF_FunctionString required

A Boolean expression that when TRUE causes the actions to be performed and the nextState to be entered.

EventName string | Aws_CF_FunctionString required

The name of the event.

NextState string | Aws_CF_FunctionString required

The next state to enter.

Actions Action[]

The actions to be performed.

Action object

The actions to be performed.

ClearTimer object

Information needed to clear the timer.

1 nested properties
TimerName string | Aws_CF_FunctionString required
DynamoDB object

Writes to the DynamoDB table that you created. The default action payload contains all attribute-value pairs that have the information about the detector model instance and the event that triggered the action. You can also customize the payload. One column of the DynamoDB table receives all attribute-value pairs in the payload that you specify. For more information, see Actions in AWS IoT Events Developer Guide.

10 nested properties
HashKeyField string | Aws_CF_FunctionString required

The name of the hash key (also called the partition key).

HashKeyValue string | Aws_CF_FunctionString required

The value of the hash key (also called the partition key).

TableName string | Aws_CF_FunctionString required

The name of the DynamoDB table.

HashKeyType string | Aws_CF_FunctionString

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.

Operation string | Aws_CF_FunctionString

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 object

Information needed to configure the payload.

By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use contentExpression.

2 nested properties
ContentExpression string | Aws_CF_FunctionString 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 | Aws_CF_FunctionString required

The value of the payload type can be either STRING or JSON.

PayloadField string | Aws_CF_FunctionString

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 | Aws_CF_FunctionString

The name of the range key (also called the sort key).

RangeKeyType string | Aws_CF_FunctionString

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 | Aws_CF_FunctionString

The value of the range key (also called the sort key).

DynamoDBv2 object

Defines an action to write to the Amazon DynamoDB table that you created. The default action payload contains all attribute-value pairs that have the information about the detector model instance and the event that triggered the action. You can also customize the payload. A separate column of the DynamoDB table receives one attribute-value pair in the payload that you specify.

You can use expressions for parameters that are strings. For more information, see Expressions in the AWS IoT Events Developer Guide.

2 nested properties
TableName string | Aws_CF_FunctionString required

The name of the DynamoDB table.

Payload object

Information needed to configure the payload.

By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use contentExpression.

2 nested properties
ContentExpression string | Aws_CF_FunctionString 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 | Aws_CF_FunctionString required

The value of the payload type can be either STRING or JSON.

Firehose object

Sends information about the detector model instance and the event that triggered the action to an Amazon Kinesis Data Firehose delivery stream.

3 nested properties
DeliveryStreamName string | Aws_CF_FunctionString required

The name of the Kinesis Data Firehose delivery stream where the data is written.

Payload object

Information needed to configure the payload.

By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use contentExpression.

2 nested properties
ContentExpression string | Aws_CF_FunctionString 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 | Aws_CF_FunctionString required

The value of the payload type can be either STRING or JSON.

Separator string | Aws_CF_FunctionString

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).

IotEvents object

Sends an AWS IoT Events input, passing in information about the detector model instance and the event that triggered the action.

2 nested properties
InputName string | Aws_CF_FunctionString required

The name of the AWS IoT Events input where the data is sent.

Payload object

Information needed to configure the payload.

By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use contentExpression.

2 nested properties
ContentExpression string | Aws_CF_FunctionString 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 | Aws_CF_FunctionString required

The value of the payload type can be either STRING or JSON.

IotSiteWise object

Sends information about the detector model instance and the event that triggered the action to a specified asset property in AWS IoT SiteWise.

5 nested properties
PropertyValue object required

A structure that contains value information. For more information, see AssetPropertyValue in the AWS IoT SiteWise API Reference.

3 nested properties
Value object required

A structure that contains an asset property value. For more information, see Variant in the AWS IoT SiteWise API Reference.

Quality string | Aws_CF_FunctionString

The quality of the asset property value. The value must be GOOD, BAD, or UNCERTAIN. You can also specify an expression.

Timestamp object

A structure that contains timestamp information. For more information, see TimeInNanos in the AWS IoT SiteWise API Reference.

AssetId string | Aws_CF_FunctionString

The ID of the asset that has the specified property. You can specify an expression.

EntryId string | Aws_CF_FunctionString

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 | Aws_CF_FunctionString

The alias of the asset property. You can also specify an expression.

PropertyId string | Aws_CF_FunctionString

The ID of the asset property. You can specify an expression.

IotTopicPublish object

Information required to publish the MQTT message through the AWS IoT message broker.

2 nested properties
MqttTopic string | Aws_CF_FunctionString 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 object

Information needed to configure the payload.

By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use contentExpression.

2 nested properties
ContentExpression string | Aws_CF_FunctionString 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 | Aws_CF_FunctionString required

The value of the payload type can be either STRING or JSON.

Lambda object
2 nested properties
FunctionArn string | Aws_CF_FunctionString required

The ARN of the Lambda function that is executed.

Payload object

Information needed to configure the payload.

By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use contentExpression.

2 nested properties
ContentExpression string | Aws_CF_FunctionString 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 | Aws_CF_FunctionString required

The value of the payload type can be either STRING or JSON.

ResetTimer object

Information required to reset the timer. The timer is reset to the previously evaluated result of the duration. The duration expression isn't reevaluated when you reset the timer.

1 nested properties
TimerName string | Aws_CF_FunctionString required

The name of the timer to reset.

SetTimer object

Information needed to set the timer.

3 nested properties
TimerName string | Aws_CF_FunctionString required

The name of the timer.

DurationExpression string | Aws_CF_FunctionString

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 is 1-31622400 seconds. To ensure accuracy, the minimum duration is 60 seconds. The evaluated result of the duration is rounded down to the nearest whole number.

Seconds integer

The number of seconds until the timer expires. The minimum value is 60 seconds to ensure accuracy. The maximum value is 31622400 seconds.

min=60max=31622400
SetVariable object

Information about the variable and its new value.

2 nested properties
Value string | Aws_CF_FunctionString required

The new value of the variable.

VariableName string | Aws_CF_FunctionString required

The name of the variable.

Sns object

Information required to publish the Amazon SNS message.

2 nested properties
TargetArn string | Aws_CF_FunctionString required

The ARN of the Amazon SNS target where the message is sent.

Payload object

Information needed to configure the payload.

By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use contentExpression.

2 nested properties
ContentExpression string | Aws_CF_FunctionString 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 | Aws_CF_FunctionString required

The value of the payload type can be either STRING or JSON.

Sqs object
3 nested properties
QueueUrl string | Aws_CF_FunctionString required

The URL of the SQS queue where the data is written.

Payload object

Information needed to configure the payload.

By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use contentExpression.

2 nested properties
ContentExpression string | Aws_CF_FunctionString 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 | Aws_CF_FunctionString required

The value of the payload type can be either STRING or JSON.

UseBase64 boolean

Set this to TRUE if you want the data to be base-64 encoded before it is written to the queue. Otherwise, set this to FALSE.

ClearTimer object

Information needed to clear the timer.

TimerName string | Aws_CF_FunctionString required
DynamoDB object

Writes to the DynamoDB table that you created. The default action payload contains all attribute-value pairs that have the information about the detector model instance and the event that triggered the action. You can also customize the payload. One column of the DynamoDB table receives all attribute-value pairs in the payload that you specify. For more information, see Actions in AWS IoT Events Developer Guide.

HashKeyField string | Aws_CF_FunctionString required

The name of the hash key (also called the partition key).

HashKeyValue string | Aws_CF_FunctionString required

The value of the hash key (also called the partition key).

TableName string | Aws_CF_FunctionString required

The name of the DynamoDB table.

HashKeyType string | Aws_CF_FunctionString

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.

Operation string | Aws_CF_FunctionString

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 object

Information needed to configure the payload.

By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use contentExpression.

2 nested properties
ContentExpression string | Aws_CF_FunctionString 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 | Aws_CF_FunctionString required

The value of the payload type can be either STRING or JSON.

PayloadField string | Aws_CF_FunctionString

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 | Aws_CF_FunctionString

The name of the range key (also called the sort key).

RangeKeyType string | Aws_CF_FunctionString

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 | Aws_CF_FunctionString

The value of the range key (also called the sort key).

DynamoDBv2 object

Defines an action to write to the Amazon DynamoDB table that you created. The default action payload contains all attribute-value pairs that have the information about the detector model instance and the event that triggered the action. You can also customize the payload. A separate column of the DynamoDB table receives one attribute-value pair in the payload that you specify.

You can use expressions for parameters that are strings. For more information, see Expressions in the AWS IoT Events Developer Guide.

TableName string | Aws_CF_FunctionString required

The name of the DynamoDB table.

Payload object

Information needed to configure the payload.

By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use contentExpression.

2 nested properties
ContentExpression string | Aws_CF_FunctionString 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 | Aws_CF_FunctionString required

The value of the payload type can be either STRING or JSON.

Firehose object

Sends information about the detector model instance and the event that triggered the action to an Amazon Kinesis Data Firehose delivery stream.

DeliveryStreamName string | Aws_CF_FunctionString required

The name of the Kinesis Data Firehose delivery stream where the data is written.

Payload object

Information needed to configure the payload.

By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use contentExpression.

2 nested properties
ContentExpression string | Aws_CF_FunctionString 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 | Aws_CF_FunctionString required

The value of the payload type can be either STRING or JSON.

Separator string | Aws_CF_FunctionString

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).

IotEvents object

Sends an AWS IoT Events input, passing in information about the detector model instance and the event that triggered the action.

InputName string | Aws_CF_FunctionString required

The name of the AWS IoT Events input where the data is sent.

Payload object

Information needed to configure the payload.

By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use contentExpression.

2 nested properties
ContentExpression string | Aws_CF_FunctionString 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 | Aws_CF_FunctionString required

The value of the payload type can be either STRING or JSON.

IotSiteWise object

Sends information about the detector model instance and the event that triggered the action to a specified asset property in AWS IoT SiteWise.

PropertyValue object required

A structure that contains value information. For more information, see AssetPropertyValue in the AWS IoT SiteWise API Reference.

3 nested properties
Value object required

A structure that contains an asset property value. For more information, see Variant in the AWS IoT SiteWise API Reference.

4 nested properties
BooleanValue string | Aws_CF_FunctionString

The asset property value is a Boolean value that must be TRUE or FALSE. You can also specify an expression. If you use an expression, the evaluated result should be a Boolean value.

DoubleValue string | Aws_CF_FunctionString

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 | Aws_CF_FunctionString

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 | Aws_CF_FunctionString

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.

Quality string | Aws_CF_FunctionString

The quality of the asset property value. The value must be GOOD, BAD, or UNCERTAIN. You can also specify an expression.

Timestamp object

A structure that contains timestamp information. For more information, see TimeInNanos in the AWS IoT SiteWise API Reference.

2 nested properties
TimeInSeconds string | Aws_CF_FunctionString required

The nanosecond offset converted from timeInSeconds. The valid range is between 0-999999999. You can also specify an expression.

OffsetInNanos string | Aws_CF_FunctionString

The timestamp, in seconds, in the Unix epoch format. The valid range is between 1-31556889864403199. You can also specify an expression.

AssetId string | Aws_CF_FunctionString

The ID of the asset that has the specified property. You can specify an expression.

EntryId string | Aws_CF_FunctionString

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 | Aws_CF_FunctionString

The alias of the asset property. You can also specify an expression.

PropertyId string | Aws_CF_FunctionString

The ID of the asset property. You can specify an expression.

IotTopicPublish object

Information required to publish the MQTT message through the AWS IoT message broker.

MqttTopic string | Aws_CF_FunctionString 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 object

Information needed to configure the payload.

By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use contentExpression.

2 nested properties
ContentExpression string | Aws_CF_FunctionString 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 | Aws_CF_FunctionString required

The value of the payload type can be either STRING or JSON.

Lambda object
FunctionArn string | Aws_CF_FunctionString required

The ARN of the Lambda function that is executed.

Payload object

Information needed to configure the payload.

By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use contentExpression.

2 nested properties
ContentExpression string | Aws_CF_FunctionString 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 | Aws_CF_FunctionString required

The value of the payload type can be either STRING or JSON.

ResetTimer object

Information required to reset the timer. The timer is reset to the previously evaluated result of the duration. The duration expression isn't reevaluated when you reset the timer.

TimerName string | Aws_CF_FunctionString required

The name of the timer to reset.

SetTimer object

Information needed to set the timer.

TimerName string | Aws_CF_FunctionString required

The name of the timer.

DurationExpression string | Aws_CF_FunctionString

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 is 1-31622400 seconds. To ensure accuracy, the minimum duration is 60 seconds. The evaluated result of the duration is rounded down to the nearest whole number.

Seconds integer

The number of seconds until the timer expires. The minimum value is 60 seconds to ensure accuracy. The maximum value is 31622400 seconds.

min=60max=31622400
SetVariable object

Information about the variable and its new value.

Value string | Aws_CF_FunctionString required

The new value of the variable.

VariableName string | Aws_CF_FunctionString required

The name of the variable.

Sns object

Information required to publish the Amazon SNS message.

TargetArn string | Aws_CF_FunctionString required

The ARN of the Amazon SNS target where the message is sent.

Payload object

Information needed to configure the payload.

By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use contentExpression.

2 nested properties
ContentExpression string | Aws_CF_FunctionString 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 | Aws_CF_FunctionString required

The value of the payload type can be either STRING or JSON.

Sqs object
QueueUrl string | Aws_CF_FunctionString required

The URL of the SQS queue where the data is written.

Payload object

Information needed to configure the payload.

By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use contentExpression.

2 nested properties
ContentExpression string | Aws_CF_FunctionString 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 | Aws_CF_FunctionString required

The value of the payload type can be either STRING or JSON.

UseBase64 boolean

Set this to TRUE if you want the data to be base-64 encoded before it is written to the queue. Otherwise, set this to FALSE.

AssetPropertyValue object

A structure that contains value information. For more information, see AssetPropertyValue in the AWS IoT SiteWise API Reference.

Value object required

A structure that contains an asset property value. For more information, see Variant in the AWS IoT SiteWise API Reference.

4 nested properties
BooleanValue string | Aws_CF_FunctionString

The asset property value is a Boolean value that must be TRUE or FALSE. You can also specify an expression. If you use an expression, the evaluated result should be a Boolean value.

DoubleValue string | Aws_CF_FunctionString

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 | Aws_CF_FunctionString

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 | Aws_CF_FunctionString

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.

Quality string | Aws_CF_FunctionString

The quality of the asset property value. The value must be GOOD, BAD, or UNCERTAIN. You can also specify an expression.

Timestamp object

A structure that contains timestamp information. For more information, see TimeInNanos in the AWS IoT SiteWise API Reference.

2 nested properties
TimeInSeconds string | Aws_CF_FunctionString required

The nanosecond offset converted from timeInSeconds. The valid range is between 0-999999999. You can also specify an expression.

OffsetInNanos string | Aws_CF_FunctionString

The timestamp, in seconds, in the Unix epoch format. The valid range is between 1-31556889864403199. You can also specify an expression.

AssetPropertyTimestamp object

A structure that contains timestamp information. For more information, see TimeInNanos in the AWS IoT SiteWise API Reference.

TimeInSeconds string | Aws_CF_FunctionString required

The nanosecond offset converted from timeInSeconds. The valid range is between 0-999999999. You can also specify an expression.

OffsetInNanos string | Aws_CF_FunctionString

The timestamp, in seconds, in the Unix epoch format. The valid range is between 1-31556889864403199. You can also specify an expression.

AssetPropertyVariant object

A structure that contains an asset property value. For more information, see Variant in the AWS IoT SiteWise API Reference.

BooleanValue string | Aws_CF_FunctionString

The asset property value is a Boolean value that must be TRUE or FALSE. You can also specify an expression. If you use an expression, the evaluated result should be a Boolean value.

DoubleValue string | Aws_CF_FunctionString

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 | Aws_CF_FunctionString

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 | Aws_CF_FunctionString

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.

Payload object

Information needed to configure the payload.

By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use contentExpression.

ContentExpression string | Aws_CF_FunctionString 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 | Aws_CF_FunctionString required

The value of the payload type can be either STRING or JSON.

Tag object

Tags to be applied to Input.

Key string | Aws_CF_FunctionString required

Key of the Tag.

Value string | Aws_CF_FunctionString required

Value of the Tag.