get-topic-rule
Description
Gets information about the rule.
Requires permission to access the GetTopicRule action.
See also: AWS API Documentation
Synopsis
get-topic-rule
--rule-name <value>
[--cli-input-json | --cli-input-yaml]
[--generate-cli-skeleton <value>]
[--debug]
[--endpoint-url <value>]
[--no-verify-ssl]
[--no-paginate]
[--output <value>]
[--query <value>]
[--profile <value>]
[--region <value>]
[--version <value>]
[--color <value>]
[--no-sign-request]
[--ca-bundle <value>]
[--cli-read-timeout <value>]
[--cli-connect-timeout <value>]
[--cli-binary-format <value>]
[--no-cli-pager]
[--cli-auto-prompt]
[--no-cli-auto-prompt]
Options
--rule-name (string)
--cli-input-json | --cli-input-yaml (string) Reads arguments from the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton. If other arguments are provided on the command line, those values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally. This may not be specified along with --cli-input-yaml.
--generate-cli-skeleton (string) Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value input, prints a sample input JSON that can be used as an argument for --cli-input-json. Similarly, if provided yaml-input it will print a sample input YAML that can be used with --cli-input-yaml. If provided with the value output, it validates the command inputs and returns a sample output JSON for that command. The generated JSON skeleton is not stable between versions of the AWS CLI and there are no backwards compatibility guarantees in the JSON skeleton generated.
Global Options
--debug (boolean)
Turn on debug logging.
--endpoint-url (string)
Override command’s default URL with the given URL.
--no-verify-ssl (boolean)
By default, the AWS CLI uses SSL when communicating with AWS services. For each SSL connection, the AWS CLI will verify SSL certificates. This option overrides the default behavior of verifying SSL certificates.
--no-paginate (boolean)
Disable automatic pagination. If automatic pagination is disabled, the AWS CLI will only make one call, for the first page of results.
--output (string)
The formatting style for command output.
- json
- text
- table
- yaml
- yaml-stream
--query (string)
A JMESPath query to use in filtering the response data.
--profile (string)
Use a specific profile from your credential file.
--region (string)
The region to use. Overrides config/env settings.
--version (string)
Display the version of this tool.
--color (string)
Turn on/off color output.
- on
- off
- auto
--no-sign-request (boolean)
Do not sign requests. Credentials will not be loaded if this argument is provided.
--ca-bundle (string)
The CA certificate bundle to use when verifying SSL certificates. Overrides config/env settings.
--cli-read-timeout (int)
The maximum socket read time in seconds. If the value is set to 0, the socket read will be blocking and not timeout. The default value is 60 seconds.
--cli-connect-timeout (int)
The maximum socket connect time in seconds. If the value is set to 0, the socket connect will be blocking and not timeout. The default value is 60 seconds.
--cli-binary-format (string)
The formatting style to be used for binary blobs. The default format is base64. The base64 format expects binary blobs to be provided as a base64 encoded string. The raw-in-base64-out format preserves compatibility with AWS CLI V1 behavior and binary values must be passed literally. When providing contents from a file that map to a binary blob fileb:// will always be treated as binary and use the file contents directly regardless of the cli-binary-format setting. When using file:// the file contents will need to properly formatted for the configured cli-binary-format.
- base64
- raw-in-base64-out
--no-cli-pager (boolean)
Disable cli pager for output.
--cli-auto-prompt (boolean)
Automatically prompt for CLI input parameters.
--no-cli-auto-prompt (boolean)
Disable automatically prompt for CLI input parameters.
Examples
Note
To use the following examples, you must have the AWS CLI installed and configured. See the Getting started guide in the AWS CLI User Guide for more information.
Unless otherwise stated, all examples have unix-like quotation rules. These examples will need to be adapted to your terminal’s quoting rules. See Using quotation marks with strings in the AWS CLI User Guide .
To get information about a rule
The following get-topic-rule example gets information about the specified rule.
aws iot get-topic-rule \
--rule-name MyRPiLowMoistureAlertRule
Output:
{
"ruleArn": "arn:aws:iot:us-west-2:123456789012:rule/MyRPiLowMoistureAlertRule",
"rule": {
"ruleName": "MyRPiLowMoistureAlertRule",
"sql": "SELECT * FROM '$aws/things/MyRPi/shadow/update/accepted' WHERE state.reported.moisture = 'low'\n ",
"description": "Sends an alert whenever soil moisture level readings are too low.",
"createdAt": 1558624363.0,
"actions": [
{
"sns": {
"targetArn": "arn:aws:sns:us-west-2:123456789012:MyRPiLowMoistureTopic",
"roleArn": "arn:aws:iam::123456789012:role/service-role/MyRPiLowMoistureTopicRole",
"messageFormat": "RAW"
}
}
],
"ruleDisabled": false,
"awsIotSqlVersion": "2016-03-23"
}
}
For more information, see Viewing Your Rules in the AWS IoT Developers Guide.
Output
ruleArn -> (string)
rule -> (structure)
The rule.
ruleName -> (string)
sql -> (string)
description -> (string)
createdAt -> (timestamp)
actions -> (list)
The actions associated with the rule.
(structure)
Describes the actions associated with a rule.
dynamoDB -> (structure)
Write to a DynamoDB table.
tableName -> (string)
roleArn -> (string)
operation -> (string)
${operation} , but the substitution must result in one of the following: INSERT , UPDATE , or DELETE .hashKeyField -> (string)
hashKeyValue -> (string)
hashKeyType -> (string)
rangeKeyField -> (string)
rangeKeyValue -> (string)
rangeKeyType -> (string)
payloadField -> (string)
dynamoDBv2 -> (structure)
Write to a DynamoDB table. This is a new version of the DynamoDB action. It allows you to write each attribute in an MQTT message payload into a separate DynamoDB column.
roleArn -> (string)
putItem -> (structure)
Specifies the DynamoDB table to which the message data will be written. For example:
{ "dynamoDBv2": { "roleArn": "aws:iam:12341251:my-role" "putItem": { "tableName": "my-table" } } }Each attribute in the message payload will be written to a separate column in the DynamoDB database.
tableName -> (string)
lambda -> (structure)
Invoke a Lambda function.
functionArn -> (string)
sns -> (structure)
Publish to an Amazon SNS topic.
targetArn -> (string)
roleArn -> (string)
messageFormat -> (string)
sqs -> (structure)
Publish to an Amazon SQS queue.
roleArn -> (string)
queueUrl -> (string)
useBase64 -> (boolean)
kinesis -> (structure)
Write data to an Amazon Kinesis stream.
roleArn -> (string)
streamName -> (string)
partitionKey -> (string)
republish -> (structure)
Publish to another MQTT topic.
roleArn -> (string)
topic -> (string)
qos -> (integer)
headers -> (structure)
MQTT Version 5.0 headers information. For more information, see MQTT from the Amazon Web Services IoT Core Developer Guide.
payloadFormatIndicator -> (string)
An Enum string value that indicates whether the payload is formatted as UTF-8.
Valid values are UNSPECIFIED_BYTES and UTF8_DATA .
For more information, see Payload Format Indicator from the MQTT Version 5.0 specification.
Supports substitution templates .
contentType -> (string)
A UTF-8 encoded string that describes the content of the publishing message.
For more information, see Content Type from the MQTT Version 5.0 specification.
Supports substitution templates .
responseTopic -> (string)
A UTF-8 encoded string that’s used as the topic name for a response message. The response topic is used to describe the topic which the receiver should publish to as part of the request-response flow. The topic must not contain wildcard characters.
For more information, see Response Topic from the MQTT Version 5.0 specification.
Supports substitution templates .
correlationData -> (string)
The base64-encoded binary data used by the sender of the request message to identify which request the response message is for when it’s received.
For more information, see Correlation Data from the MQTT Version 5.0 specification.
Note
This binary data must be based64-encoded.Supports substitution templates .
messageExpiry -> (string)
A user-defined integer value that will persist a message at the message broker for a specified amount of time to ensure that the message will expire if it’s no longer relevant to the subscriber. The value of messageExpiry represents the number of seconds before it expires. For more information about the limits of messageExpiry , see Amazon Web Services IoT Core message broker and protocol limits and quotas from the Amazon Web Services Reference Guide.
Supports substitution templates .
userProperties -> (list)
An array of key-value pairs that you define in the MQTT5 header.
(structure)
A key-value pair that you define in the header. Both the key and the value are either literal strings or valid substitution templates .
key -> (string)
UserProperty .value -> (string)
UserProperty .s3 -> (structure)
Write to an Amazon S3 bucket.
roleArn -> (string)
bucketName -> (string)
key -> (string)
cannedAcl -> (string)
firehose -> (structure)
Write to an Amazon Kinesis Firehose stream.
roleArn -> (string)
deliveryStreamName -> (string)
separator -> (string)
batchMode -> (boolean)
Whether to deliver the Kinesis Data Firehose stream as a batch by using ` PutRecordBatch https://docs.aws.amazon.com/firehose/latest/APIReference/API_PutRecordBatch.html`__ . The default value is false .
When batchMode is true and the rule’s SQL statement evaluates to an Array, each Array element forms one record in the ` PutRecordBatch https://docs.aws.amazon.com/firehose/latest/APIReference/API_PutRecordBatch.html`__ request. The resulting array can’t have more than 500 records.
cloudwatchMetric -> (structure)
Capture a CloudWatch metric.
roleArn -> (string)
metricNamespace -> (string)
metricName -> (string)
metricValue -> (string)
metricUnit -> (string)
metricTimestamp -> (string)
cloudwatchAlarm -> (structure)
Change the state of a CloudWatch alarm.
roleArn -> (string)
alarmName -> (string)
stateReason -> (string)
stateValue -> (string)
cloudwatchLogs -> (structure)
Send data to CloudWatch Logs.
roleArn -> (string)
logGroupName -> (string)
batchMode -> (boolean)
true or false (default) .elasticsearch -> (structure)
Write data to an Amazon OpenSearch Service domain.
Note
TheElasticsearch action can only be used by existing rule actions. To create a new rule action or to update an existing rule action, use the OpenSearch rule action instead. For more information, see OpenSearchAction .roleArn -> (string)
endpoint -> (string)
index -> (string)
type -> (string)
id -> (string)
salesforce -> (structure)
Send a message to a Salesforce IoT Cloud Input Stream.
token -> (string)
url -> (string)
iotAnalytics -> (structure)
Sends message data to an IoT Analytics channel.
channelArn -> (string)
channelName -> (string)
batchMode -> (boolean)
Whether to process the action as a batch. The default value is false .
When batchMode is true and the rule SQL statement evaluates to an Array, each Array element is delivered as a separate message when passed by ` BatchPutMessage https://docs.aws.amazon.com/iotanalytics/latest/APIReference/API_BatchPutMessage.html`__ to the IoT Analytics channel. The resulting array can’t have more than 100 messages.
roleArn -> (string)
iotEvents -> (structure)
Sends an input to an IoT Events detector.
inputName -> (string)
messageId -> (string)
The ID of the message. The default messageId is a new UUID value.
When batchMode is true , you can’t specify a messageId –a new UUID value will be assigned.
Assign a value to this property to ensure that only one input (message) with a given messageId will be processed by an IoT Events detector.
batchMode -> (boolean)
Whether to process the event actions as a batch. The default value is false .
When batchMode is true , you can’t specify a messageId .
When batchMode is true and the rule SQL statement evaluates to an Array, each Array element is treated as a separate message when it’s sent to IoT Events by calling ` BatchPutMessage https://docs.aws.amazon.com/iotevents/latest/apireference/API_iotevents-data_BatchPutMessage.html`__ . The resulting array can’t have more than 10 messages.
roleArn -> (string)
iotSiteWise -> (structure)
Sends data from the MQTT message that triggered the rule to IoT SiteWise asset properties.
putAssetPropertyValueEntries -> (list)
A list of asset property value entries.
(structure)
An asset property value entry containing the following information.
entryId -> (string)
assetId -> (string)
propertyAlias or both an aliasId and a propertyId . Accepts substitution templates.propertyId -> (string)
propertyAlias or both an aliasId and a propertyId . Accepts substitution templates.propertyAlias -> (string)
propertyAlias or both an aliasId and a propertyId . Accepts substitution templates.propertyValues -> (list)
A list of property values to insert that each contain timestamp, quality, and value (TQV) information.
(structure)
An asset property value entry containing the following information.
value -> (structure)
The value of the asset property.
stringValue -> (string)
integerValue -> (string)
doubleValue -> (string)
booleanValue -> (string)
true or false ) of the value entry. Accepts substitution templates.timestamp -> (structure)
The asset property value timestamp.
timeInSeconds -> (string)
offsetInNanos -> (string)
quality -> (string)
GOOD , BAD , or UNCERTAIN .roleArn -> (string)
"Action": "iotsitewise:BatchPutAssetPropertyValue" ). The trust policy can restrict access to specific asset hierarchy paths.stepFunctions -> (structure)
Starts execution of a Step Functions state machine.
executionNamePrefix -> (string)
stateMachineName -> (string)
roleArn -> (string)
timestream -> (structure)
The Timestream rule action writes attributes (measures) from an MQTT message into an Amazon Timestream table. For more information, see the Timestream topic rule action documentation.
roleArn -> (string)
databaseName -> (string)
tableName -> (string)
dimensions -> (list)
Metadata attributes of the time series that are written in each measure record.
(structure)
Metadata attributes of the time series that are written in each measure record.
name -> (string)
The metadata dimension name. This is the name of the column in the Amazon Timestream database table record.
Dimensions cannot be named: measure_name , measure_value , or time . These names are reserved. Dimension names cannot start with ts_ or measure_value and they cannot contain the colon (: ) character.
value -> (string)
timestamp -> (structure)
Specifies an application-defined value to replace the default value assigned to the Timestream record’s timestamp in the time column.
You can use this property to specify the value and the precision of the Timestream record’s timestamp. You can specify a value from the message payload or a value computed by a substitution template.
If omitted, the topic rule action assigns the timestamp, in milliseconds, at the time it processed the rule.
value -> (string)
unit -> (string)
The precision of the timestamp value that results from the expression described in value .
Valid values: SECONDS | MILLISECONDS | MICROSECONDS | NANOSECONDS . The default is MILLISECONDS .
http -> (structure)
Send data to an HTTPS endpoint.
url -> (string)
confirmationUrl . If this is a new destination, a new TopicRuleDestination is created if possible.confirmationUrl -> (string)
headers -> (list)
The HTTP headers to send with the message data.
(structure)
The HTTP action header.
key -> (string)
value -> (string)
auth -> (structure)
The authentication method to use when sending data to an HTTPS endpoint.
sigv4 -> (structure)
Use Sig V4 authorization. For more information, see Signature Version 4 Signing Process .
signingRegion -> (string)
serviceName -> (string)
roleArn -> (string)
kafka -> (structure)
Send messages to an Amazon Managed Streaming for Apache Kafka (Amazon MSK) or self-managed Apache Kafka cluster.
destinationArn -> (string)
TopicRuleDestination .topic -> (string)
key -> (string)
partition -> (string)
clientProperties -> (map)
Properties of the Apache Kafka producer client.
key -> (string)
value -> (string)
headers -> (list)
The list of Kafka headers that you specify.
(structure)
Specifies a Kafka header using key-value pairs when you create a Rule’s Kafka Action. You can use these headers to route data from IoT clients to downstream Kafka clusters without modifying your message payload.
For more information about Rule’s Kafka action, see Apache Kafka .
key -> (string)
value -> (string)
openSearch -> (structure)
Write data to an Amazon OpenSearch Service domain.
roleArn -> (string)
endpoint -> (string)
index -> (string)
type -> (string)
id -> (string)
location -> (structure)
The Amazon Location Service rule action sends device location updates from an MQTT message to an Amazon Location tracker resource.
roleArn -> (string)
trackerName -> (string)
deviceId -> (string)
timestamp -> (structure)
The time that the location data was sampled. The default value is the time the MQTT message was processed.
value -> (string)
unit -> (string)
The precision of the timestamp value that results from the expression described in value .
Valid values: SECONDS | MILLISECONDS | MICROSECONDS | NANOSECONDS . The default is MILLISECONDS .
latitude -> (string)
longitude -> (string)
ruleDisabled -> (boolean)
awsIotSqlVersion -> (string)
errorAction -> (structure)
The action to perform when an error occurs.
dynamoDB -> (structure)
Write to a DynamoDB table.
tableName -> (string)
roleArn -> (string)
operation -> (string)
${operation} , but the substitution must result in one of the following: INSERT , UPDATE , or DELETE .hashKeyField -> (string)
hashKeyValue -> (string)
hashKeyType -> (string)
rangeKeyField -> (string)
rangeKeyValue -> (string)
rangeKeyType -> (string)
payloadField -> (string)
dynamoDBv2 -> (structure)
Write to a DynamoDB table. This is a new version of the DynamoDB action. It allows you to write each attribute in an MQTT message payload into a separate DynamoDB column.
roleArn -> (string)
putItem -> (structure)
Specifies the DynamoDB table to which the message data will be written. For example:
{ "dynamoDBv2": { "roleArn": "aws:iam:12341251:my-role" "putItem": { "tableName": "my-table" } } }Each attribute in the message payload will be written to a separate column in the DynamoDB database.
tableName -> (string)
lambda -> (structure)
Invoke a Lambda function.
functionArn -> (string)
sns -> (structure)
Publish to an Amazon SNS topic.
targetArn -> (string)
roleArn -> (string)
messageFormat -> (string)
sqs -> (structure)
Publish to an Amazon SQS queue.
roleArn -> (string)
queueUrl -> (string)
useBase64 -> (boolean)
kinesis -> (structure)
Write data to an Amazon Kinesis stream.
roleArn -> (string)
streamName -> (string)
partitionKey -> (string)
republish -> (structure)
Publish to another MQTT topic.
roleArn -> (string)
topic -> (string)
qos -> (integer)
headers -> (structure)
MQTT Version 5.0 headers information. For more information, see MQTT from the Amazon Web Services IoT Core Developer Guide.
payloadFormatIndicator -> (string)
An Enum string value that indicates whether the payload is formatted as UTF-8.
Valid values are UNSPECIFIED_BYTES and UTF8_DATA .
For more information, see Payload Format Indicator from the MQTT Version 5.0 specification.
Supports substitution templates .
contentType -> (string)
A UTF-8 encoded string that describes the content of the publishing message.
For more information, see Content Type from the MQTT Version 5.0 specification.
Supports substitution templates .
responseTopic -> (string)
A UTF-8 encoded string that’s used as the topic name for a response message. The response topic is used to describe the topic which the receiver should publish to as part of the request-response flow. The topic must not contain wildcard characters.
For more information, see Response Topic from the MQTT Version 5.0 specification.
Supports substitution templates .
correlationData -> (string)
The base64-encoded binary data used by the sender of the request message to identify which request the response message is for when it’s received.
For more information, see Correlation Data from the MQTT Version 5.0 specification.
Note
This binary data must be based64-encoded.Supports substitution templates .
messageExpiry -> (string)
A user-defined integer value that will persist a message at the message broker for a specified amount of time to ensure that the message will expire if it’s no longer relevant to the subscriber. The value of messageExpiry represents the number of seconds before it expires. For more information about the limits of messageExpiry , see Amazon Web Services IoT Core message broker and protocol limits and quotas from the Amazon Web Services Reference Guide.
Supports substitution templates .
userProperties -> (list)
An array of key-value pairs that you define in the MQTT5 header.
(structure)
A key-value pair that you define in the header. Both the key and the value are either literal strings or valid substitution templates .
key -> (string)
UserProperty .value -> (string)
UserProperty .s3 -> (structure)
Write to an Amazon S3 bucket.
roleArn -> (string)
bucketName -> (string)
key -> (string)
cannedAcl -> (string)
firehose -> (structure)
Write to an Amazon Kinesis Firehose stream.
roleArn -> (string)
deliveryStreamName -> (string)
separator -> (string)
batchMode -> (boolean)
Whether to deliver the Kinesis Data Firehose stream as a batch by using ` PutRecordBatch https://docs.aws.amazon.com/firehose/latest/APIReference/API_PutRecordBatch.html`__ . The default value is false .
When batchMode is true and the rule’s SQL statement evaluates to an Array, each Array element forms one record in the ` PutRecordBatch https://docs.aws.amazon.com/firehose/latest/APIReference/API_PutRecordBatch.html`__ request. The resulting array can’t have more than 500 records.
cloudwatchMetric -> (structure)
Capture a CloudWatch metric.
roleArn -> (string)
metricNamespace -> (string)
metricName -> (string)
metricValue -> (string)
metricUnit -> (string)
metricTimestamp -> (string)
cloudwatchAlarm -> (structure)
Change the state of a CloudWatch alarm.
roleArn -> (string)
alarmName -> (string)
stateReason -> (string)
stateValue -> (string)
cloudwatchLogs -> (structure)
Send data to CloudWatch Logs.
roleArn -> (string)
logGroupName -> (string)
batchMode -> (boolean)
true or false (default) .elasticsearch -> (structure)
Write data to an Amazon OpenSearch Service domain.
Note
TheElasticsearch action can only be used by existing rule actions. To create a new rule action or to update an existing rule action, use the OpenSearch rule action instead. For more information, see OpenSearchAction .roleArn -> (string)
endpoint -> (string)
index -> (string)
type -> (string)
id -> (string)
salesforce -> (structure)
Send a message to a Salesforce IoT Cloud Input Stream.
token -> (string)
url -> (string)
iotAnalytics -> (structure)
Sends message data to an IoT Analytics channel.
channelArn -> (string)
channelName -> (string)
batchMode -> (boolean)
Whether to process the action as a batch. The default value is false .
When batchMode is true and the rule SQL statement evaluates to an Array, each Array element is delivered as a separate message when passed by ` BatchPutMessage https://docs.aws.amazon.com/iotanalytics/latest/APIReference/API_BatchPutMessage.html`__ to the IoT Analytics channel. The resulting array can’t have more than 100 messages.
roleArn -> (string)
iotEvents -> (structure)
Sends an input to an IoT Events detector.
inputName -> (string)
messageId -> (string)
The ID of the message. The default messageId is a new UUID value.
When batchMode is true , you can’t specify a messageId –a new UUID value will be assigned.
Assign a value to this property to ensure that only one input (message) with a given messageId will be processed by an IoT Events detector.
batchMode -> (boolean)
Whether to process the event actions as a batch. The default value is false .
When batchMode is true , you can’t specify a messageId .
When batchMode is true and the rule SQL statement evaluates to an Array, each Array element is treated as a separate message when it’s sent to IoT Events by calling ` BatchPutMessage https://docs.aws.amazon.com/iotevents/latest/apireference/API_iotevents-data_BatchPutMessage.html`__ . The resulting array can’t have more than 10 messages.
roleArn -> (string)
iotSiteWise -> (structure)
Sends data from the MQTT message that triggered the rule to IoT SiteWise asset properties.
putAssetPropertyValueEntries -> (list)
A list of asset property value entries.
(structure)
An asset property value entry containing the following information.
entryId -> (string)
assetId -> (string)
propertyAlias or both an aliasId and a propertyId . Accepts substitution templates.propertyId -> (string)
propertyAlias or both an aliasId and a propertyId . Accepts substitution templates.propertyAlias -> (string)
propertyAlias or both an aliasId and a propertyId . Accepts substitution templates.propertyValues -> (list)
A list of property values to insert that each contain timestamp, quality, and value (TQV) information.
(structure)
An asset property value entry containing the following information.
value -> (structure)
The value of the asset property.
stringValue -> (string)
integerValue -> (string)
doubleValue -> (string)
booleanValue -> (string)
true or false ) of the value entry. Accepts substitution templates.timestamp -> (structure)
The asset property value timestamp.
timeInSeconds -> (string)
offsetInNanos -> (string)
quality -> (string)
GOOD , BAD , or UNCERTAIN .roleArn -> (string)
"Action": "iotsitewise:BatchPutAssetPropertyValue" ). The trust policy can restrict access to specific asset hierarchy paths.stepFunctions -> (structure)
Starts execution of a Step Functions state machine.
executionNamePrefix -> (string)
stateMachineName -> (string)
roleArn -> (string)
timestream -> (structure)
The Timestream rule action writes attributes (measures) from an MQTT message into an Amazon Timestream table. For more information, see the Timestream topic rule action documentation.
roleArn -> (string)
databaseName -> (string)
tableName -> (string)
dimensions -> (list)
Metadata attributes of the time series that are written in each measure record.
(structure)
Metadata attributes of the time series that are written in each measure record.
name -> (string)
The metadata dimension name. This is the name of the column in the Amazon Timestream database table record.
Dimensions cannot be named: measure_name , measure_value , or time . These names are reserved. Dimension names cannot start with ts_ or measure_value and they cannot contain the colon (: ) character.
value -> (string)
timestamp -> (structure)
Specifies an application-defined value to replace the default value assigned to the Timestream record’s timestamp in the time column.
You can use this property to specify the value and the precision of the Timestream record’s timestamp. You can specify a value from the message payload or a value computed by a substitution template.
If omitted, the topic rule action assigns the timestamp, in milliseconds, at the time it processed the rule.
value -> (string)
unit -> (string)
The precision of the timestamp value that results from the expression described in value .
Valid values: SECONDS | MILLISECONDS | MICROSECONDS | NANOSECONDS . The default is MILLISECONDS .
http -> (structure)
Send data to an HTTPS endpoint.
url -> (string)
confirmationUrl . If this is a new destination, a new TopicRuleDestination is created if possible.confirmationUrl -> (string)
headers -> (list)
The HTTP headers to send with the message data.
(structure)
The HTTP action header.
key -> (string)
value -> (string)
auth -> (structure)
The authentication method to use when sending data to an HTTPS endpoint.
sigv4 -> (structure)
Use Sig V4 authorization. For more information, see Signature Version 4 Signing Process .
signingRegion -> (string)
serviceName -> (string)
roleArn -> (string)
kafka -> (structure)
Send messages to an Amazon Managed Streaming for Apache Kafka (Amazon MSK) or self-managed Apache Kafka cluster.
destinationArn -> (string)
TopicRuleDestination .topic -> (string)
key -> (string)
partition -> (string)
clientProperties -> (map)
Properties of the Apache Kafka producer client.
key -> (string)
value -> (string)
headers -> (list)
The list of Kafka headers that you specify.
(structure)
Specifies a Kafka header using key-value pairs when you create a Rule’s Kafka Action. You can use these headers to route data from IoT clients to downstream Kafka clusters without modifying your message payload.
For more information about Rule’s Kafka action, see Apache Kafka .
key -> (string)
value -> (string)
openSearch -> (structure)
Write data to an Amazon OpenSearch Service domain.
roleArn -> (string)
endpoint -> (string)
index -> (string)
type -> (string)
id -> (string)
location -> (structure)
The Amazon Location Service rule action sends device location updates from an MQTT message to an Amazon Location tracker resource.
roleArn -> (string)
trackerName -> (string)
deviceId -> (string)
timestamp -> (structure)
The time that the location data was sampled. The default value is the time the MQTT message was processed.
value -> (string)
unit -> (string)
The precision of the timestamp value that results from the expression described in value .
Valid values: SECONDS | MILLISECONDS | MICROSECONDS | NANOSECONDS . The default is MILLISECONDS .
latitude -> (string)
longitude -> (string)
© Copyright 2025, Amazon Web Services. Created using Sphinx.